我尝试使用JAXB从XML模式到Java的绑定: https://netbeans.org/kb/docs/websvc/jaxb.html
不幸的是,按照这些说明,我注意到了这个错误。相反,我已经完成了一些这样的有用链接(cannot generate classes with JAXB),但它仍然不起作用。
我该怎么做?
我使用Netbeans 7.2.1,jdk 6.11和Ubuntu 13.10 saucy os(针对特定业务)
提前致谢。
java.lang.IllegalArgumentException: Illegal pattern character 'g'
at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:751)
at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:558)
at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:483)
at com.sun.tools.xjc.Options.getPrologComment(Options.java:924)
at com.sun.tools.xjc.Options.createCodeWriter(Options.java:909)
at com.sun.tools.xjc.Options.createCodeWriter(Options.java:899)
at com.sun.tools.xjc.XJC2Task._doXJC(XJC2Task.java:523)
at com.sun.tools.xjc.XJC2Task.doXJC(XJC2Task.java:454)
at com.sun.tools.xjc.XJC2Task.execute(XJC2Task.java:379)
at com.sun.istack.tools.ProtectedTask.execute(ProtectedTask.java:103)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:283)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:541)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)