I am building an application web-server from existing Java code with jibx, jibx returns me an error when I perform with ant the task 'Build jar containing bound dates classes', following amount carried over the error, the ant task and I attach my file bindig.xml (it is a very simple file I am making a test). To thing you can be due the problem?
Error runing binding compiler: >ant build-modello Buildfile: build.xml -init-folders: -init-jars: -init-classpath: build-modello: [echo] Compiling shared classes [echo] Running JiBX binding compiler [bind] http://www.nabble.com/file/p24320100/binding.xml binding.xml [bind] [bind] *** Error during code generation for file './gen/binding.xml' - please enter a bug report for this error in Jira if the problem is not listed as fixed on the online status page *** [bind] [bind] java.lang.NullPointerException [bind] at org.jibx.binding.def.BindingDefinition.generateCode(BindingDefinition.java:975) [bind] at org.jibx.binding.Compile.compile(Compile.java:221) [bind] at org.jibx.binding.ant.CompileTask.execute(CompileTask.java:248) [bind] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [bind] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) [bind] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [bind] at java.lang.reflect.Method.invoke(Method.java:597) [bind] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) [bind] at org.apache.tools.ant.Task.perform(Task.java:348) [bind] at org.apache.tools.ant.Target.execute(Target.java:357) [bind] at org.apache.tools.ant.Target.performTasks(Target.java:385) [bind] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329) [bind] at org.apache.tools.ant.Project.executeTarget(Project.java:1298) [bind] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [bind] at org.apache.tools.ant.Project.executeTargets(Project.java:1181) [bind] at org.apache.tools.ant.Main.runBuild(Main.java:698) [bind] at org.apache.tools.ant.Main.startAnt(Main.java:199) [bind] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) [bind] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) [bind] [bind] BUILD FAILED C:\ClickWorld2\jibx-server-template-build.xml:86: JiBXException in JiBX binding compilation Task Ant: <!-- Build jar containing bound data classes--> <target name="build-modello" depends="-init-folders, -init-classpath, compile-classes"> <echo message="Running JiBX binding compiler"/> <taskdef name="bind" classname="org.jibx.binding.ant.CompileTask"> <classpath> <path refid="jibx.classpath"/> </classpath> </taskdef> <bind binding="${gen.dir}/binding.xml"> <classpath> <path refid="compile.classpath"/> </classpath> </bind> <echo message="Constructing and copying shared.jar"/> <delete quiet="true" dir="${build.dir}/lib"/> <mkdir dir="${dist.dir}/lib"/> <jar jarfile="${dist.dir}/lib/shared.jar" basedir="${build.dir}"/> </target> -- View this message in context: http://www.nabble.com/Error-running-binding-compiler-tp24320100p24320100.html Sent from the jibx-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users