[ http://jira.codehaus.org/browse/JIBX-52?page=comments#action_55183 ]
Dennis Sosnoski commented on JIBX-52: ------------------------------------- Maros, I think your comment is valid and points out a case where the binding compiler should generate a warning to the user. It doesn't really relate directly to the Ant task, though. If you'd like this handled, please add an enhancement request for this feature. > 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 > Assignee: Dennis Sosnoski > Priority: Minor > Fix For: 1.0-RC0 > > > 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ jibx-devs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-devs
