• Post Reply Bookmark Topic Watch Topic
  • New Topic

Exceptions while using Handlers  RSS feed

Ashish Vegaraju
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Balaji Loganathan
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!