Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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

Exceptions while using Handlers

Ashish Vegaraju
Ranch Hand

Joined: Aug 19, 2004
Posts: 47

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>(
[java] at com.sun.xml.messaging.saaj.soap.impl.EnvelopeImpl.<init>(
[java] at com.sun.xml.messaging.saaj.soap.ver1_1.Envelope1_1Impl.<init>(
[java] at com.sun.xml.messaging.saaj.soap.impl.ElementFactory.createNamedElement(
[java] at com.sun.xml.messaging.saaj.soap.impl.ElementFactory.createElement(
[java] at com.sun.xml.messaging.saaj.soap.SOAPFactoryImpl.createElement(
[java] at com.sun.xml.rpc.streaming.XmlTreeWriter.addNewNode(
[java] at com.sun.xml.rpc.streaming.XmlTreeWriter.startElement(
[java] at com.sun.xml.rpc.client.StreamingSender._writeRequest(
[java] at com.sun.xml.rpc.client.StreamingSender._send(
[java] at handlersample.HandlerTest_Stub.helloServer(
[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

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:
subject: Exceptions while using Handlers
It's not a secret anymore!