Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jaxb-xjc

 
rima desai
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
i am using JAxb to convert my xsd to java class.
i tried using the xjc compiler to do it. but it seems that xjc runs fine with sun jdk. i am trying to use it in IBM jdk (cos my project uses RAD).
i created an build file and tryin to build using ant . but even that is not working. it says it is creating the classes but the classes are empty.
and if i run teh xjc compiler from my command prompt then it thros an error something like :
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
Caused by: java.lang.NullPointerException
at com.ibm.nio.cs.SBCS_Encoder.canEncode(SBCS_Encoder.java:198)
at com.sun.codemodel.JPackage$1.requireEscaping(JPackage.java:356)
at com.sun.codemodel.util.UnicodeEscapeWriter.write(UnicodeEscapeWriter.
java:28)
at com.sun.codemodel.util.UnicodeEscapeWriter.write(UnicodeEscapeWriter.
java:54)
at com.sun.codemodel.util.UnicodeEscapeWriter.write(UnicodeEscapeWriter.
java:66)
at java.io.PrintWriter.newLine(PrintWriter.java:265)
at java.io.PrintWriter.println(PrintWriter.java:416)
at com.sun.codemodel.JFormatter.nl(JFormatter.java:159)
at com.sun.codemodel.JPackageMemberClass.declare(JPackageMemberClass.jav
a:60)
at com.sun.codemodel.JPackage.build(JPackage.java:364)
at com.sun.codemodel.JCodeModel.build(JCodeModel.java:157)
at com.sun.tools.xjc.Driver.run(Driver.java:235)
at com.sun.tools.xjc.Driver._main(Driver.java:80)
at com.sun.tools.xjc.Driver.access$000(Driver.java:46)
at com.sun.tools.xjc.Driver$1.run(Driver.java:60)
can somebody help me .
Thanks
Rima
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic