PQ63179: SERVLET INIT METHOD ISSUING A DB2 CONNECTION, IS GETTING A 'JAVA.LANG.NULLPOINTEREXCEPTION' FROM GET390CREDFROMSUBJECT METH

 A fix may be available

Obtain the fix for this APAR



APAR status
Closed as program error.

Error description
Servlet init() method is driving a getconnection from within the
init() method.  The 'current subject' is set to 'null' on the
thread security of the failing thread.
You will see the following Trace point,with the java stack trace
in the application server region output:
Trace: 2002/06/27 20:16:41.779 01 t=9DFE88 c=UNK key=P8
  FunctionName: com.ibm.ws390.sec.WS390CredentialToken
  SourceId: com.ibm.ws390.sec.WS390CredentialToken
  Category: DEBUG
  ExtendedMessage: Entering get390CredFromSubject
java.lang.NullPointerException
.at com.ibm.ws390.sec.WS390CredentialToken.get390CredFromSubject
      (WS390CredentialToken.java:94)
.at com.ibm.ws390.sec.WS390ThreadSecurity.push
      (WS390ThreadSecurity.java:193)
.at com.ibm.ws390.sec.WS390SecurityManager.pushSubject
      (WS390SecurityManager.java:247)
.at com.ibm.ws390.connmgmt.WS390AppServerConnectionManager.
      allocateConnection
      (WS390AppServerConnectionManager.java:166)
.at com.ibm.connector2.ws390.db2jdbc.DB2JDBCDataSourceWrapper.
      getConnectionFromRequestInfo
      (DB2JDBCDataSourceWrapper.java:159)
.at com.ibm.connector2.ws390.db2jdbc.DB2JDBCDataSourceWrapper.
      getConnection(DB2JDBCDataSourceWrapper.java:111)
.at com.illinoispower.architecture.db.DatabaseSupport.
      getConnection(DatabaseSupport.java:147)
.at com.illinoispower.architecture.db.PersistenceManager.
      executeQuery(PersistenceManager.java:38)
.
Local fix Problem summary
****************************************************************
* USERS AFFECTED: All users of WebSphere Application Server    *
*                 V4.0.1 for z/OS and OS/390                   *
****************************************************************
* PROBLEM DESCRIPTION: Servlet init() method, issuing a DB2    *
*                      connection, is getting a java           *
*                      NullPointer exception from              *
*                      get390CredFromSubject() method due to   *
*                      a null Subject.                         *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
During the servelet init() method call, the 'runas setting' is
being setup as 'caller', when it should be 'server', causing a
jdbc connection to DB2 to fail.
Problem conclusion
Method getCurrentSubject() has been modified to get a thread
with Server identity if there is no identity in that current
thread.

APAR PQ63179 is associated with SERVICE LEVEL W401085 of
WebSphere Application Server V4.0.1 for z/OS and OS/390.
Temporary fix Comments
APAR information
APAR number PQ63179
Reported component name WASKBASE
Reported component ID 5655A9801
Reported release 401
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Submitted date 2002-07-15
Closed date 2002-07-22
Last modified date 2002-08-04

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:
UQ68299

Modules/Macros
BBOUBINF BBOZ0812        

Fix information
Fixed component name WASKBASE
Fixed component ID 5655A9801

Applicable component levels
R401 PSY UQ68299    UP02/07/26 P F207

  Fix is available
Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server for z/OS
Operating system(s):
Software version: 401
Software edition:
Reference #: PQ63179
IBM Group: Software Group
Modified date: Aug 4, 2002