APAR status
Closed as program error.
Error description
Component: WAS.adapter
The following StringIndexOutOfBoundsException occurs when using
the DB2 v7.2 Legacy CLI-based Type 2 driver to connect to
DB2 on OS/400:
[10/18/04 15:01:41:660 MST] 1e94e621 DB2DataStoreH >
doConnectionSetup:
com.ibm.websphere.rsadapter.DB2DataStoreHelper@5929e652
[10/18/04 15:01:41:663 MST] 1e94e621 DB2DataStoreH d Product
name = AS
[10/18/04 15:01:41:677 MST] 1e94e621 FreePool E J2CA0046E:
Method
createManagedConnectionWithMCWrapper caught an exception during
creation
of the ManagedConnection for resource jdbc/CapDB, throwing
ResourceAllocationException. Original exception:
java.lang.StringIndexOutOfBoundsException: String index out of
range: 3
at java.lang.String.substring(String.java(Compiled Code))
at
com.ibm.websphere.rsadapter.DB2DataStoreHelper.doConnectionSetup
(DB2Data
StoreHelper.java:226)
Local fix
One possible workaround is to use the IBM Toolbox for Java JDBC
driver contained in the jt400.jar.
Problem summary
****************************************************************
* USERS AFFECTED: All WebSphere Application Server Users *
* who use DB2COnnect to non-390 systems. *
****************************************************************
* PROBLEM DESCRIPTION: StringIndexOutOfBoundsException occurs *
* when using the DB2 v7.2 Legacy *
* CLI-based Type 2 driver to connect to *
* DB2 on OS/400 *
* *
****************************************************************
* RECOMMENDATION: *
****************************************************************
We were expecting a string length of at least 3 characters....
The exception occurrs here:
[10/18/04 15:01:41:677 MST] 1e94e621 FreePool E J2CA0046E:
Method createManagedConnectionWithMCWrapper caught an
exception during creation of the ManagedConnection
for resource jdbc/CapDB, throwing
ResourceAllocationException.
Original exception:
java.lang.StringIndexOutOfBoundsException: String index out of
range: 3
at java.lang.String.substring(String.java(Compiled Code))
at
com.ibm.websphere.rsadapter.DB2DataStoreHelper.doConnectionSetup
(DB2DataStoreHelper.java:226)
Problem conclusion
We fixed the code so that any string length would be
allowed.
The fix for this APAR is currently targeted for inclusion
in fixpack 5.0.2.10 and 5.1.1.4. Please refer to the
Recommended Updates page for delivery dates:
http://www-1.ibm.com/support/docview.wss?rs=180
&context=SSEQTP&uid=swg27004980
Temporary fix Comments
APAR information |
APAR number |
PQ96228 |
Reported component name |
WAS BASE 5.0 |
Reported component ID |
5630A3600 |
Reported release |
10I |
Status |
CLOSED PER |
PE |
NoPE |
HIPER |
NoHIPER |
Special Attention |
NoSpecatt |
Submitted date |
2004-10-25 |
Closed date |
2004-11-15 |
Last modified date |
2004-11-15 |
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
Publications Referenced
Applicable component levels |
R003 PSY |
UP |
R00A PSY |
UP |
R00H PSY |
UP |
R00I PSY |
UP |
R00P PSY |
UP |
R00S PSY |
UP |
R00W PSY |
UP |
R103 PSY |
UP |
R10A PSY |
UP |
R10H PSY |
UP |
R10I PSY |
UP |
R10P PSY |
UP |
R10S PSY |
UP |
R10W PSY |
UP |
|