Hi Leif,
I worked through the implications of this error and added checking
during validation to catch the problem case. I also fixed the "line 0"
problem. :-)
- Dennis
Leif Stainsby wrote:
Hi,
I'm reporting this because the error message said I should ;-). I don't
have a particular issue to resolve, I'm working through most of the
issues that the binding compiler reports. It looks like the intent is
to migrate this type of condition into the validation phase.
Kudos for the generally excellent error reporting. Though I do wonder
what the warning on line 4 is trying to tell me... I haven't been able
to find line 0. ;-0
...Leif
------------------------------------------------------------
[bind] Using the following binding paths:
[bind] cap-bindings_FULL_WRS_Cap-doc.xml
[bind] Running binding compiler version jibx-rc1
[bind] Warning: Undefined attribute class; on structure element at
(line 0,
col 0)
[bind] Error running binding compiler
[bind]
[bind] *** Error during code generation - please report this error
on the J
iBX users list so that the condition can be caught during validation ***
[bind] org.jibx.runtime.JiBXException: Test required for optional
output st
ructure at tag "collection"(line 172, col 102, in
cap-bindings_FULL_WRS_Cap-doc.
xml)
[bind] at
org.jibx.runtime.impl.UnmarshallingContext.throwStartTagExcep
tion(UnmarshallingContext.java:5351)
[bind] at
org.jibx.binding.def.BindingBuilder.unmarshalStructure(Bindin
gBuilder.java:1027)
[bind] at
org.jibx.binding.def.BindingBuilder.unmarshalStructureChildre
n(BindingBuilder.java:824)
[bind] at
org.jibx.binding.def.BindingBuilder.unmarshalStructure(Bindin
gBuilder.java:1268)
[bind] at
org.jibx.binding.def.BindingBuilder.unmarshalStructureChildre
n(BindingBuilder.java:822)
[bind] at
org.jibx.binding.def.BindingBuilder.unmarshalMapping(BindingB
uilder.java:1544)
[bind] at
org.jibx.binding.def.BindingBuilder.unmarshalMappings(Binding
Builder.java:950)
[bind] at
org.jibx.binding.def.BindingBuilder.unmarshalBindingDefinitio
n(BindingBuilder.java:1730)
[bind] at
org.jibx.binding.Utility.loadBinding(Utility.java:308)
[bind] at
org.jibx.binding.Utility.loadFileBinding(Utility.java:388)
[bind] at org.jibx.binding.Compile.compile(Compile.java:296)
[bind] at
org.jibx.binding.ant.CompileTask.execute(CompileTask.java:248
)
[bind] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:275)
[bind] at org.apache.tools.ant.Task.perform(Task.java:364)
[bind] at org.apache.tools.ant.Target.execute(Target.java:341)
[bind] at
org.apache.tools.ant.Target.performTasks(Target.java:369)
[bind] at
org.apache.tools.ant.Project.executeSortedTargets(Project.jav
a:1216)
[bind] at
org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[bind] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
faultExecutor.java:40)
[bind] at
org.apache.tools.ant.Project.executeTargets(Project.java:1068
)
[bind] at org.apache.tools.ant.Main.runBuild(Main.java:668)
[bind] at org.apache.tools.ant.Main.startAnt(Main.java:187)
[bind] at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
[bind] at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
BUILD FAILED
C:\Leif\502-Indicio\indicio\build-cap-bindings.xml:61: JiBXException in
JiBX bin
ding compilation
Total time: 7 seconds
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users