permaculture playing cards
The moose likes Web Services and the fly likes Complex Data Type Axis Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Complex Data Type Axis" Watch "Complex Data Type Axis" New topic

Complex Data Type Axis

Siva Jagadeesan
Ranch Hand

Joined: Oct 31, 2000
Posts: 160
Hi All:
I am getting a NullPointerException when invoking a webservice using a JavaClient.
Service Interface is
public boolean uploadFile(
DataHandler dataHandler,
MetadataBean metadataBean,
FolderBean folderBean);
MetadataBean has a another bean (as a composite) PublicationMetaConf.
This is my wsdd file
<deployment xmlns=""
<service name="AutoUploaderService" provider="java:RPC">
<parameter name="className" value="cat.vce.autoUpload.server.service.AutoUploaderServiceImpl"/>
<parameter name="allowedMethods" value="*"/>
<typeMapping deserializer="org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory"
languageSpecificType="java:javax.activation.DataHandler" qname="au ataHandler"
<beanMapping qname="au ublicationMetaConf" languageSpecificType="java:cat.vce.autoUpload.server.conf.PublicationMetaConf"/>
<beanMapping qname="au:MetadataBean" languageSpecificType="java:cat.vce.autoUpload.server.bean.MetadataBean"/>
<beanMapping qname="au:FolderBean" languageSpecificType="java:cat.vce.autoUpload.server.bean.FolderBean"/>

I have two questions
1) When I make a call using Java client I am getting an NullPointerException
2) I am not able to generate Client side code using WSDL2Java. I am getting this error
[java] Type {AutoUploaderService}DataHandler is referenced but not defined
[java] at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(
[java] at org.apache.axis.wsdl.symbolTable.SymbolTable.add(
[java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(
[java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(
[java] at org.apache.axis.wsdl.gen.Parser$
[java] at
It would be great is someone could help me.

Rgds<p>--Siva Jagadeesan<br /><a href="" target="_blank" rel="nofollow"></a><br />Sun Certified Java2 Programmer<br />Sun Certified Web Component Developer<br />BEA Certified Weblogic Server 7 Enterprise Developer
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13035
Well, I dunno about AXIS, but I think we need more information on:
1) When I make a call using Java client I am getting an NullPointerException

Is that thrown on the client side before it sends the SOAP request?
On the server side when it gets the request?
On the client side when it gets the response?
From your code or from AXIS classes?
Balaji Loganathan
author and deputy

Joined: Jul 13, 2001
Posts: 3150
Originally posted by Sivakumar Jagadeesan:

[java] Type {AutoUploaderService}DataHandler is referenced but not defined

Just a guess
Check whether you had included activation.jar in your lib folder or classpath.

Spritle Software Blogs
I agree. Here's the link:
subject: Complex Data Type Axis
jQuery in Action, 3rd edition