This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I'm trying to just JAXB binding with some classes which were initially generated with xjc, and then modified (for inheritance). When running the application I often experience a "javax.xml.bind.UnmarshalException: unexpected element" error. I've revalidated the XML, and it's OK. I went to the command line and compiled the classes, and everything works fine. I've also tried the same project with NetBeans 6.5.1 and it works fine, so it appears to be a problem only with the 6.7 Beta. I'll attache the log file and an archived version of the project. The problem seems to be somewhat transient as I've re-created the project several times and sometimes it does seem to work. Very strange.
Created attachment 82147 [details] Log file archive
Created attachment 82148 [details] Test project archive (build, dist, lib removed to keep archive small)
Not sure where it belongs to .... feel free to reassign.
The JAXB stuff is in the websvc area... I think. Filer says this is a random issue, too
gmpatil, any chance to fix this into 6.7 ? Thanks in advance.
Project does not use Netbeans JAXB Wizard. Attached Java SE project has in its source root Java sources generated by JAXB XJC externally. Attached log has some errors related parsing the sources but not sure it is related to the runtime error user is seeing. ----- Coupling Error: --------------------------------------------- com.sun.tools.javac.util.CouplingAbort at com.sun.tools.javac.model.LazyTreeLoader.couplingError(LazyTreeLoader.java:61) at com.sun.tools.javac.comp.MemberEnter.visitVarDef(MemberEnter.java:734) ..... ..... at com.sun.tools.javac.api.JavacTaskImpl.enterTrees(JavacTaskImpl.java:406) at org.netbeans.modules.java.source.indexing.OnePassCompileWorker.compile(OnePassCompileWorker.java:160) Since JAXB Wiz is not involved, assigning to Java SE project team to have a look at it.
Thanks for the report. Could you please describe in steps how to reproduce the problem? I looked in the log files and couldn't see any exceptions. Where did you get this "UnmarshalException" from? Can you attach it here? Thanks
Without requested information for long time - INVALID. We can't do anything in this case. Reporter, please add requested information and reopen issue. Thanks in advance.