Exception: java.lang.NoSuchMethodException: org.apache.axis.encoding.ser.ArrayDeserializerFactory.create(java.lang.Class, javax.xml.namespace.QName)
Hi, We have implemented web service successfully. But when we increase the log level in tomcat, I get the following exception, DEBUG: 08 Nov 2005 19:18:10,356 at org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72) org.apache.axis.i18n.resource::handleGetObject(exception00) DEBUG: 08 Nov 2005 19:18:10,359 at org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(BaseDeserializerFactory.java:210) Exception: java.lang.NoSuchMethodException: org.apache.axis.encoding.ser.ArrayDeserializerFactory.create(java.lang.Class, javax.xml.namespace.QName) at java.lang.Class.getMethod0(Class.java:1756) at java.lang.Class.getMethod(Class.java:963) at org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(BaseDeserializerFactory.java:203) at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:524) at org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:235) at org.apache.axis.deployment.wsdd.WSDDService.(WSDDService.java:215) at org.apache.axis.deployment.wsdd.WSDDDeployment.(WSDDDeployment.java:204) at org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.java:121) at org.apache.axis.deployment.wsdd.WSDDDocument.(WSDDDocument.java:60) at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:171) at org.apache.axis.AxisEngine.init(AxisEngine.java:155) at org.apache.axis.AxisEngine.(AxisEngine.java:139) at org.apache.axis.client.AxisClient.(AxisClient.java:49) at org.apache.axis.client.Service.getAxisClient(Service.java:104) at org.apache.axis.client.Service.(Service.java:113) at com.cisco.ccw.a2qccx.webservices.WorkflowLocator.(WorkflowLocator.java:18) at com.cisco.ccw.a2qccx.client.WorkflowAdapter._getServiceReference(WorkflowAdapter.java:918) at com.cisco.ccw.a2qccx.client.WorkflowAdapter.startWorkflow(WorkflowAdapter.java:216) at com.cisco.a2q.util.LivelinkImpl.startWorkFlow(LivelinkImpl.java:126) at com.cisco.a2q.presx.manager.DSManager.submitNormalDS(DSManager.java:750) at com.cisco.a2q.presx.manager.DSManager.submitDSAfterAutoANRStatusValidation(DSManager.java:1162) at com.cisco.a2q.presx.manager.DSManager.submitDS(DSManager.java:1476) at com.cisco.a2q.presx.action.DSAction.execute(DSAction.java:970) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.cisco.a2q.servlet.A2QSessionFilter.doFilter(A2QSessionFilter.java:239) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.cisco.a2q.sdn.servlet.SDNSessionFilter.doFilter(SDNSessionFilter.java:118) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:562) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2489) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.a
[jira] Created: (AXIS-2295) problem with http proxy parameters caching mechanism
problem with http proxy parameters caching mechanism Key: AXIS-2295 URL: http://issues.apache.org/jira/browse/AXIS-2295 Project: Apache Axis Type: Bug Components: Basic Architecture Environment: weblogic 8.1 and Windows XP Reporter: Renaud SAULAY Priority: Minor The JVM http proxy parameters are read only once when calling a webservice : if you make a first Call.invoke(...) the JVM proxy parameters are read and cached, but on other calls of method invoke() those JVM http proxy parameters are not read again, which can be disturbing since one may need to change these parameters and they will not be taken into account unless the application server is restarted. See classes : org.apache.axis.components.net.DefaultSocketFactory; (lines 97, 102, 116) org.apache.axis.components.net.TransportClientPropertiesFactory (method create) rg.apache.axis.components.net.DefaultHTTPTransportClientProperties (all methods) I hope i have been precise enough on this bug description. If not, do not hesitate to email me Thank you for your help -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Created: (AXIS-2296) Get the following exception when web service call is made by client : java.lang.NoSuchMethodException: org.apache.axis.encoding.ser.ArrayDeserializerFactory.create(java.lan
Get the following exception when web service call is made by client : java.lang.NoSuchMethodException: org.apache.axis.encoding.ser.ArrayDeserializerFactory.create(java.lang.Class, javax.xml.namespace.QName) --- Key: AXIS-2296 URL: http://issues.apache.org/jira/browse/AXIS-2296 Project: Apache Axis Type: Bug Components: Basic Architecture, Deployment / Registries, Serialization/Deserialization, WSDL processing Environment: Web service is hosted on Unix box on tomcat written in Java Reporter: Vinita Joshi Priority: Critical When the webservice called WorkflowService is called by the client the following exception is thrown, DEBUG: 08 Nov 2005 19:18:10,356 at org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72) org.apache.axis.i18n.resource::handleGetObject(exception00) DEBUG: 08 Nov 2005 19:18:10,359 at org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(BaseDeserializerFactory.java:210) Exception: java.lang.NoSuchMethodException: org.apache.axis.encoding.ser.ArrayDeserializerFactory.create(java.lang.Class, javax.xml.namespace.QName) at java.lang.Class.getMethod0(Class.java:1756) at java.lang.Class.getMethod(Class.java:963) at org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(BaseDeserializerFactory.java:203) at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:524) at org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:235) at org.apache.axis.deployment.wsdd.WSDDService.(WSDDService.java:215) at org.apache.axis.deployment.wsdd.WSDDDeployment.(WSDDDeployment.java:204) at org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.java:121) at org.apache.axis.deployment.wsdd.WSDDDocument.(WSDDDocument.java:60) at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:171) at org.apache.axis.AxisEngine.init(AxisEngine.java:155) at org.apache.axis.AxisEngine.(AxisEngine.java:139) at org.apache.axis.client.AxisClient.(AxisClient.java:49) at org.apache.axis.client.Service.getAxisClient(Service.java:104) at org.apache.axis.client.Service.(Service.java:113) at com.cisco.ccw.a2qccx.webservices.WorkflowLocator.(WorkflowLocator.java:18) at com.cisco.ccw.a2qccx.client.WorkflowAdapter._getServiceReference(WorkflowAdapter.java:918) at com.cisco.ccw.a2qccx.client.WorkflowAdapter.startWorkflow(WorkflowAdapter.java:216) at com.cisco.a2q.util.LivelinkImpl.startWorkFlow(LivelinkImpl.java:126) at com.cisco.a2q.presx.manager.DSManager.submitNormalDS(DSManager.java:750) at com.cisco.a2q.presx.manager.DSManager.submitDSAfterAutoANRStatusValidation(DSManager.java:1162) at com.cisco.a2q.presx.manager.DSManager.submitDS(DSManager.java:1476) at com.cisco.a2q.presx.action.DSAction.execute(DSAction.java:970) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.cisco.a2q.servlet.A2QSessionFilter.doFilter(A2QSessionFilter.java:239) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.cisco.a2q.sdn.servlet.SDNSessionFilter.doFilter(SDNSessionFilter.java:118) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:562) at org.apache.catalina.core.StandardPipeline$StandardPipelineVa
Re: Exception: java.lang.NoSuchMethodException: org.apache.axis.encoding.ser.ArrayDeserializerFactory.create(java.lang.Class, javax.xml.namespace.QName)
Vinita, I think this is an ignorable error. unless it is causing other problems for u. thanks, -- dims On 11/9/05, Vinita Joshi -X (vinjoshi - eTouch Systems at Cisco) <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > We have implemented web service successfully. But when we increase the log > level in tomcat, I get the following exception, > > > > > > DEBUG: 08 Nov 2005 19:18:10,356 at > org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResourceBundle.java:72) > org.apache.axis.i18n.resource::handleGetObject(exception00) > DEBUG: 08 Nov 2005 19:18:10,359 at > org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(BaseDeserializerFactory.java:210) > Exception: > java.lang.NoSuchMethodException: > org.apache.axis.encoding.ser.ArrayDeserializerFactory.create(java.lang.Class, > javax.xml.namespace.QName) > at java.lang.Class.getMethod0(Class.java:1756) > at java.lang.Class.getMethod(Class.java:963) > at > org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(BaseDeserializerFactory.java:203) > at > org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:524) > at > org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:235) > at > org.apache.axis.deployment.wsdd.WSDDService.(WSDDService.java:215) > at > org.apache.axis.deployment.wsdd.WSDDDeployment.(WSDDDeployment.java:204) > at > org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.java:121) > at > org.apache.axis.deployment.wsdd.WSDDDocument.(WSDDDocument.java:60) > at > org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:171) > at org.apache.axis.AxisEngine.init(AxisEngine.java:155) > at org.apache.axis.AxisEngine.(AxisEngine.java:139) > at > org.apache.axis.client.AxisClient.(AxisClient.java:49) > at > org.apache.axis.client.Service.getAxisClient(Service.java:104) > at org.apache.axis.client.Service.(Service.java:113) > at > com.cisco.ccw.a2qccx.webservices.WorkflowLocator.(WorkflowLocator.java:18) > at > com.cisco.ccw.a2qccx.client.WorkflowAdapter._getServiceReference(WorkflowAdapter.java:918) > at > com.cisco.ccw.a2qccx.client.WorkflowAdapter.startWorkflow(WorkflowAdapter.java:216) > at > com.cisco.a2q.util.LivelinkImpl.startWorkFlow(LivelinkImpl.java:126) > at > com.cisco.a2q.presx.manager.DSManager.submitNormalDS(DSManager.java:750) > at > com.cisco.a2q.presx.manager.DSManager.submitDSAfterAutoANRStatusValidation(DSManager.java:1162) > at > com.cisco.a2q.presx.manager.DSManager.submitDS(DSManager.java:1476) > at > com.cisco.a2q.presx.action.DSAction.execute(DSAction.java:970) > at > org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) > at > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) > at > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) > at > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) > at > com.cisco.a2q.servlet.A2QSessionFilter.doFilter(A2QSessionFilter.java:239) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) > at > com.cisco.a2q.sdn.servlet.SDNSessionFilter.doFilter(SDNSessionFilter.java:118) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) > at > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:562) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2489) > at > org.apache.catalina.cor
RE: Exception: java.lang.NoSuchMethodException: org.apache.axis.encoding.ser.ArrayDeserializerFactory.create(java.lang.Class, javax.xml.namespace.QName)
Hi Dims, Thanks for your reply. It is true that even if we see this exception, the client call call web service successfully. But is there any work around/fix if we don't want to see this exception? Thanks, Vinita -Original Message- From: Davanum Srinivas [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 09, 2005 6:56 AM To: axis-dev@ws.apache.org Subject: Re: Exception: java.lang.NoSuchMethodException: org.apache.axis.encoding.ser.ArrayDeserializerFactory.create(java.lang.C lass, javax.xml.namespace.QName) Vinita, I think this is an ignorable error. unless it is causing other problems for u. thanks, -- dims On 11/9/05, Vinita Joshi -X (vinjoshi - eTouch Systems at Cisco) <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > We have implemented web service successfully. But when we increase the log > level in tomcat, I get the following exception, > > > > > > DEBUG: 08 Nov 2005 19:18:10,356 at > org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResour ceBundle.java:72) > org.apache.axis.i18n.resource::handleGetObject(exception00) > DEBUG: 08 Nov 2005 19:18:10,359 at > org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(BaseD eserializerFactory.java:210) > Exception: > java.lang.NoSuchMethodException: > org.apache.axis.encoding.ser.ArrayDeserializerFactory.create(java.lang.C lass, > javax.xml.namespace.QName) > at java.lang.Class.getMethod0(Class.java:1756) > at java.lang.Class.getMethod(Class.java:963) > at > org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(BaseD eserializerFactory.java:203) > at > org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDServic e.java:524) > at > org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:235 ) > at > org.apache.axis.deployment.wsdd.WSDDService.(WSDDService.java:215) > at > org.apache.axis.deployment.wsdd.WSDDDeployment.(WSDDDeployment.jav a:204) > at > org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.ja va:121) > at > org.apache.axis.deployment.wsdd.WSDDDocument.(WSDDDocument.java:60 ) > at > org.apache.axis.configuration.FileProvider.configureEngine(FileProvider. java:171) > at org.apache.axis.AxisEngine.init(AxisEngine.java:155) > at org.apache.axis.AxisEngine.(AxisEngine.java:139) > at > org.apache.axis.client.AxisClient.(AxisClient.java:49) > at > org.apache.axis.client.Service.getAxisClient(Service.java:104) > at org.apache.axis.client.Service.(Service.java:113) > at > com.cisco.ccw.a2qccx.webservices.WorkflowLocator.(WorkflowLocator. java:18) > at > com.cisco.ccw.a2qccx.client.WorkflowAdapter._getServiceReference(Workflo wAdapter.java:918) > at > com.cisco.ccw.a2qccx.client.WorkflowAdapter.startWorkflow(WorkflowAdapte r.java:216) > at > com.cisco.a2q.util.LivelinkImpl.startWorkFlow(LivelinkImpl.java:126) > at > com.cisco.a2q.presx.manager.DSManager.submitNormalDS(DSManager.java:750) > at > com.cisco.a2q.presx.manager.DSManager.submitDSAfterAutoANRStatusValidati on(DSManager.java:1162) > at > com.cisco.a2q.presx.manager.DSManager.submitDS(DSManager.java:1476) > at > com.cisco.a2q.presx.action.DSAction.execute(DSAction.java:970) > at > org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr ocessor.java:484) > at > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java: 274) > at > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) > at > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) > at > com.cisco.a2q.servlet.A2QSessionFilter.doFilter(A2QSessionFilter.java:23 9) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:213) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) > at > com.cisco.a2q.sdn.servlet.SDNSessionFilter.doFilter(SDNSessionFilter.jav a:118) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:213) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:263) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:191) > at > org.apache.catalina.core.StandardPipeline$Stan
[jira] Commented: (AXIS-2279) Doc/Wrapped service turns a non-null, empty array into a null object
[ http://issues.apache.org/jira/browse/AXIS-2279?page=comments#action_12357132 ] Maurizio Mlt commented on AXIS-2279: This is due to the WSDLs Axis generates when using RPC or Doc/Wrapped styles. In the RPC case arrays are wrapped in XMLschema complexType while in the Doc/Wrapped case they are used as simple repeated element in the method response message declaration RPC) ... ... Wrapped) ... ... *** Unzipping my comment I've expaned a little bit more your example: -- class MyWebService.java - XYZ..java public class MyWebService{ public XYZ[] getArray(){ return new XYZ[0]; } } public class XYZ { private String name; private int value; public XYZ(){ name=""; value=0; } public void setName(String name){ this.name=name; } public void setValue(int value){ this.value=value;} public String getName(){ return name; } public int getValue(){ return value; } } -- I've then generated RPC/literal WSDL: java -cp $AXISCLASSPATH:. org.apache.axis.wsdl.Java2WSDL -o MyWebService.wsdl -l http://127.0.0.1:8080/MyWebService -n urn:MyWebService -pexample=urn:MyWebService -y RPC -u LITERAL MyWebService --- MyWebService.wsdl.RPC-literal http://xml.apache.org/xml-soap"; xmlns:impl="urn:MyWebService" xmlns:intf="urn:MyWebService" xmlns:tns2="http://DefaultNamespace"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:wsdlsoap="ht tp://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema";> http://DefaultNamespace"; xmlns="http://www.w3.org/2001/XMLSchema";> http://schemas.xmlsoap.org/soap/encoding/"/> http://www.w3.org/2001/XMLSchema";> http://DefaultNamespace"/> http://schemas.xmlsoap.org/soap/encoding/"/> http://schemas.xmlsoap.org/soap/http"/> http://127.0.0.1:8080/MyWebService"/> --- In this case note that Axis wraps the array of XYZ into an XML-schema complexType and use it as the return type of the getArray() method. where ArrayOf_tns2_XYZ is In this case an array of 0 elements is correctly managed by Axis Serializer/Deserializer. ** And there was evening, and there was morning... I've then generated WRAPPED WSDL: java -cp $AXISCLASSPATH:. org.apache.axis.wsdl.Java2WSDL -o MyWebService.wsdl -l http://127.0.0.1:8080/MyWebService -n urn:MyWebService -pexample=urn:MyWebService -y WRAPPED MyWebService -- MyWebService.wsdl.WRAPPED http://xml.apache.org/xml-soap"; xmlns:impl="urn:MyWebService" xmlns:intf="urn:MyWebService" xmlns:tns2="http://DefaultNamespace"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:wsdlsoap="ht tp://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema";> http://www.w3.org/2001/XMLSchema";> http://DefaultNamespace"/> http://DefaultNamespace"; xmlns="http://www.w3.org/2001/XMLSchema";> http://schemas.xmlsoap.org/soap/http"/> http://127.0.0.1:8080/MyWebService"/> --- As you can see in this case it doesn't wrap the Array in a complexType as in the RPC literal case (as I'd expect...) but it leaves it as a repeated element in the getArray response element: In this case you get a NullPointerException if a 0 elements array is sent. Note that this happens also if you modify line as . *** My solution What I did in order to obtain a WRAPPED WSDL/SOAP solution working as I would expect was to manually edit the (WRAPPED) WSDL file wrapping the array in a complexType: ... - *** Concluding... The same problem and solution would apply also to arrays passed as arguments of methods. Is it a bug ? Is it an error to assume Axis should wrap arrays when used as return/argument types in methods? Is there a way to force Axis to wrap arrays anyway? Personally I choose to work in RPC/literal mode in order to avoid the burden of manually editing the WSDL doc for fufure evolution and re-generations... > Doc/Wrapped service turns a non-null, empty array into a null object > > > Key: AXIS-2279 > URL: http://issues.apache.org/jira/browse/AXIS-2279 > Project:
Any Type Problem!! Please Read.
Title: Any Type Problem!! Please Read. Hi Everyone, I have a data type call PNCerner, which is as following: which translet into axis generated code as a PNCerner class, then it creates a PNCernerDelimiter. The problem I have is in PNCernerDelimiter, here is the generated code, and the problem that I have is that during the runtime when the xml is send thought the stream it added a extra black tag in front of value, I am setting the values in _any[0].setValue("Pratik"), below is what I get as xml for it <>Pratik and I want it to be Pratik. How do I fix it??? public class PNCernerDelimiter implements java.io.Serializable, org.apache.axis.encoding.MixedContentType { private org.apache.axis.message.MessageElement [] _any; // attribute private org.apache.axis.types.Token type; // attribute public PNCernerDelimiter() { } public PNCernerDelimiter( org.apache.axis.message.MessageElement [] _any, org.apache.axis.types.Token type) { this._any = _any; this.type = type; } /** * Gets the _any value for this PNCernerDelimiter. * * @return _any */ public org.apache.axis.message.MessageElement [] get_any() { return _any; } /** * Sets the _any value for this PNCernerDelimiter. * * @param _any */ public void set_any(org.apache.axis.message.MessageElement [] _any) { this._any = _any; } /** * Gets the type value for this PNCernerDelimiter. * * @return type */ public org.apache.axis.types.Token getType() { return type; } /** * Sets the type value for this PNCernerDelimiter. * * @param type */ public void setType(org.apache.axis.types.Token type) { this.type = type; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof PNCernerDelimiter)) return false; PNCernerDelimiter other = (PNCernerDelimiter) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this._any==null && other.get_any()==null) || (this._any!=null && java.util.Arrays.equals(this._any, other.get_any( && ((this.type==null && other.getType()==null) || (this.type!=null && this.type.equals(other.getType(; __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (get_any() != null) { for (int i=0; i i++) { java.lang.Object obj = java.lang.reflect.Array.get(get_any(), i); if (obj != null && !obj.getClass().isArray()) { _hashCode += obj.hashCode(); } } } if (getType() != null) { _hashCode += getType().hashCode(); } __hashCodeCalc = false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(PNCernerDelimiter.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("urn:hl7-org:v3", ">PN.Cerner>delimiter")); org.apache.axis.description.AttributeDesc attrField = new org.apache.axis.description.AttributeDesc(); attrField.setFieldName("type"); attrField.setXmlName(new javax.xml.namespace.QName("", "type")); attrField.setXmlType(new javax.xml.namespace.QName("urn:hl7-org:v3", "cs_PersonNamePartType")); typeDesc.addFieldDesc(attrField); } /** * Return type metadata object */ public static org.apache.axis.description.TypeDesc getTypeDesc() { return typeDesc; } /** * Get Custom Serializer */ public static org.apache.axis.encoding.Serializer getSerializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encodin
Body elements get copied into Headers !
We are getting pretty strange problem when trying to generate or publish a soap message. All the paremeters which should have been part of the SOPA BODY element are copying into the SOAP headers.The actually body tag is empty Anyone if has faced a similar issue or problem please share the info, we would be very thankful. Using WASIE 5.1.7 , with axis 1.2.1 , We are trying to build a client which resides in non-websphere server.http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">http://peoplesoft.com/WG_CHARTFIELD3">V-04 Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection.
Re: Body elements get copied into Headers !
Code? WSDL? WSDD? On 11/9/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: We are getting pretty strange problem when trying to generate or publish a soap message. All the paremeters which should have been part of the SOPA BODY element are copying into the SOAP headers.The actually body tag is empty Anyone if has faced a similar issue or problem please share the info, we would be very thankful. Using WASIE 5.1.7 , with axis 1.2.1 , We are trying to build a client which resides in non-websphere server.http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd=" http://www.w3.org/2001/XMLSchema" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"> http://peoplesoft.com/WG_CHARTFIELD3">V-04 Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection.
RE: Exception: java.lang.NoSuchMethodException: org.apache.axis.encoding.ser.ArrayDeserializerFactory.create(java.lang.Class, javax.xml.namespace.QName)
You can probably just go in to the code and comment out the debug statement that is causing the exception. -- Tom Jordahl -Original Message- From: Vinita Joshi -X (vinjoshi - eTouch Systems at Cisco) [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 09, 2005 1:33 PM To: axis-dev@ws.apache.org; [EMAIL PROTECTED] Subject: RE: Exception: java.lang.NoSuchMethodException: org.apache.axis.encoding.ser.ArrayDeserializerFactory.create(java.lang.C lass, javax.xml.namespace.QName) Hi Dims, Thanks for your reply. It is true that even if we see this exception, the client call call web service successfully. But is there any work around/fix if we don't want to see this exception? Thanks, Vinita -Original Message- From: Davanum Srinivas [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 09, 2005 6:56 AM To: axis-dev@ws.apache.org Subject: Re: Exception: java.lang.NoSuchMethodException: org.apache.axis.encoding.ser.ArrayDeserializerFactory.create(java.lang.C lass, javax.xml.namespace.QName) Vinita, I think this is an ignorable error. unless it is causing other problems for u. thanks, -- dims On 11/9/05, Vinita Joshi -X (vinjoshi - eTouch Systems at Cisco) <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > We have implemented web service successfully. But when we increase the log > level in tomcat, I get the following exception, > > > > > > DEBUG: 08 Nov 2005 19:18:10,356 at > org.apache.axis.i18n.ProjectResourceBundle.handleGetObject(ProjectResour ceBundle.java:72) > org.apache.axis.i18n.resource::handleGetObject(exception00) > DEBUG: 08 Nov 2005 19:18:10,359 at > org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(BaseD eserializerFactory.java:210) > Exception: > java.lang.NoSuchMethodException: > org.apache.axis.encoding.ser.ArrayDeserializerFactory.create(java.lang.C lass, > javax.xml.namespace.QName) > at java.lang.Class.getMethod0(Class.java:1756) > at java.lang.Class.getMethod(Class.java:963) > at > org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(BaseD eserializerFactory.java:203) > at > org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDServic e.java:524) > at > org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:235 ) > at > org.apache.axis.deployment.wsdd.WSDDService.(WSDDService.java:215) > at > org.apache.axis.deployment.wsdd.WSDDDeployment.(WSDDDeployment.jav a:204) > at > org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.ja va:121) > at > org.apache.axis.deployment.wsdd.WSDDDocument.(WSDDDocument.java:60 ) > at > org.apache.axis.configuration.FileProvider.configureEngine(FileProvider. java:171) > at org.apache.axis.AxisEngine.init(AxisEngine.java:155) > at org.apache.axis.AxisEngine.(AxisEngine.java:139) > at > org.apache.axis.client.AxisClient.(AxisClient.java:49) > at > org.apache.axis.client.Service.getAxisClient(Service.java:104) > at org.apache.axis.client.Service.(Service.java:113) > at > com.cisco.ccw.a2qccx.webservices.WorkflowLocator.(WorkflowLocator. java:18) > at > com.cisco.ccw.a2qccx.client.WorkflowAdapter._getServiceReference(Workflo wAdapter.java:918) > at > com.cisco.ccw.a2qccx.client.WorkflowAdapter.startWorkflow(WorkflowAdapte r.java:216) > at > com.cisco.a2q.util.LivelinkImpl.startWorkFlow(LivelinkImpl.java:126) > at > com.cisco.a2q.presx.manager.DSManager.submitNormalDS(DSManager.java:750) > at > com.cisco.a2q.presx.manager.DSManager.submitDSAfterAutoANRStatusValidati on(DSManager.java:1162) > at > com.cisco.a2q.presx.manager.DSManager.submitDS(DSManager.java:1476) > at > com.cisco.a2q.presx.action.DSAction.execute(DSAction.java:970) > at > org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr ocessor.java:484) > at > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java: 274) > at > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) > at > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) > at > com.cisco.a2q.servlet.A2QSessionFilter.doFilter(A2QSessionFilter.java:23 9) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:213) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) > at > com.cisco.a2q.sdn.servlet.SDNSessionFilter.doFilter(SDNSessionFilter.jav a:118) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:213) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) > at > org.apache.catalina.core.S