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

HHH-4394 ManyToManyTest.testOrderByContractor fails on DB2 and Sybase

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 4.3.0.GA_CP10
    • Hibernate
    • None
    • DB2-91,DB2-97,Sybase15,Sybase155

    • NEW

      https://hibernate.onjira.com/browse/HHH-4394

      Error Message

      could not initialize a collection: org.hibernate.test.annotations.manytomany.Employer.contractors#1

      Stacktrace

      org.hibernate.exception.SQLGrammarException: could not initialize a collection: org.hibernate.test.annotations.manytomany.Employer.contractors#1
      at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
      at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
      at org.hibernate.loader.Loader.loadCollection(Loader.java:2012)
      at org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader.java:36)
      at org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:565)
      at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:60)
      at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1758)
      at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:344)
      at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86)
      at org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:109)
      at org.hibernate.collection.PersistentBag.size(PersistentBag.java:225)
      at org.hibernate.test.annotations.manytomany.ManyToManyTest.testOrderByContractor(Unknown Source)
      at org.hibernate.test.annotations.TestCase.runTestMethod(Unknown Source)
      at org.hibernate.test.annotations.TestCase.runTest(Unknown Source)
      Caused by: com.ibm.db2.jcc.am.SqlSyntaxErrorException: DB2 SQL Error: SQLCODE=-206, SQLSTATE=42703, SQLERRMC=EMPLOYEE.FLD_NAME, DRIVER=3.61.75
      at com.ibm.db2.jcc.am.ed.a(ed.java:676)
      at com.ibm.db2.jcc.am.ed.a(ed.java:60)

              brmeyer_jira Brett Meyer (Inactive)
              madhumita12_jira Madhumita Sadhukhan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: