aspose file tools*
The moose likes Web Services and the fly likes Exceptions while using Handlers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Exceptions while using Handlers" Watch "Exceptions while using Handlers" New topic
Author

Exceptions while using Handlers

Ashish Vegaraju
Ranch Hand

Joined: Aug 19, 2004
Posts: 47
hi,

I have already a RPC based service implemented.I want to include both client as well as server handlers in my application.I followed the instructions as it is and included all the things in my service.But when I am running my service,although the client handler gets invoked,but before my handleRequest method in the client handler the following exceptions com
[java] Exception in thread "main" java.lang.NoSuchMethodError: org.apache.xerces.dom.ElementNSImpl.<init>(Lorg/apache/xerces/dom/CoreDocumentImpl;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String V
[java] at com.sun.xml.messaging.saaj.soap.impl.ElementImpl.<init>(ElementImpl.java:41)
[java] at com.sun.xml.messaging.saaj.soap.impl.EnvelopeImpl.<init>(EnvelopeImpl.java:41)
[java] at com.sun.xml.messaging.saaj.soap.ver1_1.Envelope1_1Impl.<init>(Envelope1_1Impl.java:25)
[java] at com.sun.xml.messaging.saaj.soap.impl.ElementFactory.createNamedElement(ElementFactory.java:74)
[java] at com.sun.xml.messaging.saaj.soap.impl.ElementFactory.createElement(ElementFactory.java:51)
[java] at com.sun.xml.messaging.saaj.soap.SOAPFactoryImpl.createElement(SOAPFactoryImpl.java:35)
[java] at com.sun.xml.rpc.streaming.XmlTreeWriter.addNewNode(XmlTreeWriter.java:100)
[java] at com.sun.xml.rpc.streaming.XmlTreeWriter.startElement(XmlTreeWriter.java:135)
[java] at com.sun.xml.rpc.client.StreamingSender._writeRequest(StreamingSender.java:417)
[java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:59)
[java] at handlersample.HandlerTest_Stub.helloServer(HandlerTest_Stub.java:68)
[java] at client.HandlerSampleClient.main(Unknown Source)
[java] Java Result: 1

All the necessary jar files are there in the classpath.I am a newbee in this field and am struggling to resolve this error..Please help me out.

Even the sample handler example that is there provided with the jwsdp pack is not working.It gives the same exceptions..............

thanks in advance
Ashish.
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Can you point me to the document that you had used for this context ?

The error may occur because of xml parser as well...something
like this


Spritle Software Blogs
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exceptions while using Handlers