File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes axis wsdl2java nullPointerException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "axis wsdl2java nullPointerException" Watch "axis wsdl2java nullPointerException" New topic

axis wsdl2java nullPointerException

Sam Venkata
Ranch Hand

Joined: Mar 06, 2006
Posts: 68
When I use the axis wsdl2java tool I get this error..
at org.apache.axis.wsdl.toJava.JavaBeanHelperWriter.getAsFieldName(
at org.apache.axis.wsdl.toJava.JavaBeanHelperWriter.writeMetaData(
at org.apache.axis.wsdl.toJava.JavaBeanHelperWriter.writeFileBody(
at org.apache.axis.wsdl.toJava.JavaWriter.generate(
at org.apache.axis.wsdl.toJava.JavaBeanWriter.writeFileBody(
at org.apache.axis.wsdl.toJava.JavaWriter.generate(
at org.apache.axis.wsdl.toJava.JavaBeanWriter.generate(
at org.apache.axis.wsdl.toJava.JavaTypeWriter.generate(
at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(
at org.apache.axis.wsdl.gen.Parser.generateTypes(
at org.apache.axis.wsdl.gen.Parser.generate(
at org.apache.axis.wsdl.gen.Parser.access$000(
at org.apache.axis.wsdl.gen.Parser$
at Source)

Could some body please explain me why it occurs..
I am new to web services so I am not sure what is wrong with the wsdl..

Samanth Marisetty.
Peer Reynders

Joined: Aug 19, 2005
Posts: 2933
Originally posted by Samanth Marisetty:
I am not sure what is wrong with the wsdl

As you have experienced, the Axis 1.x WSDL2Java exceptions aren't particularly helpful for diagnosing problems in an WSDL. Diagnosing the problem in the WSDL without the WSDL is a bit difficult...
sasank ch

Joined: Nov 07, 2007
Posts: 25
This can happen if it is missing a jar file , I actually forgot the name....

In some cases i found that even though it gives the exception ,it actually creates the client , you can find the class files in the .deployables

Create a jar of all the class files and you can use it in your application.

jar -cvf somename.jar

Give a shot and let me know

I agree. Here's the link:
subject: axis wsdl2java nullPointerException
It's not a secret anymore!