Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 26413 invoked from network); 20 Aug 2008 12:37:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Aug 2008 12:37:25 -0000 Received: (qmail 84250 invoked by uid 500); 20 Aug 2008 12:37:17 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 84195 invoked by uid 500); 20 Aug 2008 12:37:17 -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 84181 invoked by uid 99); 20 Aug 2008 12:37:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Aug 2008 05:37:17 -0700 X-ASF-Spam-Status: No, hits=-1999.6 required=10.0 tests=ALL_TRUSTED,SUBJECT_FUZZY_TION X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Aug 2008 12:36:18 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6BF40234C1C3 for ; Wed, 20 Aug 2008 05:36:47 -0700 (PDT) Message-ID: <1693412233.1219235807441.JavaMail.jira@brutus> Date: Wed, 20 Aug 2008 05:36:47 -0700 (PDT) From: "Carsten Lohmann (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Issue Comment Edited: (AXIS2-3276) Null pointer exception while doing wsdl get using useOriginalWsdl option. Reason : underlying definitiion is not threadsafe In-Reply-To: <23755392.1192466330781.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-3276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623978#action_12623978 ] carstensis edited comment on AXIS2-3276 at 8/20/08 5:35 AM: ----------------------------------------------------------------- As a further note: We experienced this problem with Axis2 (*) running under JBoss. After the exception shown above, we got the following exception: java.lang.StackOverflowError at java.util.Hashtable.get(Hashtable.java:336) at com.ibm.wsdl.util.ObjectRegistry.lookup(ObjectRegistry.java:43) at com.ibm.wsdl.util.ObjectRegistry.lookup(ObjectRegistry.java:46) at com.ibm.wsdl.util.ObjectRegistry.lookup(ObjectRegistry.java:46) at com.ibm.wsdl.util.ObjectRegistry.lookup(ObjectRegistry.java:46) ... It occured everytime the WSDL was accessed through the ListingAgent. It seems like the javax.wsdl.Definition instance is permanently corrupted by these thread issues. - * We use Axis2 1.1.1, but from looking at the code, I guess this problem still exists in the current version was (Author: carstensis): As a further note: We experienced this problem with Axis2 (*) running under JBoss. After the exception shown above, we got the following exception: java.lang.StackOverflowError at java.util.Hashtable.get(Hashtable.java:336) at com.ibm.wsdl.util.ObjectRegistry.lookup(ObjectRegistry.java:43) at com.ibm.wsdl.util.ObjectRegistry.lookup(ObjectRegistry.java:46) at com.ibm.wsdl.util.ObjectRegistry.lookup(ObjectRegistry.java:46) at com.ibm.wsdl.util.ObjectRegistry.lookup(ObjectRegistry.java:46) ... It occured everytime the WSDL was accessed through the ListingAgent. It seems like the javax.wsdl.Definition is permanently corrupted by these thread issues. - * We use Axis2 1.1.1, but from looking at the code, I guess this problem still exists in the current version > Null pointer exception while doing wsdl get using useOriginalWsdl option. Reason : underlying definitiion is not threadsafe > --------------------------------------------------------------------------------------------------------------------------- > > Key: AXIS2-3276 > URL: https://issues.apache.org/jira/browse/AXIS2-3276 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: wsdl > Affects Versions: 1.2 > Environment: HP UX > Reporter: Haneef Ali > Assignee: Deepal Jayasinghe > Priority: Critical > > I'm seeing Nullpointer exception during wsdl fetch. My webservice is created using "useOriginalWSDL=true" option. > This happens only during concurrent access. It can be easily reproduced by creating a JMeter test for http get with 5 thread. BTW I'm using Axis 1.2 > From google search the reason for this seems to be > " This is because the WSDL handling system reuses javax.wsdl.Definition objects across threads, which are not thread safe, because they internally use DOM elements." > References > > http://jira.jboss.com/jira/browse/JBWS-419;jsessionid=AA4270C1E4896751CF > 2440D7C6696706 > http://www.mail-archive.com/j-dev@xerces.apache.org/msg01292.html > java.lang.NullPointerException > at org.apache.xerces.dom.ParentNode.nodeListItem(Unknown Source) > at org.apache.xerces.dom.ParentNode.item(Unknown Source) > at com.ibm.wsdl.util.xml.DOM2Writer.print(Unknown Source) > at com.ibm.wsdl.util.xml.DOM2Writer.print(Unknown Source) > at com.ibm.wsdl.util.xml.DOM2Writer.serializeAsXML(Unknown > Source) > at > com.ibm.wsdl.extensions.schema.SchemaSerializer.marshall(Unknown Source) > at > com.ibm.wsdl.xml.WSDLWriterImpl.printExtensibilityElements(Unknown > Source) > at com.ibm.wsdl.xml.WSDLWriterImpl.printTypes(Unknown Source) > at com.ibm.wsdl.xml.WSDLWriterImpl.printDefinition(Unknown > Source) > at com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(Unknown Source) > at com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(Unknown Source) > at > org.apache.axis2.description.AxisService.printWSDL(AxisService.java:848) > at > org.apache.axis2.transport.http.ListingAgent.processListService(ListingA > gent.java:221) > at > org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:225) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > at > weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(St > ubSecurityHelper.java:223) > at > weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityH > elper.java:125) > at > weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:2 > 83) > at > weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:1 > 75) > at > weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r > un(WebAppServletContext.java:3245) > at > weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu > bject.java:321) > at > weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121 > ) > at > weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServ > letContext.java:2003) > at > weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletCont > ext.java:1909) > -- 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