Symptom
When Soap receiver is applying Web Services security, on one node, it might be working, on another node the error appears: "SOAP: Unable to apply Web Services Security to the message".
defaultTrace and relevant traces as per 1514898 - Troubleshooting SAP Process Orchestration / Integration, shows the following error:
[...]
[EXCEPTION]
java.security.PrivilegedActionException: com.sap.aii.security.lib.exception.SecurityException: SecurityException in method: apply( Message, CPALookupObject ). Message: SecurityException in method: apply( Message, CPALookupObject ). WSSEThread-Exception: SecurityException in method: run(). Message: while trying to read the field 'WSSE_URI' of a null object loaded from local variable 'constants'. To-String: java.lang.NullPointerException: while trying to read the field 'WSSE_URI' of a null object loaded from local variable 'constants'; To-String:
[...]
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.aii.adapter.soap.ejb.WSSecurityExtension.doSign(WSSecurityExtension.java:257)
at com.sap.aii.adapter.soap.ejb.WSSecurityExtension.invokeOnRequest(WSSecurityExtension.java:125)
at com.sap.aii.af.sdk.xi.srt.ExtensionBubble.onMessage(ExtensionBubble.java:56)
at com.sap.aii.af.sdk.xi.srt.ExtensionBubble.onMessage(ExtensionBubble.java:64)
at com.sap.aii.adapter.soap.ejb.XISOAPAdapterBean.callBubbleSequenceReceiver(XISOAPAdapterBean.java:1526)
at com.sap.aii.adapter.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:1085)
[...]
Caused by: com.sap.aii.security.lib.exception.SecurityException: SecurityException in method: apply( Message, CPALookupObject ). WSSEThread-Exception: SecurityException in method: run(). Message: while trying to read the field 'WSSE_URI' of a null object loaded from local variable 'constants'. To-String: java.lang.NullPointerException: while trying to read the field 'WSSE_URI' of a null object loaded from local variable 'constants'; To-String: com.sap.aii.security.lib.exception.SecurityException: SecurityException in method: run(). Message: while trying to read the field 'WSSE_URI' of a null object loaded from local variable 'constants'. To-String: java.lang.NullPointerException: while trying to read the field 'WSSE_URI' of a null object loaded from local variable 'constants'
at com.sap.aii.security.WSSecurityContext.apply(WSSecurityContext.java:263)
[...]
java.lang.NullPointerException: while trying to read the field 'WSSE_URI' of a null object loaded from local variable 'constants'
at com.sap.security.core.securitypolicy.assertions.SecurityPolicyConstants.getWSSENamespaces(SecurityPolicyConstants.java:338)
at com.sap.security.core.ws.wss.WSSecurityDocument.getSecurityHeaderElement(WSSecurityDocument.java:181)
at com.sap.security.core.ws.wss.WSSecurityDocument.<init>(WSSecurityDocument.java:67)
at com.sap.security.core.ws.wss.WSSecurityImpl.applyPolicy(WSSecurityImpl.java:59)
at com.sap.engine.services.wssec.service.WSSecurityServiceImpl.applyPolicy(WSSecurityServiceImpl.java:99)
at com.sap.aii.security.impl.wsse.WSSEThread.run(WSSEThread.java:282)
at com.sap.engine.frame.core.thread.Task.run(Task.java:73)
at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:178)
at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:316)
[...]
Read more...
Environment
- SAP NetWeaver Application Server Java
- Process Integration
Product
Keywords
KBA , BC-XI-IBC , Integration Builder - Configuration , BC-JAS-SEC-WSS , Web Services Security , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview