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 92117 - ClassCastException: o.n.m.j2ee.persistence.unit.PUDataLoader
Summary: ClassCastException: o.n.m.j2ee.persistence.unit.PUDataLoader
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2007-01-09 14:27 UTC by Tomas Danek
Modified: 2007-03-19 15:38 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Danek 2007-01-09 14:27:23 UTC
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)
Comment 1 Erno Mononen 2007-02-16 10:14:21 UTC
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.
Comment 2 Tomas Danek 2007-02-16 13:51:46 UTC
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.
Comment 3 Erno Mononen 2007-02-16 14:19:58 UTC
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.
Comment 4 Andrei Badea 2007-02-16 15:41:19 UTC
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.
Comment 5 Erno Mononen 2007-03-19 15:38:43 UTC
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