Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 36090 invoked from network); 26 Jun 2006 19:10:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Jun 2006 19:10:08 -0000 Received: (qmail 84788 invoked by uid 500); 26 Jun 2006 19:10:05 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 84756 invoked by uid 500); 26 Jun 2006 19:10:03 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 84745 invoked by uid 99); 26 Jun 2006 19:10:03 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jun 2006 12:10:03 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jun 2006 12:10:02 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CE1D6410007 for ; Mon, 26 Jun 2006 19:08:29 +0000 (GMT) Message-ID: <13816506.1151348909814.JavaMail.jira@brutus> Date: Mon, 26 Jun 2006 19:08:29 +0000 (GMT+00:00) From: "James Bender (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Created: (AXIS2-853) When invoking an operation on the stub, an java.lang.IllegalStateException is thrown MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N When invoking an operation on the stub, an java.lang.IllegalStateException is thrown ------------------------------------------------------------------------------------ Key: AXIS2-853 URL: http://issues.apache.org/jira/browse/AXIS2-853 Project: Apache Axis 2.0 (Axis2) Type: Bug Versions: 1.0 Environment: Windows 2000, Eclipse 3.1.2, and Tomcat 5.5, and Axis2 Std 1.0 daily build for 23 June 2006 Reporter: James Bender Upon invoking an operation on the generated stub, and IllegalStateException is thrown: Points Calculation, firing... Caught Throwable exception in runPointsCalculator: org.apache.axiom.om.OMException: java.lang.Illega lStateExceptionorg.apache.axiom.om.OMException: java.lang.IllegalStateException at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206) at org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:144) at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:322) at testexamples.types.PointsCalculatorStub.toOM(PointsCalculatorStub.java:213) at testexamples.types.PointsCalculatorStub.toEnvelope(PointsCalculatorStub.java:230) at testexamples.types.PointsCalculatorStub.calculatePoints(PointsCalculatorStub.java:105) at com.recursionsw.ve.tools.webservices.TestWebServicesEndToEndTestNG.runPointsCalculator(TestWebSe rvicesEndToEndTestNG.java:299) at com.recursionsw.ve.tools.webservices.TestWebServicesEndToEndTestNG.testGeneratorEndToEnd(TestWeb ServicesEndToEndTestNG.java:155) 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.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:536) at org.testng.internal.Invoker.invokeMethod(Invoker.java:395) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:672) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:92) at org.testng.TestRunner.privateRun(TestRunner.java:624) at org.testng.TestRunner.run(TestRunner.java:515) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221) at org.testng.SuiteRunner.run(SuiteRunner.java:147) at org.testng.eclipse.runner.RemoteTestNG.run(RemoteTestNG.java:98) at org.testng.eclipse.runner.RemoteTestNG.main(RemoteTestNG.java:138) Caused by: java.lang.IllegalStateException at org.apache.xmlbeans.impl.store.Jsr173$XMLStreamReaderForString.next(Jsr173.java:1110) at org.apache.xmlbeans.impl.store.Jsr173$SyncedJsr173.next(Jsr173.java:1138) at org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:68) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:123) ... 21 more This is the code where the operation is invoked: System.out.println("Points Calculation, firing..."); PointsCalculatorStub stub = new PointsCalculatorStub(null, "http://localhost:8090/axis2/services/PointsCalculator"); CalculatePointsDocument calculatePointsDocument = CalculatePointsDocument.Factory .newInstance(); FoodDescription foodDescription = FoodDescription.Factory.newInstance(); foodDescription.setCalories(130); foodDescription.setFatGrams(6); foodDescription.setFiberGrams(1); CalculatePointsResponseDocument returnTranslationDocument = stub.calculatePoints(calculatePointsDocument); CalculatePointsResponse responseString = returnTranslationDocument.getCalculatePointsResponse(); System.out.println("Client returned"); System.out.println("PointsCalculator: "+responseString); System.out.println("PointsCalculation completed!!!"); -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org