Hi all,

Im working on a binding problem right now that seems like it should be very simple, 
but having some newbie types of problems.

What I have, is the same type of object created from different element names.  So, the 
XML looks like this:
<Request>
 <RequestList>
   <RequestType> ... </RequestType>
   <RequestData> ... </RequestData>
 </RequestList>
 <AnotherRequestList>
   <RequestType> ... </RequestType>
   <RequestData> ... </RequestData>
 </AnotherRequestList>
</Request>

The objects created from RequestList and AnotherRequestList should be the same.

When I create the binding file with the RequestList as a structure, and a label, then 
add a 'using' attribute to the 'AnotherRequestList' all works fine.

If I create a <mapping> for the RequestList, and then try to map the structures to it, 
I get:
java.lang.IllegalStateException: Internal error - no instance creation
       at
org.jibx.binding.def.NestedBase.genNewInstance(NestedBase.java:215)
       at
org.jibx.binding.def.ComponentProperty.genAttributeUnmarshal(ComponentProperty.java:94)
       at
org.jibx.binding.def.PassThroughComponent.genAttributeUnmarshal(PassThroughComponent.java:92)
       at
org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper.java:186)
       at
org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStructure.java:148)
       at
org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBinding.java:480)
       at
org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.java:586)
       at
org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrapper.java:210)
       at
org.jibx.binding.def.MappingDefinition.generateCode(MappingDefinition.java:605)
       at
org.jibx.binding.def.DefinitionContext.generateCode(DefinitionContext.java:591)
       at
org.jibx.binding.def.BindingDefinition.generateCode(BindingDefinition.java:454)
       at org.jibx.binding.Compile.compile(Compile.java:365)
       at org.jibx.binding.ant.CompileTask.execute(CompileTask.java:160)
       at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
       at org.apache.tools.ant.Task.perform(Task.java:341)
       at org.apache.tools.ant.Target.execute(Target.java:309)
       at org.apache.tools.ant.Target.performTasks(Target.java:336)
       at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
       at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
       at org.apache.tools.ant.Main.runBuild(Main.java:609)
       at org.apache.tools.ant.Main.start(Main.java:196)
       at org.apache.tools.ant.Main.main(Main.java:235)

any help would be very much appreciated!

-chris




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to