axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mans Tanneryd <>
Subject RE: About java.lang.InstantiationException.
Date Fri, 21 May 2004 18:30:41 GMT
Hi Bing!

Could you be a little more specific? What were the names of your interface
and your implementation classes? What options did you use when running
java2wsdl and wsdl2java? How did you "use" the stub classes?

  -----Original Message-----
  From: []
  Sent: den 21 maj 2004 18:34
  Subject: About java.lang.InstantiationException.


  I created a Java interface and several Java classes which implement the
interface. I used Java2WSDL to generate the WSDL from the interface. Then I
used WSDL2Java to generate the stub classes.

  When I used the stub classes, I got the following error:

   faultString: java.lang.InstantiationException:
   faultActor: null
   faultNode: null
          stackTrace: java.lang.InstantiationException:

  This seems to me that the Axis tried to create an object based on the
interface, not based on one of my implementation classes.

  I am wondering what I am doing wrong and how to fix it here? Or we just
can't use an interface for the web service directly, i.e., dynamic
invocation not supported.



  The information in this email, including attachments, may be confidential
and/or privileged and may contain confidential health information. This
email is intended to be reviewed only by the individual or organization
named as addressee. If you have received this email in error please notify
IDX immediately - by return message to the sender or to -
and destroy all copies of this message and any attachments. Please note that
any views or opinions presented in this email are solely those of the author
and do not necessarily represent those of IDX. Confidential health
information is protected by state and federal law, including, but not
limited to, the Health Insurance Portability and Accountability Act of 1996
and related regulations.

View raw message