DB2 SQLAllocEnv in javacore

Technote (FAQ)
Problem
Java™ crashes with Java_COM_ibm_db2_jdbc_app_DB2Driver_SQLAllocEnv in the native stack.
Cause
This is usually caused by mismatched DB2® client and server.

A possible stack:


SIGSEGV received at 0xd7203e70 in /usr/WebSphere5/AppServer/java/jre/bin/classic/libjvm.a.

3XHSTACKLINE at 0xD71FB5CC in clFindClassFromClassLoader
3XHSTACKLINE at 0xD7203E70 in clLinkClass
3XHSTACKLINE at 0xD71F1C30 in clInitClass
3XHSTACKLINE at 0xD711AD34 in findFieldBlock
3XHSTACKLINE at 0xD5F898C0 in loadClasses
3XHSTACKLINE at 0xD5F8FEF4 in Java_COM_ibm_db2_jdbc_app_DB2Driver_SQLAllocEnv
3XHSTACKLINE at 0xD714C8D0 in mmisInvoke_V_IHelper
3XHSTACKLINE at 0xD716EC70 in entryCmp

Solution
Configure Websphere® Application Server with the correct DB2 JDBC™ driver and client matching the DB2 server.











Document Information

Product categories: Software, Application Servers, Distributed Application & Web Servers, WebSphere Application Server, Java 2 Connectivity (J2C)
Operating system(s): AIX, HPUX, Linux, Multi-Platform, Solaris, Windows
Software version: 3.5, 4.0, 5.0, 5.1, 6.0
Software edition: Edition Independent
Reference #: 1111785
IBM Group: Software Group
Modified date: 2004-05-27