Thanks for your answers.

I use Xerces now, but I catch an exception again.

Can you help me please ?

Regards,
Jérôme.

Here is the exception :

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.NullPointerException
faultActor:
faultNode:
faultDetail:
   {http://xml.apache.org/axis/}hostname:PO00091

java.lang.NullPointerException
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
   at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
   at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at org.apache.ws.axis.security.WSDoAllReceiver.invoke(WSDoAllReceiver.java:135) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.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:2765)
   at org.apache.axis.client.Call.invoke(Call.java:2748)
   at org.apache.axis.client.Call.invoke(Call.java:2424)
   at org.apache.axis.client.Call.invoke(Call.java:2347)
   at org.apache.axis.client.Call.invoke(Call.java:1804)
at localhost.ServeurWebService.services.WSGed.WSGedSoapBindingStub.putDocument(WSGedSoapBindingStub.java:106)
   at TestWebService.main(TestWebService.java:56)


Jeff Greif a écrit :

It's my impression (with anecdotal evidence from my own inadvertent use of it) that Crimson is slow, out of date with respect to the latest JAXP revisions, and quite buggy (in handling of namespaces, its DOM implementation, etc). The Axis project has mandated the use of Xerces since at least 2002, but people are still being burned by problems with Crimson's presence in the older JDKs.

The user population might be well served if the various ws-related projects shared some code that detected this parser and ogged a warning.

Jeff

Granqvist, Hans wrote:

Out of curiosity, is there a good link to see what is not
supported in Crimson?  Is it just for the validation APIs?

Figuring out JAXP/parser factory/validation APIs ins and outs
is hard, at least for me -- see for example last paragraph in
http://xml.apache.org/xerces2-j/javadocs/api/javax/\ xml/validation/package-summary.html

Think these are the errors conditions seen in Jerome's post?

Hans

-----Original Message-----
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] Sent: Friday, September 02, 2005 6:05 AM
To: Werner Dittmann
Cc: Jérôme PICARD; [email protected]; [email protected]
Subject: Re: ERROR : Signature Encrypt Timestamp

Werner,

should we check the default parser and throw an error?
thanks,
dims

On 9/2/05, Werner Dittmann <[EMAIL PROTECTED]> wrote:
ording to the stack printout you use the crimson parser.
Crimson does _not_ support namespaces
fully (only partial support). Pls make sure you have a

fully namespace
aware parser first in your classpath, e.g.
xerces.

AFAIK Crimson is the standard parser for JDK 1.4.x, but I'm

not sure
if Crimson is supported by Apache anymore.

Regards,
Werner

Jérôme PICARD wrote:
Hello,

I try to use the "Signature Encrypt Timestamp" security

action. When
I launch my client, the request is good, the webservice get the request correctly. But at the response, I catch an Exception "java.lang.NullPointerException". I use the keystore's

example, the
user alice and bob.

Did you already meet the same error ?

Thanks,

Here is the client file deployement :

<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 type="java:org.apache.ws.axis.security.WSDoAllSender" >
  <parameter name="action" value="Signature Encrypt Timestamp"/>

  <parameter name="passwordCallbackClass" value="PWCallBack"/>
<parameter name="signatureKeyIdentifier"

value="DirectReference" />
<parameter name="signaturePropFile"

value="wsstest.properties" />
<parameter name="encryptionKeyIdentifier"

value="SKIKeyIdentifier" />
  <parameter name="encryptionUser" value="bob" />
 </handler>
</requestFlow>

 <responseFlow>
<handler

type="java:org.apache.ws.axis.security.WSDoAllReceiver">
  <parameter name="passwordCallbackClass" value="PWCallBack"/>
  <parameter name="action" value="Signature Encrypt Timestamp"/>
<parameter name="signaturePropFile"

value="wsstest.properties" />
 </handler>
</responseFlow>

</globalConfiguration >
</deployment>


Here is the server file deployment :

<deployment xmlns="http://xml.apache.org/axis/wsdd/";
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
<service name="WSGed" provider="java:RPC" style="document" use="literal">


<requestFlow>
<handler

type="java:org.apache.ws.axis.security.WSDoAllReceiver">
  <parameter name="passwordCallbackClass"
value="aston.prototype.test.PWCallBack"/>
  <parameter name="action" value="Signature Encrypt Timestamp"/>
<parameter name="signaturePropFile"

value="wsstest.properties" />
 </handler>
</requestFlow>

<responseFlow>
 <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
  <parameter name="action" value="Signature Encrypt Timestamp"/>
  <!-- Use the Server's cert/key to sign the response -->
  <parameter name="user" value="bob"/>
  <parameter name="passwordCallbackClass"
value="aston.prototype.test.PWCallBack"/>
<parameter name="signatureKeyIdentifier"

value="DirectReference" />
<parameter name="signaturePropFile"

value="wsstest.properties" />
<parameter name="encryptionKeyIdentifier"

value="SKIKeyIdentifier" />
  <!-- Use the Client's cert/key to encrypt the response -->
  <parameter name="encryptionUser" value="alice" />
 </handler>
</responseFlow>
<parameter name="className" value="aston.prototype.amf.WSGed"/>
<parameter name="allowedMethods" value="*"/> <parameter name="scope" value="application"/> </service> </deployment>

Here is the complete exception :

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.NullPointerException
faultActor:
faultNode:
faultDetail:
  {http://xml.apache.org/axis/}hostname:PO00091

java.lang.NullPointerException
  at


org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilde
r.java:221)

  at


org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder
.java:128)

  at


org.apache.axis.encoding.DeserializationContext.endElement(Deseriali
zationContext.java:1087)

at

org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1712)
  at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at

org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
  at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at

org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
at

org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
  at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
at

org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
  at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
  at


org.apache.axis.encoding.DeserializationContext.parse(Deserializatio
nContext.java:227)

at

org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
  at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
  at


org.apache.ws.axis.security.WSDoAllReceiver.invoke(WSDoAllReceiver.j
ava:135)

  at


org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrate
gy.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:2765)
  at org.apache.axis.client.Call.invoke(Call.java:2748)
  at org.apache.axis.client.Call.invoke(Call.java:2424)
  at org.apache.axis.client.Call.invoke(Call.java:2347)
  at org.apache.axis.client.Call.invoke(Call.java:1804)
  at


localhost.ServeurWebService.services.WSGed.WSGedSoapBindingStub.putD
ocument(WSGedSoapBindingStub.java:106)

  at TestWebService.main(TestWebService.java:56)

Regards,
Jérôme.





--------------------------------------------------------------------
- To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
*** We scanned this email for malicious content ***
*** IMPORTANT: Do not open attachments from unrecognized senders  ***
*** MailSystem ASTON ***




Reply via email to