Can you please log and bug and upload all relevent files and sample code? thanks, dims
On 8/2/07, Matthew Bailey <[EMAIL PROTECTED]> wrote: > > > STILL STUCK :-/ > > I'm not totally clear on how to generate the files using scomp, or what to > do with them after I have generated them, so here is what I tried. > > ################## > > # axis2-1.3-RC2 # > ################## > generated using scomp directly > >scomp -src src -out xmltypes.jar -javasource 1.4 IntegrationServices.wsdl > > * Coppied the source files to the src directory of my service. > * Extracted the schemaorg_apache_xmlbeans folder (and contents) from > xmltypes.jar and replaced the > /resources/schemaorg_apache_xmlbeans folder with this one. > (??? not sure that it should replace the entire folder, may want to regen > this folder using axis2 and then merge these folders) (on another attempt > merged snapshot generated schemaorg_apache_xmlbeans with the newly generated > one with the same results) > * Deleted build files for a clean build, ran ant > * Coppied aar file to axis2/WEB-INF/service > * Coppied XBeans-packaged.jar to axis2/WEB-INF/lib > * Started webserver > > SOAP MSG > ----------------- > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html> > <head> > > > > > > > > <base href="http://localhost:7001/axis2/"/> > <title>Axis2 :: Internal server error</title> > <link href="axis2-web/css/axis-style.css" rel="stylesheet" > type="text/css"/> > <meta http-equiv="Content-Type" content="text/html; > charset=iso-8859-1"/> > </head> > > <body> > <table width="100%"> > <tr> > <td align="left"><img src="axis2-web/images/asf-logo.gif" > alt=""/></td> > <td align="right"><img > src="axis2-web/images/axis_l.jpg" alt=""/></td> > </tr> > </table> > <table width="100%"> > <tr> > <td> > <h1>Internal server error</h1> > <br/> > <br/> > <br/> > <br/> > </td> > </tr> > <tr><td align="center"><a > href="axis2-web/index.jsp">home</a></td></tr> > </table> > <hr/> > <table width="100%"> > <tr><td> > <table width="950px"> > <tr><td><hr size="1" noshade=""/></td></tr> > <tr> > <td align="center">Copyright © 1999-2006, The Apache > Software Foundation<br/>Licensed under the <a > > href="http://www.apache.org/licenses/LICENSE-2.0">Apache > License, Version 2.0</a>.</td> > </tr> > </table> > </td> > <td> </td> > </tr> > </table> > </body> > </html> > ------------------ > EXCEPTION > ------------------ > Aug 2, 2007 12:19:56 PM > org.apache.axis2.transport.http.AxisServlet doPost > SEVERE: java.lang.ExceptionInInitializerError > <Aug 2, 2007 12:19:56 PM MDT> <Error> <HTTP> <BEA-101020> > <[ServletContext(id=6079374,name=axis2,context-path=/axis2)] > Servlet failed with Exception > java.lang.NullPointerException > at > org.apache.axis2.transport.http.AxisServlet.doPost(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(AxisServlet.java:170) > at > javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(HttpServlet.java:760) > at > javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(HttpServlet.java:853) > at > weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:1006) > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:419) > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:315) > at > weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:6718) > at > weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(AuthenticatedSubject.java:321) > at > weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:121) > at > weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3764) > at > weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2644) > at > weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219) > at > weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178) > at > java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown > Source) > > > > > > > ---- > I have attempted to generate the code w/ scomp, the steps I took to do this > follow: > > >scomp -src xmlbeansrc IntegrationServices.wsdl > > I then coppied the source files that were generated to the service src > directory, deleted the build files and did a build. Then I placed the > Services.aar file into the axis2/WEB-INF/services directory and the > XBeans-packaged.jar into the axis2/WEB-INF/lib directory. > > Then I used soapUI to post a validated request to the service. > > ############## > # axis2-1.2 # > ############## > Server: > Soap response: > ---------------------- > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html> > <head> > > > > > > > > <base href="http://localhost:7001/axis2/"/> > <title>Axis2 :: Internal server error</title> > <link href="axis2-web/css/axis-style.css" rel="stylesheet" > type="text/css"/> > <meta http-equiv="Content-Type" content="text/html; > charset=iso-8859-1"/> > </head> > > <body> > <table width="100%"> > <tr> > <td align="left"><img src="axis2-web/images/asf-logo.gif" > alt=""/></td> > <td align="right"><img > src="axis2-web/images/axis_l.jpg" alt=""/></td> > </tr> > </table> > <table width="100%"> > <tr> > <td> > <h1>Internal server error</h1> > <br/> > <br/> > <br/> > <br/> > </td> > </tr> > <tr><td align="center"><a > href="axis2-web/index.jsp">home</a></td></tr> > </table> > <hr/> > <table width="100%"> > <tr><td> > <table width="950px"> > <tr><td><hr size="1" noshade=""/></td></tr> > <tr> > <td align="center">Copyright © 1999-2006, The Apache > Software Foundation<br/>Licensed under the <a > > href="http://www.apache.org/licenses/LICENSE-2.0">Apache > License, Version 2.0</a>.</td> > </tr> > </table> > </td> > <td> </td> > </tr> > </table> > </body> > </html> > ---------------------- > The exception: > ---------------------- > Aug 2, 2007 11:49:51 AM > org.apache.axis2.transport.http.AxisServlet doPost > SEVERE: java.lang.ExceptionInInitializerError > <Aug 2, 2007 11:49:51 AM MDT> <Error> <HTTP> <BEA-101020> > <[ServletContext(id=6130579,name=axis2,context-path=/axis2)] > Servlet failed with Exception > java.lang.NullPointerException > at > org.apache.axis2.transport.http.AxisServlet.doPost(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(AxisServlet.java:170) > at > javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(HttpServlet.java:760) > at > javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(HttpServlet.java:853) > at > weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:1006) > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:419) > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:315) > at > weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:6718) > at > weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(AuthenticatedSubject.java:321) > at > weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:121) > at > weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3764) > at > weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2644) > at > weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219) > at > weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178) > at > java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown > Source) > > ################## > # axis2-1.3-RC2 # > ################## > > Wised up to replacing the resource folder directory > schemaorg_apache_xmlbeans, generated with: > >scomp IntegrationServices.wsdl > > Other than that, followed the above instructions exactly. (I did notice that > my aar generated w/ a different name) > > > Server: > Soap response: > ---------------------- > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html> > <head> > > > > > > > > <base href="http://localhost:7001/axis2/"/> > <title>Axis2 :: Internal server error</title> > <link href="axis2-web/css/axis-style.css" rel="stylesheet" > type="text/css"/> > <meta http-equiv="Content-Type" content="text/html; > charset=iso-8859-1"/> > </head> > > <body> > <table width="100%"> > <tr> > <td align="left"><img src="axis2-web/images/asf-logo.gif" > alt=""/></td> > <td align="right"><img > src="axis2-web/images/axis_l.jpg" alt=""/></td> > </tr> > </table> > <table width="100%"> > <tr> > <td> > <h1>Internal server error</h1> > <br/> > <br/> > <br/> > <br/> > </td> > </tr> > <tr><td align="center"><a > href="axis2-web/index.jsp">home</a></td></tr> > </table> > <hr/> > <table width="100%"> > <tr><td> > <table width="950px"> > <tr><td><hr size="1" noshade=""/></td></tr> > <tr> > <td align="center">Copyright © 1999-2006, The Apache > Software Foundation<br/>Licensed under the <a > > href="http://www.apache.org/licenses/LICENSE-2.0">Apache > License, Version 2.0</a>.</td> > </tr> > </table> > </td> > <td> </td> > </tr> > </table> > </body> > </html> > > ---------------------- > The exception: > ---------------------- > Aug 2, 2007 12:04:44 PM > org.apache.axis2.transport.http.AxisServlet doPost > SEVERE: java.lang.ExceptionInInitializerError > <Aug 2, 2007 12:04:44 PM MDT> <Error> <HTTP> <BEA-101020> > <[ServletContext(id=6004562,name=axis2,context-path=/axis2)] > Servlet failed with Exception > java.lang.NullPointerException > at > org.apache.axis2.transport.http.AxisServlet.doPost(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(AxisServlet.java:170) > at > javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(HttpServlet.java:760) > at > javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(HttpServlet.java:853) > at > weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:1006) > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:419) > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:315) > at > weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:6718) > at > weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(AuthenticatedSubject.java:321) > at > weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:121) > at > weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3764) > at > weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2644) > at > weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219) > at > weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178) > at > java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown > Source) > > > Matt Bailey > [EMAIL PROTECTED] > > > ________________________________ > From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 02, 2007 4:58 AM > To: axis-user@ws.apache.org > Subject: Re: FW: java.lang.NumberFormatException > > > > > > On 8/2/07, Matthew Bailey <[EMAIL PROTECTED]> wrote: > > > > > > > > Regenerated service using 8-1-2007 snapshot, got the same response as > below. (used soapUI to validate the request being sent to the service as > well) > > > > Any help!?!?!? PLEASE!??? :-) > > > > Thinking about trying to generate the classes using XMLBeans directly to > see if that fixes the problem, I will continue to post my progress here (so > if I haven't posted back, I haven't found a solution). > > > there seems to be problems when calling to the xmlbeans compiler through > API. but there is no problem generating the code directly with the scomp. > > Please check with directly generated code. > > > > > > > > > > > > Thanks, > > > > Matt Bailey > > [EMAIL PROTECTED] > > > > > > ________________________________ > From: Matthew Bailey > > Sent: Wednesday, August 01, 2007 4:35 PM > > To: ''axis-user@ws.apache.org' > > Subject: RE: java.lang.NumberFormatException > > > > > > > > Turning on the full exception report, the SOAP XML response is: > > > > <soapenv:Envelope xmlns:soapenv=" > http://schemas.xmlsoap.org/soap/envelope/"> > > <soapenv:Body> > > <soapenv:Fault> > > <faultcode>soapenv:Client</faultcode> > > > <faultstring>org.apache.xmlbeans.impl.values.XmlComplexContentImpl</faultstring> > > <detail> > > <Exception>org.apache.axis2.AxisFault: > org.apache.xmlbeans.impl.values.XmlComplexContentImpl > > at > org.apache.axis2.AxisFault.makeFault(Ljava.lang.Throwable;)Lorg.apache.axis2.AxisFault;(AxisFault.java:417) > > at > samples.quickstart.service.xmlbeans.IntegrationPortTypeImplServiceMessageReceiverInOut.fromOM(Lorg.apache.axiom.om.OMElement;Ljava.lang.Class;Ljava.util.Map;)Lorg.apache.xmlbeans.XmlObject;(IntegrationPortTypeImplServiceMessageReceiverInOut.java > :147) > > at > samples.quickstart.service.xmlbeans.IntegrationPortTypeImplServiceMessageReceiverInOut.invokeBusinessLogic(Lorg.apache.axis2.context.MessageContext;Lorg.apache.axis2.context.MessageContext;)V(IntegrationPortTypeImplServiceMessageReceiverInOut.java > :42) > > at > org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(Lorg.apache.axis2.context.MessageContext;)V(AbstractInOutSyncMessageReceiver.java:42) > > at > org.apache.axis2.receivers.AbstractMessageReceiver.receive(Lorg.apache.axis2.context.MessageContext;)V(AbstractMessageReceiver.java:95) > > at > org.apache.axis2.engine.AxisEngine.receive(Lorg.apache.axis2.context.MessageContext;)Lorg.apache.axis2.engine.Handler$InvocationResponse;(AxisEngine.java:145) > > at > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(Lorg.apache.axis2.context.MessageContext;Ljava.io.InputStream;Ljava.io.OutputStream;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)Lorg.apache.axis2.engine.Handler$InvocationResponse;( > HTTPTransportUtils.java:276) > > at > org.apache.axis2.transport.http.AxisServlet.doPost(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(AxisServlet.java:119) > > at > javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(HttpServlet.java:760) > > at > javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(HttpServlet.java:853) > > at > weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:1006) > > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:419) > > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:315) > > at > weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:6718) > > at > weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(AuthenticatedSubject.java:321) > > at > weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java > :121) > > at > weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3764) > > at > weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2644) > > at > weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219) > > at > weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178) > > at > java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown > Source) > > Caused by: java.lang.ClassCastException: > org.apache.xmlbeans.impl.values.XmlComplexContentImpl > > at > com.zionsbank.strongauth.webservices.beans.ValidatePasswordRequestDocument$Factory.parse(Ljavax.xml.stream.XMLStreamReader;Lorg.apache.xmlbeans.XmlOptions;)Lcom.zionsbank.strongauth.webservices.beans.ValidatePasswordRequestDocument;( > ValidatePasswordRequestDocument.java:86) > > at > samples.quickstart.service.xmlbeans.IntegrationPortTypeImplServiceMessageReceiverInOut.fromOM(Lorg.apache.axiom.om.OMElement;Ljava.lang.Class;Ljava.util.Map;)Lorg.apache.xmlbeans.XmlObject;(IntegrationPortTypeImplServiceMessageReceiverInOut.java > :123) > > ... 19 more</Exception> > > </detail> > > </soapenv:Fault> > > </soapenv:Body> > > </soapenv:Envelope> > > > > Matt Bailey > > [EMAIL PROTECTED] > > > > > > ________________________________ > From: Matthew Bailey > > Sent: Wednesday, August 01, 2007 4:27 PM > > To: 'axis-user@ws.apache.org' > > Subject: RE: java.lang.NumberFormatException > > > > > > > > Just adding more information about the problem... > > > > Manualy creating the Soap envelope and posting it to the service: > > > > <soapenv:Envelope xmlns:soapenv=" > http://schemas.xmlsoap.org/soap/envelope/" > xmlns:bean="http://strongauth.zionsbank.com/webservices/beans"> > > <soapenv:Header/> > > <soapenv:Body> > > <bean:ValidatePasswordRequest> > > <!--Zero or more repetitions:--> > > <credentials> > > <type>CustomerUserId</type> > > <value>user_id</value> > > </credentials> > > <credentials> > > <type>CustomerPassword</type> > > <value>password</value> > > </credentials> > > </bean:ValidatePasswordRequest> > > </soapenv:Body> > > </soapenv:Envelope> > > > > Response: > > > > <soapenv:Envelope xmlns:soapenv=" > http://schemas.xmlsoap.org/soap/envelope/"> > > <soapenv:Body> > > <soapenv:Fault> > > <faultcode>soapenv:Client</faultcode> > > > <faultstring>org.apache.xmlbeans.impl.values.XmlComplexContentImpl</faultstring> > > <detail/> > > </soapenv:Fault> > > </soapenv:Body> > > </soapenv:Envelope> > > > > Thanks, > > > > Matt Bailey > > [EMAIL PROTECTED] > > > > > > ________________________________ > From: Matthew Bailey > > Sent: Wednesday, August 01, 2007 3:54 PM > > To: 'axis-user@ws.apache.org' > > Subject: RE: java.lang.NumberFormatException > > > > > > > > I've regenerated my client/service using Axis2 1.3-RC2 and I'm getting > different errors but still having problems. > > > > This seems to work just fine if I use the ADB binding, but some of our > wsdls are too complex for ADB and we are trying to be consistant in our > binding. > > > > On the client side, I get the following error now: > > > > [java] stub.validatePassword(reqDoc); > > [java] org.apache.axis2.AxisFault: > org.apache.xmlbeans.impl.values.XmlComplexContentImpl > > [java] at > org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486) > > [java] at > org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343) > > [java] at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:387) > > [java] at > org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) > > [java] at > org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) > > [java] at > samples.quickstart.service.xmlbeans.IntegrationPortTypeImplServiceStub.validatePasswordIntegrationPortTypeImplServiceStub.java:169) > > [java] at > samples.quickstart.clients.XMLBEANSClient.main(XMLBEANSClient.java:53) > > [java] at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > [java] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > [java] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > [java] at java.lang.reflect.Method.invoke(Method.java:324) > > [java] at > org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217) > > [java] at > org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152) > > [java] at > org.apache.tools.ant.taskdefs.Java.run(Java.java:747) > > [java] at > org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:201) > > > > [java] at > org.apache.tools.ant.taskdefs.Java.execute(Java.java:104) > > [java] at > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) > > [java] at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > [java] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > [java] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > [java] at java.lang.reflect.Method.invoke(Method.java:324) > > [java] at > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) > > [java] at > org.apache.tools.ant.Task.perform(Task.java:348) > > [java] at > org.apache.tools.ant.Target.execute(Target.java:357) > > [java] at > org.apache.tools.ant.Target.performTasks(Target.java:385) > > [java] at > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329) > > [java] at > org.apache.tools.ant.Project.executeTarget(Project.java:1298) > > > > [java] at > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) > > [java] at > org.apache.tools.ant.Project.executeTargets(Project.java:1181) > > [java] at > org.apache.tools.ant.Main.runBuild(Main.java:698) > > [java] at > org.apache.tools.ant.Main.startAnt(Main.java:199) > > [java] at > org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) > > [java] at > org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) > > [java] > > [java] > > [java] > > [java] > > > > Client Code: > > --------------------------------- > > IntegrationPortTypeImplServiceStub stub = > > new IntegrationPortTypeImplServiceStub > > > ("http://10.236.6.242:7001/axis2/services/IntegrationPortTypeImplService > "); > > > //("http://10.236.6.242:7001/providerpay/services/IntegrationPortTypeImplService > "); > > ValidatePasswordRequestDocument reqDoc = > ValidatePasswordRequestDocument.Factory.newInstance(); > > > com.zionsbank.strongauth.webservices.beans.RequestType > requestType = reqDoc.addNewValidatePasswordRequest(); > > > > Credential credential_CUSTOMER_USER_ID = > requestType.addNewCredentials(); > > > credential_CUSTOMER_USER_ID.setType(CredentialType.CUSTOMER_USER_ID); > > credential_CUSTOMER_USER_ID.setValue("user_id"); > > > > Credential credential_CUSTOMER_PASSWORD = > requestType.addNewCredentials(); > > > credential_CUSTOMER_PASSWORD.setType(CredentialType.CUSTOMER_PASSWORD); > > credential_CUSTOMER_PASSWORD.setValue("password"); > > > > System.err.println("\n\nrequestType : \n"+requestType+"\n\n"); > > > > ValidatePasswordResponseDocument resDoc = > stub.validatePassword(reqDoc); > > --------------------------------- > > > > > > > > WSDL: > > IntegrationServices.wsdl > > --------------------------------- > > <?xml version='1.0' encoding='UTF-8' ?> > > <wsdl:definitions > targetNamespace="http://strongauth.zionsbank.com/webservices > " > > xmlns:defs="http://strongauth.zionsbank.com/webservices" > > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > > > xmlns:types="http://strongauth.zionsbank.com/webservices/beans" > > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > > xmlns:xsd=" http://www.w3.org/2001/XMLSchema" > > > <wsdl:types> > > <xsd:schema> > > <xsd:import > namespace="http://strongauth.zionsbank.com/webservices/beans" > schemaLocation="IntegrationTypes.xsd"/> > > </xsd:schema> > > </wsdl:types> > > > > <wsdl:message name="ValidatePasswordRequest"> > > <wsdl:part element="types:ValidatePasswordRequest" > name="validatePasswordRequestMessage"/> > > </wsdl:message> > > > > <wsdl:message name="ValidatePasswordResponse"> > > <wsdl:part element="types:ValidatePasswordResponse" > name="validatePasswordResponseMessage"/> > > </wsdl:message> > > > > <wsdl:portType name="IntegrationPortType"> > > > > <wsdl:operation name="validatePassword"> > > <wsdl:input message="defs:ValidatePasswordRequest" > name="validatePasswordRequest"/> > > <wsdl:output message="defs:ValidatePasswordResponse" > name="validatePasswordResponse"/> > > </wsdl:operation> > > > > </wsdl:portType> > > > > <wsdl:binding name="IntegrationSoapBinding" > type="defs:IntegrationPortType"> > > <soap:binding style="document" > transport="http://schemas.xmlsoap.org/soap/http"/> > > > > <wsdl:operation name="validatePassword"> > > <soap:operation style="document" > soapAction="http://strongauth.zionsbank.com/webservices/validatePassword"/ > > > > <wsdl:input name="validatePasswordRequest"> > > <soap:body parts="validatePasswordRequestMessage" > use="literal"/> > > </wsdl:input> > > <wsdl:output name="validatePasswordResponse"> > > <soap:body parts="validatePasswordResponseMessage" > use="literal"/> > > </wsdl:output> > > </wsdl:operation> > > </wsdl:binding> > > > > <wsdl:service name="IntegrationPortTypeImplService"> > > <wsdl:port binding="defs:IntegrationSoapBinding" > name="IntegrationPortTypeImplPort"> > > <soap:address > location="http://localhost:7001/IntegrationService/IntegrationServices"/ > > > > </wsdl:port> > > </wsdl:service> > > </wsdl:definitions> > > --------------------------- > > IntegrationTypes.xsd > > --------------------------- > > <?xml version='1.0' encoding='UTF-8' ?> > > <xsd:schema > targetNamespace="http://strongauth.zionsbank.com/webservices/beans" > > > xmlns="http://strongauth.zionsbank.com/webservices/beans" > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation="http://www.w3.org/2001/XMLSchema"> > > <xsd:include schemaLocation="BaseTypes.xsd"/> > > > > <!-- Types --> > > > > <xsd:simpleType name="FirstName"> > > <xsd:restriction base="xsd:string"/> > > </xsd:simpleType> > > > > <xsd:simpleType name="LastName"> > > <xsd:restriction base="xsd:string"/> > > </xsd:simpleType> > > > > <xsd:simpleType name="OrganizationName"> > > <xsd:restriction base="xsd:string"/> > > </xsd:simpleType> > > > > <xsd:complexType name="RequestType"> > > <xsd:sequence> > > <xsd:element name="credentials" type="Credential" minOccurs="0" > maxOccurs="unbounded"/> > > </xsd:sequence> > > </xsd:complexType> > > > > <xsd:simpleType name="UserRole"> > > <xsd:restriction base="xsd:string"/> > > </xsd:simpleType> > > > > <xsd:simpleType name="UserStatus"> > > <xsd:restriction base="xsd:string"> > > <xsd:enumeration value="ACTIVE"/> > > <xsd:enumeration value="DELETED"/> > > <xsd:enumeration value="DISABLED"/> > > <xsd:enumeration value="LOCKED"/> > > </xsd:restriction> > > </xsd:simpleType> > > > > <!-- Elements --> > > > > <xsd:element name="ValidatePasswordRequest" type="RequestType"/> > > > > <xsd:element name="ValidatePasswordResponse"> > > <xsd:complexType> > > <xsd:sequence> > > <xsd:element name="responseCode" type="ResponseCode"/> > > <xsd:element name="message" type="ResponseMessage"/> > > <xsd:element name="credentials" type="Credential" minOccurs="0" > maxOccurs="unbounded"/> > > <xsd:element name="validCredentials" type="IsValidCredentials"/> > > <xsd:element name="userStatus" type="UserStatus"/> > > </xsd:sequence> > > </xsd:complexType> > > </xsd:element> > > > > </xsd:schema> > > ----------------------------- > > BaseType.xsd > > ----------------------------- > > <?xml version='1.0' encoding='UTF-8' ?> > > <xsd:schema > targetNamespace="http://strongauth.zionsbank.com/webservices/beans" > > > xmlns="http://strongauth.zionsbank.com/webservices/beans" > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation="http://www.w3.org/2001/XMLSchema"> > > > > <xsd:simpleType name="AppId"> > > <xsd:restriction base="xsd:string"/> > > </xsd:simpleType> > > > > <xsd:complexType name="Credential"> > > <xsd:sequence> > > <xsd:element name="type" type="CredentialType"/> > > <xsd:element name="value" type="xsd:string"/> > > </xsd:sequence> > > </xsd:complexType> > > > > <xsd:simpleType name="CredentialType"> > > <xsd:restriction base="xsd:string"> > > <xsd:enumeration value="ChallengeId"/> > > <xsd:enumeration value="CustomerPassword"/> > > <xsd:enumeration value="CustomerUserId"/> > > <xsd:enumeration value="NewCustomerPassword"/> > > <xsd:enumeration value="NewCustomerUserId"/> > > <xsd:enumeration value="NewOrganizationId"/> > > <xsd:enumeration value="NewOrganizationPassword"/> > > <xsd:enumeration value="OrganizationId"/> > > <xsd:enumeration value="OrganizationPassword"/> > > </xsd:restriction> > > </xsd:simpleType> > > > > <xsd:simpleType name="DomainId"> > > <xsd:restriction base="xsd:string"/> > > </xsd:simpleType> > > > > <xsd:simpleType name="IsValidCredentials"> > > <xsd:restriction base="xsd:boolean"/> > > </xsd:simpleType> > > > > <xsd:simpleType name="ResponseCode"> > > <xsd:restriction base="xsd:string"> > > <xsd:enumeration value="SUCCESS"/> > > <xsd:enumeration value="ERROR"/> > > </xsd:restriction> > > </xsd:simpleType> > > > > <xsd:simpleType name="ResponseMessage"> > > <xsd:restriction base="xsd:string"/> > > </xsd:simpleType> > > > > </xsd:schema> > > > > > > Matt Bailey > > [EMAIL PROTECTED] > > > > > > ________________________________ > From: Matthew Bailey > > Sent: Wednesday, August 01, 2007 1:54 PM > > To: axis-user@ws.apache.org > > Cc: Cary Schofield > > Subject: java.lang.NumberFormatException > > > > > > > > I've used WSDL2Java to generate a client and server using XMLBeana, when > the client calls the service I get the following error on the server side: > > > > Aug 1, 2007 1:36:03 PM > org.apache.axis2.transport.http.AxisServlet doPost > > SEVERE: java.lang.NumberFormatException: > > Aug 1, 2007 1:36:03 PM > org.apache.axis2.transport.http.AxisServlet doPost > > INFO: org.apache.axis2.AxisFault: Connection aborted by peer > > > > And on the client side I recieve a NullPointerException. > > > > When I searched the web for a similar problem, I came across the following > which describes this situation very well. > > > > http://marc.info/?l=axis-user&m=115965408111474&w=2 > > > > The call I'm making to the service is very simple > > > > <credentials xmlns=""> > > <type>CustomerUserId</type> > > <value>user_id</value> > > </credentials> > > <credentials xmlns=""> > > <type>CustomerPassword</type> > > <value>password</value> > > </credentials> > > > > But credentials type is a restriction based simple type, so I'm wondering > if this is a bug or if I'm doing something wrong. > > > > My client code: > > > > ImplServiceStub stub = > > new ImplServiceStub > > ("http://host/axis2/services/ImplService"); > > ValidateRequestDocument reqDoc = > ValidateRequestDocument.Factory.newInstance(); > > RequestType requestType = reqDoc.addNewValidateRequest(); > > > > Credential credential_CUSTOMER_USER_ID = > requestType.addNewCredentials(); > > > credential_CUSTOMER_USER_ID.setType(CredentialType.CUSTOMER_USER_ID);//this > is an enum class within CredentialType > > credential_CUSTOMER_USER_ID.setValue("user_id"); > > > > Credential credential_CUSTOMER_PASSWORD = > requestType.addNewCredentials(); > > > credential_CUSTOMER_PASSWORD.setType(CredentialType.CUSTOMER_PASSWORD);//this > is an enum class within CredentialType > > credential_CUSTOMER_PASSWORD.setValue("password"); > > > > // Call the service > > ValidateResponseDocument resDoc = stub.validate(reqDoc); > > > > If any one has some pointers I'd apreciate it! > > > > Thanks, > > > > Matt Bailey > > > > [EMAIL PROTECTED] > > > > > > -- > Amila Suriarachchi, > WSO2 Inc. -- Davanum Srinivas :: http://davanum.wordpress.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]