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 is a StackOverflowError?
- How to uninstall Eclipse?
- How do I determine whether an array contains a particular value in Java?
- How can I solve Exception in thread “main” java.lang.NullPointerException error [duplicate]
- Why am I getting a NoClassDefFoundError in Java?
- How to avoid “ConcurrentModificationException” while removing elements from `ArrayList` while iterating it? [duplicate]
- Error occurred during initialization of boot layer FindException: Module not found
- Why do JVM arguments start with “-D”?
- How to split a string in Java
- Printing out a linked list using toString
- Received fatal alert: handshake_failure through SSLHandshakeException
- Will Arrays.sort() increase time complexity and space time complexity?
- How can I concatenate two arrays in Java?
- How/where to download openjdk/openjre for windows [duplicate]
- copy a 2d array in java
- Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException
- Generating all permutations of a given string
- channel 3: open failed: connect failed: Connection refused
- Java Currency Number format
- How to create a generic array in Java?
- java.io.StreamCorruptedException: invalid stream header: 54657374
- How to cast ArrayList<> from List<>
- Best way to “negate” an instanceof
- Java 3D Game Engine?
- How to cast ArrayList<> from List<>
- Using insertion sort for descending order?
- What is the home directory for JDK?
- ShoppingCart.Java Program Assignment
- White spaces are required between publicId and systemId
- Http status 401 This request requires HTTP authentication (). in tomcat 6
- Get integer value of the current year in Java