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.
Build: NetBeans IDE 6.1 (Build 200805300101) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33 OS: Windows XP, 5.1, x86 Stacktrace: java.lang.NullPointerException at java.lang.String.compareTo(String.java:1168) at org.netbeans.modules.server.ui.manager.ServerManagerPanel$InstanceComparator.compare(ServerManagerPanel.java:553) at org.netbeans.modules.server.ui.manager.ServerManagerPanel$InstanceComparator.compare(ServerManagerPanel.java:550) at java.util.Arrays.mergeSort(Arrays.java:1270) at java.util.Arrays.sort(Arrays.java:1210) at java.util.Collections.sort(Collections.java:159)
Created attachment 73565 [details] stacktrace
Build: NetBeans IDE Dev (Build 200811120201) VM: Java HotSpot(TM) Client VM, 11.0-b13, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b26 OS: Linux, 2.6.24-19-generic, i386 User Comments: 1, I want to remove in "Servers" window running Glassfish V2 -> message about wrong autentification appears -> exception appears Stacktrace: java.lang.NullPointerException at java.lang.String.compareTo(String.java:1168) at org.netbeans.modules.server.ui.manager.ServerManagerPanel$InstanceComparator.compare(ServerManagerPanel.java:505) at org.netbeans.modules.server.ui.manager.ServerManagerPanel$InstanceComparator.compare(ServerManagerPanel.java:502) at java.util.Arrays.mergeSort(Arrays.java:1270) at java.util.Arrays.sort(Arrays.java:1210) at java.util.Collections.sort(Collections.java:159)
Created attachment 73660 [details] stacktrace
this should be easy to fix.
marfous: do you remember whether you had other servers registered in the IDE besides the GF v2 instance... Tomcat? v3? Something else?
I have not been able to reproduce the exception... so I am doing this change a bit blind.... I am making a change that should make sure that a ServerInstance with a null display name does not end up getting sent to the comparator... http://hg.netbeans.org/main/rev/9a536a038797
Integrated into 'main-golden', will be available in build *200812121401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/9a536a038797 User: vince kraemer <vkraemer@netbeans.org> Log: #152834: try to prevent NPE and provide logging info if a ServerInstance has a null display name
It looks to be fixed. Verified with NetBeans IDE Dev (Build 200812141401).