Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-11121

org.hibernate.test.collection.map.hhh7557.EntityMapTest.testInsertIntoMap fails on oracle and sybase databases

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • EAP_EWP 5.3.0.ER3
    • Hibernate
    • None
    • eap 5.3.0.er4
      hibernate annotations 3.4.0.GA_CP06
      jdk16
      oracle
      sybase

    • Not Required
    • NEW

      org.hibernate.test.collection.map.hhh7557.EntityMapTest.testInsertIntoMap

      Oracle stacktrace:

      org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
      	at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:90)
      	at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
      	at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)
      	at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:114)
      	at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:109)
      	at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:244)
      	at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2352)
      	at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2788)
      	at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:79)
      	at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:278)
      	at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:262)
      	at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:166)
      	at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
      	at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)
      	at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1030)
      	at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:367)
      	at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:137)
      	at org.hibernate.test.collection.map.hhh7557.EntityMapTest.testInsertIntoMap(EntityMapTest.java:58)
      	at org.hibernate.test.annotations.HibernateTestCase.runTest(HibernateTestCase.java:93)
      	at org.hibernate.test.annotations.HibernateTestCase.runBare(HibernateTestCase.java:81)
      Caused by: java.sql.BatchUpdateException: ORA-00942: table or view does not exist
      
      	at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:629)
      	at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:9409)
      	at oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapper.java:211)
      	at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)
      	at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)
      

      Sybase stacktrace:

      Stacktrace
      
      org.hibernate.exception.SQLGrammarException: could not insert: [org.hibernate.test.collection.map.hhh7557.MapValue]
      	at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:90)
      	at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
      	at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:64)
      	at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2286)
      	at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2766)
      	at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:71)
      	at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:278)
      	at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:320)
      	at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:203)
      	at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:129)
      	at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:209)
      	at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:56)
      	at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:194)
      	at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:50)
      	at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:92)
      	at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:565)
      	at org.hibernate.impl.SessionImpl.save(SessionImpl.java:553)
      	at org.hibernate.impl.SessionImpl.save(SessionImpl.java:549)
      	at org.hibernate.test.collection.map.hhh7557.EntityMapTest.addMapEntry(EntityMapTest.java:92)
      	at org.hibernate.test.collection.map.hhh7557.EntityMapTest.testInsertIntoMap(EntityMapTest.java:52)
      	at org.hibernate.test.annotations.HibernateTestCase.runTest(HibernateTestCase.java:93)
      	at org.hibernate.test.annotations.HibernateTestCase.runBare(HibernateTestCase.java:81)
      Caused by: java.sql.SQLException: map_value not found. Specify owner.objectname or use sp_help to check whether the object exists (sp_help may produce lots of output).
      
      	at com.sybase.jdbc4.jdbc.SybConnection.getAllExceptions(Unknown Source)
      	at com.sybase.jdbc4.jdbc.SybStatement.handleSQLE(Unknown Source)
      	at com.sybase.jdbc4.jdbc.SybStatement.nextResult(Unknown Source)
      	at com.sybase.jdbc4.jdbc.SybStatement.nextResult(Unknown Source)
      	at com.sybase.jdbc4.jdbc.SybStatement.updateLoop(Unknown Source)
      	at com.sybase.jdbc4.jdbc.SybStatement.executeUpdate(Unknown Source)
      	at com.sybase.jdbc4.jdbc.SybPreparedStatement.executeUpdate(Unknown Source)
      	at org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:94)
      	at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:57)
      

              brmeyer_jira Brett Meyer (Inactive)
              msimka@redhat.com Martin Simka
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: