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 153508 - java.lang.IllegalArgumentException: Error generated in parsing
Summary: java.lang.IllegalArgumentException: Error generated in parsing
Status: RESOLVED DUPLICATE of bug 151921
Alias: None
Product: obsolete
Classification: Unclassified
Component: Registration (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: mslama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-20 08:21 UTC by m1k0
Modified: 2008-11-20 08:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
20081120085439.log.tar.bz2 (232.27 KB, application/x-tar)
2008-11-20 08:25 UTC, m1k0
Details

Note You need to log in before you can comment on or make changes to this bug.
Description m1k0 2008-11-20 08:21:53 UTC
Installer don't finish
[2008-11-20 09:14:05.620]: entering -- org.netbeans.installer.wizard.components.WizardAction$1.run():120
[2008-11-20 09:14:05.620]: ... create service tags action
[2008-11-20 09:14:05.729]:     entering -- org.netbeans.installer.product.Registry.loadProductRegistry():959
[2008-11-20 09:14:05.736]:     validating previous installations
[2008-11-20 09:14:05.736]:     ... validating installations finished
[2008-11-20 09:14:05.736]:     exiting -- org.netbeans.installer.product.Registry.loadProductRegistry():959
[2008-11-20 09:14:05.738]:     ... create ST for NetBeans
[2008-11-20 09:14:05.926]:     An unexpected exception happened in thread Thread-21
[2008-11-20 09:14:05.927]:     java.lang.IllegalArgumentException: Error generated in parsing
[2008-11-20 09:14:05.927]:     	at
org.netbeans.modules.servicetag.RegistrationDocument.initializeDocument(RegistrationDocument.java:164)
[2008-11-20 09:14:05.927]:     	at
org.netbeans.modules.servicetag.RegistrationDocument.load(RegistrationDocument.java:115)
[2008-11-20 09:14:05.927]:     	at
org.netbeans.modules.servicetag.RegistrationData.loadFromXML(RegistrationData.java:433)
[2008-11-20 09:14:05.927]:     	at
org.netbeans.modules.reglib.NbServiceTagSupport.getRegistrationData(NbServiceTagSupport.java:585)
[2008-11-20 09:14:05.927]:     	at
org.netbeans.modules.reglib.NbServiceTagSupport.getNbServiceTag(NbServiceTagSupport.java:760)
[2008-11-20 09:14:05.927]:     	at
org.netbeans.modules.reglib.NbServiceTagSupport.createNbServiceTag(NbServiceTagSupport.java:285)
[2008-11-20 09:14:05.927]:     	at
org.netbeans.installer.wizard.components.actions.netbeans.NbServiceTagCreateAction.createSTNetBeans(NbServiceTagCreateAc
[2008-11-20 09:14:05.927]:     	at
org.netbeans.installer.wizard.components.actions.netbeans.NbServiceTagCreateAction.execute(NbServiceTagCreateAction.java
[2008-11-20 09:14:05.927]:     	at org.netbeans.installer.wizard.components.WizardAction$1.run(WizardAction.java:120)
[2008-11-20 09:14:05.927]:     Caused by: org.xml.sax.SAXParseException: Premature end of file.
[2008-11-20 09:14:05.927]:     	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
[2008-11-20 09:14:05.927]:     	at
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
[2008-11-20 09:14:05.927]:     	at
org.netbeans.modules.servicetag.RegistrationDocument.initializeDocument(RegistrationDocument.java:160)
[2008-11-20 09:14:05.927]:     	... 8 more
[2008-11-20 09:14:05.928]:     ... show message dialog
[2008-11-20 09:14:05.928]:         title: Critical Error
[2008-11-20 09:14:05.928]:         message: An unexpected exception happened in thread Thread-21
[2008-11-20 09:14:05.928]:         
[2008-11-20 09:14:05.928]:         Exception:
[2008-11-20 09:14:05.928]:           java.lang.IllegalArgumentException:
[2008-11-20 09:14:05.928]:           Error generated in parsing
[2008-11-20 09:14:05.928]:         
[2008-11-20 09:14:05.928]:         You can get more details about the issue in the installer log file:
[2008-11-20 09:14:05.928]:          /home/m1k0/.nbi/log/20081120085439.log
[2008-11-20 09:14:15.531]:     ... dialog closed
[2008-11-20 09:14:15.573]:     executing command: chmod ugo+x nbi-cleaner22678.sh, in directory: /tmp
[2008-11-20 09:14:15.640]:         [return]: 0
[2008-11-20 09:14:15.640]:     ... command execution finished
[2008-11-20 09:14:15.678]:     ... cleaning process has been started
Comment 1 m1k0 2008-11-20 08:25:06 UTC
Created attachment 73939 [details]
20081120085439.log.tar.bz2
Comment 2 m1k0 2008-11-20 08:26:52 UTC
how to finish installation by hand?
Comment 3 dlipin 2008-11-20 08:30:55 UTC
Looks like installation is finished but uninstallation will not be possible (?).
To avoid the issue you can use special flags for disabling that functionality in the installer
http://wiki.netbeans.org/NetBeansInstallerTipsAndTricks#section-NetBeansInstallerTipsAndTricks-
DisableServiceTagsInFCSBuilds

*** This issue has been marked as a duplicate of 151921 ***
Comment 4 dlipin 2008-11-20 08:32:07 UTC
In 2 words, run installer with arguments :
-J-Dservicetag.allow.create=false -J-Dservicetag.allow.register=false