Grails - Could not synchronize database state with session The 2019 Stack Overflow Developer Survey Results Are In Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceSet in domain not working after upgrading grailsUsing Grails + PostgreSQL - How do i debug the GORM?Grails Util read file from bootstrapGrails <=====> compile “:ajax-uploader:1.1”Read and Write Image file inside web-app in grailsError when mixing java and groovy code in Grails Spring Data applicationCan't find configured AuditLog domain error while configuring Auditlog plugin for Grails 2.4.4Accessing service from within src/groovyRendering PDF from controller to view in GrailsGrails notifications cannot be sent successfully

What force causes entropy to increase?

Variable with quotation marks "$()"

should truth entail possible truth

Homework question about an engine pulling a train

Do ℕ, mathbbN, BbbN, symbbN effectively differ, and is there a "canonical" specification of the naturals?

how can a perfect fourth interval be considered either consonant or dissonant?

Are there continuous functions who are the same in an interval but differ in at least one other point?

Why can't devices on different VLANs, but on the same subnet, communicate?

What other Star Trek series did the main TNG cast show up in?

Is this wall load bearing? Blueprints and photos attached

How to read αἱμύλιος or when to aspirate

Circular reasoning in L'Hopital's rule

Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?

Identify 80s or 90s comics with ripped creatures (not dwarves)

Would an alien lifeform be able to achieve space travel if lacking in vision?

"is" operation returns false with ndarray.data attribute, even though two array objects have same id

Does Parliament need to approve the new Brexit delay to 31 October 2019?

What's the point in a preamp?

Why doesn't shell automatically fix "useless use of cat"?

Can a flute soloist sit?

Is there a writing software that you can sort scenes like slides in PowerPoint?

How to support a colleague who finds meetings extremely tiring?

How to make Illustrator type tool selection automatically adapt with text length

What to do when moving next to a bird sanctuary with a loosely-domesticated cat?



Grails - Could not synchronize database state with session



The 2019 Stack Overflow Developer Survey Results Are In
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
The Ask Question Wizard is Live!
Data science time! April 2019 and salary with experienceSet in domain not working after upgrading grailsUsing Grails + PostgreSQL - How do i debug the GORM?Grails Util read file from bootstrapGrails <=====> compile “:ajax-uploader:1.1”Read and Write Image file inside web-app in grailsError when mixing java and groovy code in Grails Spring Data applicationCan't find configured AuditLog domain error while configuring Auditlog plugin for Grails 2.4.4Accessing service from within src/groovyRendering PDF from controller to view in GrailsGrails notifications cannot be sent successfully



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















When I want to make an insert I get this error. I'm using the Grails version ... can it be that I'm missing something? Thank you!



2019-03-08 09:08:56,705 [http-bio-8090-exec-20] ERROR events.PatchedDefaultFlushEventListener - Could not synchronize database state with session
org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
at ar.com.mlan.api.PdCController$_save_closure2.doCall(PdCController.groovy:201)
at ar.com.mlan.api.PdCController.save(PdCController.groovy:161)
at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:198)
at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
at grails.plugin.springsecurity.rest.RestTokenValidationFilter.processFilterChain(RestTokenValidationFilter.groovy:118)
at grails.plugin.springsecurity.rest.RestTokenValidationFilter.doFilter(RestTokenValidationFilter.groovy:84)
at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53)
at grails.plugin.springsecurity.rest.RestAuthenticationFilter.doFilter(RestAuthenticationFilter.groovy:143)
at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:82)
at com.brandseye.cors.CorsFilter.doFilter(CorsFilter.java:82)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)









