0 Replies Latest reply on Jun 17, 2003 4:11 AM by Frank Heldt

    Problem with Entity Bean

    Frank Heldt Newbie

      I've played around with JBoss.net on 3.2.1 and so far it works fine, with one exception:

      I used the Itemservice/Item sample as a base and build a little test webservice which returns an array of EntityBeans (like in the sample), but with no luck. When using a little java test programm, i always get
      this Exception:

      - Exception:
      org.xml.sax.SAXException: Unable to create JavaBean of type HCUCWebService.Customer. Missing default constructor? Error was: java.lang.InstantiationException.
      at org.apache.axis.encoding.ser.BeanDeserializer.startElement(BeanDeserializer.java:163)
      at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:906)
      at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:200)
      at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:684)
      at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241)
      at org.apache.axis.message.RPCElement.getParams(RPCElement.java:265)
      at org.apache.axis.client.Call.invoke(Call.java:1871)
      at org.apache.axis.client.Call.invoke(Call.java:1777)
      at org.apache.axis.client.Call.invoke(Call.java:1315)
      at db2linux.HCUCServiceSoapBindingStub.find(HCUCServiceSoapBindingStub.java:120)
      at WSTestClient.main(WSTestClient.java:13)
      AxisFault
      faultCode: {http://xml.apache.org/axis/}Server.userException
      faultString: org.xml.sax.SAXException: Unable to create JavaBean of type HCUCWebService.Customer. Missing default constructor? Error was: java.lang.InstantiationException.
      faultActor: null
      faultDetail:
      stackTrace: org.xml.sax.SAXException: Unable to create JavaBean of type HCUCWebService.Customer. Missing default constructor? Error was: java.lang.InstantiationException.
      at org.apache.axis.encoding.ser.BeanDeserializer.startElement(BeanDeserializer.java:163)
      at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:906)
      at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:200)
      at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:684)
      at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241)
      at org.apache.axis.message.RPCElement.getParams(RPCElement.java:265)
      at org.apache.axis.client.Call.invoke(Call.java:1871)
      at org.apache.axis.client.Call.invoke(Call.java:1777)
      at org.apache.axis.client.Call.invoke(Call.java:1315)
      at db2linux.HCUCServiceSoapBindingStub.find(HCUCServiceSoapBindingStub.java:120)
      at WSTestClient.main(WSTestClient.java:13)


      org.xml.sax.SAXException: Unable to create JavaBean of type HCUCWebService.Customer. Missing default constructor? Error was: java.lang.InstantiationException.
      at org.apache.axis.AxisFault.makeFault(AxisFault.java:120)
      at org.apache.axis.client.Call.invoke(Call.java:1874)
      at org.apache.axis.client.Call.invoke(Call.java:1777)
      at org.apache.axis.client.Call.invoke(Call.java:1315)
      at db2linux.HCUCServiceSoapBindingStub.find(HCUCServiceSoapBindingStub.java:120)
      at WSTestClient.main(WSTestClient.java:13)
      Caused by: org.xml.sax.SAXException: Unable to create JavaBean of type HCUCWebService.Customer. Missing default constructor? Error was: java.lang.InstantiationException.
      at org.apache.axis.encoding.ser.BeanDeserializer.startElement(BeanDeserializer.java:163)
      at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:906)
      at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:200)
      at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:684)
      at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241)
      at org.apache.axis.message.RPCElement.getParams(RPCElement.java:265)
      at org.apache.axis.client.Call.invoke(Call.java:1871)
      ... 4 more



      Can anybody shine some light on this topic?

      Thanks in advance
      Frank