Getting NullPointerException when attempting WS-Security Username Password Digest auth scheme. (Legacy_Onyx KB Id: 227869)
search cancel

Getting NullPointerException when attempting WS-Security Username Password Digest auth scheme. (Legacy_Onyx KB Id: 227869)

book

Article ID: 55101

calendar_today

Updated On:

Products

CA Single Sign On Secure Proxy Server (SiteMinder) CA Single Sign On SOA Security Manager (SiteMinder) CA Single Sign-On

Issue/Introduction

Description:

We are trying to use the WS-Security Authentication Scheme and seeing the following error in the tmxmltoolkit.log file.
=============
2006-02-28 10:46:20,306 [INFO] contenthelper.api.ContentHelperService - ***** Begin Initialization *****************************************
**
2006-02-28 10:46:20,324 [INFO] contenthelper.handler.HandlerServiceManager - initializing services
2006-02-28 10:46:20,328 [INFO] contenthelper.handler.MessageHandlerService - initialize() - found 4 message handlers
2006-02-28 10:46:20,329 [INFO] contenthelper.handler.MessageHandlerService - 1. HTTP Transport Handler
2006-02-28 10:46:20,329 [INFO] contenthelper.handler.MessageHandlerService - 2. SOAP Envelope Handler
2006-02-28 10:46:20,334 [INFO] contenthelper.handler.MessageHandlerService - 3. Raw XML Payload Handler
2006-02-28 10:46:20,334 [INFO] contenthelper.handler.MessageHandlerService - 4. Acord Form XML Handler
2006-02-28 10:46:20,334 [INFO] contenthelper.handler.HandlerServiceManager - MessageHandlerService - initialization succeeded
2006-02-28 10:46:20,337 [INFO] contenthelper.handler.VariableHandlerService - initialize() - found 4 variable handlers
2006-02-28 10:46:20,337 [INFO] contenthelper.handler.VariableHandlerService - 1. XMLBody Variable Handler
2006-02-28 10:46:20,338 [INFO] contenthelper.handler.VariableHandlerService - 2. XMLHeader Variable Handler
2006-02-28 10:46:20,338 [INFO] contenthelper.handler.VariableHandlerService - 3. Transport Variable Handler
2006-02-28 10:46:20,338 [INFO] contenthelper.handler.VariableHandlerService - 4. SAML Assertion Variable Handler
2006-02-28 10:46:20,341 [INFO] contenthelper.handler.VariableHandlerService - InstantiateHandlers: added XMLBodyVariableHandler for type: xml
body
2006-02-28 10:46:20,343 [INFO] contenthelper.handler.VariableHandlerService - InstantiateHandlers: added XMLHeaderVariableHandler for type: x
mlenvelopeheader
2006-02-28 10:46:20,345 [INFO] contenthelper.handler.VariableHandlerService - InstantiateHandlers: added TransportVariableHandler for type: t
ransport
2006-02-28 10:46:20,362 [INFO] contenthelper.handler.VariableHandlerService - InstantiateHandlers: added SAMLAssertionVariableHandler for typ
e: samlassertion
2006-02-28 10:46:20,362 [INFO] contenthelper.handler.HandlerServiceManager - VariableHandlerService - initialization succeeded
2006-02-28 10:46:20,368 [INFO] contenthelper.handler.AuthenticationHandlerService - initialize() - found 6 authentication handlers
2006-02-28 10:46:20,368 [INFO] contenthelper.handler.AuthenticationHandlerService - 1. Document Mapped Auth Handler
2006-02-28 10:46:20,368 [INFO] contenthelper.handler.AuthenticationHandlerService - 2. XML DSIG Auth Handler
2006-02-28 10:46:20,368 [INFO] contenthelper.handler.AuthenticationHandlerService - 3. SAML Session Ticket Auth Handler
2006-02-28 10:46:20,369 [INFO] contenthelper.handler.AuthenticationHandlerService - 4. WS-Security Username Auth Handler
2006-02-28 10:46:20,369 [INFO] contenthelper.handler.AuthenticationHandlerService - 5. WS-Security X.509 Auth Handler
2006-02-28 10:46:20,369 [INFO] contenthelper.handler.AuthenticationHandlerService - 6. WS-Security SAML Auth Handler
2006-02-28 10:46:20,559 [INFO] contenthelper.handler.HandlerServiceManager - AuthenticationHandlerService - initialization succeeded
2006-02-28 10:46:20,563 [INFO] contenthelper.handler.ResponseHandlerService - initialize() - found 4 response handlers
2006-02-28 10:46:20,563 [INFO] contenthelper.handler.ResponseHandlerService - 1. Envelope Header Response Handler
2006-02-28 10:46:20,563 [INFO] contenthelper.handler.ResponseHandlerService - 2. WS-Security Username Response Handler
2006-02-28 10:46:20,563 [INFO] contenthelper.handler.ResponseHandlerService - 3. WS-Security X.509 Response Handler2006-02-28 10:46:20,563 [INFO] contenthelper.handler.ResponseHandlerService - 4. WS-Security SAML Response Handler
2006-02-28 10:46:20,563 [INFO] contenthelper.handler.HandlerServiceManager - ResponseHandlerService - initialization succeeded
2006-02-28 10:46:20,563 [INFO] contenthelper.handler.HandlerServiceManager - initialization completed successfully.
2006-02-28 10:46:20,564 [INFO] contenthelper.api.ContentHelperService - ContentHelperService:initialize() succeeded!
2006-02-28 10:46:20,564 [INFO] contenthelper.api.ContentHelperService - ***** End Initialization *******************************************
2006-02-28 10:46:20,564 [INFO] contenthelper.api.ContentHelperService -
2006-02-28 10:46:20,642 [INFO] service.xmlsdkserver.ConfigData - Property set: disablexmlsdkbase64encoding = false
2006-02-28 10:46:20,692 [INFO] service.xmlsdkserver.ConfigData - Property set: disablexmlsdkbase64encoding = false
2006-02-28 10:46:20,696 [INFO] service.xmlsdkserver.XmlSdkServer - Number of IPC threads: started = 2; configured: 2
SmIPCServer (XmlSdkServer) has been started.
2006-02-28 10:46:20,696 [INFO] service.xmlsdkserver.XmlSdkServer - SmIPCServer (XmlSdkServer) has been started
2006-02-28 10:48:21,413 [INFO] tm.ipc.ContentHelperService_Ipc - ContentHelperService_Ipc::processRequest - Received IpcObject.VALUE_CONTHLPS
RVC_METHOD_CREATE message
2006-02-28 10:48:21,420 [INFO] tm.ipc.ContentHelperService_Ipc - ContentHelperService_Ipc::processRequest - Received IpcObject.VALUE_CONTHLPS
RVC_METHOD_INITIALIZE message
2006-02-28 10:48:21,420 [INFO] tm.ipc.ContentHelperService_Ipc - initAgentApiService received hostConfFilePath = /opt/siteminder/webagent/con
fig/SmHost.conf
2006-02-28 10:48:21,444 [INFO] contenthelper.api.AgentApiService - Using local host address: 10.102.21.42
2006-02-28 10:48:21,444 [INFO] contenthelper.api.AgentApiService - Using /opt/siteminder/webagent/config/SmHost.conf
2006-02-28 10:48:22,494 [INFO] contenthelper.api.AgentApiService - Initializing Java Agent API
2006-02-28 10:48:22,499 [INFO] contenthelper.api.AgentApiService - Successfully initialized Java Agent API
2006-02-28 10:48:22,586 [INFO] tm.ipc.ContentHelperService_Ipc - ContentHelperService_Ipc::processRequest - Received IpcObject.VALUE_CONTHLPS
RVC_METHOD_AGENTKEYSCHANGED message
txmTunnelRequest() - Tunnel Service request succeeded
2006-02-28 10:48:22,612 [INFO] contenthelper.api.ContentHelperService - Found valid TransactionMinder license.
2006-02-28 10:48:22,628 [INFO] handler.message.HTTPTransportHandler 0a66152a-4c6a-440470c6-0001-e71c59b4 - Initialized successfully
2006-02-28 10:48:22,628 [INFO] contenthelper.handler.MessageHandlerService 0a66152a-4c6a-440470c6-0001-e71c59b4 - InstantiateHandlers: added H
TTPTransportHandler
2006-02-28 10:48:22,638 [INFO] handler.message.SOAPEnvelopeHandler 0a66152a-4c6a-440470c6-0001-e71c59b4 - Initialized.
2006-02-28 10:48:22,638 [INFO] contenthelper.handler.MessageHandlerService 0a66152a-4c6a-440470c6-0001-e71c59b4 - InstantiateHandlers: added S
OAPEnvelopeHandler
2006-02-28 10:48:22,641 [INFO] handler.message.RawXMLPayloadHandler 0a66152a-4c6a-440470c6-0001-e71c59b4 - initialized successfully
2006-02-28 10:48:22,641 [INFO] contenthelper.handler.MessageHandlerService 0a66152a-4c6a-440470c6-0001-e71c59b4 - InstantiateHandlers: added R
awXMLPayloadHandler
2006-02-28 10:48:22,646 [INFO] handler.message.AcordFormXMLHandler 0a66152a-4c6a-440470c6-0001-e71c59b4 - initialized successfully
2006-02-28 10:48:22,646 [INFO] contenthelper.handler.MessageHandlerService 0a66152a-4c6a-440470c6-0001-e71c59b4 - InstantiateHandlers: added A
cordFormXMLHandler
txmTunnelRequest() - Tunnel Service request succeeded
2006-02-28 10:48:23,341 [ERROR] contenthelper.handler.HandlerServiceManager 0a66152a-4c6a-440470c6-0001-e71c59b4 - Uncaught exception while di
spatching message: java.lang.NullPointerException
2006-02-28 10:48:23,371 [ERROR] contenthelper.handler.HandlerServiceManager 0a66152a-4c6a-440470c6-0001-e71c59b4 -
Uncaught ERROR caught: java.lang.NullPointerException
java.lang.NullPointerException
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at com.netegrity.tm.contenthelper.handler.authentication.WSSecurityUsernameAuthHandler.doAuthRequest(DashoA8550)
at com.netegrity.tm.contenthelper.handler.authentication.WSSecurityAuthHandler.handleRequest(DashoA8550)
at com.netegrity.tm.contenthelper.handler.AuthenticationHandlerService.dispatchRequest(DashoA8550)
at com.netegrity.tm.contenthelper.handler.HandlerServiceManager.dispatchRequest(DashoA8550)
at com.netegrity.tm.contenthelper.helper.XMLContentHelper.gatherCredentials(DashoA8550)
at com.netegrity.tm.ipc.XMLContentHelper_Ipc.c(DashoA8550)
at com.netegrity.tm.ipc.XMLContentHelper_Ipc.processRequest(DashoA8550)
at com.netegrity.tm.ipc.service.xmlsdkserver.XmlSdkDispatcherAndAssembler.processRequest_XMLContentHelper(DashoA8550)
at com.netegrity.tm.ipc.service.xmlsdkserver.XmlSdkDispatcherAndAssembler.dispatch(DashoA8550)
at com.netegrity.tm.ipc.service.xmlsdkserver.XmlSdkDispatcherAndAssembler.run(DashoA8550)

