Hi James,
  I think all you need to do is to include xercesImpl.jar and
xml-apis.jar from Xerces in your class path when calling WSDL2java.  
  Yes I also see that axis1.1 and axis1.2 wsdl2java gerenate different
sets of proxy classes with the same wsdl.  I really don't think that is
a good idea on the axis part though as that means you will have to
change your application when upgrading to axis1.2

sz
-----Original Message-----
From: James Chiu [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 28, 2005 10:43 AM
To: [email protected]
Subject: RE: RemoteException: java.lang.NullPointerException

Instead of upgrading to Axis 1.2, I downgraded Java to 1.4 and the
problem
is resolved. 
Do you know any documents that describe version conflicts?

Thanks a lot,

James

-----Original Message-----
From: James Chiu [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 27, 2005 10:45 AM
To: [email protected]
Subject: RE: RemoteException: java.lang.NullPointerException

I actually started with Axis 1.2. While compiling the client stub
classes
generated from WSDL2Java, I received a ClassNotFoundException error.
However, once I changed to Axis 1.1, the problem is gone. Using the same
WSDL file, the client stub classes generated from WSDL2Java are (quite)
different. 

James

-----Original Message-----
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 27, 2005 10:30 AM
To: [email protected]
Subject: Re: RemoteException: java.lang.NullPointerException

That's your problem -- they don't work well together. 
I suggest you upgrade to Axis 1.2.

On 4/27/05, James Chiu <[EMAIL PROTECTED]> wrote:
> Yes, I am using Java 1.5 and Axis 1.1.
> 
> James
> 
> -----Original Message-----
> From: Dominik [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 27, 2005 5:40 AM
> To: [email protected]
> Subject: Re: RemoteException: java.lang.NullPointerException
> 
> Are you using Java 1.5 and Axis 1.1 ?
> 
> ----- Original Message -----
> From: "James Chiu" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Wednesday, April 27, 2005 12:30 AM
> Subject: RemoteException: java.lang.NullPointerException
> 
> Hi,
> 
> I received a RemoteException: java.lang.NullPointerException after my
client
> makes a WS method call. I used the WSDL2Java utility to create client
stub
> classes. The server side is hosted by Microsoft IIS. I turned on the
> debugger and found where the exception is thrown as following:
> 
> {http://xml.apache.org/axis/}stackTrace:
> java.lang.NullPointerException
> at java.util.Hashtable.put(Hashtable.java:396)
> at
>
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXPar
serI
> mpl.java:395)
> at
>
org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializatio
nCon
> textImpl.java:246)
> at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
> at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
> at
>
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java
:675
> )
> at
> org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
> at
>
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
ava:
> 71)
> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
> at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
> at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
> at org.apache.axis.client.Call.invoke(Call.java:2553)
> at org.apache.axis.client.Call.invoke(Call.java:2248)
> at org.apache.axis.client.Call.invoke(Call.java:2171)
> at org.apache.axis.client.Call.invoke(Call.java:1691)
> at
>
com.microsoft.schemas.sqlserver._2003._12.reporting.reportingservices.Re
port
>
ingServiceSoapStub.listSecureMethods(ReportingServiceSoapStub.java:1703)
> at
>
responsys.advrpt.msrsclient.MSRSClient.getChildrenList(MSRSClient.java:5
4)
> at responsys.advrpt.msrsclient.MSRSClient.main(MSRSClient.java:116)
> 
>

Reply via email to