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: | Cannot bind component to Database table in Migrated project | ||
---|---|---|---|
Product: | obsolete | Reporter: | Yousuf Haider <yousufh> |
Component: | visualweb | Assignee: | John Baker <jbaker> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | alexpetrov, potingwu, ppisl |
Priority: | P1 | Keywords: | REGRESSION |
Version: | 6.x | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
IDE log
Blank Creator Project |
Description
Yousuf Haider
2007-08-28 23:53:51 UTC
Created attachment 47673 [details]
IDE log
Created attachment 47674 [details]
Blank Creator Project
Correcting priority since I filed it with the incorrect one. getCachedRowSet().getMetaData() isn't retrieving the metadata : e.g. getUrl(), getUsername() are null The data source gets created properly - all properties set URL, username, password, data source name, driver class name, etc. So, looks like a CachedRowSetXImpl or related issue or area I did not change since M10. M10 build works Using a developer build: When I opened the project I got a dialog prompting me to install JSF1.1, but nothing about RowSets. In the project.properties, your attached Creator project has: javac.source=${default.javac.source} javac.target=${default.javac.target} That makes your project Source-Level = your NetBeans platform version, usually 1.5 or 1.6. This feature has been fixed since NetBeans 5.5, it always uses: javac.source=1.4 or 1.5 or 1.6 javac.target=1.4 or 1.5 or 1.6 The workaround is to change them to 1.4 in your project. I don't know whether there is any auto-resolution for migrating this kind of projects. Petr may have some comment! BTW, even after the fix, I still see: SEVERE [global] java.lang.NullPointerException at org.netbeans.modules.visualweb.insync.models.FacesModel.openJavaUnits(FacesModel.java:771) at org.netbeans.modules.visualweb.insync.models.FacesModel.syncImpl(FacesModel.java:1023) at org.netbeans.modules.visualweb.insync.Model.sync(Model.java:197) at org.netbeans.modules.visualweb.insync.models.FacesModelSet.getFacesModel(FacesModelSet.java:507) at org.netbeans.modules.visualweb.insync.models.FacesModelSet.getFacesModelIfAvailable(FacesModelSet.java:361) at org.netbeans.modules.visualweb.dataconnectivity.datasource.DataSourceResolver$WaitForModelingListener.modelSetAdded(DataSourceResolver.java:216) at org.netbeans.modules.visualweb.insync.ModelSet.fireModelSetAdded(ModelSet.java:152) at org.netbeans.modules.visualweb.insync.ModelSet.getInstance(ModelSet.java:249) at org.netbeans.modules.visualweb.insync.ModelSet$1.run(ModelSet.java:190) [catch] at java.lang.Thread.run(Thread.java:619) Another thought: If the platform is now not 1.4 when you open your project before you change back to 1.4, you should automatically get rowset package from the JDK. I think missing rowset.jar is not the real cause of this issue. Though we still need to resolve the old ${default.javac.source} behavior. There's a problem with Datasources. DesignTimeContext.lookup() can't find a datasource, so things fail. Working backwards, it looks like DatabaseSettingsImporter.getInstance().getDataSourcesInfo() should be returning some DataSourceInfo objects, and it is not. Still investigating. On Aug 14, I had made a change that executes code if the project is a legacy project. It's possible that the code does not have to be executed for every legacy project that has dynamic data sources line 526 of DesignTimeDataSourceHelper if ((JsfProjectUtils.getProjectVersion(currentProj).equals("2.0") || JsfProjectUtils.getProjectVersion(currentProj).equals("3.0")) && dynamicDataSources.length > 0) { My last comment was the correct diagnosis I'll revert back to the change that was working previouslty Fixed; Revert back to the implementation that was working previously. Checking in visualweb/dataconnectivity/src/org/netbeans/modules/visualweb/dataconnectivity/sql/DesignTimeDataSourceHelper.java; /cvs/visualweb/dataconnectivity/src/org/netbeans/modules/visualweb/dataconnectivity/sql/DesignTimeDataSourceHelper.java,v <-- DesignTimeDataSourceHe lper.java new revision: 1.18; previous revision: 1.17 done Verified on: Product Version: NetBeans IDE Dev (Build 200709040000) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06 System: Windows XP version 5.1 running on x86 |