NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
minaljsoni
Joined: 02 Mar 2009 Posts: 3
|
Posted: Tue Mar 03, 2009 9:00 am Post subject: Problem in fetching data from oracle database in Visual JSF with Netbeans |
|
|
I am using Netbeans 6.5 IDE to make Visual JSF web application..
My database is in Oracle..
In netbeans, oracle connection is done correctly but when I want to fetch data from tables of that schema...it does not fetch any data..
please tell me anyone to overcome this problem...
Thanks in advance.... |
|
| Back to top |
|
 |
jyeary
Joined: 21 Oct 2008 Posts: 608 Location: Simpsonville, SC
|
Posted: Tue Mar 03, 2009 5:52 pm Post subject: Problem in fetching data from oracle database in Visual JSF with Netbeans |
|
|
Did you create a page with a table on it, and drag-n-drop the table on it to auto-create the data mapping?
You really did not provide many details. You should check out the data bound components tutorials on the NetBeans site.
John
On Tue, Mar 3, 2009 at 4:00 AM, minaljsoni <address-removed ([email]address-removed[/email])> wrote:
| Quote: | I am using Netbeans 6.5 IDE to make Visual JSF web application..
My database is in Oracle..
In netbeans, oracle connection is done correctly but when I want to fetch data from tables of that schema...it does not fetch any data..
please tell me anyone to overcome this problem...
Thanks in advance....
|
--
John Yeary
--
http://javaevangelist.blogspot.com
"Far better it is to dare might things, to win glorious triumphs, even though checkered by failure,
than to take rank with those poor spirits who neither enjoy much nor suffer much, because they live in the grey
twilight that knows not victory nor defeat." -- Theodore Roosevelt |
|
| Back to top |
|
 |
minaljsoni
Joined: 02 Mar 2009 Posts: 3
|
Posted: Wed Mar 04, 2009 3:33 am Post subject: Problem in fetching data from oracle database in Visual JSF with Netbeans |
|
|
Yes,I have created a page with a table and drop down list on it...I have drag and drop table on page..It creates data provider of that table in sessionbeanpage.java of that page...now in table of page when I want to bind the data by that data provider I am getting error as below..
java.sql.SQLException: statement handle not executed: getMetaData
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1130)
at oracle.jdbc.driver.OracleResultSetImpl.getMetaData(OracleResultSetImpl.java:160)
at oracle.jdbc.driver.OraclePreparedStatement.getMetaData(OraclePreparedStatement.java:1141)
at com.sun.sql.rowset.CachedRowSetXImpl5.getMetaData(CachedRowSetXImpl5.java:2270)
at com.sun.data.provider.impl.CachedRowSetDataProvider.getMetaData(CachedRowSetDataProvider.java:1473)
Caused: java.lang.RuntimeException
at com.sun.data.provider.impl.CachedRowSetDataProvider.getMetaData(CachedRowSetDataProvider.java:1485)
at com.sun.data.provider.impl.CachedRowSetDataProvider.getFieldKeys(CachedRowSetDataProvider.java:563)
at org.netbeans.modules.visualweb.propertyeditors.binding.data.BindOptionsToDataProviderPanel.updateDataProvider(BindOptionsToDataProviderPanel.java:335)
at org.netbeans.modules.visualweb.propertyeditors.binding.data.BindOptionsToDataProviderPanel$1.run(BindOptionsToDataProviderPanel.java:170)
[catch] at java.lang.Thread.run(Thread.java:619)
and because of this error I can not see any columns of that table in Bind to Data property of any component of Visual JSF...
What I should I do to overcome this problem? |
|
| Back to top |
|
 |
roll7
Joined: 25 Mar 2009 Posts: 1
|
|
| Back to top |
|
 |
minaljsoni
Joined: 02 Mar 2009 Posts: 3
|
Posted: Fri Mar 27, 2009 3:29 am Post subject: Problem in fetching data from oracle database in Visual JSF with Netbeans |
|
|
| I am using Oracle 8i....I have tried all JDBC driver for this..but still I m getting error...What should I do? |
|
| Back to top |
|
 |
black_chang
Joined: 30 Jun 2009 Posts: 1
|
Posted: Tue Jun 30, 2009 10:50 am Post subject: |
|
|
I have the same problem on this.
I try to change database driver from jdbc14.jar to jdbc6.jar.
It's work fine.
Thanks a lot. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|