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

DB2 error causes JMS tck tests to fail

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.3.0.GA_CP03
    • 4.3.0.GA_CP02
    • Messaging
    • None
    • TCK 1.4 , EAP 4.3 , DB2

      The following code makes DB2 return a error 301, SQL State 07006 (The value of input host variable or parameter number number cannot be used because of its data type.):

      ps.setNull(payloadPosition, Types.LONGVARBINARY);

      This is being used by org.jboss.messaging.core.impl.JDBCPersistenceManager (line 2382). which is called in some TCK tests. It keep trying for 25 times, getting the same error always. Meanwhile, the TCK client is expecting to receive a message back.

      In my tests, the following code may replace the one which causes DB2 to fail:

      pstmt.setBinaryStream(8, null, 0);

              pthurmond_jira Phillip Thurmond (Inactive)
              jpkroehling@redhat.com Juraci Paixão Kröhling (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: