axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "robert lazarski" <robertlazar...@gmail.com>
Subject Re: [Axis2]java.lang.IllegalStateException when calling salesforce.com api methods
Date Wed, 30 Aug 2006 20:07:24 GMT
There was some bugs with xmlbeans in the 1.0 that have been fixed
already. Can you try a nightly and if you have problems still, file a
jira and upload you wsdl?

http://people.apache.org/dist/axis2/nightly/

HTH,
Robert
http://www.braziloutsource.com/

On 8/30/06, Sidharth Kuruvila <sidharth.kuruvila@gmail.com> wrote:
> Following the advice on
> http://www.pocketsoap.com/weblog/2006/05/1623.html on
> getting the salesforce.com apis to work with axis2
>
> I generated the source using
> WSDL2Java.bat -uri enterprise.wsdl  -d xmlbeans
>
> The method for Logging in works fine but when it comes to executing any
> other method
>
> I get an IllegalStateException
>
> org.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
> org.apache.axis2.SforceServiceStub.toOM(SforceServiceStub.java:5258)
>         at
> org.apache.axis2.SforceServiceStub.toEnvelope(SforceServiceStub.java:5269)
>         at
> org.apache.axis2.SforceServiceStub.describeGlobal(SforceServiceStub.java:3295)
>         at SforceDataReader.main(SforceDataReader.java :46)
> 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)
>         ... 6 more
>
> Looking at the source for xmlbeans
> Jsr173$XMLStreamReaderForString.next will always throw the
> exception.
>
>
> --
> I am but a man.

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message