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 67078 - XML related CCException when parsing DD on JDK1.6
Summary: XML related CCException when parsing DD on JDK1.6
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: DD Editor (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords: JDK_SPECIFIC
: 68219 69380 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-18 22:46 UTC by henriklynggaard
Modified: 2006-08-21 12:35 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Message log (93.85 KB, text/plain)
2005-10-18 22:48 UTC, henriklynggaard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description henriklynggaard 2005-10-18 22:46:59 UTC
I get a classCastException when I try to create a new web project or open an
existing one.

Steps to reproduce
1. Install jdk
2. install netbeans 
(yes my mahcine was that clean)
3. start netbeans
4. create a new web project.
  - using bundled server
  - untick the Java 1.4 target
  - server neither struts nor jsf
5. click finish
6. Get invocation target exception

In the log  I  see:
Caused by: java.lang.ClassCastException:
com.sun.org.apache.xerces.internal.parsers.XIncludeAwareParserConfiguration
cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
        at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
        at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
        at
org.netbeans.modules.j2ee.dd.api.web.DDProvider.parse(DDProvider.java:264)
        at
org.netbeans.modules.j2ee.dd.api.web.DDProvider.getDDRoot(DDProvider.java:84)
        at
org.netbeans.modules.web.project.ProjectWebModule.getWebApp(ProjectWebModule.java:332)
        at
org.netbeans.modules.web.project.ProjectWebModule.getDeploymentDescriptor(ProjectWebModule.java:306)
        at
org.netbeans.modules.j2ee.deployment.config.ModuleDeploymentSupport.getDeploymentDescriptor(ModuleDeploymentSupport


I am using:
>System Info:
  Product Version       = NetBeans IDE Dev (Build 200510131922)
  Operating System      = Linux version 2.6.12-9-386 running on i386
  Java; VM; Vendor      = 1.6.0-ea; Java HotSpot(TM) Client VM 1.6.0-ea-b56; Sun
Microsystems Inc.
Comment 1 henriklynggaard 2005-10-18 22:48:00 UTC
Created attachment 26109 [details]
Message log
Comment 2 Jiri Prox 2005-10-19 09:59:30 UTC
It is reproducible on WinXP too, but only in 1.6.0
Comment 3 henriklynggaard 2005-10-19 20:14:03 UTC
It doesn't appear on my second machine

both are now running nb nightly 200510171800, but on slightly different JVMs

The one that works mustang build 55
but the one that fails are running mustang build 56
Comment 4 Radko Najman 2005-11-07 14:18:53 UTC
*** Issue 68219 has been marked as a duplicate of this issue. ***
Comment 5 Marian Mirilovic 2005-11-07 14:27:53 UTC
look at the issue 68219

NB5.0 (200511061800), JDK 6.0 (b59)
Comment 6 Petr Blaha 2005-11-07 14:55:05 UTC
Sice the jdk 1.6 is Beta version I'm changing priority to P2. The issue should
be definitely fixed in NetBeans 5.0 FCS.
Comment 8 Milan Kuchtiak 2005-11-10 10:58:49 UTC
Reopen because I rollbacked the changes.
This is likely the problem of jdk1.6 <-> xerces compatibility.
Comment 9 Milan Kuchtiak 2005-11-10 11:41:53 UTC
This is the jdk1.6 problem.
See :
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6337684
Comment 10 Marian Mirilovic 2005-11-11 16:10:52 UTC
Comments on JDK bug from JDK team :
-----------
Test case relies on external classes outside JAXP/J2SE contract which is not
supported. Closing this bug.

If the user desires to over-ride the implmentation inside JDK, endorsed
mechanism should be used.
-----------

I think it will be very nice to have workarround on our side.
Comment 11 Petr Jiricka 2005-11-13 19:27:49 UTC
Or, Milane, would it be possible to think of a different test case than you
provided in the JDK bug? Perhaps something without using jre/lib/ext? Are we
really relying on some special behavior of JDK 1.5 that is not guaranteed by the
Java specification?
Comment 12 Marian Mirilovic 2005-11-14 11:40:31 UTC
Another JDK bug:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6338444

Thread on java.net Forum:
http://forums.java.net/jive/thread.jspa?messageID=29880
Comment 14 _ ludo 2005-11-28 22:49:08 UTC
*** Issue 69380 has been marked as a duplicate of this issue. ***
Comment 15 Jesse Glick 2005-12-16 21:42:31 UTC
Workaround can perhaps be removed; cf. comments in issue #66967.
Comment 16 Dan Kolar 2006-08-21 12:35:31 UTC
v. build 200608190000