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.
Summary: | Oracle: NPE is caused by DnD DB table on any managed Bean (ApplicationBean1, ...) | ||
---|---|---|---|
Product: | obsolete | Reporter: | _ alexpetrov <alexpetrov> |
Component: | visualweb | Assignee: | John Baker <jbaker> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | blaha, jbaker, jimdavidson, yousufh |
Priority: | P2 | Keywords: | REGRESSION |
Version: | 6.x | ||
Hardware: | Macintosh | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
_ alexpetrov
2007-07-26 18:41:49 UTC
REGRESSION??? NPE is caused by DnD Oracle DB table on any managed bean (ApplicationBean1, ...). DnD Oracle DB table on Designer has no effect - nothing happens. The same problem on WinXP: Product Version: NetBeans IDE Dev (Build 200707241200) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06 System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb) More exactly: DnD Oracle DB table on Designer - new tree subnode cachedRowSetDataProvider will appear under Page1 tree node. It looks like data provider, but row set wasn't created. Winston is on vacation, assigning to Jim for evaluation I will investigate. In the meantime, please upgrade your Mac installation to the latest version of Java (1.5.0_07). That doesn't appear to be a problem here (since the bug also happens in XP), but it could cause other issues. I can reproduce this issue as well on build : 200707270000 But there is a workaround. When adding the jdbc driver if the driver class name is changed to oracle.jdbc.driver.OracleDriver rather than the default which is oracle.jdbc.OracleDriver this will not happen. Thanks a lot Yousuf for the evaluation. Since there is work around, lowering priority. This seems to have been caused by the fix for IZ# 110472 ("Migrated Oracle database connection from Creator not appearing in IDE"). We need to find a fix for that issue that doesn't cause this one. BTW, the Oracle javadocs say, "Beginning in Oracle9i, the Oracle extensions to JDBC are captured in the package oracle.jdbc. .... Your code should use the package oracle.jdbc instead of the package oracle.jdbc.driver used in earlier versions of Oracle." So, we should use oracle.jdbc.OracleDriver as the driver class, and look for a different approach to the migration issue. *** Issue 111943 has been marked as a duplicate of this issue. *** Fixed by reverting fix for 110472. DriverListUtil uses the wrong driver class name Checking in visualweb/dataconnectivity/src/org/netbeans/modules/visualweb/dataconnectivity/datasource/DataSourceResolver.java; /cvs/visualweb/dataconnectivity/src/org/netbeans/modules/visualweb/dataconnectivity/datasource/DataSourceResolver.java,v <-- DataSourceResolver.java new revision: 1.10; previous revision: 1.9 done Product Version: NetBeans IDE Dev (Build 200708070000) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06 System: Windows XP version 5.1 running on x86 Verified. Keyword "REGRESSION" was added. Agreed, this was a Regression |