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.
Summary: | template rename causes it to disappear | ||
---|---|---|---|
Product: | obsolete | Reporter: | Marian Mirilovic <mmirilovic> |
Component: | Registration | Assignee: | mslama <mslama> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | cminorusa, dlipin, grisu1985, m1k0, minashokry, sustaining |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=38930 | ||
Issue Type: | DEFECT | Exception Reporter: | 38930 |
Description
Marian Mirilovic
2008-10-30 23:03:59 UTC
Please when this happens check content of file $NBINSTDIR/nb6.1/servicetag/registration.xml. This exception usualy happens when xml is empty. I want to make sure it is this case. Another issue is why it hapens ie. why incorrect content is generated. This file is either generated by installer or by IDE on first start when registration.xml is not found. Then I need to know if you installed IDE by installer or from zip file. If registration.xml file is empty it could be workarounded either by skipping registration or IDE could regenerate (incomplete) registration.xml file (as IDE does not know about another components installed with IDE). Still better than this exception. Simple workaround is to disable registration using command line option -J-Dnb.registration.enabled=false I have the followed this workaround: The file ~/.netbeans-registration/6.5/registration.xml isempty, so I have this file erased and restarted the IDE. After this step, the file was not regenerated, but the IDe start now without this problem. For information: I have installed with netbens-6.5rc2-ml-javase-linux.sh but previously I had the version 6.5rc1 installed. File ~/.netbeans-registration/6.5/registration.xml is generated only if NB install dir is read only. So it is possible IDE recreated registration.xml in NBINSTDIR/nb6.5/servicetag. You can check that. IDE first checks install dir and if registration.xml is not found then ~/.netbeans-registration/<VERSION>/ is checked. Installer ALWAYS creates registration.xml in NB install dir. So please check also NBINSTDIR/nb6.5/servicetag. NBINSTDIR/nb6.5/servicetag/registration.xml is not empty. I don't now of the contents, but the xml syntax is correct. I checked when empty registration.xml is in home and valid is in install dir. No exception as I expected. So empty registration.xml had to be loaded. I will implement some workaround for this - I must handle also case when empty registration.xml in install dir is empty but read only. Then it must be skipped. Thanks. *** Issue 153508 has been marked as a duplicate of this issue. *** core-main #26dc478dffca Added check for empty registration.xml file. It handles also case when install directory or registration file itself is read only. could someone attach the installation log (~/.nbi/log) that corresponds to the installation of the IDE which shows that issue? *** Issue 155013 has been marked as a duplicate of this issue. *** Integrated into 'main-golden', will be available in build *200812091520* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/26dc478dffca User: Marek Slama <mslama@netbeans.org> Log: #151921: Handle empty registration xml file. grisu1985, minashokry, Could you please try the latest daily build? http://bits.netbeans.org/netbeans/trunk/nightly/latest/ I`ve fixed some error handling that would not result into installer failure any more and would help us to catch the original issue. Please run installer with "-J-Dservicetag.allow.create=true" argument and after installation is finished, please attach the last installation log from ~/.nbi/log directory. Thanks, Dmitry *** Issue 155075 has been marked as a duplicate of this issue. *** verified The fix has been ported into the release65_fixes repository. http://hg.netbeans.org/release65_fixes/rev/ac51f2d0ed59 |