ws-fx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From valefix <valerio.viane...@yahoo.it>
Subject NullPointerException
Date Mon, 10 Jul 2006 14:29:37 GMT

I'm tryng to use wss4j with a simple service that adds 2 integers.
when the client get the answer from the server it shows the following error:

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: java.lang.NullPointerException
 faultActor:
 faultNode:
 faultDetail:
       
{http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException
        at
org.apache.crimson.tree.ElementNode2.getAttributeNodeNS(ElementNode2.
java:432)
        at
org.apache.crimson.tree.ElementNode2.hasAttributeNS(ElementNode2.java
:388)
        at
org.apache.ws.security.util.WSSecurityUtil.findElementById(WSSecurity
Util.java:270)
        at
org.apache.ws.security.util.WSSecurityUtil.getElementByWsuId(WSSecuri
tyUtil.java:439)
        at
org.apache.ws.security.message.token.SecurityTokenReference.getTokenE
lement(SecurityTokenReference.java:176)
        at
org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncrypte
dKey(EncryptedKeyProcessor.java:194)
        at
org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncrypte
dKey(EncryptedKeyProcessor.java:84)
        at
org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(En
cryptedKeyProcessor.java:76)
        at
org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecur
ityEngine.java:269)
        at
org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecur
ityEngine.java:191)
        at
org.apache.ws.axis.security.WSDoAllReceiver.invoke(WSDoAllReceiver.ja
va:159)
        at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:190)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
        at org.apache.axis.client.Call.invoke(Call.java:2767)
        at org.apache.axis.client.Call.invoke(Call.java:2443)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at sicurezza.Client.main(Client.java:55)

the wsdd file used by the client is:

<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
 <transport name="http"
pivot="java:org.apache.axis.transport.http.HTTPSender"/>
 <globalConfiguration>
  <requestFlow>
   <handler name="DoSecuritySender"
type="java:org.apache.ws.axis.security.WSDoAllSender">
    <parameter name="action" value="Signature Encrypt"/>
    <parameter name="user" value="admin"/>
    <parameter name="passwordCallbackClass" value="sicurezza.PWCallback"/>
    <parameter name="signaturePropFile" value="crypto.properties"/>
    <parameter name="signatureKeyIdentifier" value="DirectReference"/>
    <parameter name="encryptionKeyIdentifier" value="X509KeyIdentifier" />
   </handler>
  </requestFlow>
  <responseFlow>
   <handler name="DoSecurityReceiver"
type="java:org.apache.ws.axis.security.WSDoAllReceiver">
    <parameter name="passwordCallbackClass" value="sicurezza.PWCallback"/>
    <parameter name="action" value="Signature Encrypt"/>
    <parameter name="signaturePropFile" value="crypto.properties" />
   </handler>
  </responseFlow>
 </globalConfiguration>
</deployment>


and the one used to deploy the service is:

<deployment  xmlns="http://xml.apache.org/axis/wsdd/" 
    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
  <service name="Somma" provider="java:RPC" style="wrapped" use="literal" >
    <requestFlow>
      <handler name="DoSecurityReciever"
type="java:org.apache.ws.axis.security.WSDoAllReceiver">
        <parameter name="action" value="Signature Encrypt"/>
        <parameter name="signaturePropFile" value="crypto.properties"/>
	<parameter name="passwordCallbackClass" value="sicurezza.PWCallback"/>
      </handler>
    </requestFlow>
    <responseFlow>
      <handler name="DoSecurityResponse"
type="java:org.apache.ws.axis.security.WSDoAllSender">
	<parameter name="passwordCallbackClass" value="sicurezza.PWCallback"/>
	<parameter name="action" value="Signature Encrypt"/>
	<parameter name="user" value="admin" />
	<parameter name="signaturePropFile" value="crypto.properties"/>
	<parameter name="signatureKeyIdentifier" value="DirectReference"/>
	<parameter name="encryptionKeyIdentifier" value="DirectReference" />
	<!-- <parameter name="encryptionUser" value="admin" /> -->
	</handler>
    </responseFlow>
    <parameter name="className" value="sicurezza.Somma"/>
    <parameter name="allowedMethods" value="*"/>
    <parameter name="scope" value="application"/>
  </service>
</deployment>



 Any suggestions?

Valerio
-- 
View this message in context: http://www.nabble.com/NullPointerException-tf1918766.html#a5252719
Sent from the WSS4J forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org


Mime
View raw message