[java.lang.NullPointerException at org.apache.axiom.attachments.Attachments.getSOAPPartContentType]
Hi All i have an error when running axis client org.apache.axis2.AxisFault at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:123) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:354) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) at ch.e_dec.www.services.edecservice.v2.EdecServiceStub.goodsDeclarations(EdecServiceStub.java:339) at ch.e_dec.www.services.edecservice.EdecClient.main(EdecClient.java:310) Caused by: java.lang.NullPointerException at org.apache.axiom.attachments.Attachments.getSOAPPartContentType(Attachments.java:454) at org.apache.axis2.builder.MIMEBuilder.processDocument(MIMEBuilder.java:41) at org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:197) please help me... Regards, Anish P S CS-Techno Pvt Ltd Cochin,India Mob:9539299747 www.cs-techno.com
[java.lang.NullPointerException at org.apache.axis2.builder.MIMEBuilder.processDocument]
Hi All i have an error when running axis client org.apache.axis2.AxisFault at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:123) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:354) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) at ch.e_dec.www.services.edecservice.v2.EdecServiceStub.goodsDeclarations(EdecServiceStub.java:339) at ch.e_dec.www.services.edecservice.EdecClient.main(EdecClient.java:318) Caused by: java.lang.NullPointerException at org.apache.axis2.builder.MIMEBuilder.processDocument(MIMEBuilder.java:78) at org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:197) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:145) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:108) please help me... Regards, Anish P S CS-Techno Pvt Ltd Cochin,India Mob:9539299747 www.cs-techno.com <>
Re: java.lang.NullPointerException AbstractDispatcher.invoke
Mohan, I am facing this issue when I deploy the service in weblogic 9.2. The current version I am using is Axis2-1.4.1 and i see the fix is missing in the 1.4.1 source. Could you please point me which patch has this fix? Thanks Jiji -- View this message in context: http://www.nabble.com/java.lang.NullPointerException-AbstractDispatcher.invoke-tp18070227p21557148.html Sent from the Axis - User mailing list archive at Nabble.com.
java.lang.NullPointerException while invoking a service deployed in weblogic 9.2
I deployed small webservice into weblogic9.2 using axis2 1.4.1 (latest release) in war form. When i invoke the service i am getting the following error http://schemas.xmlsoap.org/soap/envelope/";> soapenv:Server java.lang.NullPointerException org.apache.axis2.AxisFault: java.lang.NullPointerException at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:195) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:223) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3245) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2003) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1909) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1359) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:181) Caused by: java.lang.NullPointerException at org.apache.axis2.engine.AbstractDispatcher.invoke(AbstractDispatcher.java:122) at org.apache.axis2.engine.Phase.invoke(Phase.java:317) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133) ... 14 more But the same war file is working perfectly in tomcat. the war file is organized as HelloWorld.war -WEB-INF -lib (contains all the axis2 libraries) -services -HelloWorldService.aar -services.list Any idea why I am getting this error?? The below link says this issue is already fixed. http://www.nabble.com/java.lang.NullPointerException-AbstractDispatcher.invoke-tt18070227.html Thanks Jiji -- View this message in context: http://www.nabble.com/java.lang.NullPointerException-while-invoking-a-service-deployed-in-weblogic-9.2-tp21514430p21514430.html Sent from the Axis - User mailing list archive at Nabble.com.
Re: java.lang.NullPointerException AbstractDispatcher.invoke
Thanks. It is working. Which build will this be part of ? Mohan -- View this message in context: http://www.nabble.com/java.lang.NullPointerException-AbstractDispatcher.invoke-tp18070227p18148961.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NullPointerException AbstractDispatcher.invoke
Thanks Sanka. I will try that. I am going to use that patch with the final release build because the nightly build uses JDK 5 ? We use 1.4 [javac] bad class file: F:\tools\eclipse\src\web\WEB-INF\lib\axis 2-kernel-SNAPSHOT.jar(org/apache/axis2/AxisFault.class) [javac] class file has wrong version 49.0, should be 48.0 [javac] Please remove or make sure it appears in the correct subdirectory of the classpath. [javac] import org.apache.axis2.AxisFault; [javac] ^ [javac] 1 error Thanks, Mohan -- View this message in context: http://www.nabble.com/java.lang.NullPointerException-AbstractDispatcher.invoke-tp18070227p18128677.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NullPointerException AbstractDispatcher.invoke
[1] http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AbstractDispatcher.java?r1=658726&r2=668095&pathrev=669834&view=patch [2] http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/AbstractDispatcher.java?r1=668095&r2=669834&pathrev=669834&view=patch HTH Sanka On Thu, Jun 26, 2008 at 10:46 AM, Mohan Radhakrishnan < [EMAIL PROTECTED]> wrote: > > Hi, > Could you point me to the patch for this if it is not my code error ? > I though I was using a simple WSDL with one operation ? > > > > Thanks, > Mohan > -- > View this message in context: > http://www.nabble.com/java.lang.NullPointerException-AbstractDispatcher.invoke-tp18070227p18126719.html > Sent from the Axis - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://www.wso2.org/
Re: java.lang.NullPointerException AbstractDispatcher.invoke
Hi, Could you point me to the patch for this if it is not my code error ? I though I was using a simple WSDL with one operation ? Thanks, Mohan -- View this message in context: http://www.nabble.com/java.lang.NullPointerException-AbstractDispatcher.invoke-tp18070227p18126719.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NullPointerException AbstractDispatcher.invoke
Hi, I tried the latest nightly build. Which build should I try ? I don't see any change. Thanks, Mohan -- View this message in context: http://www.nabble.com/java.lang.NullPointerException-AbstractDispatcher.invoke-tp18070227p18110687.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NullPointerException AbstractDispatcher.invoke
Hi, The service uses XMLBeans bindings and is large but I have pasted the WSDL. The curious thing is that the same WAR works on Tomcat and is able to hit the service. 1. Is axis2.xml the problem ? 2. services.xml http://www.w3.org/ns/wsdl/in-out"; class="com.MessageReceiverInOut"/> com.ResponseSkeleton true true http://www.w3.org/ns/wsdl/in-out"; namespace="http://test.com";> \"\" http://test.com/PortType/invokeResponse Thanks, Mohan http://test.com"; xmlns="" xmlns:s0="http://schemas.xmlsoap.org/wsdl/"; xmlns:s1="http://test.com"; xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/";> http://test.com"; xmlns:s0="http://schemas.xmlsoap.org/wsdl/"; xmlns:s1="http://test.com"; xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:xs="http://www.w3.org/2001/XMLSchema";> http://schemas.xmlsoap.org/soap/http"/> http://11.127.32.32:222/Test"/> -- View this message in context: http://www.nabble.com/java.lang.NullPointerException-AbstractDispatcher.invoke-tp18070227p18085509.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NullPointerException AbstractDispatcher.invoke
I think this issue is fixed in the trunk. Thanks, Sanka Mohan Radhakrishnan wrote: Hi, Not sure what this exception means. I have also pasted the source code at the end. Line 122 is msgctx .setProperty( Constants.AXIS_BINDING_MESSAGE, axisBindingOperation .getChild(WSDLConstants.MESSAGE_LABEL_IN_VALUE)); --- org.apache.axis2.description.AxisService - Found axis operation: [EMAIL PROTECTED] org.apache.axis2.i18n.resource::handleGetObject(operationfound) org.apache.axis2.engine.AbstractDispatcher - [MessageContext: logID=urn:uuid:2238BDBE9F1622487F1214229558385] Found AxisOperation : response org.apache.axis2.transport.http.AxisServlet - java.lang.NullPointerException at org.apache.axis2.engine.AbstractDispatcher.invoke(AbstractDispatcher.java:122) at org.apache.axis2.engine.Phase.invoke(Phase.java:317) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264) Thanks, Mohan msgctx.setAxisOperation(axisOperation); //setting axisMessage into messageContext msgctx.setAxisMessage(axisOperation.getMessage( WSDLConstants.MESSAGE_LABEL_IN_VALUE)); AxisEndpoint axisEndpoint = (AxisEndpoint) msgctx.getProperty(WSDL2Constants.ENDPOINT_LOCAL_NAME); if (axisEndpoint != null) { AxisBindingOperation axisBindingOperation = (AxisBindingOperation) axisEndpoint.getBinding() .getChild(axisOperation.getName()); msgctx .setProperty( Constants.AXIS_BINDING_MESSAGE, axisBindingOperation .getChild(WSDLConstants.MESSAGE_LABEL_IN_VALUE)); msgctx.setProperty(Constants.AXIS_BINDING_OPERATION, axisBindingOperation); No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.1/1515 - Release Date: 6/23/2008 7:16 PM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NullPointerException AbstractDispatcher.invoke
could you please try with a nighly build. I fixed a similar issue. thanks, Amila. On Mon, Jun 23, 2008 at 7:47 PM, Mohan Radhakrishnan < [EMAIL PROTECTED]> wrote: > > Hi, > Not sure what this exception means. I have also pasted the source code > at the end. Line 122 is >msgctx >.setProperty( > > Constants.AXIS_BINDING_MESSAGE, >axisBindingOperation > > .getChild(WSDLConstants.MESSAGE_LABEL_IN_VALUE)); > > --- > > org.apache.axis2.description.AxisService - Found axis operation: > [EMAIL PROTECTED] > org.apache.axis2.i18n.resource::handleGetObject(operationfound) > org.apache.axis2.engine.AbstractDispatcher - [MessageContext: > logID=urn:uuid:2238BDBE9F1622487F1214229558385] Found AxisOperation : > response > org.apache.axis2.transport.http.AxisServlet - > > java.lang.NullPointerException >at > > org.apache.axis2.engine.AbstractDispatcher.invoke(AbstractDispatcher.java:122) >at org.apache.axis2.engine.Phase.invoke(Phase.java:317) >at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264) > > Thanks, > Mohan > >msgctx.setAxisOperation(axisOperation); >//setting axisMessage into messageContext >msgctx.setAxisMessage(axisOperation.getMessage( >WSDLConstants.MESSAGE_LABEL_IN_VALUE)); >AxisEndpoint axisEndpoint = >(AxisEndpoint) > msgctx.getProperty(WSDL2Constants.ENDPOINT_LOCAL_NAME); >if (axisEndpoint != null) { >AxisBindingOperation axisBindingOperation = >(AxisBindingOperation) axisEndpoint.getBinding() >.getChild(axisOperation.getName()); >msgctx >.setProperty( > > Constants.AXIS_BINDING_MESSAGE, >axisBindingOperation > > .getChild(WSDLConstants.MESSAGE_LABEL_IN_VALUE)); > msgctx.setProperty(Constants.AXIS_BINDING_OPERATION, > axisBindingOperation); > > -- > View this message in context: > http://www.nabble.com/java.lang.NullPointerException-AbstractDispatcher.invoke-tp18070227p18070227.html > Sent from the Axis - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Amila Suriarachchi, WSO2 Inc.
Re: java.lang.NullPointerException AbstractDispatcher.invoke
Hi Mohan, Can you provide us with more information as to how we can reproduce this error. Sample service and request sent would be great. Thanks, Keith. On Mon, Jun 23, 2008 at 7:47 PM, Mohan Radhakrishnan < [EMAIL PROTECTED]> wrote: > > Hi, > Not sure what this exception means. I have also pasted the source code > at the end. Line 122 is >msgctx >.setProperty( > > Constants.AXIS_BINDING_MESSAGE, >axisBindingOperation > > .getChild(WSDLConstants.MESSAGE_LABEL_IN_VALUE)); > > --- > > org.apache.axis2.description.AxisService - Found axis operation: > [EMAIL PROTECTED] > org.apache.axis2.i18n.resource::handleGetObject(operationfound) > org.apache.axis2.engine.AbstractDispatcher - [MessageContext: > logID=urn:uuid:2238BDBE9F1622487F1214229558385] Found AxisOperation : > response > org.apache.axis2.transport.http.AxisServlet - > > java.lang.NullPointerException >at > > org.apache.axis2.engine.AbstractDispatcher.invoke(AbstractDispatcher.java:122) >at org.apache.axis2.engine.Phase.invoke(Phase.java:317) >at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264) > > Thanks, > Mohan > >msgctx.setAxisOperation(axisOperation); >//setting axisMessage into messageContext >msgctx.setAxisMessage(axisOperation.getMessage( >WSDLConstants.MESSAGE_LABEL_IN_VALUE)); >AxisEndpoint axisEndpoint = >(AxisEndpoint) > msgctx.getProperty(WSDL2Constants.ENDPOINT_LOCAL_NAME); >if (axisEndpoint != null) { >AxisBindingOperation axisBindingOperation = >(AxisBindingOperation) axisEndpoint.getBinding() >.getChild(axisOperation.getName()); >msgctx >.setProperty( > > Constants.AXIS_BINDING_MESSAGE, >axisBindingOperation > > .getChild(WSDLConstants.MESSAGE_LABEL_IN_VALUE)); > msgctx.setProperty(Constants.AXIS_BINDING_OPERATION, > axisBindingOperation); > > -- > View this message in context: > http://www.nabble.com/java.lang.NullPointerException-AbstractDispatcher.invoke-tp18070227p18070227.html > Sent from the Axis - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Keith Chapman Senior Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org
java.lang.NullPointerException AbstractDispatcher.invoke
Hi, Not sure what this exception means. I have also pasted the source code at the end. Line 122 is msgctx .setProperty( Constants.AXIS_BINDING_MESSAGE, axisBindingOperation .getChild(WSDLConstants.MESSAGE_LABEL_IN_VALUE)); --- org.apache.axis2.description.AxisService - Found axis operation: [EMAIL PROTECTED] org.apache.axis2.i18n.resource::handleGetObject(operationfound) org.apache.axis2.engine.AbstractDispatcher - [MessageContext: logID=urn:uuid:2238BDBE9F1622487F1214229558385] Found AxisOperation : response org.apache.axis2.transport.http.AxisServlet - java.lang.NullPointerException at org.apache.axis2.engine.AbstractDispatcher.invoke(AbstractDispatcher.java:122) at org.apache.axis2.engine.Phase.invoke(Phase.java:317) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264) Thanks, Mohan msgctx.setAxisOperation(axisOperation); //setting axisMessage into messageContext msgctx.setAxisMessage(axisOperation.getMessage( WSDLConstants.MESSAGE_LABEL_IN_VALUE)); AxisEndpoint axisEndpoint = (AxisEndpoint) msgctx.getProperty(WSDL2Constants.ENDPOINT_LOCAL_NAME); if (axisEndpoint != null) { AxisBindingOperation axisBindingOperation = (AxisBindingOperation) axisEndpoint.getBinding() .getChild(axisOperation.getName()); msgctx .setProperty( Constants.AXIS_BINDING_MESSAGE, axisBindingOperation .getChild(WSDLConstants.MESSAGE_LABEL_IN_VALUE)); msgctx.setProperty(Constants.AXIS_BINDING_OPERATION, axisBindingOperation); -- View this message in context: http://www.nabble.com/java.lang.NullPointerException-AbstractDispatcher.invoke-tp18070227p18070227.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NullPointerException when attempting to access resources in an .aar file.
MessageContext has 2 methods which may help getCurrentContext getCurrentMessage there is no getCurrentContextMessage method http://ws.apache.org/axis/java/apiDocs/index.html M-- - Original Message - From: "Sanjay Vivek" <[EMAIL PROTECTED]> To: Sent: Monday, December 03, 2007 11:34 AM Subject: java.lang.NullPointerException when attempting to access resources in an .aar file. Hi everyone, I'm attempting to deploy a Web Service from a simple Java class by creating a service archive and deploying it to WSAS (Web Services Application Server). However, I'm having trouble invoking this service. The structure of my service is given below (which I then deployed as an .aar file): - GrouperWS - META-INF - services.xml - lib - *.jar - conf - sources.xml - test - GrouperWS.class GrouperWS.java requires sources.xml for it to initialize properly. I tried to access the sources.xml using the code below but I'm getting java.lang.NullPointerException errors when I try to invoke loadResource(). What am I doing wrong? Any help would be greatly appreciated. package test; import java.io.InputStream; import org.apache.axis2.AxisFault; import org.apache.axis2.context.MessageContext; import org.apache.axis2.description.AxisService; import edu.internet2.middleware.grouper.SubjectFinder; import edu.internet2.middleware.subject.Subject; import edu.internet2.middleware.subject.SubjectNotFoundException; import edu.internet2.middleware.subject.SubjectNotUniqueException; public class GrouperWS { private final static String GROUPER_PROPERTIES = "conf/sources.xml"; public String loadResource() throws AxisFault{ MessageContext context = MessageContext.getCurrentMessageContext(); AxisService service = context.getAxisService(); ClassLoader loader = service.getClassLoader(); InputStream stream = loader.getResourceAsStream(GROUPER_PROPERTIES); if (stream != null) { try { String subjectId = "[EMAIL PROTECTED]"; Subject subject = SubjectFinder.findById(subjectId); String user = subject.getId(); return user; //System.err.println("Found User: " + user); } catch (SubjectNotFoundException eSNF) { // No matching subject id found //System.err.println(eSNF.getMessage()); String subjNotFoundError=eSNF.getMessage(); return subjNotFoundError; } catch (SubjectNotUniqueException eSNU) { // More than one subject with this subject id was found //System.err.println(eSNU.getMessage()); String uniqueError=eSNU.getMessage(); return uniqueError; } } else { return "An error occured"; } } } Regards -- Sanjay Vivek Web Analyst Middleware Team ISS University of Newcastle Upon Tyne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.lang.NullPointerException when attempting to access resources in an .aar file.
Hi everyone, I'm attempting to deploy a Web Service from a simple Java class by creating a service archive and deploying it to WSAS (Web Services Application Server). However, I'm having trouble invoking this service. The structure of my service is given below (which I then deployed as an .aar file): - GrouperWS - META-INF - services.xml - lib - *.jar - conf - sources.xml - test - GrouperWS.class GrouperWS.java requires sources.xml for it to initialize properly. I tried to access the sources.xml using the code below but I'm getting java.lang.NullPointerException errors when I try to invoke loadResource(). What am I doing wrong? Any help would be greatly appreciated. package test; import java.io.InputStream; import org.apache.axis2.AxisFault; import org.apache.axis2.context.MessageContext; import org.apache.axis2.description.AxisService; import edu.internet2.middleware.grouper.SubjectFinder; import edu.internet2.middleware.subject.Subject; import edu.internet2.middleware.subject.SubjectNotFoundException; import edu.internet2.middleware.subject.SubjectNotUniqueException; public class GrouperWS { private final static String GROUPER_PROPERTIES = "conf/sources.xml"; public String loadResource() throws AxisFault{ MessageContext context = MessageContext.getCurrentMessageContext(); AxisService service = context.getAxisService(); ClassLoader loader = service.getClassLoader(); InputStream stream = loader.getResourceAsStream(GROUPER_PROPERTIES); if (stream != null) { try { String subjectId = "[EMAIL PROTECTED]"; Subject subject = SubjectFinder.findById(subjectId); String user = subject.getId(); return user; //System.err.println("Found User: " + user); } catch (SubjectNotFoundException eSNF) { // No matching subject id found //System.err.println(eSNF.getMessage()); String subjNotFoundError=eSNF.getMessage(); return subjNotFoundError; } catch (SubjectNotUniqueException eSNU) { // More than one subject with this subject id was found //System.err.println(eSNU.getMessage()); String uniqueError=eSNU.getMessage(); return uniqueError; } } else { return "An error occured"; } } } Regards -- Sanjay Vivek Web Analyst Middleware Team ISS University of Newcastle Upon Tyne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis 2: java.lang.NullPointerException at at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java :85)
talk to a web service from my java > code. > > > > > > The following are the steps I did > > > > > > 1. Downloaded Axis 2 Intellij Plugin, > > > 2. Created the stubs for my client from wsdl > provided by the > > > webservice. > > > 3. Wrote a simple program to talk to the > service. The code looks > > > like this. > > > > > > > > > > > > MywebservicesStub stub = new > MywebservicesStub(); > > > > > > MywebservicesStub.CheckDetails chk = new > > > MywebservicesStub.CheckDetails (); > > > > > > chk.CheckDetails(chk); > > > > > > > > > > > > > > > > > > > > > > > > I am getting an error > > > > > > java.lang.NullPointerException > > > > > > at > > > > org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85) > > > > > > at > > > > org.apache.axis2.description.OutInAxisOperationClient.execute ( OutInAxisOperation.java :163) > > > > > > > > > > > > > > > > > > > > > > > > Could you all please help me in figuring out if I > have missed any > > > steps and what is causing this exception? > > > > > > > > > > > > -Manoj > > > > > > > > > > - > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > -- > Ajith Ranabahu > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis 2: java.lang.NullPointerException at at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java :85)
my java > code. > > > > > > The following are the steps I did > > > > > > 1. Downloaded Axis 2 Intellij Plugin, > > > 2. Created the stubs for my client from wsdl > provided by the > > > webservice. > > > 3. Wrote a simple program to talk to the > service. The code looks > > > like this. > > > > > > > > > > > > MywebservicesStub stub = new > MywebservicesStub(); > > > > > > MywebservicesStub.CheckDetails chk = new > > > MywebservicesStub.CheckDetails (); > > > > > > chk.CheckDetails(chk); > > > > > > > > > > > > > > > > > > > > > > > > I am getting an error > > > > > > java.lang.NullPointerException > > > > > > at > > > > > org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java > :85) > > > > > > at > > > > org.apache.axis2.description.OutInAxisOperationClient.execute > (OutInAxisOperation.java :163) > > > > > > > > > > > > > > > > > > > > > > > > Could you all please help me in figuring out if I > have missed any > > > steps and what is causing this exception? > > > > > > > > > > > > -Manoj > > > > > > > > > > > - > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > -- > Ajith Ranabahu > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis 2: java.lang.NullPointerException at at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java :85)
Looking for Help :-( On 6/13/07, Manoj KG <[EMAIL PROTECTED]> wrote: Thanks for your tips. I generated my stub classes using wsdl2java in command prompt. Now I am getting a different exception. Can you guide me how to solve this? INFO: Discarding unexpected response: HTTP/1.1 100 Continue org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0]; nested exception is: org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0] at org.apache.axis2.transport.TransportUtils.createSOAPMessage( TransportUtils.java :126) at org.apache.axis2.transport.TransportUtils.createSOAPMessage( TransportUtils.java:67) at org.apache.axis2.description.OutInAxisOperationClient.send( OutInAxisOperation.java:252) at org.apache.axis2.description.OutInAxisOperationClient.execute ( OutInAxisOperation.java:202) at com.monsanto.teamtrack.w3.gsoap.ttwebservices_wsdl.TtwebservicesStub.CheckVersion (TtwebservicesStub.java:512) at Test.main(Test.java:20) I don't whether this is of any significanse. But the XML of the SoapEnvelope was http://schemas.xmlsoap.org/soap/envelope/";>http://schemas.xmlsoap.org/soap/envelope/%22%3E%3Csoapenv:Header>/> TTWebServices-1-0 Thanks in advance -Manoj On 6/13/07, Ajith Ranabahu <[EMAIL PROTECTED]> wrote: > > Hi, > What are the fields in the class CheckDetails ? I have a guess that > the issue could be null values inside you instance of CheckDetails so > please make sure you fill all the values. > > The error message however should be improved if this is the case > > Ajith > > On 6/12/07, Glen Mazza <[EMAIL PROTECTED] > wrote: > > I would try to see if your problem is IntelliJ plugin-related or not. > > > > If you try to create your client stub using Axis2's WSDL2Java instead > of > > the IntelliJ plugin, do you get the very same error message? Or does > it > > work in that case? Here are the steps I used for creating a simple > > Axis2 web service and client, which might help you a little bit: > > > > http://www.jroller.com/page/gmazza?entry=creating_a_web_service_with > > > > Glen > > > > > > Am Dienstag, den 12.06.2007, 15:53 +0530 schrieb Manoj KG: > > > Hi All, > > > > > > I am a newbie to Axis 2. > > > > > > > > > > > > My goal is to talk to a web service from my java code. > > > > > > The following are the steps I did > > > > > > 1. Downloaded Axis 2 Intellij Plugin, > > > 2. Created the stubs for my client from wsdl provided by the > > > webservice. > > > 3. Wrote a simple program to talk to the service. The code > looks > > > like this. > > > > > > > > > > > > MywebservicesStub stub = new MywebservicesStub(); > > > > > > MywebservicesStub.CheckDetails chk = new > > > MywebservicesStub.CheckDetails (); > > > > > > chk.CheckDetails(chk); > > > > > > > > > > > > > > > > > > > > > > > > I am getting an error > > > > > > java.lang.NullPointerException > > > > > > at > > > org.apache.axis2.description.ClientUtils.inferInTransport( > ClientUtils.java :85) > > > > > > at > > > org.apache.axis2.description.OutInAxisOperationClient.execute ( > OutInAxisOperation.java :163) > > > > > > > > > > > > > > > > > > > > > > > > Could you all please help me in figuring out if I have missed any > > > steps and what is causing this exception? > > > > > > > > > > > > -Manoj > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Ajith Ranabahu > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Axis 2: java.lang.NullPointerException at at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java :85)
Thanks for your tips. I generated my stub classes using wsdl2java in command prompt. Now I am getting a different exception. Can you guide me how to solve this? INFO: Discarding unexpected response: HTTP/1.1 100 Continue org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0]; nested exception is: org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0] at org.apache.axis2.transport.TransportUtils.createSOAPMessage( TransportUtils.java:126) at org.apache.axis2.transport.TransportUtils.createSOAPMessage( TransportUtils.java:67) at org.apache.axis2.description.OutInAxisOperationClient.send( OutInAxisOperation.java:252) at org.apache.axis2.description.OutInAxisOperationClient.execute( OutInAxisOperation.java:202) at com.monsanto.teamtrack.w3.gsoap.ttwebservices_wsdl.TtwebservicesStub.CheckVersion (TtwebservicesStub.java:512) at Test.main(Test.java:20) I don't whether this is of any significanse. But the XML of the SoapEnvelope was http://schemas.xmlsoap.org/soap/envelope/";> TTWebServices-1-0 Thanks in advance -Manoj On 6/13/07, Ajith Ranabahu <[EMAIL PROTECTED]> wrote: Hi, What are the fields in the class CheckDetails ? I have a guess that the issue could be null values inside you instance of CheckDetails so please make sure you fill all the values. The error message however should be improved if this is the case Ajith On 6/12/07, Glen Mazza <[EMAIL PROTECTED]> wrote: > I would try to see if your problem is IntelliJ plugin-related or not. > > If you try to create your client stub using Axis2's WSDL2Java instead of > the IntelliJ plugin, do you get the very same error message? Or does it > work in that case? Here are the steps I used for creating a simple > Axis2 web service and client, which might help you a little bit: > > http://www.jroller.com/page/gmazza?entry=creating_a_web_service_with > > Glen > > > Am Dienstag, den 12.06.2007, 15:53 +0530 schrieb Manoj KG: > > Hi All, > > > > I am a newbie to Axis 2. > > > > > > > > My goal is to talk to a web service from my java code. > > > > The following are the steps I did > > > > 1. Downloaded Axis 2 Intellij Plugin, > > 2. Created the stubs for my client from wsdl provided by the > > webservice. > > 3. Wrote a simple program to talk to the service. The code looks > > like this. > > > > > > > > MywebservicesStub stub = new MywebservicesStub(); > > > > MywebservicesStub.CheckDetails chk = new > > MywebservicesStub.CheckDetails(); > > > > chk.CheckDetails(chk); > > > > > > > > > > > > > > > > I am getting an error > > > > java.lang.NullPointerException > > > > at > > org.apache.axis2.description.ClientUtils.inferInTransport( ClientUtils.java :85) > > > > at > > org.apache.axis2.description.OutInAxisOperationClient.execute( OutInAxisOperation.java :163) > > > > > > > > > > > > > > > > Could you all please help me in figuring out if I have missed any > > steps and what is causing this exception? > > > > > > > > -Manoj > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Ajith Ranabahu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis 2: java.lang.NullPointerException at at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java :85)
Hi, What are the fields in the class CheckDetails ? I have a guess that the issue could be null values inside you instance of CheckDetails so please make sure you fill all the values. The error message however should be improved if this is the case Ajith On 6/12/07, Glen Mazza <[EMAIL PROTECTED]> wrote: I would try to see if your problem is IntelliJ plugin-related or not. If you try to create your client stub using Axis2's WSDL2Java instead of the IntelliJ plugin, do you get the very same error message? Or does it work in that case? Here are the steps I used for creating a simple Axis2 web service and client, which might help you a little bit: http://www.jroller.com/page/gmazza?entry=creating_a_web_service_with Glen Am Dienstag, den 12.06.2007, 15:53 +0530 schrieb Manoj KG: > Hi All, > > I am a newbie to Axis 2. > > > > My goal is to talk to a web service from my java code. > > The following are the steps I did > > 1. Downloaded Axis 2 Intellij Plugin, > 2. Created the stubs for my client from wsdl provided by the > webservice. > 3. Wrote a simple program to talk to the service. The code looks > like this. > > > > MywebservicesStub stub = new MywebservicesStub(); > > MywebservicesStub.CheckDetails chk = new > MywebservicesStub.CheckDetails(); > > chk.CheckDetails(chk); > > > > > > > > I am getting an error > > java.lang.NullPointerException > > at > org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java :85) > > at > org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java :163) > > > > > > > > Could you all please help me in figuring out if I have missed any > steps and what is causing this exception? > > > > -Manoj > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ajith Ranabahu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis 2: java.lang.NullPointerException at at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java :85)
I would try to see if your problem is IntelliJ plugin-related or not. If you try to create your client stub using Axis2's WSDL2Java instead of the IntelliJ plugin, do you get the very same error message? Or does it work in that case? Here are the steps I used for creating a simple Axis2 web service and client, which might help you a little bit: http://www.jroller.com/page/gmazza?entry=creating_a_web_service_with Glen Am Dienstag, den 12.06.2007, 15:53 +0530 schrieb Manoj KG: > Hi All, > > I am a newbie to Axis 2. > > > > My goal is to talk to a web service from my java code. > > The following are the steps I did > > 1. Downloaded Axis 2 Intellij Plugin, > 2. Created the stubs for my client from wsdl provided by the > webservice. > 3. Wrote a simple program to talk to the service. The code looks > like this. > > > > MywebservicesStub stub = new MywebservicesStub(); > > MywebservicesStub.CheckDetails chk = new > MywebservicesStub.CheckDetails(); > > chk.CheckDetails(chk); > > > > > > > > I am getting an error > > java.lang.NullPointerException > > at > org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java > :85) > > at > org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java > :163) > > > > > > > > Could you all please help me in figuring out if I have missed any > steps and what is causing this exception? > > > > -Manoj > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis 2: java.lang.NullPointerException at at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java :85)
Hi All, I am a newbie to Axis 2. My goal is to talk to a web service from my java code. The following are the steps I did 1. Downloaded Axis 2 Intellij Plugin, 2. Created the stubs for my client from wsdl provided by the webservice. 3. Wrote a simple program to talk to the service. The code looks like this. MywebservicesStub stub = new MywebservicesStub(); MywebservicesStub.CheckDetails chk = new MywebservicesStub.CheckDetails(); chk.CheckDetails(chk); I am getting an error java.lang.NullPointerException at org.apache.axis2.description.ClientUtils.inferInTransport( ClientUtils.java :85) at org.apache.axis2.description.OutInAxisOperationClient.execute (OutInAxisOperation.java :163) Could you all please help me in figuring out if I have missed any steps and what is causing this exception? -Manoj
RE: [Axis2] java.lang.NullPointerException when robustInOnly returns SOAPFault
Well, I found a JIRA (actually opened by me...in January and based on the JIRA notes, a fixed has been submitted in March. I will need to upgrade to nightly to re-test the case. Gul From: Onural, Gul (CAR:QT00) Sent: Sunday, April 08, 2007 2:49 AM To: axis-user@ws.apache.org Subject: [Axis2] java.lang.NullPointerException when robustInOnly returns SOAPFault I have an robustInOnly operation, which returns a SOAP Fault if an error occurs. My client application (using xmlbeans based client stubs) gets null pointer exception if the implementation of the operations returns a SOAPFault. I noticed that my inOut operations work correctly in the case of returning SOAP Fault. It must be something to do with the robustInOnly operations returning SOAP Fault. Does anybody noticed this problem before ? Gul java.lang.NullPointerException at org.apache.axis2.context.MessageContext.isHeaderPresent(MessageContext.j ava:1054) at org.apache.axis2.handlers.addressing.AddressingInHandler.invoke(Addressi ngInHandler.java:72) at org.apache.axis2.engine.Phase.invoke(Phase.java:381) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:518) at org.apache.axis2.engine.AxisEngine.receiveFault(AxisEngine.java:596) at org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOperationC lient.send(RobustOutOnlyAxisOperat ion.java:99) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO peration.java:295) java.lang.NullPointerException at org.apache.axis2.context.MessageContext.isHeaderPresent(MessageContext.j ava:1054) at org.apache.axis2.handlers.addressing.AddressingInHandler.invoke(Addressi ngInHandler.java:72) at org.apache.axis2.engine.Phase.invoke(Phase.java:381) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:518) at org.apache.axis2.engine.AxisEngine.receiveFault(AxisEngine.java:596) at org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOperationC lient.send(RobustOutOnlyAxisOperat ion.java:99) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO peration.java:295) at com.mycompany.myservice.MyServiceStub.doSomething(MyServiceStub.java:542 ) at com.mycompany.Client.main(Client.java:414) The fault message returned by the service : === http://schemas.xmlsoap.org/soap/envelope/";> soapenv:Client Some error... http://www.mycompany.com/CommonTypes";> 8000 Some error...
[Axis2] java.lang.NullPointerException when robustInOnly returns SOAPFault
I have an robustInOnly operation, which returns a SOAP Fault if an error occurs. My client application (using xmlbeans based client stubs) gets null pointer exception if the implementation of the operations returns a SOAPFault. I noticed that my inOut operations work correctly in the case of returning SOAP Fault. It must be something to do with the robustInOnly operations returning SOAP Fault. Does anybody noticed this problem before ? Gul java.lang.NullPointerException at org.apache.axis2.context.MessageContext.isHeaderPresent(MessageContext.j ava:1054) at org.apache.axis2.handlers.addressing.AddressingInHandler.invoke(Addressi ngInHandler.java:72) at org.apache.axis2.engine.Phase.invoke(Phase.java:381) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:518) at org.apache.axis2.engine.AxisEngine.receiveFault(AxisEngine.java:596) at org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOperationC lient.send(RobustOutOnlyAxisOperat ion.java:99) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO peration.java:295) java.lang.NullPointerException at org.apache.axis2.context.MessageContext.isHeaderPresent(MessageContext.j ava:1054) at org.apache.axis2.handlers.addressing.AddressingInHandler.invoke(Addressi ngInHandler.java:72) at org.apache.axis2.engine.Phase.invoke(Phase.java:381) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:518) at org.apache.axis2.engine.AxisEngine.receiveFault(AxisEngine.java:596) at org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOperationC lient.send(RobustOutOnlyAxisOperat ion.java:99) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO peration.java:295) at com.mycompany.myservice.MyServiceStub.doSomething(MyServiceStub.java:542 ) at com.mycompany.Client.main(Client.java:414) The fault message returned by the service : === http://schemas.xmlsoap.org/soap/envelope/";> soapenv:Client Some error... http://www.mycompany.com/CommonTypes";> 8000 Some error...
java.lang.NullPointerException at org.apache.axis.client.Service.getEngineConfiguration
Hi all, I have a web application, which upon making a request, processes the request and makes a soap request to the axis webservice deployed in the same web server. The problem I am facing now is…. Whenever I make a request to the servlet, the webapp initialization and request processing goes on fine….. but it is giving a Null pointer exception while making the soap request. I debugged it and found that the exception is being raised while creating the object of Service class. I have attached the stack trace. I have searched in google and didn’t find any important information regarding this problem. Some of them have a similar problem when they try to restart the webapp using Tomcat Manager. But, even if I start the Tomcat everytime I test it, I am getting the same exception. I am using Tomcat 4.1.30 and Axis 1.4. Please help. Thx in Advance Phani Sekhar java.lang.NullPointerException at org.apache.axis.client.Service.getEngineConfiguration(Service.java:813) at org.apache.axis.client.Service.getAxisClient(Service.java:104) at org.apache.axis.client.Service.(Service.java:113) at com.roamware.rwprov.RWProvisionerSoapInterfaceServiceLocator.(RWProvisionerSoapInterfaceServiceLocator.java:14) at com.roamware.rwprov.pln.PLNPeerSOAPClient.getSubscriberDetails(PLNPeerSOAPClient.java:101) at com.roamware.rwprov.RWServletProvisioner.processRequest(RWServletProvisioner.java:181) at com.roamware.rwprov.RWProvisioningServlet.processRequest(RWProvisioningServlet.java:63) at com.roamware.rwprov.RWProvisioningServlet.doPost(RWProvisioningServlet.java:95) at javax.servlet.http.HttpServlet.service(HttpServlet.java:716) at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:199) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577
Re: Exception in thread "main" org.apache.axis2.AxisFault: java.lang.NullPointerException
More information, please: - WSDL - configuration On 8/29/06, Eric Chow <[EMAIL PROTECTED]> wrote: What caused the following error ? package test.client; import java.util.Calendar; import org.apache.axis2.databinding.ADBBean; import test.gen.EchoserviceStub; import test.service.xsd.Echo; import test.service.xsd.EchoResponse; import test.service.xsd.User; /** * Client.java * * @author Chao Hoi Ka, Eric * */ public class Client { public static void main(String[] args) throws Exception { EchoserviceStub stub = new EchoserviceStub(); Echo echo = (Echo)((ADBBean)Echo.class.newInstance()); User u = (User)((ADBBean)User.class.newInstance()); u.setName("Eric"); u.setBirth(Calendar.getInstance()); echo.setU(u); EchoResponse resp = stub.echo(echo); } } og4j:WARN No appenders could be found for logger (org.apache.axiom.om.impl.builder.StAXOMBuilder). log4j:WARN Please initialize the log4j system properly. Exception in thread "main" org.apache.axis2.AxisFault: java.lang.NullPointerException at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287) at test.gen.EchoserviceStub.echo(EchoserviceStub.java:133) at test.client.Client.main(Client.java:40) Caused by: java.lang.Exception: org.apache.axis2.AxisFault: java.lang.NullPointerException; nested exception is: org.apache.axiom.om.OMException: java.lang.NullPointerException at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:136) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284) at org.apache.axis2.transport.http.HTTPWorker.processRequest(HTTPWorker.java:255) at org.apache.axis2.transport.http.server.SimpleConnectionThread.run(SimpleConnectionThread.java:92) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Caused by: org.apache.axiom.om.OMException: java.lang.NullPointerException at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206) at org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:298) at org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:584) at org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:118) at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:240) at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:197) at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:71) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:130) ... 8 more Caused by: java.lang.NullPointerException at org.apache.axis2.databinding.utils.reader.WrappingXMLStreamReader.getEventType(WrappingXMLStreamReader.java:141) at org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.processProperties(ADBXMLStreamReaderImpl.java:964) at org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next(ADBXMLStreamReaderImpl.java:807) at org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:68) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:123) ... 15 more at org.apache.axis2.AxisFault.(AxisFault.java:159) ... 3 more - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exception in thread "main" org.apache.axis2.AxisFault: java.lang.NullPointerException
What caused the following error ? package test.client; import java.util.Calendar; import org.apache.axis2.databinding.ADBBean; import test.gen.EchoserviceStub; import test.service.xsd.Echo; import test.service.xsd.EchoResponse; import test.service.xsd.User; /** * Client.java * * @author Chao Hoi Ka, Eric * */ public class Client { public static void main(String[] args) throws Exception { EchoserviceStub stub = new EchoserviceStub(); Echo echo = (Echo)((ADBBean)Echo.class.newInstance()); User u = (User)((ADBBean)User.class.newInstance()); u.setName("Eric"); u.setBirth(Calendar.getInstance()); echo.setU(u); EchoResponse resp = stub.echo(echo); } } og4j:WARN No appenders could be found for logger (org.apache.axiom.om.impl.builder.StAXOMBuilder). log4j:WARN Please initialize the log4j system properly. Exception in thread "main" org.apache.axis2.AxisFault: java.lang.NullPointerException at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287) at test.gen.EchoserviceStub.echo(EchoserviceStub.java:133) at test.client.Client.main(Client.java:40) Caused by: java.lang.Exception: org.apache.axis2.AxisFault: java.lang.NullPointerException; nested exception is: org.apache.axiom.om.OMException: java.lang.NullPointerException at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:136) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284) at org.apache.axis2.transport.http.HTTPWorker.processRequest(HTTPWorker.java:255) at org.apache.axis2.transport.http.server.SimpleConnectionThread.run(SimpleConnectionThread.java:92) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Caused by: org.apache.axiom.om.OMException: java.lang.NullPointerException at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206) at org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:298) at org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:584) at org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:118) at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:240) at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:197) at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:71) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:130) ... 8 more Caused by: java.lang.NullPointerException at org.apache.axis2.databinding.utils.reader.WrappingXMLStreamReader.getEventType(WrappingXMLStreamReader.java:141) at org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.processProperties(ADBXMLStreamReaderImpl.java:964) at org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next(ADBXMLStreamReaderImpl.java:807) at org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:68) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:123) ... 15 more at org.apache.axis2.AxisFault.(AxisFault.java:159) ... 3 more - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NullPointerException
OR- perhaps the service was never deployed... If your implementation is located on localhost check http://localhost:8080/axis/servlet/AxisServlet (and make sure the service is listed..) in your deployed server-config.wsdd ensure your provider is specified as 'provider="java:MSG"' Martin -- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Monday, July 17, 2006 10:00 AM Subject: Re: java.lang.NullPointerException you are trying to use an object, which is not instantiated. Could you please check your service implementation on customize.groupList1.deleteSQL(groupList1.java:158) > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 17.07.06 14:43:00 > An: axis-user@ws.apache.org > Betreff: java.lang.NullPointerException > > I got "java.lang.NullPointerException" error when I'm creating web service > using 'message' service type. > > The specific method I used is 'public void method(SOAPEnvelope req, > SOAPEnvelope resp);' > > For example, my request SOAP is > http://schemas.xmlsoap.org/soap/envelope/"; >xmlns:xsd="http://www.w3.org/2001/XMLSchema"; >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> > > > > 5 > > > > In the server side, I was tring to get the value of 'gid'. After I got the > value and I was going to use this value to query database, ERROR occured. I > also tried to just System.out.println("that value"), ERROR still remained. > It seems that any use of that value will get this error. > > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>soapenv:Server.userExceptionjava.lang.NullPointerException xmlns:ns1="http://xml.apache.org/axis/";>java.lang.NullPointerException > at customize.groupList1.deleteSQL(groupList1.java:158) > at customize.groupList1.deleteGroups(groupList1.java:135) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at > org.apache.axis.providers.java.MsgProvider.processMessage(MsgProvider.java:155) > at > org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) > at > org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) > at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) > at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) > at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454) > at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281) > at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) > at > org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327) > 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) > xmlns:ns2="http://xml.apache.org/a
Re: java.lang.NullPointerException
Thany you very much for your reply. I stupidly forgot to instanticate my database connection class. :( Yun -- View this message in context: http://www.nabble.com/java.lang.NullPointerException-tf1954438.html#a5361511 Sent from the Axis - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NullPointerException
you are trying to use an object, which is not instantiated. Could you please check your service implementation on customize.groupList1.deleteSQL(groupList1.java:158) > -Ursprüngliche Nachricht- > Von: axis-user@ws.apache.org > Gesendet: 17.07.06 14:43:00 > An: axis-user@ws.apache.org > Betreff: java.lang.NullPointerException > > I got "java.lang.NullPointerException" error when I'm creating web service > using 'message' service type. > > The specific method I used is 'public void method(SOAPEnvelope req, > SOAPEnvelope resp);' > > For example, my request SOAP is > http://schemas.xmlsoap.org/soap/envelope/"; >xmlns:xsd="http://www.w3.org/2001/XMLSchema"; >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> > > > > 5 > > > > In the server side, I was tring to get the value of 'gid'. After I got the > value and I was going to use this value to query database, ERROR occured. I > also tried to just System.out.println("that value"), ERROR still remained. > It seems that any use of that value will get this error. > > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>soapenv:Server.userExceptionjava.lang.NullPointerException xmlns:ns1="http://xml.apache.org/axis/";>java.lang.NullPointerException > at customize.groupList1.deleteSQL(groupList1.java:158) > at customize.groupList1.deleteGroups(groupList1.java:135) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at > org.apache.axis.providers.java.MsgProvider.processMessage(MsgProvider.java:155) > at > org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) > at > org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) > at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) > at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) > at > org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454) > at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281) > at > org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) > at > org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327) > 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) > xmlns:ns2="http://xml.apache.org/axis/";>manticore > > Any help?? > > Thanks in advance. > -- > View this message in context: > http://www.nabble.com/java.lang.NullPointerException-tf1954438.html#a5359933 > Sent from the Axis - User forum at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > _ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=0071 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.lang.NullPointerException
I got "java.lang.NullPointerException" error when I'm creating web service using 'message' service type. The specific method I used is 'public void method(SOAPEnvelope req, SOAPEnvelope resp);' For example, my request SOAP is http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> 5 In the server side, I was tring to get the value of 'gid'. After I got the value and I was going to use this value to query database, ERROR occured. I also tried to just System.out.println("that value"), ERROR still remained. It seems that any use of that value will get this error. http://schemas.xmlsoap.org/soap/envelope/";>soapenv:Server.userExceptionjava.lang.NullPointerExceptionhttp://xml.apache.org/axis/";>java.lang.NullPointerException at customize.groupList1.deleteSQL(groupList1.java:158) at customize.groupList1.deleteGroups(groupList1.java:135) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.axis.providers.java.MsgProvider.processMessage(MsgProvider.java:155) at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454) at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281) at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327) 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) http://xml.apache.org/axis/";>manticore Any help?? Thanks in advance. -- View this message in context: http://www.nabble.com/java.lang.NullPointerException-tf1954438.html#a5359933 Sent from the Axis - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NullPointerException at org.apache.axis.utils.BeanUtils.processPropertyDescriptors(BeanUtils.java:163)
> Hi, > > I am new to java and english isn't my native language, so please forgive me > bad error description etc. > > I'm using Eclipse with WST 1.0.1 to create a webservice for my Java class. > Using the eclipse wizard, generating the service seems to work, but > deploying it to tomcat 5.5 runtime (also managed by eclipse) fails: Ok, seems to be a problem with eclipse. Redoing all tasks within a fresh workspace solves the problems. Weird... -gatherer
java.lang.NullPointerException at org.apache.axis.utils.BeanUtils.processPropertyDescriptors(BeanUtils.java:163)
Hi, I am new to java and english isn't my native language, so please forgive me bad error description etc. I'm using Eclipse with WST 1.0.1 to create a webservice for my Java class. Using the eclipse wizard, generating the service seems to work, but deploying it to tomcat 5.5 runtime (also managed by eclipse) fails: The generatet wsdl file includes to lines, which are marked as errors by eclipse: http://xml.apache.org/xml-soap"/> http://lang.java"/> The error description is: schema_reference.4: Failed to read schema document 'http://xml.apache.org/xml-soap', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not . Mcws.wsdl test/WebContent/wsdlline 7 4. April 2006 09:50:27 1155 and a similar one for "http://lang.java";. When i try to deploy. i get the following error: java org.apache.axis.utils.Admin server deploy.wsdd - Exception: java.lang.NullPointerException at org.apache.axis.utils.BeanUtils.processPropertyDescriptors(BeanUtils.java:163) at org.apache.axis.utils.BeanUtils.getPd(BeanUtils.java:64) at org.apache.axis.encoding.ser.BeanSerializerFactory.init(BeanSerializerFactory.java:58) at org.apache.axis.encoding.ser.BeanSerializerFactory.(BeanSerializerFactory.java:42) at org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(BaseSerializerFactory.java:235) at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:542) at org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:253) at org.apache.axis.deployment.wsdd.WSDDService.(WSDDService.java:233) at org.apache.axis.deployment.wsdd.WSDDDeployment.(WSDDDeployment.java:192) at org.apache.axis.deployment.wsdd.WSDDDocument.(WSDDDocument.java:78) at org.apache.axis.utils.Admin.processWSDD(Admin.java:111) at org.apache.axis.utils.Admin.process(Admin.java:158) at org.apache.axis.utils.Admin.main(Admin.java:300) - Exception: java.lang.NullPointerException at org.apache.axis.utils.BeanUtils.processPropertyDescriptors(BeanUtils.java:163) at org.apache.axis.utils.BeanUtils.getPd(BeanUtils.java:64) at org.apache.axis.encoding.ser.BeanDeserializerFactory.getProperties(BeanDeserializerFactory.java:64) at org.apache.axis.encoding.ser.BeanDeserializerFactory.(BeanDeserializerFactory.java:52) at org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(BaseDeserializerFactory.java:206) at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:554) at org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:253) at org.apache.axis.deployment.wsdd.WSDDService.(WSDDService.java:233) at org.apache.axis.deployment.wsdd.WSDDDeployment.(WSDDDeployment.java:192) at org.apache.axis.deployment.wsdd.WSDDDocument.(WSDDDocument.java:78) at org.apache.axis.utils.Admin.processWSDD(Admin.java:111) at org.apache.axis.utils.Admin.process(Admin.java:158) at org.apache.axis.utils.Admin.main(Admin.java:300) - Error processing 'deploy.wsdd' org.apache.axis.deployment.wsdd.WSDDException: javax.xml.rpc.JAXRPCException: Null serializer factory specified. javax.xml.rpc.JAXRPCException: Null serializer factory specified. at org.apache.axis.encoding.TypeMappingImpl.register(TypeMappingImpl.java:218) at org.apache.axis.encoding.TypeMappingDelegate.register(TypeMappingDelegate.java:73) at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:558) at org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:253) at org.apache.axis.deployment.wsdd.WSDDService.(WSDDService.java:233) at org.apache.axis.deployment.wsdd.WSDDDeployment.(WSDDDeployment.java:192) at org.apache.axis.deployment.wsdd.WSDDDocument.(WSDDDocument.java:78) at org.apache.axis.utils.Admin.processWSDD(Admin.java:111) at org.apache.axis.utils.Admin.process(Admin.java:158) at org.apache.axis.utils.Admin.main(Admin.java:300)... I cant figure out, why these errors occur. Is it, because of the errors in the generated wsdl file, or is only something missing in the deployment process? Thanks in advanced for help, gatherer
java.lang.NullPointerException
Hello! I am receiving a java.lang.NullPointerException when I use any webservice (include the EcoHeaders.jws). The root cause is triggered by the getEngineException:org.apache.axis.transport.http.AxisServletBase.getEngineEnvironment (AxisServletBase.java:273)Please, I need some suggestions to solve this error.Tanks
java.lang.NullPointerException when invoking axis2 web service !!!
Hello, When I test the web service by using the code that generated by the wsdl2java tools provided in axis2, it just raised NullPointerException: java.lang.NullPointerException at org.apache.axis2.databinding.utils.ConverterUtil.convertToString(ConverterUtil.java:195) at test.client.TestservicePortStub$EchoRequest.getPullParser(TestservicePortStub.java:264) at test.client.TestservicePortStub.toEnvelope(TestservicePortStub.java:353) at test.client.TestservicePortStub.echo(TestservicePortStub.java:90) at test.client.Client1.main(Client1.java:41) But if I followed the client coding in the userguide sample, it works fine. Is there any problem in the code generator ? The wsdl. http://org.apache.axis2/xsd"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:tns="http://org.apache.axis2/"; targetNamespace="http://org.apache.axis2/";>http://www.w3.org/2001/XMLSchema"; xmlns:ns1="http://org.apache.axis2/xsd"; targetNamespace="http://org.apache.axis2/xsd"; elementFormDefault="qualified" attributeFormDefault="unqualified"> http://schemas.xmlsoap.org/soap/http"; style="document" />http://www.org.apache.axis2"; />http://www.org.apache.axis2"; />http://localhost/axis2/services/testservice"; /> The client code: /** * Client1.java * * Copyright (C) 2006 Eric Chow. All right Reserved. * * This software is the confidential and proprietary information of Eric Chow. */ package test.client; import org.apache.axis2.databinding.ADBBean; /** * Client1.java * * @author Chao Hoi Ka, Eric * */ public class Client1 { /** * */ public Client1() { super(); // TODO Auto-generated constructor stub } /** * @param args */ public static void main(String[] args) { try { TestservicePortStub stub = new TestservicePortStub(); TestservicePortStub.EchoRequest req = (TestservicePortStub.EchoRequest) getTestObject(TestservicePortStub.EchoRequest.class); System.out.println(stub.echo(req)); } catch (Exception e) { e.printStackTrace(); } } public static ADBBean getTestObject(Class type) throws Exception { return (ADBBean) type.newInstance(); } } The code that generate from wsdl2java /** * TestservicePortStub.java * * This file was auto-generated from WSDL * by the Apache Axis2 version: 0.94 Jan 11, 2006 (08:01:58 LKT) */ package test.client; /* * TestservicePortStub java implementation */ public class TestservicePortStub extends org.apache.axis2.client.Stub { // default axis home being null forces the system to pick up the mars from // the axis2 library public static final String AXIS2_HOME = null; protected static org.apache.axis2.description.AxisOperation[] _operations; static { // creating the Service _service = new org.apache.axis2.description.AxisService( "TestservicePort"); // creating the operations org.apache.axis2.description.AxisOperation __operation; _operations = new org.apache.axis2.description.OutInAxisOperation[1]; __operation = new org.apache.axis2.description.OutInAxisOperation(); __operation.setName(new javax.xml.namespace.QName( "http://org.apache.axis2/";, "echo")); _operations[0] = __operation; _service.addOperation(__operation); } public TestservicePortStub( org.apache.axis2.context.ConfigurationContext configurationContext, String targetEndpoint) throws java.lang.Exception { _serviceClient = new org.apache.axis2.client.ServiceClient( configurationContext, _service); _serviceClient.getOptions().setTo( new org.apache.axis2.addressing.EndpointReference( targetEndpoint)); } /** * Default Constructor */ public TestservicePortStub() throws java.lang.Exception { this("http://localhost/axis2/services/testservice";); } /** * Constructor taking the traget endpoint */ public TestservicePortStub(String targetEndpoint) throws
Re: Fw: WSDL2JAVA error: java.lang.NullPointerException in getNewQName
Well, wsdl2java shouldn't throw an NPE... But, you do have a number of errors in your WSDL. 1. When using document style, you should not extend soapenc:Array. Instead you should define arrays using maxOccurs="unbounded". But in your case, you probably just want to define the type as xsd:base64Binary: 2. Since you are sending two attachments, you must define two attachment parts in the message definition (each with a unique name), and two mime parts in your binding. 3. You must remove the namespace attribute from the wsdlsoap:body definition in the wsdl:output definition. AnneOn 10/3/05, Ivan Vignola <[EMAIL PROTECTED]> wrote: Hi, I developed a simple service, document style, with attached files in input message. Creating stubs, wsdl2java throws exception listed below: java.lang.NullPointerException at org.apache.axis.wsdl.toJava.Utils.getNewQName(Utils.java:704) at org.apache.axis.wsdl.toJava.JavaStubWriter.writeOperation(JavaStubWriter.java:779) at org.apache.axis.wsdl.toJava.JavaStubWriter.writeFileBody(JavaStubWriter.java:355) at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:148) at org.apache.axis.wsdl.toJava.JavaBindingWriter.generate(JavaBindingWriter.java:141) at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.java:284) at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:328) at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:82) at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:246) at java.lang.Thread.run(Thread.java:534) That is my wsdl: http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://localhost:8080/axis/services/Somma" xmlns:intf="http://localhost:8080/axis/services/Somma" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://servizi" xmlns:wsdl=" http://schemas.xmlsoap.org/wsdl/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://localhost:8080/axis/services/Somma"> http://servizi" xmlns=" http://www.w3.org/2001/XMLSchema"> http://localhost:8080/axis/services/Somma" xmlns="http://www.w3.org/2001/XMLSchema"> http://schemas.xmlsoap.org/soap/http"/> http://localhost:8080/axis/services/Somma"/> http://localhost:8080/axis/services/Somma"/> What' is my mystake? Thanks in advance Ivan.
Fw: WSDL2JAVA error: java.lang.NullPointerException in getNewQName
Hi, I developed a simple service, document style, with attached files in input message. Creating stubs, wsdl2java throws exception listed below: java.lang.NullPointerException at org.apache.axis.wsdl.toJava.Utils.getNewQName(Utils.java:704) at org.apache.axis.wsdl.toJava.JavaStubWriter.writeOperation(JavaStubWriter.java:779) at org.apache.axis.wsdl.toJava.JavaStubWriter.writeFileBody(JavaStubWriter.java:355) at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:148) at org.apache.axis.wsdl.toJava.JavaBindingWriter.generate(JavaBindingWriter.java:141) at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.java:284) at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:328) at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:82) at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:246) at java.lang.Thread.run(Thread.java:534) That is my wsdl: http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://localhost:8080/axis/services/Somma" xmlns:intf="http://localhost:8080/axis/services/Somma" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://servizi" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://localhost:8080/axis/services/Somma"> http://servizi" xmlns="http://www.w3.org/2001/XMLSchema"> http://localhost:8080/axis/services/Somma" xmlns="http://www.w3.org/2001/XMLSchema"> http://schemas.xmlsoap.org/soap/http"/>http://localhost:8080/axis/services/Somma"/>http://localhost:8080/axis/services/Somma"/> What' is my mystake? Thanks in advance Ivan.
RE: RemoteException: java.lang.NullPointerException
Hi James, I think all you need to do is to include xercesImpl.jar and xml-apis.jar from Xerces in your class path when calling WSDL2java. Yes I also see that axis1.1 and axis1.2 wsdl2java gerenate different sets of proxy classes with the same wsdl. I really don't think that is a good idea on the axis part though as that means you will have to change your application when upgrading to axis1.2 sz -Original Message- From: James Chiu [mailto:[EMAIL PROTECTED] Sent: Thursday, April 28, 2005 10:43 AM To: axis-user@ws.apache.org Subject: RE: RemoteException: java.lang.NullPointerException Instead of upgrading to Axis 1.2, I downgraded Java to 1.4 and the problem is resolved. Do you know any documents that describe version conflicts? Thanks a lot, James -Original Message- From: James Chiu [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 10:45 AM To: axis-user@ws.apache.org Subject: RE: RemoteException: java.lang.NullPointerException I actually started with Axis 1.2. While compiling the client stub classes generated from WSDL2Java, I received a ClassNotFoundException error. However, once I changed to Axis 1.1, the problem is gone. Using the same WSDL file, the client stub classes generated from WSDL2Java are (quite) different. James -Original Message- From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 10:30 AM To: axis-user@ws.apache.org Subject: Re: RemoteException: java.lang.NullPointerException That's your problem -- they don't work well together. I suggest you upgrade to Axis 1.2. On 4/27/05, James Chiu <[EMAIL PROTECTED]> wrote: > Yes, I am using Java 1.5 and Axis 1.1. > > James > > -Original Message- > From: Dominik [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 27, 2005 5:40 AM > To: axis-user@ws.apache.org > Subject: Re: RemoteException: java.lang.NullPointerException > > Are you using Java 1.5 and Axis 1.1 ? > > - Original Message - > From: "James Chiu" <[EMAIL PROTECTED]> > To: > Sent: Wednesday, April 27, 2005 12:30 AM > Subject: RemoteException: java.lang.NullPointerException > > Hi, > > I received a RemoteException: java.lang.NullPointerException after my client > makes a WS method call. I used the WSDL2Java utility to create client stub > classes. The server side is hosted by Microsoft IIS. I turned on the > debugger and found where the exception is thrown as following: > > {http://xml.apache.org/axis/}stackTrace: > java.lang.NullPointerException > at java.util.Hashtable.put(Hashtable.java:396) > at > com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXPar serI > mpl.java:395) > at > org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializatio nCon > textImpl.java:246) > at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538) > at org.apache.axis.Message.getSOAPEnvelope(Message.java:376) > at > org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java :675 > ) > at > org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128) > at > org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j ava: > 71) > at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150) > at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120) > at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180) > at org.apache.axis.client.Call.invokeEngine(Call.java:2564) > at org.apache.axis.client.Call.invoke(Call.java:2553) > at org.apache.axis.client.Call.invoke(Call.java:2248) > at org.apache.axis.client.Call.invoke(Call.java:2171) > at org.apache.axis.client.Call.invoke(Call.java:1691) > at > com.microsoft.schemas.sqlserver._2003._12.reporting.reportingservices.Re port > ingServiceSoapStub.listSecureMethods(ReportingServiceSoapStub.java:1703) > at > responsys.advrpt.msrsclient.MSRSClient.getChildrenList(MSRSClient.java:5 4) > at responsys.advrpt.msrsclient.MSRSClient.main(MSRSClient.java:116) > >
RE: RemoteException: java.lang.NullPointerException
Instead of upgrading to Axis 1.2, I downgraded Java to 1.4 and the problem is resolved. Do you know any documents that describe version conflicts? Thanks a lot, James -Original Message- From: James Chiu [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 10:45 AM To: axis-user@ws.apache.org Subject: RE: RemoteException: java.lang.NullPointerException I actually started with Axis 1.2. While compiling the client stub classes generated from WSDL2Java, I received a ClassNotFoundException error. However, once I changed to Axis 1.1, the problem is gone. Using the same WSDL file, the client stub classes generated from WSDL2Java are (quite) different. James -Original Message- From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 10:30 AM To: axis-user@ws.apache.org Subject: Re: RemoteException: java.lang.NullPointerException That's your problem -- they don't work well together. I suggest you upgrade to Axis 1.2. On 4/27/05, James Chiu <[EMAIL PROTECTED]> wrote: > Yes, I am using Java 1.5 and Axis 1.1. > > James > > -Original Message- > From: Dominik [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 27, 2005 5:40 AM > To: axis-user@ws.apache.org > Subject: Re: RemoteException: java.lang.NullPointerException > > Are you using Java 1.5 and Axis 1.1 ? > > - Original Message - > From: "James Chiu" <[EMAIL PROTECTED]> > To: > Sent: Wednesday, April 27, 2005 12:30 AM > Subject: RemoteException: java.lang.NullPointerException > > Hi, > > I received a RemoteException: java.lang.NullPointerException after my client > makes a WS method call. I used the WSDL2Java utility to create client stub > classes. The server side is hosted by Microsoft IIS. I turned on the > debugger and found where the exception is thrown as following: > > {http://xml.apache.org/axis/}stackTrace: > java.lang.NullPointerException > at java.util.Hashtable.put(Hashtable.java:396) > at > com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserI > mpl.java:395) > at > org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon > textImpl.java:246) > at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538) > at org.apache.axis.Message.getSOAPEnvelope(Message.java:376) > at > org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:675 > ) > at > org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128) > at > org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java: > 71) > at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150) > at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120) > at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180) > at org.apache.axis.client.Call.invokeEngine(Call.java:2564) > at org.apache.axis.client.Call.invoke(Call.java:2553) > at org.apache.axis.client.Call.invoke(Call.java:2248) > at org.apache.axis.client.Call.invoke(Call.java:2171) > at org.apache.axis.client.Call.invoke(Call.java:1691) > at > com.microsoft.schemas.sqlserver._2003._12.reporting.reportingservices.Report > ingServiceSoapStub.listSecureMethods(ReportingServiceSoapStub.java:1703) > at > responsys.advrpt.msrsclient.MSRSClient.getChildrenList(MSRSClient.java:54) > at responsys.advrpt.msrsclient.MSRSClient.main(MSRSClient.java:116) > >
java.lang.NullPointerException
I don't get no more CastClassException (I put the libs of Axis on the common/lib of tomcat), but instead I got a java.lang.NullPointerException :( Here is the error: java.lang.NullPointerException at org.apache.axis.client.Service.getEngineConfiguration(Service.java:803) at org.apache.axis.client.Service.getAxisClient(Service.java:104) at org.apache.axis.client.Service.(Service.java:113) at bvg.axis.services.Echo.EchoServiceLocator.(EchoServiceLocator.java:12) at com.jcms.Axis.Webservices.Test(Webservices.java:59) at jaas.module.SampleLoginModule.login(SampleLoginModule.java:210) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at javax.security.auth.login.LoginContext.invoke(LoginContext.java:675) at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607) at javax.security.auth.login.LoginContext.login(LoginContext.java:534) at org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:316) at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:229) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) Ideas? Thanks people.. Bruno Gonçalves wrote: Humm.. It seems that there are conflict with the libs of tomcat, can it be possible? Because I can invoke the stubs without not using a webAplication in Tomcat, and they work! Now, what's the problematic lib? :( In my project lib I have this libs: SampleAcn.jar SampleLM.jar <cid:[EMAIL PROTECTED]> WSEcho.jar <cid:[EMAIL PROTECTED]> axis-ant.jar <cid:[EMAIL PROTECTED]> axis.jar <cid:[EMAIL PROTECTED]> commons-beanutils.jar <cid:[EMAIL PROTECTED]> commons-collections.jar <cid:[EMAIL PROTECTED]> commons-dbcp.jar <cid:[EMAIL PROTECTED]> commons-digester.jar <cid:[EMAIL PROTECTED]> commons-discovery.jar <cid:[EMAIL PROTECTED]> commons-fileupload.jar <cid:[EMAIL PROTECTED]> commons-lang.jar <cid:[EMAIL PROTECTED]> commons-logging.jar <cid:[EMAIL PROTECTED]> commons-pool.jar <cid:[EMAIL PROTECTED]> commons-resources.jar <cid:[EMAIL PROTECTED]> commons-validator.jar <cid:[EMAIL PROTECTED]> jakarta-oro.jar <cid:[EMAIL PROTECTED]> jaxrpc.jar <cid:[EMAIL PROTECTED]> jdogenie.jar <cid:[EMAIL PROTECTED]> jstl.jar <cid:[EMAIL PROTECTED]> jta.jar <cid:[EMAIL PROTECTED]> log4j-1.2.8.jar <cid:[EMAIL PROTECTED]> msbase.jar <cid:[EMAIL PROTECTED]> mssqlserver.jar <cid:[EMAIL PROTECTED]> msutil.jar <cid:[EMAIL PROTECTED]> openaccess.jar <cid:[EMAIL PROTECTED]> saaj.jar <cid:[EMAIL PROTECTED]> soap.jar <cid:[EMAIL PROTECTED]> standard.jar <cid:[EMAIL PROTECTED]> struts.jar <cid:[EMAIL PROTECTED]> wsdl4j.jar <cid:[EMAIL PROTECTED]> in Tomcat (5.0.28) libs: ant-launcher.jar <cid:[EMAIL PROTECTED]> ant.jar <cid:[EMAIL PROTECTED]> commons-collections-3.1.jar <cid:[EMAIL PROTECTED]> commons-dbcp-1.2.1.jar <cid:[EMAIL PROTECTED]> commons-el.jar
RE: RemoteException: java.lang.NullPointerException
I actually started with Axis 1.2. While compiling the client stub classes generated from WSDL2Java, I received a ClassNotFoundException error. However, once I changed to Axis 1.1, the problem is gone. Using the same WSDL file, the client stub classes generated from WSDL2Java are (quite) different. James -Original Message- From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 10:30 AM To: axis-user@ws.apache.org Subject: Re: RemoteException: java.lang.NullPointerException That's your problem -- they don't work well together. I suggest you upgrade to Axis 1.2. On 4/27/05, James Chiu <[EMAIL PROTECTED]> wrote: > Yes, I am using Java 1.5 and Axis 1.1. > > James > > -Original Message- > From: Dominik [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 27, 2005 5:40 AM > To: axis-user@ws.apache.org > Subject: Re: RemoteException: java.lang.NullPointerException > > Are you using Java 1.5 and Axis 1.1 ? > > - Original Message - > From: "James Chiu" <[EMAIL PROTECTED]> > To: > Sent: Wednesday, April 27, 2005 12:30 AM > Subject: RemoteException: java.lang.NullPointerException > > Hi, > > I received a RemoteException: java.lang.NullPointerException after my client > makes a WS method call. I used the WSDL2Java utility to create client stub > classes. The server side is hosted by Microsoft IIS. I turned on the > debugger and found where the exception is thrown as following: > > {http://xml.apache.org/axis/}stackTrace: > java.lang.NullPointerException > at java.util.Hashtable.put(Hashtable.java:396) > at > com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserI > mpl.java:395) > at > org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon > textImpl.java:246) > at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538) > at org.apache.axis.Message.getSOAPEnvelope(Message.java:376) > at > org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:675 > ) > at > org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128) > at > org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java: > 71) > at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150) > at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120) > at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180) > at org.apache.axis.client.Call.invokeEngine(Call.java:2564) > at org.apache.axis.client.Call.invoke(Call.java:2553) > at org.apache.axis.client.Call.invoke(Call.java:2248) > at org.apache.axis.client.Call.invoke(Call.java:2171) > at org.apache.axis.client.Call.invoke(Call.java:1691) > at > com.microsoft.schemas.sqlserver._2003._12.reporting.reportingservices.Report > ingServiceSoapStub.listSecureMethods(ReportingServiceSoapStub.java:1703) > at > responsys.advrpt.msrsclient.MSRSClient.getChildrenList(MSRSClient.java:54) > at responsys.advrpt.msrsclient.MSRSClient.main(MSRSClient.java:116) > >
Re: RemoteException: java.lang.NullPointerException
That's your problem -- they don't work well together. I suggest you upgrade to Axis 1.2. On 4/27/05, James Chiu <[EMAIL PROTECTED]> wrote: > Yes, I am using Java 1.5 and Axis 1.1. > > James > > -Original Message- > From: Dominik [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 27, 2005 5:40 AM > To: axis-user@ws.apache.org > Subject: Re: RemoteException: java.lang.NullPointerException > > Are you using Java 1.5 and Axis 1.1 ? > > - Original Message - > From: "James Chiu" <[EMAIL PROTECTED]> > To: > Sent: Wednesday, April 27, 2005 12:30 AM > Subject: RemoteException: java.lang.NullPointerException > > Hi, > > I received a RemoteException: java.lang.NullPointerException after my client > makes a WS method call. I used the WSDL2Java utility to create client stub > classes. The server side is hosted by Microsoft IIS. I turned on the > debugger and found where the exception is thrown as following: > > {http://xml.apache.org/axis/}stackTrace: > java.lang.NullPointerException > at java.util.Hashtable.put(Hashtable.java:396) > at > com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserI > mpl.java:395) > at > org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon > textImpl.java:246) > at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538) > at org.apache.axis.Message.getSOAPEnvelope(Message.java:376) > at > org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:675 > ) > at > org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128) > at > org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java: > 71) > at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150) > at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120) > at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180) > at org.apache.axis.client.Call.invokeEngine(Call.java:2564) > at org.apache.axis.client.Call.invoke(Call.java:2553) > at org.apache.axis.client.Call.invoke(Call.java:2248) > at org.apache.axis.client.Call.invoke(Call.java:2171) > at org.apache.axis.client.Call.invoke(Call.java:1691) > at > com.microsoft.schemas.sqlserver._2003._12.reporting.reportingservices.Report > ingServiceSoapStub.listSecureMethods(ReportingServiceSoapStub.java:1703) > at > responsys.advrpt.msrsclient.MSRSClient.getChildrenList(MSRSClient.java:54) > at responsys.advrpt.msrsclient.MSRSClient.main(MSRSClient.java:116) > >
RE: RemoteException: java.lang.NullPointerException
Yes, I am using Java 1.5 and Axis 1.1. James -Original Message- From: Dominik [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 5:40 AM To: axis-user@ws.apache.org Subject: Re: RemoteException: java.lang.NullPointerException Are you using Java 1.5 and Axis 1.1 ? - Original Message - From: "James Chiu" <[EMAIL PROTECTED]> To: Sent: Wednesday, April 27, 2005 12:30 AM Subject: RemoteException: java.lang.NullPointerException Hi, I received a RemoteException: java.lang.NullPointerException after my client makes a WS method call. I used the WSDL2Java utility to create client stub classes. The server side is hosted by Microsoft IIS. I turned on the debugger and found where the exception is thrown as following: {http://xml.apache.org/axis/}stackTrace: java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:396) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserI mpl.java:395) at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon textImpl.java:246) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538) at org.apache.axis.Message.getSOAPEnvelope(Message.java:376) at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:675 ) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java: 71) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180) at org.apache.axis.client.Call.invokeEngine(Call.java:2564) at org.apache.axis.client.Call.invoke(Call.java:2553) at org.apache.axis.client.Call.invoke(Call.java:2248) at org.apache.axis.client.Call.invoke(Call.java:2171) at org.apache.axis.client.Call.invoke(Call.java:1691) at com.microsoft.schemas.sqlserver._2003._12.reporting.reportingservices.Report ingServiceSoapStub.listSecureMethods(ReportingServiceSoapStub.java:1703) at responsys.advrpt.msrsclient.MSRSClient.getChildrenList(MSRSClient.java:54) at responsys.advrpt.msrsclient.MSRSClient.main(MSRSClient.java:116)
Re: RemoteException: java.lang.NullPointerException
Are you using Java 1.5 and Axis 1.1 ? - Original Message - From: "James Chiu" <[EMAIL PROTECTED]> To: Sent: Wednesday, April 27, 2005 12:30 AM Subject: RemoteException: java.lang.NullPointerException Hi, I received a RemoteException: java.lang.NullPointerException after my client makes a WS method call. I used the WSDL2Java utility to create client stub classes. The server side is hosted by Microsoft IIS. I turned on the debugger and found where the exception is thrown as following: {http://xml.apache.org/axis/}stackTrace: java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:396) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserI mpl.java:395) at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon textImpl.java:246) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538) at org.apache.axis.Message.getSOAPEnvelope(Message.java:376) at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:675 ) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java: 71) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180) at org.apache.axis.client.Call.invokeEngine(Call.java:2564) at org.apache.axis.client.Call.invoke(Call.java:2553) at org.apache.axis.client.Call.invoke(Call.java:2248) at org.apache.axis.client.Call.invoke(Call.java:2171) at org.apache.axis.client.Call.invoke(Call.java:1691) at com.microsoft.schemas.sqlserver._2003._12.reporting.reportingservices.Report ingServiceSoapStub.listSecureMethods(ReportingServiceSoapStub.java:1703) at responsys.advrpt.msrsclient.MSRSClient.getChildrenList(MSRSClient.java:54) at responsys.advrpt.msrsclient.MSRSClient.main(MSRSClient.java:116)
RemoteException: java.lang.NullPointerException
Hi, I received a RemoteException: java.lang.NullPointerException after my client makes a WS method call. I used the WSDL2Java utility to create client stub classes. The server side is hosted by Microsoft IIS. I turned on the debugger and found where the exception is thrown as following: {http://xml.apache.org/axis/}stackTrace: java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:396) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserI mpl.java:395) at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon textImpl.java:246) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538) at org.apache.axis.Message.getSOAPEnvelope(Message.java:376) at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:675 ) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java: 71) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180) at org.apache.axis.client.Call.invokeEngine(Call.java:2564) at org.apache.axis.client.Call.invoke(Call.java:2553) at org.apache.axis.client.Call.invoke(Call.java:2248) at org.apache.axis.client.Call.invoke(Call.java:2171) at org.apache.axis.client.Call.invoke(Call.java:1691) at com.microsoft.schemas.sqlserver._2003._12.reporting.reportingservices.Report ingServiceSoapStub.listSecureMethods(ReportingServiceSoapStub.java:1703) at responsys.advrpt.msrsclient.MSRSClient.getChildrenList(MSRSClient.java:54) at responsys.advrpt.msrsclient.MSRSClient.main(MSRSClient.java:116) I also checked the XML sent and the XML received. The debugging message shows that the HTTP content of the XML sent is null and the XML received is nothing as following: - XML sent: - --- - --- - POST /ReportServer/ReportService.asmx HTTP/1.0 Content-Type: text/xml; charset=utf-8 Accept: application/soap+xml, application/dime, multipart/related, text/* User-Agent: Axis/1.1 Host: testshabd Cache-Control: no-cache Pragma: no-cache SOAPAction: "http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices/ ListSecureMethods" Content-Length: 373 Null . XML received: Do you know what could be a problem? Thanks a lot, James
Java.Lang.NullPointerException
Hello. I am a newbie in axis and trying to execute the axis samples. Unfortunately every time I am trying to execute the samples/stock demo I get this: C:\axis-1_1\samples\stock>java -cp %AXISCLASSPATH% org.apache.axis.client.AdminC lient -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd Processing file deploy.wsdd Exception:: java.lang.NullPointerException Can anybody help me? I am using jdk1_5_02 and my classpath is C:\axis-1_1\samples\stock>set axisclasspath AXISCLASSPATH=C:\axis-1_1\lib\axis.jar;C:\axis-1_1\lib\commons-discovery.jar;C:\ axis-1_1\lib\commons-logging.jar;C:\axis-1_1\lib\jaxrpc.jar;C:\axis-1_1\lib\saaj .jar;C:\axis-1_1\lib\log4j-1.2.8.jar;C:\axis-1_1\lib\xml-apis.jar;C:\axis-1_1\li b\xercesImpl.jar;C:\axis-1_1\libwsdl4j.jar;C:\axis-1_1\lib\xmlsec-1.2.1;C:\axis- 1_1\lib\junit.jar;C:\axis-1_1\lib\src.jar Thanks in advance.. Nikolaos Diakos