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.
NetBeans IDE Dev (Build 200701081900) 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105 Linux version 2.6.17-10-generic running on i386 cs_CZ (nb); UTF-8 ------------------------------------------- no steps to reproduce, happened to me during normal work with j2se. i did not use j2ee at all.. java.lang.ClassCastException: class org.netbeans.modules.j2ee.persistence.unit.PUDataLoader at java.lang.Class.asSubclass(Class.java:3018) at org.openide.loaders.DataLoader.getRepresentationClass(DataLoader.java:117) at org.openide.loaders.FolderComparator.compareClass(FolderComparator.java:137) at org.openide.loaders.FolderComparator.compare(FolderComparator.java:83) at org.openide.loaders.FolderOrder.compare(FolderOrder.java:199) at org.openide.loaders.FolderOrder.compare(FolderOrder.java:36) at java.util.Arrays.mergeSort(Arrays.java:1270) at java.util.Arrays.sort(Arrays.java:1210) at java.util.Collections.sort(Collections.java:159) at org.openide.loaders.FolderList.carefullySort(FolderList.java:560) at org.openide.loaders.FolderList.createBoth(FolderList.java:815) at org.openide.loaders.FolderList.access$700(FolderList.java:52) at org.openide.loaders.FolderList$2.run(FolderList.java:338) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:541) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:963)
Would you have any additional info on this? For example, did you do anything with persistence units or entity classes? I'm marking this as random until I find out a way to reproduce this.
nope, only working with j2se.. however, i can provide no additional info, so if you are not able to determinate from stacktrace what went wrong, feel free to close.
Unfortunately I don't really have an idea what could have gone wrong, but I'm passing this to openide/loaders for further evaluation as the stack trace is pretty foreign to me.
The representation class name, passed as a parameter to the superclass constructor in PUDataLoader's constructor, should probably be PUDataObject, not PUDataLoader. Cf. Javadoc of the DataLoader(String) constructor.
Fixed in trunk, thanks for the tip Andrei. Checking in PUDataLoader.java; /cvs/j2ee/persistence/src/org/netbeans/modules/j2ee/persistence/unit/ PUDataLoader.java,v <-- PUDataLoader.java new revision: 1.4; previous revision: 1.3 done