Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 24329 invoked from network); 26 Feb 2007 21:01:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2007 21:01:14 -0000 Received: (qmail 58056 invoked by uid 500); 26 Feb 2007 21:01:20 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 58003 invoked by uid 500); 26 Feb 2007 21:01:20 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 57992 invoked by uid 99); 26 Feb 2007 21:01:20 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Feb 2007 13:01:20 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Feb 2007 13:01:10 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 89A20714045 for ; Mon, 26 Feb 2007 13:00:49 -0800 (PST) Message-ID: <12726537.1172523649561.JavaMail.jira@brutus> Date: Mon, 26 Feb 2007 13:00:49 -0800 (PST) From: "James Turner (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Updated: (AXIS2-2261) Enumerations in WSDL2JAVA don't create zero-instance instantiator, which causes failure in the server In-Reply-To: <8445335.1172523605583.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-2261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] James Turner updated AXIS2-2261: -------------------------------- Attachment: DataService.xsd XSD for failure example > 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