[ 
http://jira.codehaus.org/browse/JIBX-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=265947#action_265947
 ] 

Archie Cobbs commented on JIBX-438:
-----------------------------------

I finally figured out the problem. I had a mapping like this:
{noformat}
    <include path="bar.xml"/>
    <mapping abstract="true" type-name="foo" class="org.dellroad.Foo">
        <structure map-as="foo"/>   <!-- should be bar instead of foo -->
        ...
    </mapping>
{noformat}
so the mapping was trying to include itself. Obviously wrong, but it took a 
long time to find that typo. A better error message would have helped.


> StackOverflowError during binding
> ---------------------------------
>
>                 Key: JIBX-438
>                 URL: http://jira.codehaus.org/browse/JIBX-438
>             Project: JiBX
>          Issue Type: Bug
>          Components: core
>    Affects Versions: JiBX 1.2.3
>            Reporter: Archie Cobbs
>
> Attempting to bind gives this:
> {noformat}
>      [bind] java.lang.StackOverflowError
>      [bind]   at 
> org.apache.bcel.generic.LocalVariableGen.<init>(LocalVariableGen.java:91)
>      [bind]   at 
> org.apache.bcel.generic.MethodGen.addLocalVariable(MethodGen.java:293)
>      [bind]   at 
> org.apache.bcel.generic.MethodGen.addLocalVariable(MethodGen.java:324)
>      [bind]   at org.apache.bcel.generic.MethodGen.<init>(MethodGen.java:165)
>      [bind]   at 
> org.jibx.binding.classes.MethodBuilder.<init>(MethodBuilder.java:166)
>      [bind]   at 
> org.jibx.binding.classes.ExceptionMethodBuilder.<init>(ExceptionMethodBuilder.java:59)
>      [bind]   at 
> org.jibx.binding.classes.ContextMethodBuilder.<init>(ContextMethodBuilder.java:78)
>      [bind]   at 
> org.jibx.binding.def.ObjectBinding.genContentPresenceMethod(ObjectBinding.java:818)
>      [bind]   at 
> org.jibx.binding.def.ObjectBinding.genContentPresentTest(ObjectBinding.java:1024)
>      [bind]   at 
> org.jibx.binding.def.PassThroughComponent.genContentPresentTest(PassThroughComponent.java:106)
>      [bind]   at 
> org.jibx.binding.def.PassThroughComponent.genContentPresentTest(PassThroughComponent.java:106)
>      [bind]   at 
> org.jibx.binding.def.NestedBase.genContentPresentTest(NestedBase.java:202)
>      [bind]   at 
> org.jibx.binding.def.ObjectBinding.genContentPresenceMethod(ObjectBinding.java:828)
>      [bind]   at 
> org.jibx.binding.def.ObjectBinding.genContentPresentTest(ObjectBinding.java:1024)
>      [bind]   at 
> org.jibx.binding.def.PassThroughComponent.genContentPresentTest(PassThroughComponent.java:106)
>      [bind]   at 
> org.jibx.binding.def.PassThroughComponent.genContentPresentTest(PassThroughComponent.java:106)
>      [bind]   at 
> org.jibx.binding.def.NestedBase.genContentPresentTest(NestedBase.java:202)
>      [bind]   at 
> org.jibx.binding.def.ObjectBinding.genContentPresenceMethod(ObjectBinding.java:828)
>      [bind]   at 
> org.jibx.binding.def.ObjectBinding.genContentPresentTest(ObjectBinding.java:1024)
>      [bind]   at 
> org.jibx.binding.def.PassThroughComponent.genContentPresentTest(PassThroughComponent.java:106)
>      [bind]   at 
> org.jibx.binding.def.PassThroughComponent.genContentPresentTest(PassThroughComponent.java:106)
>      [bind]   at 
> org.jibx.binding.def.NestedBase.genContentPresentTest(NestedBase.java:202)
>                 ... repeat ad naseum ...
> {noformat}
> I'm sure there is some error in my binding files, but unfortunately there are 
> 81 files I'm dealing with so without a real error message there's no way for 
> me to figure out what the real problem is.
> Please fix the binding logic to detect infinite loops and return a reasonable 
> error message.
> Thanks.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
jibx-devs mailing list
jibx-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to