You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "James Turner (JIRA)" <ji...@apache.org> on 2007/02/26 22:00:29 UTC

[jira] Updated: (AXIS2-2261) Enumerations in WSDL2JAVA don't create zero-instance instantiator, which causes failure in the server

     [ https://issues.apache.org/jira/browse/AXIS2-2261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Turner updated AXIS2-2261:
--------------------------------

    Attachment: DataService.wsdl

WSDL for failure

> Enumerations in WSDL2JAVA don't create zero-instance instantiator, which causes failure in the server
> -----------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2261
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2261
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.1.1
>         Environment: Windows XP, Tomcat
>            Reporter: James Turner
>            Priority: Critical
>         Attachments: DataService.wsdl, DataService.xsd
>
>
> If you include an enumeration in your schema, the resulting type from WSDL2JAVA with -ss doesn't have a zero-argument instantiator, which causes it to fail when the skeleton is called on the server when it tries to deserialize the request.
> SEVERE: Exception occurred while trying to invoke service method UpdateBalance
> org.apache.axis2.AxisFault: wsdl.schemas_kronos_com.BalanceOperationType; nested exception is: 
> 	java.lang.InstantiationException: wsdl.schemas_kronos_com.BalanceOperationType
> 	at org.apache.axis2.engine.DefaultObjectSupplier.getObject(DefaultObjectSupplier.java:28)
> 	at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:269)
> 	at org.apache.axis2.databinding.utils.BeanUtil.processObject(BeanUtil.java:557)
> 	at org.apache.axis2.databinding.utils.BeanUtil.ProcessElement(BeanUtil.java:507)
> 	at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:446)
> 	at org.apache.axis2.rpc.receivers.RPCUtil.processRequest(RPCUtil.java:109)
> 	at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:116)
> 	at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
> 	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497)
> 	at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:328)
> 	at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:254)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> 	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> 	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> 	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> 	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> 	at java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.InstantiationException: wsdl.schemas_kronos_com.BalanceOperationType
> 	at java.lang.Class.newInstance0(Unknown Source)
> 	at java.lang.Class.newInstance(Unknown Source)
> 	at org.apache.axis2.engine.DefaultObjectSupplier.getObject(DefaultObjectSupplier.java:26)
> 	... 26 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org