0 Replies Latest reply on Aug 9, 2004 11:45 AM by mschoning

    Inner classes

    mschoning

      Hi I am using JBoss 3.2.2, as we are using this version in production I can not easily use another version.

      I am trying to send java beans with inner classes using JBoss.net. It seems to be working fine when my Ejb populates an inner class and returns it. But when I want to send an inner class as a request. Axis can not find a constructor to create the innerclass.

      This is most likely an Axis question but as I am using JBoss.net I thought I would start here, just to see if anyone has successfully send inner classes from client to a JBoss.net service.

      My inner classes are registered like this in the web-service/xml file
      <beanMapping qname="ns:CustQueryInBean"
      xmlns:ns="http://bean.ea.eit.dep.com"
      languageSpecificType="java:com.dep.eit.ea.bean.CustomerByBusinessPartnerBean$CustQueryInBean"/>

      This is how my error looks
      AxisFault
      faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
      faultSubcode:
      faultString: org.xml.sax.SAXException: Unable to create JavaBean of type com.dep.eit.ea.bean.CustomerByBusinessPartnerBean$CustQueryInBean. Missing default constructor? Error was: java.lang.InstantiationException: com.dep.eit.ea.bean.CustomerByBusinessPartnerBean$CustQueryInBean.
      faultActor:

      My inner class has a default constructor so that is not the problem.

      Sorry for the long post!

      Thanks, Mike