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 66842 - [50cat] java.lang.IllegalArgumentException is thrown if driver's jar no longer exist
Summary: [50cat] java.lang.IllegalArgumentException is thrown if driver's jar no longe...
Status: VERIFIED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker with 1 vote (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-14 19:13 UTC by misterm
Modified: 2005-11-01 15:49 UTC (History)
0 users

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 misterm 2005-10-14 19:13:40 UTC
[ BUILD # : 20051013 ]
[ JDK VERSION : 1.4.2_xx ]

The following exception if thrown when opening the Runtime -> Databases -> Drivers node if the jar file containing a driver no longer exists:

java.lang.IllegalArgumentException: null [file:/C:/Arquivos de programas/NetBeans3.6/lib/ext/classes12.jar]
	at org.netbeans.modules.masterfs.MasterURLMapper.getFileObjects(MasterURLMapper.java:48)
	at org.openide.filesystems.URLMapper.findFileObject(URLMapper.java:218)
	at org.netbeans.modules.db.explorer.driver.JDBCDriverSupport.isAvailable(JDBCDriverSupport.java:40)
	at org.netbeans.modules.db.explorer.infos.DriverNodeInfo.checkDriverFiles(DriverNodeInfo.java:65)
	at org.netbeans.modules.db.explorer.infos.DriverNodeInfo.getIconBase(DriverNodeInfo.java:51)
	at org.netbeans.modules.db.explorer.nodes.DatabaseNode.processInfo(DatabaseNode.java:91)
	at org.netbeans.modules.db.explorer.nodes.DatabaseNode.setInfo(DatabaseNode.java:86)
	at org.netbeans.modules.db.explorer.nodes.DriverNode.setInfo(DriverNode.java:30)
	at org.netbeans.modules.db.explorer.DatabaseNodeChildren.createNode(DatabaseNodeChildren.java:204)
	at org.netbeans.modules.db.explorer.DatabaseNodeChildren$2.run(DatabaseNodeChildren.java:97)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:471)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:904)
Comment 1 Andrei Badea 2005-10-17 09:11:37 UTC
I think the cause of this is the fixed issue 66251. Please try to reproduce in a
new (recent than Oct 13) daily build. To reproduce:

1. In NB 4.1 create a JDBC driver whose URL contains a space
2. Delete or rename the respective JAR file
3. Import the 4.1 userdir in 5.0, expand the Drivers node
Comment 2 misterm 2005-11-01 15:49:10 UTC
Verified in Q-Build 20051031.