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 101982 - IAE when creating new Entity Classes from DB
Summary: IAE when creating new Entity Classes from DB
Status: VERIFIED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: CDC pack (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Adam Sotona
URL:
Keywords:
: 101983 102131 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-20 16:13 UTC by Jan Horvath
Modified: 2007-06-13 15:48 UTC (History)
4 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 Jan Horvath 2007-04-20 16:13:16 UTC
build 070420 + mobility pack

-create new web application
-start new entity classes from dsatabase wizard
-click on new persistence unit button
-ERROR: nothing is created
-EXCEPTION:
java.lang.IllegalArgumentException: File URL pointing to JAR is not valid
classpath entry. Use jar: URL. Was: nbinst:/external/proguard/proguard3.5.jar
	at
org.netbeans.spi.java.classpath.support.ClassPathSupport.createResource(ClassPathSupport.java:59)
	at
org.netbeans.spi.java.classpath.support.ClassPathSupport.createClassPath(ClassPathSupport.java:137)
	at
org.netbeans.modules.j2ee.persistence.wizard.library.PersistenceLibrarySupport.getLibraryClassPath(PersistenceLibrarySupport.java:237)
	at
org.netbeans.modules.j2ee.persistence.wizard.library.PersistenceLibrarySupport.getProvidersFromLibraries(PersistenceLibrarySupport.java:292)
	at
org.netbeans.modules.j2ee.persistence.util.PersistenceProviderComboboxHelper.addProvidersFromLibraries(PersistenceProviderComboboxHelper.java:169)
	at
org.netbeans.modules.j2ee.persistence.util.PersistenceProviderComboboxHelper.initCombo(PersistenceProviderComboboxHelper.java:154)
	at
org.netbeans.modules.j2ee.persistence.util.PersistenceProviderComboboxHelper.connect(PersistenceProviderComboboxHelper.java:92)
	at
org.netbeans.modules.j2ee.persistence.wizard.unit.PersistenceUnitWizardPanelDS.<init>(PersistenceUnitWizardPanelDS.java:68)
	at
org.netbeans.modules.j2ee.persistence.wizard.Util.buildPersistenceUnitUsingWizard(Util.java:367)
	at
org.netbeans.modules.j2ee.persistence.wizard.fromdb.EntityClassesPanel.createPUButtonActionPerformed(EntityClassesPanel.java:395)
	at
org.netbeans.modules.j2ee.persistence.wizard.fromdb.EntityClassesPanel.access$300(EntityClassesPanel.java:58)
	at
org.netbeans.modules.j2ee.persistence.wizard.fromdb.EntityClassesPanel$4.actionPerformed(EntityClassesPanel.java:307)
Comment 1 Petr Blaha 2007-04-20 16:41:06 UTC
*** Issue 101983 has been marked as a duplicate of this issue. ***
Comment 2 Petr Blaha 2007-04-20 16:42:49 UTC
This is a stopper for M9 since basic functionality is broken.
Comment 3 Erno Mononen 2007-04-20 17:01:30 UTC
I can't reproduce without the mobility pack, but looks like this needs to be 
fixed in j2ee/persistence. 
Comment 4 Andrei Badea 2007-04-20 17:36:31 UTC
The exception needs to be avoided in j2ee/persistence (see
FileUtil.isArchiveFile() and FileUtil.getArchiveRoot()), but I would also
suggest the ProGuard URL be a jar URL, as is the case for the other libraries.
That is, "jar:nbinst:///external/proguard/proguard3.5.jar!/". Please reassign to
mobility after fixing in j2ee/persistence.
Comment 5 Petr Blaha 2007-04-23 12:22:59 UTC
*** Issue 102131 has been marked as a duplicate of this issue. ***
Comment 6 Erno Mononen 2007-04-23 12:50:36 UTC
The exception is now avoided in j2ee/persistence. Reassigning to mobility, see 
abadea's comment above. Not sure about the correct priority and TM, so please 
re-evaluate. I'm downgrading this to P2 for now.

Checking in PersistenceLibrarySupport.java;
/cvs/j2ee/persistence/src/org/netbeans/modules/j2ee/persistence/wizard/library/
PersistenceLibrarySupport.java,v  <--  PersistenceLibrarySupport.java
new revision: 1.6; previous revision: 1.5
done
Comment 7 Petr Blaha 2007-04-23 16:56:48 UTC
The issue isn't M9 stopper now.
Comment 8 Lukas Hasik 2007-05-17 16:50:04 UTC
changing the Target Milestone to TBD because the origin one finished already.
Please reschedule
Comment 9 Adam Sotona 2007-05-21 13:48:41 UTC
already fixed with ProGuard 3.7 integration
Comment 10 Lukas Hasik 2007-06-13 15:48:57 UTC
v