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 155616 - NetBeans Installation error (java.lang.AbstractMethodError in org.apache.crimson.tree.ElementNode2.getTextContent)
Summary: NetBeans Installation error (java.lang.AbstractMethodError in org.apache.crim...
Status: VERIFIED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: issues@installer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-17 06:06 UTC by yogeshp08
Modified: 2008-12-29 15:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NetBeans Installation Error Log (21.00 KB, text/plain)
2008-12-17 06:07 UTC, yogeshp08
Details
NetBeans Installer Error Log (225.79 KB, text/plain)
2008-12-17 10:54 UTC, yogeshp08
Details
Log (21.00 KB, text/plain)
2008-12-17 11:02 UTC, yogeshp08
Details
out2.txt attached (225.91 KB, text/plain)
2008-12-17 11:19 UTC, yogeshp08
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yogeshp08 2008-12-17 06:06:04 UTC
Whenever I try installing NetBeans, any version, I get the following error.
The same error repeats when I try uninstalling it.
Plz help. 


An unexpected exception happened in thread main

Exception:
java.lang.AbstractMethodError:
org.apache.crimson.tree.ElementNode2.getTextContent()Ljava/lang/String;

You can get more details about the issue in the installer log file:
Comment 1 yogeshp08 2008-12-17 06:07:32 UTC
Created attachment 75061 [details]
NetBeans Installation Error Log
Comment 2 dlipin 2008-12-17 08:35:45 UTC
Looks like an issue in Crimson XML parser.
I can reproduce it with putting crimson.jar from
http://xml.apache.org/dist/crimson/crimson-1.1.3-bin.zip
to <jdkdir>\jre\lib\ext and then running the installer.

The solution is to remove crimson.jar from 

C:\Program Files\Java\jdk1.5.0_17\jre\lib\ext
C:\WINDOWS\Sun\Java\lib\ext
C:\Program Files\Java\jdk1.5.0_17\jre\lib\endorsed

*** This issue has been marked as a duplicate of 150716 ***
Comment 3 yogeshp08 2008-12-17 10:11:58 UTC
It still doesn't work.
I can't find the following folders to delete crimson.jar

C:\WINDOWS\Sun\Java\lib\ext
C:\Program Files\Java\jdk1.5.0_17\jre\lib\endorsed

The same error repeats
Comment 4 dlipin 2008-12-17 10:18:10 UTC
could you please try to run installer with the following arguments and attach out.txt after the issue appears again and 
you close the installer?
netbeans-6.5-python-windows.exe -J-verbose --verbose --output out.txt
Comment 5 yogeshp08 2008-12-17 10:53:07 UTC
out.txt file attached
Comment 6 yogeshp08 2008-12-17 10:54:46 UTC
Created attachment 75076 [details]
NetBeans Installer Error Log
Comment 7 dlipin 2008-12-17 10:58:33 UTC
crimson.jar is available at C:\Program Files\Java\jdk1.5.0_17\jre\lib\ext\crimson.jar
please delete it (or backup, if you need it) and try again.
Comment 8 yogeshp08 2008-12-17 11:02:58 UTC
Created attachment 75077 [details]
Log
Comment 9 yogeshp08 2008-12-17 11:06:06 UTC
I had deleted it and tried earlier also.
Didnt work.
I couldn't find the other 2 folders (following), to delete the crimson.jar file

C:\WINDOWS\Sun\Java\lib\ext
C:\Program Files\Java\jdk1.5.0_17\jre\lib\endorsed
Comment 10 dlipin 2008-12-17 11:09:35 UTC
Could you please run installer again with that arguments and attach out2.txt?
netbeans-6.5-python-windows.exe -J-verbose --verbose --output out2.txt
Comment 11 yogeshp08 2008-12-17 11:19:25 UTC
Created attachment 75080 [details]
out2.txt attached
Comment 12 dlipin 2008-12-17 11:23:23 UTC
Please remove (backup) file C:\Program Files\Java\jdk1.5.0_17\jre\lib\ext\googleapi.jar and try again.

Are there any files left in C:\Program Files\Java\jdk1.5.0_17\jre\lib\ext?

If the issue still happens remove (backup) them all and try again.
Comment 13 dlipin 2008-12-17 11:28:17 UTC
BTW,
please don`t remove files from C:\Program Files\Java\jdk1.5.0_17\jre\lib\ext:
dnsns.jar 
localedata.jar
sunjce_provider.jar
sunpkcs11.jar
Comment 14 dlipin 2008-12-17 11:34:59 UTC
Another workaround is to run installer with the following argument:
netbeans-6.5-python-windows.exe -J-Djava.ext.dirs=

With this argument, you can still have crimson.jar and googleapi.jar in C:\Program Files\Java\jdk1.5.0_17\jre\lib\ext.
The only thing is that this argument would be still required when you run uninstaller.
Comment 15 yogeshp08 2008-12-17 11:54:28 UTC
Its working fine now.
I removed all the files from C:\Program Files\Java\jdk1.5.0_17\jre\lib\ext except the default one's
And there are many files in C:\Program Files\Java\jdk1.5.0_17\jre\lib\ext
So, do I have to repeat dis every time I install/uninstall??
thanx a lot
Comment 16 july 2008-12-29 15:30:36 UTC
VERIFIED
Comment 17 dlipin 2008-12-29 15:33:21 UTC
you can remove remove those files only once. they won`t appear by themselves - i.e. if you don`t copy them by hand back 
to ...\jdk1.5.0_17\jre\lib\ext