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

ANN-560 - Quoting clashes with defaults in NamingStrategy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.2.0.GA_CP05, 4.3.0.GA_CP03
    • None
    • Hibernate
    • None
    • Annotations 3.2.1 GA (EAP 4.3 cp02 and EAP 4.2 cp04)

    • Release Notes

      Annotations test org.hibernate.test.annotations.quote.QuoteTest.testQuoteManytoMany fails due to: Parameter index out of range (1 > number of parameters, which is 0).

      Sample stack trace:
      org.hibernate.exception.GenericJDBCException: could not insert collection: org.hibernate.test.annotations.quote.User.roles#1
      at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
      at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
      at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
      at org.hibernate.persister.collection.AbstractCollectionPersister.recreate(AbstractCollectionPersister.java:1183)
      at org.hibernate.action.CollectionRecreateAction.execute(CollectionRecreateAction.java:36)
      at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)
      at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:234)
      at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:145)
      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.hibernate.test.annotations.quote.QuoteTest.testQuoteManytoMany(Unknown Source)
      at org.hibernate.test.annotations.TestCase.runTest(Unknown Source)
      Caused by: java.sql.SQLException: Parameter index out of range (1 > number of parameters, which is 0).
      at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910)
      at com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:2569)
      at com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:2600)
      at com.mysql.jdbc.PreparedStatement.setLong(PreparedStatement.java:2616)
      at org.hibernate.type.LongType.set(LongType.java:42)
      at org.hibernate.type.NullableType.nullSafeSet(NullableType.java:136)
      at org.hibernate.type.NullableType.nullSafeSet(NullableType.java:116)
      at org.hibernate.persister.collection.AbstractCollectionPersister.writeKey(AbstractCollectionPersister.java:746)
      at org.hibernate.persister.collection.AbstractCollectionPersister.recreate(AbstractCollectionPersister.java:1136)

            gbadner@redhat.com Gail Badner (Inactive)
            jpkroehling@redhat.com Juraci Paixão Kröhling (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: