Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 810CB200AC0 for ; Tue, 10 May 2016 00:47:20 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7F784160A15; Mon, 9 May 2016 22:47:20 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 06B11160A0F for ; Tue, 10 May 2016 00:47:18 +0200 (CEST) Received: (qmail 77804 invoked by uid 500); 9 May 2016 22:47:13 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 77572 invoked by uid 99); 9 May 2016 22:47:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 May 2016 22:47:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 618BD2C14F8 for ; Mon, 9 May 2016 22:47:13 +0000 (UTC) Date: Mon, 9 May 2016 22:47:13 +0000 (UTC) From: "Matthew Bailey (JIRA)" To: java-dev@axis.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AXIS2-3065) org.apache.xmlbeans.impl.values.XmlComplexContentImpl MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 09 May 2016 22:47:20 -0000 [ https://issues.apache.org/jira/browse/AXIS2-3065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Matthew Bailey updated AXIS2-3065: ---------------------------------- Attachment: (was: IntegrationTypes.xsd) > org.apache.xmlbeans.impl.values.XmlComplexContentImpl > ----------------------------------------------------- > > Key: AXIS2-3065 > URL: https://issues.apache.org/jira/browse/AXIS2-3065 > Project: Axis2 > Issue Type: Bug > Components: codegen, databinding, Tools > Affects Versions: 1.2, 1.3, nightly > Environment: WinXP (SP2), Web Logic 8 (sp4) > Reporter: Matthew Bailey > Assignee: Amila Chinthaka Suriarachchi > Priority: Critical > Attachments: ear-test.zip > > > To simplify I have retained the same directory structure as the samples and deployed the aar in the exploded Axis2 war. > # Setup # > * Generate service (server) using WSDL2Java > %AXIS2_HOME%/bin/WSDL2Java -uri resources/META-INF/IntegrationServices.wsdl -p samples.quickstart.service.xmlbeans -d xmlbeans -s -ss -sd -ssi -o build/service > * Build the project > * Copy %ProjectHome%\build\service\build\lib\IntegrationPortTypeImplService.aar to the axis2 exploded war service directory (%WebLogicAppDir%\axis2\WEB-INF\services) > * Copy %ProjectHome%\build\service\build\lib\XBeans-packaged.jar to %WebLogicAppDir%\axis2\WEB-INF\lib > WSDL and generated binding code attached. > The service code is nothing more than an output statement w/ the original throw exception statement left in there, just trying to get into the function. I was able to successfully implement the client/service using adb. > # Testing # > * Create/Validate request using soapUI > > > > > > > CustomerUserId > user_id > > > CustomerPassword > password > > > > > * Post to service, get response > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> > > > soapenv:Client > > org.apache.xmlbeans.impl.values.XmlComplexContentImpl tstring> > > org.apache.axis2.AxisFault: > org.apache.xmlbeans.impl.values.XmlComplexContentImpl > at > org.apache.axis2.AxisFault.makeFault(Ljava.lang.Throwable;)Lorg.apache.a > xis2.AxisFault;(AxisFault.java:417) > at > samples.quickstart.service.xmlbeans.IntegrationPortTypeImplServiceMessag > eReceiverInOut.fromOM(Lorg.apache.axiom.om.OMElement;Ljava.lang.Class;Lj > ava.util.Map;)Lorg.apache.xmlbeans.XmlObject;(IntegrationPortTypeImplSer > viceMessageReceiverInOut.java:147) > at > samples.quickstart.service.xmlbeans.IntegrationPortTypeImplServiceMessag > eReceiverInOut.invokeBusinessLogic(Lorg.apache.axis2.context.MessageCont > ext;Lorg.apache.axis2.context.MessageContext;)V(IntegrationPortTypeImplS > erviceMessageReceiverInOut.java:42) > at > org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusine > ssLogic(Lorg.apache.axis2.context.MessageContext;)V(AbstractInOutSyncMes > sageReceiver.java:42) > at > org.apache.axis2.receivers.AbstractMessageReceiver.receive(Lorg.apache.a > xis2.context.MessageContext;)V(AbstractMessageReceiver.java:95) > at > org.apache.axis2.engine.AxisEngine.receive(Lorg.apache.axis2.context.Mes > sageContext;)Lorg.apache.axis2.engine.Handler$InvocationResponse;(AxisEn > gine.java:145) > at > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReques > t(Lorg.apache.axis2.context.MessageContext;Ljava.io.InputStream;Ljava.io > .OutputStream;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)Lor > g.apache.axis2.engine.Handler$InvocationResponse;(HTTPTransportUtils.jav > a:276) > at > org.apache.axis2.transport.http.AxisServlet.doPost(Ljavax.servlet.http.H > ttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(AxisServlet > .java:119) > at > javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServletRe > quest;Ljavax.servlet.http.HttpServletResponse;)V(HttpServlet.java:760) > at > javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Lja > vax.servlet.ServletResponse;)V(HttpServlet.java:853) > at > weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()L > java.lang.Object;(ServletStubImpl.java:1006) > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.S > ervletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal. > FilterChainImpl;)V(ServletStubImpl.java:419) > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.S > ervletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:315 > ) > at > weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r > un()Ljava.lang.Object;(WebAppServletContext.java:6718) > at > weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.secur > ity.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang. > Object;(AuthenticatedSubject.java:321) > at > weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.i > nternal.AuthenticatedSubject;Lweblogic.security.acl.internal.Authenticat > edSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityMa > nager.java:121) > at > weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.s > ervlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletRes > ponseImpl;)V(WebAppServletContext.java:3764) > at > weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.Ex > ecuteThread;)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.ValidatePasswordRequestDocume > nt$Factory.parse(Ljavax.xml.stream.XMLStreamReader;Lorg.apache.xmlbeans. > XmlOptions;)Lcom.zionsbank.strongauth.webservices.beans.ValidatePassword > RequestDocument;(ValidatePasswordRequestDocument.java:86) > at > samples.quickstart.service.xmlbeans.IntegrationPortTypeImplServiceMessag > eReceiverInOut.fromOM(Lorg.apache.axiom.om.OMElement;Ljava.lang.Class;Lj > ava.util.Map;)Lorg.apache.xmlbeans.XmlObject;(IntegrationPortTypeImplSer > viceMessageReceiverInOut.java:123) > ... 19 more > > > > > # Manually generating using XML Beans 2.3.0 scomp # > As a side note: I did notice that when I was attempting to generate the XML Binding code manually (using scomp), there were some things that were not being generated, namely org.w3.www._2004._06.xmlmime.*, org.xmlsoap.schemas.soap.encoding.*, both source and resources. I attempted to merge the old resources w/ the new that I generated and replace the existing source files with the generated ones and was unsuccefull at getting this to work. Recieved a null pointer on the server side (Axis2 Servlet) and the returning soap message was an html page stating "Internal server error". > # Server Exception > <[ServletContext(id=5987488,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) > # Soap Post Response (posted soap message same as above using soapUI) > > > > > > Axis2 :: Internal server error > > > > > > > > > >
> > > > > >
>

Internal server error

>
>
>
>
>
home
>
> > > > >
> > > > > >

Copyright © 1999-2006, The Apache Software Foundation
Licensed under the href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0.
>
 
> > -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org