You must define the bean with a default constructor.
On 5/2/05, lio axis <[EMAIL PROTECTED]> wrote:
> Hello World,
>
> My web-services genrated with axis crashes (see the stack trace) after
> received the whole response structure.
>
> the constructor of the mentionned class is ;
>
> // Constructor
> protected EnumerationStatus(java.lang.String value) {
> _value_ = value;
> _table_.put(_value_,this);
> }
>
> I don't understand why as this class has been used by other clients
> with other web-services ...
>
> What's wrong?
> Any body could help?
>
> Thx,
>
> org.xml.sax.SAXException: Unable to create JavaBean of type
> com.equant.refce.ipcfm.bouchon.getConfiguration.EnumerationStatus.
> Missing default constructor? Error was:
> java.lang.InstantiationException:
> com.equant.refce.ipcfm.bouchon.getConfiguration.EnumerationStatus.
> at
> org.apache.axis.encoding.ser.BeanDeserializer.startElement(BeanDeserializer.java:159)
> at
> org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:976)
> at
> org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:198)
> at
> org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:722)
> at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:233)
> at org.apache.axis.message.RPCElement.getParams(RPCElement.java:347)
> at org.apache.axis.client.Call.invoke(Call.java:2272)
> at org.apache.axis.client.Call.invoke(Call.java:2171)
> at org.apache.axis.client.Call.invoke(Call.java:1691)
> at
> com.equant.refce.ipcfm.bouchon.getConfiguration.GetConfigurationV2SOAPBindingStub.getConfiguration(GetConfigurationV2SOAPBindingStub.java:228)
> at
> com.equant.refce.ipcfm.bouchon.testu.GetConfigurationV2ServiceTestCase.test1GetConfigurationV2GetConfiguration(GetConfigurationV2ServiceTestCase.java:52)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at junit.framework.TestCase.runTest(TestCase.java:154)
> at junit.framework.TestCase.runBare(TestCase.java:127)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:421)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:305)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:186)
>