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.

Bug 165202 - Runtime classpath problem?
Summary: Runtime classpath problem?
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P2 blocker (vote)
Assignee: Jan Jancura
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2009-05-14 18:02 UTC by vernons
Modified: 2009-09-18 09:53 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log file archive (212.68 KB, application/x-compressed)
2009-05-14 18:05 UTC, vernons
Details
Test project archive (build, dist, lib removed to keep archive small) (63.68 KB, application/x-compressed)
2009-05-14 18:07 UTC, vernons
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vernons 2009-05-14 18:02:29 UTC
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.
Comment 1 vernons 2009-05-14 18:05:37 UTC
Created attachment 82147 [details]
Log file archive
Comment 2 vernons 2009-05-14 18:07:03 UTC
Created attachment 82148 [details]
Test project archive (build, dist, lib removed to keep archive small)
Comment 3 Marian Mirilovic 2009-05-21 08:03:24 UTC
Not sure where it belongs to .... feel free to reassign.
Comment 4 Vince Kraemer 2009-05-22 07:07:36 UTC
The JAXB stuff is in the websvc area... I think.

Filer says this is a random issue, too
Comment 5 Marian Mirilovic 2009-05-26 15:46:20 UTC
gmpatil, 
any chance to fix this into 6.7 ? Thanks in advance.
Comment 6 _ gmpatil 2009-05-27 20:17:16 UTC
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.


Comment 7 Vitezslav Stejskal 2009-05-28 10:54:19 UTC
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
Comment 8 Peter Pis 2009-09-18 09:53:15 UTC
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.