share|improve this question




























    0















    When I want to make an insert I get this error. I'm using the Grails version ... can it be that I'm missing something? Thank you!



    2019-03-08 09:08:56,705 [http-bio-8090-exec-20] ERROR events.PatchedDefaultFlushEventListener - Could not synchronize database state with session
    org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
    at ar.com.mlan.api.PdCController$_save_closure2.doCall(PdCController.groovy:201)
    at ar.com.mlan.api.PdCController.save(PdCController.groovy:161)
    at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:198)
    at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
    at grails.plugin.springsecurity.rest.RestTokenValidationFilter.processFilterChain(RestTokenValidationFilter.groovy:118)
    at grails.plugin.springsecurity.rest.RestTokenValidationFilter.doFilter(RestTokenValidationFilter.groovy:84)
    at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53)
    at grails.plugin.springsecurity.rest.RestAuthenticationFilter.doFilter(RestAuthenticationFilter.groovy:143)
    at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:82)
    at com.brandseye.cors.CorsFilter.doFilter(CorsFilter.java:82)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)









    share|improve this question
























      0












      0








      0








      When I want to make an insert I get this error. I'm using the Grails version ... can it be that I'm missing something? Thank you!



      2019-03-08 09:08:56,705 [http-bio-8090-exec-20] ERROR events.PatchedDefaultFlushEventListener - Could not synchronize database state with session
      org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
      at ar.com.mlan.api.PdCController$_save_closure2.doCall(PdCController.groovy:201)
      at ar.com.mlan.api.PdCController.save(PdCController.groovy:161)
      at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:198)
      at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
      at grails.plugin.springsecurity.rest.RestTokenValidationFilter.processFilterChain(RestTokenValidationFilter.groovy:118)
      at grails.plugin.springsecurity.rest.RestTokenValidationFilter.doFilter(RestTokenValidationFilter.groovy:84)
      at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53)
      at grails.plugin.springsecurity.rest.RestAuthenticationFilter.doFilter(RestAuthenticationFilter.groovy:143)
      at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:82)
      at com.brandseye.cors.CorsFilter.doFilter(CorsFilter.java:82)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:744)









      share|improve this question














      When I want to make an insert I get this error. I'm using the Grails version ... can it be that I'm missing something? Thank you!



      2019-03-08 09:08:56,705 [http-bio-8090-exec-20] ERROR events.PatchedDefaultFlushEventListener - Could not synchronize database state with session
      org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
      at ar.com.mlan.api.PdCController$_save_closure2.doCall(PdCController.groovy:201)
      at ar.com.mlan.api.PdCController.save(PdCController.groovy:161)
      at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:198)
      at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
      at grails.plugin.springsecurity.rest.RestTokenValidationFilter.processFilterChain(RestTokenValidationFilter.groovy:118)
      at grails.plugin.springsecurity.rest.RestTokenValidationFilter.doFilter(RestTokenValidationFilter.groovy:84)
      at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53)
      at grails.plugin.springsecurity.rest.RestAuthenticationFilter.doFilter(RestAuthenticationFilter.groovy:143)
      at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:82)
      at com.brandseye.cors.CorsFilter.doFilter(CorsFilter.java:82)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:744)






      angularjs grails






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 8 at 12:27









      JuanManuel245JuanManuel245

      102




      102






















          1 Answer
          1






          active

          oldest

          votes


















          0














          ConstraintViolationException … so check the constraints on your domain object versus the data you are trying to save.






          share|improve this answer























          • Hello @Codedoc ! Thanks for responding! ... You may be giving me this error because when you try to save it gives this: Batch entry 0 insert into orders_cabe. We have two servers, one for production and another for development ... In the development works perfect, the only one that gives me problems is the production

            – JuanManuel245
            Mar 8 at 13:54












          • Sounds like the data in production is probably different. Did you check what you're trying to save and verify what the constraints are. Try looking for any unique constraints.

            – Codedoc
            Mar 8 at 15:03












          • Thank you so much! The problem was that of all the tables that I modified (I set up a script.sql to pass the changes) there was one that had modifications "on the outside", I already corregi and it works ... thanks for lighting up!

            – JuanManuel245
            Mar 8 at 15:05











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55063232%2fgrails-could-not-synchronize-database-state-with-session%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          ConstraintViolationException … so check the constraints on your domain object versus the data you are trying to save.






          share|improve this answer























          • Hello @Codedoc ! Thanks for responding! ... You may be giving me this error because when you try to save it gives this: Batch entry 0 insert into orders_cabe. We have two servers, one for production and another for development ... In the development works perfect, the only one that gives me problems is the production

            – JuanManuel245
            Mar 8 at 13:54












          • Sounds like the data in production is probably different. Did you check what you're trying to save and verify what the constraints are. Try looking for any unique constraints.

            – Codedoc
            Mar 8 at 15:03












          • Thank you so much! The problem was that of all the tables that I modified (I set up a script.sql to pass the changes) there was one that had modifications "on the outside", I already corregi and it works ... thanks for lighting up!

            – JuanManuel245
            Mar 8 at 15:05















          0














          ConstraintViolationException … so check the constraints on your domain object versus the data you are trying to save.






          share|improve this answer























          • Hello @Codedoc ! Thanks for responding! ... You may be giving me this error because when you try to save it gives this: Batch entry 0 insert into orders_cabe. We have two servers, one for production and another for development ... In the development works perfect, the only one that gives me problems is the production

            – JuanManuel245
            Mar 8 at 13:54












          • Sounds like the data in production is probably different. Did you check what you're trying to save and verify what the constraints are. Try looking for any unique constraints.

            – Codedoc
            Mar 8 at 15:03












          • Thank you so much! The problem was that of all the tables that I modified (I set up a script.sql to pass the changes) there was one that had modifications "on the outside", I already corregi and it works ... thanks for lighting up!

            – JuanManuel245
            Mar 8 at 15:05













          0












          0








          0







          ConstraintViolationException … so check the constraints on your domain object versus the data you are trying to save.






          share|improve this answer













          ConstraintViolationException … so check the constraints on your domain object versus the data you are trying to save.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 8 at 13:36









          CodedocCodedoc

          535




          535












          • Hello @Codedoc ! Thanks for responding! ... You may be giving me this error because when you try to save it gives this: Batch entry 0 insert into orders_cabe. We have two servers, one for production and another for development ... In the development works perfect, the only one that gives me problems is the production

            – JuanManuel245
            Mar 8 at 13:54












          • Sounds like the data in production is probably different. Did you check what you're trying to save and verify what the constraints are. Try looking for any unique constraints.

            – Codedoc
            Mar 8 at 15:03












          • Thank you so much! The problem was that of all the tables that I modified (I set up a script.sql to pass the changes) there was one that had modifications "on the outside", I already corregi and it works ... thanks for lighting up!

            – JuanManuel245
            Mar 8 at 15:05

















          • Hello @Codedoc ! Thanks for responding! ... You may be giving me this error because when you try to save it gives this: Batch entry 0 insert into orders_cabe. We have two servers, one for production and another for development ... In the development works perfect, the only one that gives me problems is the production

            – JuanManuel245
            Mar 8 at 13:54












          • Sounds like the data in production is probably different. Did you check what you're trying to save and verify what the constraints are. Try looking for any unique constraints.

            – Codedoc
            Mar 8 at 15:03












          • Thank you so much! The problem was that of all the tables that I modified (I set up a script.sql to pass the changes) there was one that had modifications "on the outside", I already corregi and it works ... thanks for lighting up!

            – JuanManuel245
            Mar 8 at 15:05
















          Hello @Codedoc ! Thanks for responding! ... You may be giving me this error because when you try to save it gives this: Batch entry 0 insert into orders_cabe. We have two servers, one for production and another for development ... In the development works perfect, the only one that gives me problems is the production

          – JuanManuel245
          Mar 8 at 13:54






          Hello @Codedoc ! Thanks for responding! ... You may be giving me this error because when you try to save it gives this: Batch entry 0 insert into orders_cabe. We have two servers, one for production and another for development ... In the development works perfect, the only one that gives me problems is the production

          – JuanManuel245
          Mar 8 at 13:54














          Sounds like the data in production is probably different. Did you check what you're trying to save and verify what the constraints are. Try looking for any unique constraints.

          – Codedoc
          Mar 8 at 15:03






          Sounds like the data in production is probably different. Did you check what you're trying to save and verify what the constraints are. Try looking for any unique constraints.

          – Codedoc
          Mar 8 at 15:03














          Thank you so much! The problem was that of all the tables that I modified (I set up a script.sql to pass the changes) there was one that had modifications "on the outside", I already corregi and it works ... thanks for lighting up!

          – JuanManuel245
          Mar 8 at 15:05





          Thank you so much! The problem was that of all the tables that I modified (I set up a script.sql to pass the changes) there was one that had modifications "on the outside", I already corregi and it works ... thanks for lighting up!

          – JuanManuel245
          Mar 8 at 15:05



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55063232%2fgrails-could-not-synchronize-database-state-with-session%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          1928 у кіно

          Захаров Федір Захарович

          Ель Греко