Error running binding compiler: Expected object reference on stack, found long
------------------------------------------------------------------------------

                 Key: JIBX-168
                 URL: http://jira.codehaus.org/browse/JIBX-168
             Project: JiBX
          Issue Type: Bug
          Components: core
         Environment: Windows XP, java 1.5 using Ant as build tool.
            Reporter: Grant Currey
         Attachments: WorkItem.xml

Please see the error report below when trying to carry out a compile.  I have 
uploaded the mapping file.  Everything was running fine, then this error 
started to occur.  I thought it may be related to the use of abstract and 
extend, but, i removed these from my mapping and the error was still occuring.

On further digging, i noticed when i removed the value node in the mapping with 
the name "id", it worked again.  ID is a long field in the WorkItem class.

Error running binding compiler


*** Error during code generation for file 
'C:\development\projects\hub\main\etc\application\binding\WorkItem.xml' - 
please enter a bug report for this error in Jira if the problem is not listed 
as fixed on the online status page ***


java.lang.IllegalStateException: Internal error: Expected object reference on 
stack , found long

 full stack:

  0: org.jibx.runtime.impl.MarshallingContext

  1: long


        at 
org.jibx.binding.classes.MethodBuilder.verifyStackObject(MethodBuilder.java:551)
        at 
org.jibx.binding.classes.MethodBuilder.appendIFNONNULL(MethodBuilder.java:620)
        at org.jibx.binding.def.ValueChild.genMarshal(ValueChild.java:622)
        at 
org.jibx.binding.def.ValueChild.genContentMarshal(ValueChild.java:818)
        at 
org.jibx.binding.def.NestedStructure.genContentMarshal(NestedStructure.java:355)
        at 
org.jibx.binding.def.ObjectBinding.genMarshalContentCall(ObjectBinding.java:878)
        at 
org.jibx.binding.def.ObjectBinding.genContentMarshal(ObjectBinding.java:948)
        at 
org.jibx.binding.def.MappingDefinition.generateMarshalImplementation(MappingDefinition.java:797)
        at 
org.jibx.binding.def.MappingDefinition.generateCode(MappingDefinition.java:856)
        at 
org.jibx.binding.def.DefinitionContext.generateCode(DefinitionContext.java:669)
        at 
org.jibx.binding.def.BindingDefinition.generateCode(BindingDefinition.java:661)
        at org.jibx.binding.Compile.compile(Compile.java:305)
        at org.jibx.binding.ant.CompileTask.execute(CompileTask.java:248)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.Main.runBuild(Main.java:698)
        at org.apache.tools.ant.Main.startAnt(Main.java:199)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:17)


C:\development\projects\hub\main\build.xml:206: JiBXException in JiBX binding 
compilation
        at org.jibx.binding.ant.CompileTask.execute(CompileTask.java:252)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.Main.runBuild(Main.java:698)
        at org.apache.tools.ant.Main.startAnt(Main.java:199)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:17)
Caused by: org.jibx.runtime.JiBXException: Error running binding compiler
        at org.jibx.binding.Compile.compile(Compile.java:324)
        at org.jibx.binding.ant.CompileTask.execute(CompileTask.java:248)
        ... 22 more
--- Nested Exception ---
Error running binding compiler

-- 
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

        

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to