You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by craig w <co...@gmail.com> on 2007/04/26 04:35:47 UTC
Exception in thread "main" org.apache.axiom.om.OMException: java.lang.IllegalStateException
So I have generated java code from some WSDL's. In a test class I have a
main method where I do...
MyServiceStub stub = new MyServiceStub();
UserInfoDocument d = UserInfoDocument.Factory.newInstance();
UserInfo u = d.addUserInfo();
u.setName("Bob");
u.setDOB("1-1-1956");
stub.getUserRecords(d);
I get this error:
Exception in thread "main" *org.apache.axiom.om.OMException*: *
java.lang.IllegalStateException*
*at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(**StAXOMBuilder.java
:194**)*
*at org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(**
OMDocumentImpl.java:138**)*
*at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(**
StAXOMBuilder.java:311**)*
*at blah.MyServiceStub.toOM(**MyServiceStub.java:1586**)*
*at blah.MyServiceStub.GetUserRecords(**MyServiceStub.java:403**)*
*at blah.Test.main(**Test.java:91)*
Any suggestions?
*
*