You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by Santosh Kumar <sa...@wipro.com> on 2001/05/09 06:31:01 UTC

Why do i get this NoSuchMethodError

When i run the client after deploying the service, i am welcomed by this :


C:\WINDOWS\DESKTOP>java Client
invoke service
  URL= http://localhost:8080/soap/servlet/rpcrouter
  URN =urn:javasource:exchange
Exception in thread "main" java.lang.NoSuchMethodError
        at org.apache.soap.util.xml.QName.<init>(QName.java:80)
        at org.apache.soap.util.xml.QName.matches(QName.java:146)
        at org.apache.soap.Envelope.unmarshall(Envelope.java:236)
        at org.apache.soap.rpc.Call.invoke(Call.java:228)
        at Client.main(Client.java:27)


Environment FYI: Tomcat3.2,SOAP-2_1,Xerces_1_3_1

Regards,
Santosh

-----Original Message-----
From: Seyong, Um <ar...@hanbbs.net>
To: soap-dev@xml.apache.org <so...@xml.apache.org>
Date: Wednesday, May 09, 2001 7:55 AM
Subject: Re: What's the problem on this sample result?


Hi, SeHeyun.

Change your xerces to 1.2.3 or 1.3.0 or some.
You seem to use 1.3.1 now.

And make sure that xerces place front of your CLASSPATH. (at least any other
XML parser)


PS; Nice to see korean here!

--
Se-Yong, Um
Republic of Korea


----- Original Message -----
From: "±e¼¼Co" <se...@tagfree.com>
To: <so...@xml.apache.org>
Sent: Wednesday, May 09, 2001 11:09 AM
Subject: What's the problem on this sample result?


> when I run sample(stockquote) in apache-soap, I got this result.
>
> what's the problem?
>
> -------------------------------
> $ java GetQuote http://localhost:8080/soap/servlet/rpcrouter IBM
> Exception in thread "main" [ SOAPException: faultCode=SOAP-ENV:Client;
> msg=A 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must
> contain a: 'faultcode' element.;
> targetException=java.lang.IllegalArgumentException: A
> 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a
> 'faultcode' element.]
> at org.apache.soap.rpc.Call.invoke(Call.java:244)
> at GetQuote.main(GetQuote.java:103)
>
>



Re: Why do i get this NoSuchMethodError

Posted by Scott Nichol <sn...@computer.org>.
For SOAP release 2.1, you must use Xerces 1.3.0 or earlier.  The nightly SOAP build works with Xerces 1.3.1.  Also, be certain that Xerces comes before any other XML parser in your classpath, and that there is no XML parser in $JAVA_HOME/jre/lib/ext.

Scott

----- Original Message ----- 
From: "Santosh Kumar" <sa...@wipro.com>
To: <so...@xml.apache.org>
Sent: Wednesday, May 09, 2001 12:31 AM
Subject: Why do i get this NoSuchMethodError


> When i run the client after deploying the service, i am welcomed by this :
> 
> 
> C:\WINDOWS\DESKTOP>java Client
> invoke service
>   URL= http://localhost:8080/soap/servlet/rpcrouter
>   URN =urn:javasource:exchange
> Exception in thread "main" java.lang.NoSuchMethodError
>         at org.apache.soap.util.xml.QName.<init>(QName.java:80)
>         at org.apache.soap.util.xml.QName.matches(QName.java:146)
>         at org.apache.soap.Envelope.unmarshall(Envelope.java:236)
>         at org.apache.soap.rpc.Call.invoke(Call.java:228)
>         at Client.main(Client.java:27)
> 
> 
> Environment FYI: Tomcat3.2,SOAP-2_1,Xerces_1_3_1
> 
> Regards,
> Santosh
> 
> -----Original Message-----
> From: Seyong, Um <ar...@hanbbs.net>
> To: soap-dev@xml.apache.org <so...@xml.apache.org>
> Date: Wednesday, May 09, 2001 7:55 AM
> Subject: Re: What's the problem on this sample result?
> 
> 
> Hi, SeHeyun.
> 
> Change your xerces to 1.2.3 or 1.3.0 or some.
> You seem to use 1.3.1 now.
> 
> And make sure that xerces place front of your CLASSPATH. (at least any other
> XML parser)
> 
> 
> PS; Nice to see korean here!
> 
> --
> Se-Yong, Um
> Republic of Korea
> 
> 
> ----- Original Message -----
> From: "¡¾e¨u¨uCo" <se...@tagfree.com>
> To: <so...@xml.apache.org>
> Sent: Wednesday, May 09, 2001 11:09 AM
> Subject: What's the problem on this sample result?
> 
> 
> > when I run sample(stockquote) in apache-soap, I got this result.
> >
> > what's the problem?
> >
> > -------------------------------
> > $ java GetQuote http://localhost:8080/soap/servlet/rpcrouter IBM
> > Exception in thread "main" [ SOAPException: faultCode=SOAP-ENV:Client;
> > msg=A 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must
> > contain a: 'faultcode' element.;
> > targetException=java.lang.IllegalArgumentException: A
> > 'http://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a
> > 'faultcode' element.]
> > at org.apache.soap.rpc.Call.invoke(Call.java:244)
> > at GetQuote.main(GetQuote.java:103)
> >
> >
> 
> 
>