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

    Inner classes

    Michael Schoning Newbie

      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"

      This is how my error looks
      faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
      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.

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

      Sorry for the long post!

      Thanks, Mike