2006-02-28 10:48:23,381 [ERROR] contenthelper.handler.HandlerServiceManager 0a66152a-4c6a-440470c6-0001-e71c59b4 -
cause: null
2006-02-28 10:49:48,518 [INFO] tm.ipc.ContentHelperService_Ipc 0a66152a-4c6a-440470c6-0001-e71c59b4 - ContentHelperService_Ipc::processRequest
- Received IpcObject.VALUE_CONTHLPSRVC_METHOD_CREATE message
2006-02-28 10:49:48,521 [INFO] tm.ipc.ContentHelperService_Ipc - ContentHelperService_Ipc::processRequest - Received IpcObject.VALUE_CONTHLPS
RVC_METHOD_INITIALIZE message
2006-02-28 10:49:48,575[INFO] tm.ipc.ContentHelperService_Ipc 0a66152a-4c6a-440470c6-0001-e71c59b4 - ContentHelperService_Ipc::processRequest
- Received IpcObject.VALUE_CONTHLPSRVC_METHOD_AGENTKEYSCHANGED message
2006-02-28 10:49:48,606 [ERROR] contenthelper.handler.HandlerServiceManager 0a66152a-4c6b-4404711c-0001-e28b6d84 - Uncaught exception while di
spatching message: java.lang.NullPointerException
2006-02-28 10:49:48,617 [ERROR] contenthelper.handler.HandlerServiceManager 0a66152a-4c6b-4404711c-0001-e28b6d84 -
Uncaught ERROR caught: java.lang.NullPointerException
java.lang.NullPointerException
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
atbs.a(DashoA8550)
at bs.a(DashoA8550)
at bs.a(DashoA8550)
at com.netegrity.tm.contenthelper.handler.authentication.WSSecurityUsernameAuthHandler.doAuthRequest(DashoA8550)
at com.netegrity.tm.contenthelper.handler.authentication.WSSecurityAuthHandler.handleRequest(DashoA8550)
at com.netegrity.tm.contenthelper.handler.AuthenticationHandlerService.dispatchRequest(DashoA8550)
at com.netegrity.tm.contenthelper.handler.HandlerServiceManager.dispatchRequest(DashoA8550)
at com.netegrity.tm.contenthelper.helper.XMLContentHelper.gatherCredentials(DashoA8550)
at com.netegrity.tm.ipc.XMLContentHelper_Ipc.c(DashoA8550)
at com.netegrity.tm.ipc.XMLContentHelper_Ipc.processRequest(DashoA8550)
at com.netegrity.tm.ipc.service.xmlsdkserver.XmlSdkDispatcherAndAssembler.processRequest_XMLContentHelper(DashoA8550)
at com.netegrity.tm.ipc.service.xmlsdkserver.XmlSdkDispatcherAndAssembler.dispatch(DashoA8550)
at com.netegrity.tm.ipc.service.xmlsdkserver.XmlSdkDispatcherAndAssembler.run(DashoA8550)

2006-02-28 10:49:48,617 [ERROR] contenthelper.handler.HandlerServiceManager 0a66152a-4c6b-4404711c-0001-e28b6d84 -
cause: null
====================
The webagent and txm are runningon Solaris
SunOS eaibwsd-msw-01 5.9 Generic_118558-21 sun4u sparc SUNW,Sun-Fire-V240
Java version on the Solaris server is
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
==================
We are using a simple username/password digest for WS-Security and using AD to authenticate and authorize users on a POST,ProcessSOAP and ProcessXML actions.


Solution:

This was a defect that is fixed starting in TransactionMinder 6.0 CR10.

Environment

Release:
Component: TXMFNC