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 72550 - Bad serialization of '&' in XML config files
Summary: Bad serialization of '&' in XML config files
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-10 21:59 UTC by convolver
Modified: 2006-10-23 16:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
One of the symptoms.Where are the Java Plateforms ? (69.58 KB, image/png)
2006-02-12 00:20 UTC, convolver
Details
See the 'The reference to entity "JDKs" must end with the ';' delimiter.' exception (163.50 KB, text/plain)
2006-02-12 00:26 UTC, convolver
Details

Note You need to log in before you can comment on or make changes to this bug.
Description convolver 2006-02-10 21:59:46 UTC
Netbeans doesn't seem to like my win2003 server roaming profile.
I'm using Netbeans 5.0 on my home network win XP workstations.
I recently trade my multiple local user profiles for a single roaming profile.
Failure Scenario:

Install of netbeans with default parameters (JDK1.5.6).
Everything works fine.
Logout.
Login.
Netbeans Exception on startup.
Java Platform settings corrupted, no more platform...
Adding a platform manualy does not fix anything. Netbeans is unusable :(

Workaround:
erase .netbeans directory before startup. I loose my settings, macros ... :'(

I classified this problem as a P1 DEFECT however this may be a misconfiguration
of the platform. I'll try to change my netbeans user profile directory from
%USERPROFILE%\.netbeans to %USERPROFILE%\Application Data\.netbeans which will
be uploaded and downloaded during login and logout.
However on windows platform I'd recommned to move computer local settings (JDK
location, Java Platforms, ...) to:
%USERPROFILE%\Local Settings\Application Data\.netbeans
and user specific settings (fonts, macros, ...) here:
%USERPROFILE%\Application Data\.netbeans
Comment 1 convolver 2006-02-12 00:20:49 UTC
Created attachment 28831 [details]
One of the symptoms.Where are the Java Plateforms ?
Comment 2 convolver 2006-02-12 00:26:02 UTC
Created attachment 28832 [details]
See the 'The reference to entity "JDKs" must end with the ';' delimiter.' exception
Comment 3 convolver 2006-02-12 00:51:04 UTC
It seems that the roaming profile may not be problem.
Instead, it may be my javadoc settings.
My javadocs are shared on the network using a CIFS/SMB share.
The group policy maps Z: to the net share.
So the netbeans JDK javadoc is located here:
Z:\Prog\Java\Runtimes&JDKs\jdk-1_5_0-doc.zip

Could this possibly the cause of my troubles ?

Arg I think I finaly spotted the problem writing the previous question.
The '&' in the directory may screw up the XML parser. That explains why the log
mention a 'reference to entity "JDKs"'

How netbeans handles those special characters in string settings ?

Comment 4 convolver 2006-02-13 13:38:42 UTC
Renaming the directory solved the problem.

Somewhere '&','<','>'... should be changed by their respective entity to avoid
this kind of problem.
Comment 5 Lukas Hasik 2006-02-13 19:49:47 UTC
not sure if it belong to java/j2seproject...
Comment 6 Tomas Zezula 2006-02-24 15:48:19 UTC
Checking in
src/org/netbeans/modules/java/j2seplatform/platformdefinition/PlatformConvertor.java;
/cvs/java/j2seplatform/src/org/netbeans/modules/java/j2seplatform/platformdefinition/PlatformConvertor.java,v
 <--  PlatformConvertor.java
new revision: 1.16; previous revision: 1.15
done