[ http://jira.codehaus.org/browse/JIBX-52?page=history ]
Dennis Sosnoski resolved JIBX-52:
---------------------------------
Fix Version: CVS
Resolution: Fixed
All known errors of this type should now be detected during validation of the
binding prior to actually generating code. The error reporting includes file
name and line/column number.
> Ant task could do with better error reporting
> ---------------------------------------------
>
> Key: JIBX-52
> URL: http://jira.codehaus.org/browse/JIBX-52
> Project: JiBX
> Type: Improvement
> Components: core
> Versions: 1.0-beta3c
> Environment: WinXP, Ant
> Reporter: Tim Sawyer
> Priority: Minor
> Fix For: CVS
>
>
> I have hundreds of xml files containing bindings for hundreds of classes, and
> am using Ant to do the binding compile.
> If a binding is incorrect I get an error something like:
> -snip-
> [bind] element UnpaidFeeValue from property unpaidFeeValue
> (java.lang.Double)
> [bind] element UsedOnDateTime from property usedOnDateTime
> (java.util.Date)
> [bind] element ValidUntilDate from property validUntilDate
> (java.util.Date)
> [bind] org.jibx.runtime.JiBXException: Conflicting mappings for class
> com.company.gateway.base.classes.XmlProfile
> [bind] at
> org.jibx.binding.def.DefinitionContext.addMapping(DefinitionContext.java:183
> )
> [bind] at
> org.jibx.binding.def.BindingBuilder.unmarshalMapping(BindingBuilder.java:154
> 5)
> [bind] at
> org.jibx.binding.def.BindingBuilder.unmarshalMappings(BindingBuilder.java:96
> 3)
> [bind] at
> org.jibx.binding.def.BindingBuilder.unmarshalBindingDefinition(BindingBuilde
> r.java:1597)
> [bind] at org.jibx.binding.Utility.loadBinding(Utility.java:228)
> [bind] at org.jibx.binding.Utility.loadFileBinding(Utility.java:254)
> [bind] at org.jibx.binding.Compile.compile(Compile.java:291)
> [bind] at
> org.jibx.binding.ant.CompileTask.execute(CompileTask.java:238)
> [bind] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java: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.executeTarget(Project.java:1214)
> [bind] at
> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunn
> er.java:379)
> [bind] at
> org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRun
> ner.java:135)
> Unfortunately, this gives me no clue as to which binding or xml file caused
> the error. It is not even the last one mentioned in the ant output.
> Can there be more details added to the exception to give detailed information
> about where exactly the problem occurred?
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs