It looks like you're probably using the old alpha version of Xsd2Jibx.
Try the current Beta 0.2 along with the JiBX RC0 and it should probably
work. If it doesn't, file a bug in Jira with the original schema attached.
- Dennis
Jian Fang wrote:
>Hi,
>
>I like to implement a benchmark to pass a link list to
>a web service using Jibx/Jibxsoap. I use the xsd2jibx
>tools and
>first create the java code from a schema, compile
>them, and then run jibx-bind.sh, but get the
>following error:
>
>Exception in thread "main"
>java.lang.StackOverflowError
>
>The java code is as follows:
>
>package wstest;
>
>echolist.java
>
>public class EchoList {
> protected TestNode list;
>
>
> public EchoList() {
> }
>
> public TestNode getList() {
> return this.list;
> }
>
> public void setList(TestNode list) {
> this.list = list;
> }
>
> public EchoList(TestNode list) {
> this.list = list;
> }
>
>}
>
>echolistresponse.java
>
>package wstest;
>
>public class EchoListResponse {
> protected TestNode echoListResult;
>
>
> public EchoListResponse() {
> }
>
> public TestNode getEchoListResult() {
> return this.echoListResult;
> }
>
> public void setEchoListResult(TestNode
>echoListResult) {
> this.echoListResult = echoListResult;
> }
>
> public EchoListResponse(TestNode echoListResult) {
> this.echoListResult = echoListResult;
> }
>
>}
>
>testnode.java
>
>package wstest;
>
>public class TestNode extends TestStruct {
> protected TestNode next;
>
> public TestNode(int i, float f){
> this.i = i;
> this.f = f;
> }
>
> public TestNode(int i, float f, java.lang.String s){
> this.i = i;
> this.f = f;
> this.s = s;
> }
>
> public TestNode(int i, float f, java.lang.String s,
>TestNode next) {
> this.i = i;
> this.f = f;
> this.s = s;
> this.next = next;
> }
>
> public TestNode getNext() {
> return this.next;
> }
>
> public void setNext(TestNode next) {
> this.next = next;
> }
>
> protected TestNode() {
> }
>
>}
>
>The part of the mapping file is as follow:
>
> <mapping name="EchoList" class="wstest.EchoList">
> <namespace uri="http://localhost/wstest"
>default="elements"/>
> <structure name="list" field="list"
>usage="optional" using="wstest.TestNode"></structure>
> </mapping>
> <mapping name="wstest.TestNode"
>class="wstest.TestNode" label="wstest.TestNode">
> <namespace uri="http://localhost/wstest"
>default="elements"/>
> <value style="element" name="i" field="i"
>usage="required"/>
> <value style="element" name="f" field="f"
>usage="required"/>
> <value style="element" name="s" field="s"
>usage="optional"/>
> <structure name="Next" field="next"
>usage="optional" using="wstest.TestNode"></structure>
> </mapping>
> <mapping name="EchoListResponse"
>class="wstest.EchoListResponse">
> <namespace uri="http://localhost/wstest"
>default="elements"/>
> <structure name="EchoListResult"
>field="echoListResult" usage="optional"
>using="wstest.TestNode"></structure>
> </mapping>
>
>Could anyone helps me to figure out what the problem
>is with Jibx? Thanks in advance.
>
>
>
>
>__________________________________
>Do you Yahoo!?
>Make Yahoo! your home page
>http://www.yahoo.com/r/hs
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: New Crystal Reports XI.
>Version 11 adds new functionality designed to reduce time involved in
>creating, integrating, and deploying reporting solutions. Free runtime info,
>new features, or free trial, at: http://www.businessobjects.com/devxi/728
>_______________________________________________
>jibx-users mailing list
>jibx-users@...
>https://lists.sourceforge.net/lists/listinfo/jibx-users
>
>
>
|