I made further progress by fixing my classpath.
I am running from a TestNG test class.

Now, while trying to run the Axis2 client, in the test, I am seeing
this exception thrown with an IllegalStateException:

Points Calculation, firing...
Caught Throwable exception in runPointsCalculator:
org.apache.axiom.om.OMException:
java.lang.IllegalStateExceptionorg.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:294)

This is the code in my client:

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");

Would someone see that I am doing something wrong or where I might
start looking?

Regards,
--
Jim

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to