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 258018 - IllegalArgumentException: org.netbeans.modules.db.dataview.spi.DBConnectionProvider is not an ImageIO SPI class
Summary: IllegalArgumentException: org.netbeans.modules.db.dataview.spi.DBConnectionPr...
Status: VERIFIED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Show Data (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: matthias42
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-16 15:59 UTC by athompson
Modified: 2016-02-23 20:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 220155


Attachments
stacktrace (1.05 KB, text/plain)
2016-02-16 15:59 UTC, athompson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description athompson 2016-02-16 15:59:06 UTC
Build: NetBeans IDE Dev (Build 201602120002)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.9.0-ea-b93, Java(TM) SE Runtime Environment, 1.9.0-ea-b93
OS: Mac OS X

User Comments:
athompson: Trying to execute SQL query (connecting to Oracle DB).

GUEST: View mysql table data




Stacktrace: 
java.lang.IllegalArgumentException: org.netbeans.modules.db.dataview.spi.DBConnectionProvider is not an ImageIO SPI class
   at javax.imageio.spi.ServiceRegistry.checkClassAllowed(ServiceRegistry.java:733)
   at javax.imageio.spi.ServiceRegistry.lookupProviders(ServiceRegistry.java:228)
   at org.netbeans.modules.db.dataview.meta.DBConnectionFactory.findDBConnectionProvider(DBConnectionFactory.java:128)
   at org.netbeans.modules.db.dataview.meta.DBConnectionFactory.getConnection(DBConnectionFactory.java:94)
   at org.netbeans.modules.db.dataview.output.SQLExecutionHelper$1Loader.run(SQLExecutionHelper.java:127)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
Comment 1 athompson 2016-02-16 15:59:07 UTC
Created attachment 158522 [details]
stacktrace
Comment 2 matthias42 2016-02-21 20:55:19 UTC
Thank you for the report. The ServiceRegistry from ImageIO was used to load service implementers. The following change in JDK9 broke the usage here:

http://hg.openjdk.java.net/jdk9/dev/jdk/rev/baa9838343d8

that changeset limits ServiceRegistry to load only ImageIO classes. The solution is to use ServiceLoader directly.

That change is implemented in:

http://hg.netbeans.org/core-main/rev/e1d8b5010229

Please recheck when this change is integrated into nightly builds and VERIFY the fix.
Comment 3 athompson 2016-02-23 20:21:53 UTC
yup