java.sql.BatchUpdateException: Batch entry 0 update ATTR_TYPEDEF set ATD_ITD_ID=null where ATD_ITD_ID=13 was aborted. Call getNextException to see the cause.

Spring JIRA | Stefan Thiel | 9 years ago
  1. 0

    I have some weird behavior of HibernateTemplate (using hibernate 3.2.5ga, hibernate-annotations 3.3.0ga and spring 2.5.1). There is no special transactional context set up. After many tries and a whole bunch of unit tests I'm down to the difference of the 2 tests below that worry me. There seems to be a similar post within the .NET data access form. It all works when directly accessing hibernate's sessionFactory (see second test method below), but not when using the HibernateTemplate's find method. What bewilders me most is the log listing collection deletions and therefore UPDATE statements (see log extracts at the end). ======================================== relevant code snipplets from test (see attachement for the whole test project): /** * this is producing a BatchUpdateException */ @Test public void testItemDescriptorsForTestDomainWithHibernateTemplate() throws Exception { try { final HibernateDescriptorBroker hibDescrBroker = (HibernateDescriptorBroker) getDescriptorBroker(); final List itemDescriptors = hibDescrBroker.getHibernateTemplate().find("from ItemDescriptor where domain.id=?", getTestDomain().getId()); assert itemDescriptors != null; assert itemDescriptors.size() > 0; } catch(Throwable t) { t.printStackTrace(System.err); assert false; } } /** * this works! within the same test run */ @Test public void testItemDescriptorsForTestDomainWithHibernateTemplateUsingItsSessionFactory() throws Exception { try { final HibernateDescriptorBroker hibDescrBroker = (HibernateDescriptorBroker) getDescriptorBroker(); final SessionFactory sessionFactory = hibDescrBroker.getSessionFactory(); final Session session = sessionFactory.openSession(); assert session != null; Query query = session.createQuery("from ItemDescriptor where domain.id=?"); query.setLong(0,getTestDomain().getId()); final List itemDescriptors = query.list(); session.close(); assert itemDescriptors != null; assert itemDescriptors.size() > 0; } catch(Throwable t) { t.printStackTrace(System.err); assert false; } } ======================================== Hibernate's log output Deleting collection: [ch.beecom.apptmpl.broker.impl.ItemDescriptorPojo.attributeDescriptors#13] Deleting collection: [ch.beecom.apptmpl.broker.impl.ItemDescriptorPojo.attributeDescriptors#13] about to open PreparedStatement (open PreparedStatements: 0, globally: 0) about to open PreparedStatement (open PreparedStatements: 0, globally: 0) update ATTR_TYPEDEF set ATD_ITD_ID=null where ATD_ITD_ID=? update ATTR_TYPEDEF set ATD_ITD_ID=null where ATD_ITD_ID=? binding '13' to parameter: 1 binding '13' to parameter: 1 done deleting collection done deleting collection Deleting collection: [ch.beecom.apptmpl.broker.impl.ItemDescriptorPojo.attributeDescriptors#14] Deleting collection: [ch.beecom.apptmpl.broker.impl.ItemDescriptorPojo.attributeDescriptors#14] reusing prepared statement reusing prepared statement update ATTR_TYPEDEF set ATD_ITD_ID=null where ATD_ITD_ID=? update ATTR_TYPEDEF set ATD_ITD_ID=null where ATD_ITD_ID=? binding '14' to parameter: 1 binding '14' to parameter: 1 done deleting collection done deleting collection Executing batch size: 2 Executing batch size: 2 about to close PreparedStatement (open PreparedStatements: 1, globally: 1) about to close PreparedStatement (open PreparedStatements: 1, globally: 1) Could not execute JDBC batch update [update ATTR_TYPEDEF set ATD_ITD_ID=null where ATD_ITD_ID=?] java.sql.BatchUpdateException: Batch entry 0 update ATTR_TYPEDEF set ATD_ITD_ID=null where ATD_ITD_ID=13 was aborted. Call getNextException to see the cause. at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleError(AbstractJdbc2Statement.java:2530) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1317) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:350) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch(AbstractJdbc2Statement.java:2592) at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:237) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:143) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000) at org.springframework.orm.hibernate3.HibernateAccessor.flushIfNecessary(HibernateAccessor.java:390) at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:374) at org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:866) at org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:862) at ch.beecom.apptmpl.broker.DescriptorBrokerTest.testItemDescriptorsForTestDomainWithHibernateTemplate(DescriptorBrokerTest.java:96) at ... << TestNG-StackTrace ... removed >> Could not execute JDBC batch update [update ATTR_TYPEDEF set ATD_ITD_ID=null where ATD_ITD_ID=?] java.sql.BatchUpdateException: Batch entry 0 update ATTR_TYPEDEF set ATD_ITD_ID=null where ATD_ITD_ID=13 was aborted. Call getNextException to see the cause. at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleError(AbstractJdbc2Statement.java:2530) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1317) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:350) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch(AbstractJdbc2Statement.java:2592) at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:237) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:143) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000) at org.springframework.orm.hibernate3.HibernateAccessor.flushIfNecessary(HibernateAccessor.java:390) at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:374) at org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:866) at org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:862) at ch.beecom.apptmpl.broker.DescriptorBrokerTest.testItemDescriptorsForTestDomainWithHibernateTemplate(DescriptorBrokerTest.java:96) at ... << TestNG stack trace ... removed >> SQL Error: 0, SQLState: null SQL Error: 0, SQLState: null Batch entry 0 update ATTR_TYPEDEF set ATD_ITD_ID=null where ATD_ITD_ID=13 was aborted. Call getNextException to see the cause. Batch entry 0 update ATTR_TYPEDEF set ATD_ITD_ID=null where ATD_ITD_ID=13 was aborted. Call getNextException to see the cause. SQL Error: 0, SQLState: 23502 SQL Error: 0, SQLState: 23502 ERROR: null value in column "atd_itd_id" violates not-null constraint ERROR: null value in column "atd_itd_id" violates not-null constraint Could not synchronize database state with session ==================== I [will] attach a downstripped project that contains some of the tests and shows that error (ONLY that one test method using HibernateTemplate instead of directly accessing hibernate's sessionFactory is failing within my setup). It's a maven2 based project. But I left my IDEA project files created from the pom within that zip-file. The tests testng_online.xml are in the module apptmpl (actually the only module in that zip) and the execution directory must be set to that module's directory. The test requires a postgres db and takes the master db configured within apptmpl/src/test/resources/applicationContextTest.xml and will create a fresh database to be used for each test class using the sql scripts within this project - that's why the execution path must be apptmpl/ so the scripts will be found correctly. --- I posted this first to http://forum.springframework.org/showthread.php?t=49301&referrerid=34190

    Spring JIRA | 9 years ago | Stefan Thiel
    java.sql.BatchUpdateException: Batch entry 0 update ATTR_TYPEDEF set ATD_ITD_ID=null where ATD_ITD_ID=13 was aborted. Call getNextException to see the cause.
  2. 0

    I have some weird behavior of HibernateTemplate (using hibernate 3.2.5ga, hibernate-annotations 3.3.0ga and spring 2.5.1). There is no special transactional context set up. After many tries and a whole bunch of unit tests I'm down to the difference of the 2 tests below that worry me. There seems to be a similar post within the .NET data access form. It all works when directly accessing hibernate's sessionFactory (see second test method below), but not when using the HibernateTemplate's find method. What bewilders me most is the log listing collection deletions and therefore UPDATE statements (see log extracts at the end). ======================================== relevant code snipplets from test (see attachement for the whole test project): /** * this is producing a BatchUpdateException */ @Test public void testItemDescriptorsForTestDomainWithHibernateTemplate() throws Exception { try { final HibernateDescriptorBroker hibDescrBroker = (HibernateDescriptorBroker) getDescriptorBroker(); final List itemDescriptors = hibDescrBroker.getHibernateTemplate().find("from ItemDescriptor where domain.id=?", getTestDomain().getId()); assert itemDescriptors != null; assert itemDescriptors.size() > 0; } catch(Throwable t) { t.printStackTrace(System.err); assert false; } } /** * this works! within the same test run */ @Test public void testItemDescriptorsForTestDomainWithHibernateTemplateUsingItsSessionFactory() throws Exception { try { final HibernateDescriptorBroker hibDescrBroker = (HibernateDescriptorBroker) getDescriptorBroker(); final SessionFactory sessionFactory = hibDescrBroker.getSessionFactory(); final Session session = sessionFactory.openSession(); assert session != null; Query query = session.createQuery("from ItemDescriptor where domain.id=?"); query.setLong(0,getTestDomain().getId()); final List itemDescriptors = query.list(); session.close(); assert itemDescriptors != null; assert itemDescriptors.size() > 0; } catch(Throwable t) { t.printStackTrace(System.err); assert false; } } ======================================== Hibernate's log output Deleting collection: [ch.beecom.apptmpl.broker.impl.ItemDescriptorPojo.attributeDescriptors#13] Deleting collection: [ch.beecom.apptmpl.broker.impl.ItemDescriptorPojo.attributeDescriptors#13] about to open PreparedStatement (open PreparedStatements: 0, globally: 0) about to open PreparedStatement (open PreparedStatements: 0, globally: 0) update ATTR_TYPEDEF set ATD_ITD_ID=null where ATD_ITD_ID=? update ATTR_TYPEDEF set ATD_ITD_ID=null where ATD_ITD_ID=? binding '13' to parameter: 1 binding '13' to parameter: 1 done deleting collection done deleting collection Deleting collection: [ch.beecom.apptmpl.broker.impl.ItemDescriptorPojo.attributeDescriptors#14] Deleting collection: [ch.beecom.apptmpl.broker.impl.ItemDescriptorPojo.attributeDescriptors#14] reusing prepared statement reusing prepared statement update ATTR_TYPEDEF set ATD_ITD_ID=null where ATD_ITD_ID=? update ATTR_TYPEDEF set ATD_ITD_ID=null where ATD_ITD_ID=? binding '14' to parameter: 1 binding '14' to parameter: 1 done deleting collection done deleting collection Executing batch size: 2 Executing batch size: 2 about to close PreparedStatement (open PreparedStatements: 1, globally: 1) about to close PreparedStatement (open PreparedStatements: 1, globally: 1) Could not execute JDBC batch update [update ATTR_TYPEDEF set ATD_ITD_ID=null where ATD_ITD_ID=?] java.sql.BatchUpdateException: Batch entry 0 update ATTR_TYPEDEF set ATD_ITD_ID=null where ATD_ITD_ID=13 was aborted. Call getNextException to see the cause. at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleError(AbstractJdbc2Statement.java:2530) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1317) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:350) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch(AbstractJdbc2Statement.java:2592) at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:237) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:143) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000) at org.springframework.orm.hibernate3.HibernateAccessor.flushIfNecessary(HibernateAccessor.java:390) at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:374) at org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:866) at org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:862) at ch.beecom.apptmpl.broker.DescriptorBrokerTest.testItemDescriptorsForTestDomainWithHibernateTemplate(DescriptorBrokerTest.java:96) at ... << TestNG-StackTrace ... removed >> Could not execute JDBC batch update [update ATTR_TYPEDEF set ATD_ITD_ID=null where ATD_ITD_ID=?] java.sql.BatchUpdateException: Batch entry 0 update ATTR_TYPEDEF set ATD_ITD_ID=null where ATD_ITD_ID=13 was aborted. Call getNextException to see the cause. at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleError(AbstractJdbc2Statement.java:2530) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1317) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:350) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch(AbstractJdbc2Statement.java:2592) at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:237) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:143) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000) at org.springframework.orm.hibernate3.HibernateAccessor.flushIfNecessary(HibernateAccessor.java:390) at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:374) at org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:866) at org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:862) at ch.beecom.apptmpl.broker.DescriptorBrokerTest.testItemDescriptorsForTestDomainWithHibernateTemplate(DescriptorBrokerTest.java:96) at ... << TestNG stack trace ... removed >> SQL Error: 0, SQLState: null SQL Error: 0, SQLState: null Batch entry 0 update ATTR_TYPEDEF set ATD_ITD_ID=null where ATD_ITD_ID=13 was aborted. Call getNextException to see the cause. Batch entry 0 update ATTR_TYPEDEF set ATD_ITD_ID=null where ATD_ITD_ID=13 was aborted. Call getNextException to see the cause. SQL Error: 0, SQLState: 23502 SQL Error: 0, SQLState: 23502 ERROR: null value in column "atd_itd_id" violates not-null constraint ERROR: null value in column "atd_itd_id" violates not-null constraint Could not synchronize database state with session ==================== I [will] attach a downstripped project that contains some of the tests and shows that error (ONLY that one test method using HibernateTemplate instead of directly accessing hibernate's sessionFactory is failing within my setup). It's a maven2 based project. But I left my IDEA project files created from the pom within that zip-file. The tests testng_online.xml are in the module apptmpl (actually the only module in that zip) and the execution directory must be set to that module's directory. The test requires a postgres db and takes the master db configured within apptmpl/src/test/resources/applicationContextTest.xml and will create a fresh database to be used for each test class using the sql scripts within this project - that's why the execution path must be apptmpl/ so the scripts will be found correctly. --- I posted this first to http://forum.springframework.org/showthread.php?t=49301&referrerid=34190

    Spring JIRA | 9 years ago | Stefan Thiel
    java.sql.BatchUpdateException: Batch entry 0 update ATTR_TYPEDEF set ATD_ITD_ID=null where ATD_ITD_ID=13 was aborted. Call getNextException to see the cause.
  3. 0

    postgresql hibernate Exception on insert

    Stack Overflow | 4 years ago | amir.sh
    java.sql.BatchUpdateException: Batch entry 0 insert into documententity (address, page_content, id) values ('http://en.wikipedia.org/wiki/Main_Page', 'Wikipedia the free encyclopedia Main Page From Wikipedia the free encyclopedia Jump to navigation search Welcome to Wikipedia the free encyclopedia that anyone can edit 4 148 921 articles in English Arts Biography Geography History Mathematics Science Society Technology All portals From today s featured article Typhoon Rusa the 10th typhoon of the 2002 Pacific typhoon season was the most powerful to strike South Korea in 43 years It developed on August 22 from the monsoon trough in the northwestern Pacific Ocean then moved to the northwest intensifying into a powerful typhoon On August 26 the storm moved across the Amami Islands of Japan causing two fatalities Across Japan the typhoon dropped torrential rainfall peaking at 902 mm 35.5 in in Tokushima Prefecture After weakening slightly Rusa made landfall on Goheung South Korea with winds of 140 km h 85 mph It weakened while moving through the country dropping heavy rainfall that peaked at 897.5 mm 35.33 in in Gangneung A 24 hour total of 880 mm 35 in in the city broke the record for the highest daily precipitation in the country Over 17 000 houses were damaged and large areas of crop fields were flooded In South Korea Rusa killed at least 233 people The typhoon also dropped heavy rainfall in neighboring North Korea leaving 26 000 people homeless and killing three Rusa also destroyed large areas of crops in the country already affected by ongoing famine conditions Full article.. Recently featured 1968 Thule Air Base B-52 crash â First inauguration of Barack Obama â U2 3D Archive â By email â More featured articles.. Did you know.. From Wikipedia s newest content that unlike the living golden club Orontium aquaticum pictured the extinct species Orontium mackii may not have needed wetlands to grow that Miran Pastourma has been serving Pastourma in Athens for over 90 years that the characters of Che r Cycle a 2009 Bengali drama included Che Guevara Aleida March Fidel Castro and Raul Castro that James Hogun a general in the Continental Army asked to be held as a POW after the Siege of Charleston in order to prevent the British from recruiting soldiers among the enlisted Patriot POWs that a Roman era temple in al Sanamayn originally dedicated to the pagan god Tyche in the 2nd century CE and later converted into a mosque is one of the best preserved edifices in Syria that the Star Trek Enterprise episode Affliction explains why Klingons look different in the original series compared to the movies and later series that the Viscount Vane s offer of a reward in the newspapers for information about his eloped wife was compared to a search for some favourite spaniel bitch Archive â Start a new article â Nominate an article In the news After hundreds of workers are taken hostage in an attack at a gas facility near In Amà nas Algeria a raid by Algerian forces results in dozens of fatalities Boeing 787 aircraft pictured are grounded worldwide over concerns about the safety of their lithium ion batteries Sri Lankan Chief Justice Shirani Bandaranayake is dismissed by President Mahinda Rajapaksa following her contested impeachment In the Central African Republic the government signs a ceasefire agreement with rebels ending a month of conflict and establishing a new coalition government France commits troops to aid government forces in the current Northern Mali conflict Sakine CansÄ z one of the co founders of the Kurdistan Workers Party and two other Kurdish activists are shot dead in Paris Recent deaths TaihÅ KÅ ki â Stan Musial â Pauline Phillips Syrian civil war â Wikinews â More current events.. On this day.. January 22 Reunion Day in Ukraine 1919 1879 â Anglo Zulu War Zulu forces of King Cetshwayo pictured fought to a decisive victory at the Battle of Isandlwana 1957 â New York City police arrested George Metesky better known as the Mad Bomber for planting over 30 bombs over 16 years throughout the city 1971 â The Singapore Declaration one of the two most important documents to the uncodified constitution of the Commonwealth of Nations was issued 1984 â Apple Computer introduced the Macintosh computer during Super Bowl XVIII with its groundbreaking 1984 television commercial 2006 â Aymaran Evo Morales was inaugurated as President of Bolivia the country s first democratically elected fully Amerindian leader More anniversaries January 21 â January 22 â January 23 Archive â By email â List of historical anniversaries It is now January 22 2013 UTC â Refresh this page Today s featured picture The comma butterfly Polygonia c album is found in temperate areas of Europe and Asia and is named after a white C shape on the underside of the wings resembling a comma The wings have a distinctive ragged edge apparently a cryptic form as the butterfly resembles a fallen leaf Photo Quartl Recently featured Tawny Frogmouth â U.S federal government in 1862 â St Michael s Cathedral Izhevsk Russia Archive â More featured pictures.. Other areas of Wikipedia Community portal â Bulletin board projects resources and activities covering a wide range of Wikipedia areas Help desk â Ask questions about using Wikipedia Local embassy â For Wikipedia related communication in languages other than English Reference desk â Serving as virtual librarians Wikipedia volunteers tackle your questions on a wide range of subjects Site news â Announcements updates articles and press releases on Wikipedia and the Wikimedia Foundation Village pump â For discussions about Wikipedia itself including areas for technical issues and policies Wikipedia s sister projects Wikipedia is hosted by the Wikimedia Foundation a non profit organization that also hosts a range of other projects Commons Free media repository MediaWiki Free software development Meta Wiki Wikimedia project coordination Wikibooks Free textbooks and manuals Wikidata Free knowledge base Wikinews Free content news Wikiquote Collection of quotations Wikisource Free content library Wikispecies Directory of species Wikiversity Free learning materials and activities Wikivoyage Open travel guide Wiktionary Dictionary and thesaurus Wikipedia languages This Wikipedia is written in English Started in 2001 2001 it currently contains 4 148 921 articles Many other Wikipedias are available some of the largest are listed below More than 750 000 articles Deutsch  Espaà ol  Franà ais  Italiano  Nederlands  æ æœ èªž  Polski  Português Â Ð ÑƒÑ Ñ ÐºÐ Ð More than 150 000 articles Ø Ù Ø Ø Ø ÙŠØ Â Bahasa Indonesia  Bahasa Melayu  Català  Česky  Dansk  Esperanto Â Ù Ø Ø Ø ÛŒ Â í œêµ ì  LietuviÅ Â Magyar  Norsk bokmà l â Ž  Romà nă  SlovenÄ ina Â Ð Ñ Ð Ñ ÐºÐ srpski  Suomi  Svenska  TiẠng Viá t  Tà rkà e Â Ð ÐºÑ Ð Ñ Ð Ñ ÑŒÐºÐ Â ä æ More than 50 000 articles Ð ÑŠÐ Ð Ð Ñ Ñ ÐºÐ Â Eesti  ΠΠΠΠΠΠκΠ English simple  Euskara  Galego  ª  Hrvatski  Norsk nynorsk â Ž  SlovenÅ Ä ina  Srpskohrvatski Ñ Ñ Ð Ñ ÐºÐ Ñ Ñ Ð Ð Ñ Ñ ÐºÐ Â à à à à à  à à à Complete list of Wikipedias Retrieved from http en.wikipedia.org w index.php title Main Page oldid 533561242 Hidden categories Article Feedback Blacklist Navigation menu Personal tools Create account Log in Namespaces Main Page Talk Variants Views Read View source View history Actions Search Navigation Main page Contents Featured content Current events Random article Donate to Wikipedia Interaction Help About Wikipedia Community portal Recent changes Contact Wikipedia Toolbox What links here Related changes Upload file Special pages Permanent link Page information Cite this page Print export Create a book Download as PDF Printable version Languages Simple English Ø Ù Ø Ø Ø ÙŠØ Bahasa Indonesia Bahasa Melayu Ð ÑŠÐ Ð Ð Ñ Ñ ÐºÐ Català Česky Dansk Deutsch Eesti ΠΠΠΠΠΠκΠEspaà ol Esperanto Euskara Ù Ø Ø Ø ÛŒ Franà ais Galego í œêµ ì ª Hrvatski Italiano LietuviÅ Magyar Nederlands æ æœ èªž Norsk bokmà l â Ž Norsk nynorsk â Ž Polski Português Romà nă Ð ÑƒÑ Ñ ÐºÐ Ð SlovenÄ ina SlovenÅ Ä ina Ð Ñ Ð Ñ ÐºÐ srpski Srpskohrvatski Ñ Ñ Ð Ñ ÐºÐ Ñ Ñ Ð Ð Ñ Ñ ÐºÐ Suomi Svenska à à à TiẠng Viá t Tà rkà e Ð ÐºÑ Ð Ñ Ð Ñ ÑŒÐºÐ ä æ This page was last modified on 17 January 2013 at 18 13 Text is available under the Creative Commons Attribution ShareAlike License additional terms may apply See Terms of Use for details Wikipedia is a registered trademark of the Wikimedia Foundation Inc a non profit organization Contact us Privacy policy About Wikipedia Disclaimers Mobile view ', '18') was aborted. Call getNextException to see the cause. at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleError(AbstractJdbc2Statement.java:2619)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    One to many map in Hibernate - error

    Stack Overflow | 5 years ago | brakebg
    org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
  6. 0

    org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update - Spring Forum

    spring.io | 4 months ago
    org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update

    10 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.sql.BatchUpdateException

      Batch entry 0 update ATTR_TYPEDEF set ATD_ITD_ID=null where ATD_ITD_ID=13 was aborted. Call getNextException to see the cause.

      at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleError()
    2. PostgreSQL JDBC Driver
      AbstractJdbc2Statement.executeBatch
      1. org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleError(AbstractJdbc2Statement.java:2530)
      2. org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1317)
      3. org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:350)
      4. org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch(AbstractJdbc2Statement.java:2592)
      4 frames
    3. Hibernate
      ActionQueue.executeActions
      1. org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
      2. org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246)
      3. org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:237)
      4. org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:143)
      4 frames
    4. Hibernate
      SessionImpl.flush
      1. org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
      2. org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
      3. org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
      3 frames
    5. Hibernate
      HibernateTemplate.find
      1. org.springframework.orm.hibernate3.HibernateAccessor.flushIfNecessary(HibernateAccessor.java:390)
      2. org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:374)
      3. org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:866)
      4. org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:862)
      4 frames
    6. ch.beecom.apptmpl
      DescriptorBrokerTest.testItemDescriptorsForTestDomainWithHibernateTemplate
      1. ch.beecom.apptmpl.broker.DescriptorBrokerTest.testItemDescriptorsForTestDomainWithHibernateTemplate(DescriptorBrokerTest.java:96)
      1 frame