File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes jaxb-xjc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "jaxb-xjc" Watch "jaxb-xjc" New topic
Author

jaxb-xjc

rima desai
Greenhorn

Joined: Oct 18, 2007
Posts: 7
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
 
jQuery in Action, 2nd edition
 
subject: jaxb-xjc
 
Similar Threads
jaxb - getting InvocationTargetException during parsing
<XJC> ant task possible ?
JAXB doubt
Schema not works with xjc and java lang reflect Invocation Target Exception error
JAXB Binding problem