I found the problem that was causing the HTTP error.
In the setFalse()
function that is triggered by the Save button my code was trying to submit the form that contained the button.
function setFalse(){ document.getElementById("hasId").value ="false"; document.deliveryForm.submit(); document.submitForm.submit();
when I remove the document.submitForm.submit();
it works:
function setFalse(){ document.getElementById("hasId").value ="false"; document.deliveryForm.submit()
@Roger Lindsjö Thank you for spotting my error where I wasn’t passing on the right parameter!
Related Posts:
- HTTP Status 405 – Request method ‘POST’ not supported (Spring MVC)
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘MyController’:
- Error creating bean with name ‘entityManagerFactory’ defined in class path resource : Invocation of init method failed
- Error creating bean with name ‘entityManagerFactory’ defined in class path resource : Invocation of init method failed
- Unable to create requested service [org.hibernate .engine.jdbc.env.spi.JdbcEnvironment]-MySQL
- How to solve the “failed to lazily initialize a collection of role” Hibernate exception
- Understanding Spring @Autowired usage
- com.atomikos.icatch.SysException: Error in init: Log already in use? tmlog in ./
- Spring @PropertySources value not overriding
- method in class cannot be applied to given types
- “NoClassDefFoundError: Could not initialize class” error
- Usage of @see in JavaDoc?
- Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
- No String-argument constructor/factory method to deserialize from String value (”)
- Spring boot – Request method ‘POST’ not supported. Tried everything
- What does .class mean in Java?
- java, get set methods
- org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set
- “NoClassDefFoundError: Could not initialize class” error
- “NoClassDefFoundError: Could not initialize class” error
- What is difference between CrudRepository and JpaRepository interfaces in Spring Data JPA?
- Difference between spring @Controller and @RestController annotation
- How to fix org.hibernate.LazyInitializationException – could not initialize proxy – no Session
- @Autowired – No qualifying bean of type found for dependency
- org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set
- org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set
- What’s the difference between session.persist() and session.save() in Hibernate?
- What’s the advantage of load() vs get() in Hibernate?
- method in class cannot be applied to given types
- How to resolve Error listenerStart when deploying web-app in Tomcat 5.5?
- com.sun.jdi.InvocationException occurred invoking method
- UnsatisfiedDependencyException: Error creating bean with name
- UnsatisfiedDependencyException: Error creating bean with name
- Only using @JsonIgnore during serialization, but not deserialization
- Why nextLine() and not nextString() ?
- Spring Maven clean error – The requested profile “pom.xml” could not be activated because it does not exist
- What are the possible values of the Hibernate hbm2ddl.auto configuration and what do they do
- How to fix the Hibernate “object references an unsaved transient instance – save the transient instance before flushing” error
- PersistentObjectException: detached entity passed to persist thrown by JPA and Hibernate
- Why SpringMVC Request method ‘GET’ not supported?
- intellij incorrectly saying no beans of type found for autowired repository
- Could not resolve placeholder in string value
- When is the finalize() method called in Java?
- How to fix the Hibernate “object references an unsaved transient instance – save the transient instance before flushing” error
- Is spring default scope singleton or not?
- Hibernate Error: a different object with the same identifier value was already associated with the session
- Error: Main method not found in class Calculate, please define the main method as: public static void main(String[] args) [duplicate]
- hibernate properties not found
- How to return a boolean method in java?
- ReferenceError: “alert” is not defined
- MultipartException: Current request is not a multipart request
- What kind of Java type is “[B”?
- Hibernate – Batch update returned unexpected row count from update: 0 actual row count: 0 expected: 1
- JsonMappingException: No suitable constructor found for type [simple type, class ]: can not instantiate from JSON object
- What’s the difference between JPA and Hibernate?
- fixing errors on a program to call methods in java
- How to map a composite key with JPA and Hibernate?
- Configure active profile in SpringBoot via Maven
- Downloading a file from spring controllers
- Python-like list comprehension in Java
- Java methods getting euclidean distance
- How can i fix this equals on primitive type(int)
- java.lang.IllegalStateException: Failed to introspect Class
- Spring boot: Unable to start embedded Tomcat servlet container
- when spring boot startup,throw out the “method names must be tokens” exception
- Hibernate show real SQL
- Return outside method error
- model.addAttribute() parameters
- Class Declarations for temperature program in Java
- What does Java option -Xmx stand for? [duplicate]
- How do I convert a String to an int in Java?
- What does Java option -Xmx stand for? [duplicate]
- Is there an invisible character that is not regarded as whitespace?
- Problem with gif with transparent background
- Finding white rectangle in an image
- 1000 * 60 * 60 * 24 * 30 results in a negative number [duplicate]
- How to convert nanoseconds to seconds using the TimeUnit enum?
- Search for words with telephone numbers from 2-3-4 tree
- Using or ‘|’ in regex [duplicate]
- How to format strings in Java
- What is the difference between x86 and x64
- && (AND) and || (OR) in IF statements
- How to use the toString method in Java?
- What is a NullPointerException, and how do I fix it?
- What exactly is Apache Camel?
- Unable to find valid certification path to requested target – error even after cert imported
- Unable to find valid certification path to requested target – error even after cert imported
- What is the equivalent of the C++ Pair
in Java? - Java – Convert integer to string [duplicate]
- Getting random numbers in Java [duplicate]
- What is an instance variable in Java?
- javac is not recognized as an internal or external command, operable program or batch file [closed]
- javac is not recognized as an internal or external command, operable program or batch file [closed]
- Java: “error: cannot find symbol”
- How does the Java ‘for each’ loop work?
- What is a StackOverflowError?
- How to uninstall Eclipse?
- Is GNU’s Java Compiler (GCJ) dead? [closed]
- How does System.out.print() work?
- How do I “decompile” Java class files? [closed]