1 Reply Latest reply on Dec 3, 2002 1:39 PM by Gerd

    JBoss 3.0 and DB2

    Gerd Newbie

      I use jdk1.3.1_03 with JBoss 3.0.2 and 3.0.4 with DB2 V7.1 on Linux Redhat 7.2 Kernel 2.4.9-34 on an i686.
      I get the following exceptino when I try to use DB2:

      [java] 13:20:16,311 INFO [Server] JBoss (MX MicroKernel) [3.0.2 Date:200208271339] Started in 1m:51s:239ms
      [java] 13:23:13,322 ERROR [LogInterceptor] Unexpected Error:
      [java] java.lang.NoSuchFieldError: indicators
      [java] at COM.ibm.db2.jdbc.app.DB2Driver.SQLAllocEnv(Native Method)
      [java] at COM.ibm.db2.jdbc.app.DB2Driver.(DB2Driver.java:245)
      [java] at COM.ibm.db2.jdbc.app.DB2Driver.(DB2Driver.java:130)
      [java] at java.lang.Class.newInstance0(Native Method)
      [java] at java.lang.Class.newInstance(Class.java:232)
      [java] at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.checkDriver(LocalManagedConnectionFactory.java:438)
      [java] at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:130)
      [java] at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnection(InternalManagedConnectionPool.java:254) [java] at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:101)
      [java] at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:312) [java] at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:467)
      [java] at org.jboss.resource.connectionmanager.LocalTxConnectionManager.getManagedConnection(LocalTxConnectionManager.java:221)
      [java] at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:532)
      [java] at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:812)
      [java] at org.jboss.resource.adapter.jdbc.local.LocalDataSource.getConnection(LocalDataSource.java:102)
      [java] at com.im.framework.optional.ejb.connectivity.JDBCTemplate.getDBConn(JDBCTemplate.java:248)
      ....

      and so on with a signal 11 dump:

      [java] Unexpected Signal : 11 occurred at PC=0x401aa783
      [java] Function name=prepare_for_compaction__5Space
      [java] Library=/usr/java/jdk1.3.1_03/jre/lib/i386/client/libjvm.so

      [java] Current Java thread:

      [java] Dynamic libraries:
      [java] 08048000-0804c000 r-xp 00000000 03:02 115282 /usr/java/jdk1.3.1_03/jre/bin/i386/native_threads/java
      [java] 0804c000-0804d000 rw-p 00003000 03:02 115282 /usr/java/jdk1.3.1_03/jre/bin/i386/native_threads/java
      [java] 40000000-40016000 r-xp 00000000 03:02 1119476 /lib/ld-2.2.4.so
      [java] 40016000-40017000 rw-p 00015000 03:02 1119476 /lib/ld-2.2.4.so
      [java] 40018000-40029000 r-xp 00000000 03:02 228869 /usr/java/jdk1.3.1_03/jre/lib/i386/libverify.so
      [java] 40029000-4002b000 rw-p 00010000 03:02 228869 /usr/java/jdk1.3.1_03/jre/lib/i386/libverify.so
      [java] 4002b000-4002c000 r--p 00000000 03:02 746309 /usr/lib/locale/en_US/LC_IDENTIFICATION
      [java] 4002c000-4002d000 r--p 00000000 03:02 389408 /usr/lib/locale/en_US/LC_MEASUREMENT
      [java] 4002d000-4002e000 r--p 00000000 03:02 632803 /usr/lib/locale/en_US/LC_TELEPHONE
      [java] 4002e000-4003d000 r-xp 00000000 03:02 1119538 /lib/libpthread-0.9.so
      [java] 4003d000-40045000 rw-p 0000e000 03:02 1119538 /lib/libpthread-0.9.so
      [java] 40045000-4004e000 r-xp 00000000 03:02 17910 /usr/java/jdk1.3.1_03/jre/lib/i386/native_threads/libhpi.so
      [java] 4004e000-4004f000 rw-p 00008000 03:02 17910 /usr/java/jdk1.3.1_03/jre/lib/i386/native_threads/libhpi.so
      [java] 4004f000-4023f000 r-xp 00000000 03:02 1121106 /usr/java/jdk1.3.1_03/jre/lib/i386/client/libjvm.so
      [java] 4023f000-4033f000 rw-p 001ef000 03:02 1121106 /usr/java/jdk1.3.1_03/jre/lib/i386/client/libjvm.so
      [java] 40356000-40359000 r-xp 00000000 03:02 1121928 /lib/libdl-2.2.4.so
      [java] 40359000-4035a000 rw-p 00002000 03:02 1121928 /lib/libdl-2.2.4.so
      [java] 4035a000-4048f000 r-xp 00000000 03:02 1119502 /lib/libc-2.2.4.so
      [java] 4048f000-40494000 rw-p 00134000 03:02 1119502 /lib/libc-2.2.4.so
      [java] 4049a000-404ad000 r-xp 00000000 03:02 1119511 /lib/libnsl-2.2.4.so
      [java] 404ad000-404ae000 rw-p 00012000 03:02 1119511 /lib/libnsl-2.2.4.so
      [java] 404b0000-404d2000 r-xp 00000000 03:02 1121929 /lib/libm-2.2.4.so
      [java] 404d2000-404d3000 rw-p 00021000 03:02 1121929 /lib/libm-2.2.4.so
      [java] 404d3000-40507000 r-xp 00000000 03:02 325497 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
      [java] 40507000-40513000 rw-p 00033000 03:02 325497 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
      [java] 40515000-40536000 r-xp 00000000 03:02 228860 /usr/java/jdk1.3.1_03/jre/lib/i386/libjava.so
      [java] 40536000-40538000 rw-p 00020000 03:02 228860 /usr/java/jdk1.3.1_03/jre/lib/i386/libjava.so
      [java] 40539000-4054d000 r-xp 00000000 03:02 228870 /usr/java/jdk1.3.1_03/jre/lib/i386/libzip.so
      [java] 4054d000-40550000 rw-p 00013000 03:02 228870 /usr/java/jdk1.3.1_03/jre/lib/i386/libzip.so
      [java] 40550000-41284000 r--s 00000000 03:02 829150 /usr/java/jdk1.3.1_03/jre/lib/rt.jar
      [java] 412b1000-415a8000 r--s 00000000 03:02 829143 /usr/java/jdk1.3.1_03/jre/lib/i18n.jar
      [java] 415a8000-415be000 r--s 00000000 03:02 829151 /usr/java/jdk1.3.1_03/jre/lib/sunrsasign.jar
      [java] 43666000-43667000 r--p 00000000 03:02 632805 /usr/lib/locale/en_US/LC_ADDRESS
      [java] 43667000-43668000 r--p 00000000 03:02 632804 /usr/lib/locale/en_US/LC_NAME
      [java] 43668000-43669000 r--p 00000000 03:02 48715 /usr/lib/locale/en_US/LC_PAPER
      [java] 43669000-4366a000 r--p 00000000 03:02 665241 /usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES
      ....
      [java] 4e887000-4e9d8000 r--s 00000000 03:02 197211 /opt/jboss-3.0.2/server/default/tmp/deploy/server/default/deploy/CAMA_EJB.ear/60.CAMA_EJB.ear-contents/library/db2java.zip
      [java] 4e9d8000-4e9ec000 r-xp 00000000 03:02 650804 /usr/IBMdb2/V7.1/lib/libdb2jdbc.so
      [java] 4e9ec000-4e9ed000 rw-p 00013000 03:02 650804 /usr/IBMdb2/V7.1/lib/libdb2jdbc.so
      [java] 4e9ed000-4f0a9000 r-xp 00000000 03:02 650789 /usr/IBMdb2/V7.1/lib/libdb2.so.1
      [java] 4f0a9000-4f1b7000 rw-p 006bb000 03:02 650789 /usr/IBMdb2/V7.1/lib/libdb2.so.1
      [java] 4f24d000-4f24f000 r-xp 00000000 03:02 650794 /usr/IBMdb2/V7.1/lib/libdpdcf.a
      [java] 4f24f000-4f250000 rw-p 00001000 03:02 650794 /usr/IBMdb2/V7.1/lib/libdpdcf.a
      [java] 4f263000-4f268000 r-xp 00000000 03:02 1121927 /lib/libcrypt-2.2.4.so
      [java] 4f268000-4f269000 rw-p 00004000 03:02 1121927 /lib/libcrypt-2.2.4.so
      [java] 4f290000-4f310000 rw-s 00000000 00:04 13598722 /SYSV740227a5 (deleted)

      [java] Local Time = Tue Dec 3 13:24:04 2002
      [java] Elapsed Time = 360
      [java] #
      [java] # HotSpot Virtual Machine Error : 11
      [java] # Error ID : 4F530E43505002BD
      [java] # Please report this error at
      [java] # http://java.sun.com/cgi-bin/bugreport.cgi
      [java] #
      [java] # Java VM: Java HotSpot(TM) Client VM (1.3.1_03-b03 interpreted mode)
      [java] #
      [java] # An error report file has been saved as hs_err_pid29218.log.
      [java] # Please refer to the file for further information.
      [java] #

      I tried different combinations of jdks and JBoss 3.0.2 and 3.0.4. Jdks: IBM jdk1.3.1; SUN jdk1.3.1

      Any ideas? I ran out of them.

      Thanks for your help,
      Gerd

        • 1. Re: JBoss 3.0 and DB2
          Gerd Newbie

          OK, I got it running.

          1) I used the java db2 driver (COM.ibm.db2.jdbc.net.DB2Driver rather than the "app"lication driver.
          2) I started the DB2 JDBC server (db2jstrt)
          3) Then I got a memory allocation error (if the same happened with the app-driver, it explains the Signal 11). This probably was caused by incompatible versions of db2java.zip file and libraries the DB instance was running. So I ran usejdbc2 in DB2 again, stopped and restarted everything, made sure the correct db2java.zip (from the java12 dir) was used by jboss.

          And it worked.