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 152808 - java.lang.UnsupportedOperationException
Summary: java.lang.UnsupportedOperationException
Status: REOPENED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: John Baker
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-09 16:06 UTC by rgsacchetti
Modified: 2009-05-25 21:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 432


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rgsacchetti 2008-11-09 16:06:40 UTC
Caused by: java.sql.SQLException: Error in allocating a connection. Cause: sun.jdbc.odbc.JdbcOdbcDriver cannot be cast 
to javax.sql.DataSource
        at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:115)
        at com.sun.sql.rowset.internal.CachedRowSetXReader.connect(CachedRowSetXReader.java:378)
        at com.sun.sql.rowset.internal.CachedRowSetXReader.readData(CachedRowSetXReader.java:160)
        at com.sun.sql.rowset.CachedRowSetXImpl5.execute(CachedRowSetXImpl5.java:865)
        at com.sun.sql.rowset.CachedRowSetXImpl5.execute(CachedRowSetXImpl5.java:1325)
        at com.sun.data.provider.impl.CachedRowSetDataProvider.checkExecute(CachedRowSetDataProvider.java:1351)
        at com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorRow(CachedRowSetDataProvider.java:402)
        ... 59 more



Build: NetBeans IDE Dev (Build 200707311200)
VM: Java HotSpot(TM) Client VM, 1.6.0_01-b06
OS: Windows XP, 5.1, x86
User comments: 
STACKTRACE: (first 10 lines)
java.lang.UnsupportedOperationException
        at sun.jdbc.odbc.JdbcOdbcPreparedStatement.getParameterMetaData(JdbcOdbcPreparedStatement.java:3469)
        at org.netbeans.modules.db.sql.visualeditor.querybuilder.QueryBuilder.executeQuery(QueryBuilder.java:1177)
        at org.netbeans.modules.db.sql.visualeditor.querybuilder.QueryBuilderSqlTextArea.actionPerformed
(QueryBuilderSqlTextArea.java:616)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1216)
        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1257)
Comment 1 rgsacchetti 2008-11-15 10:05:09 UTC
Hi,
In a Web Appliation I open  from Services window a connection JDBC-ODBC Bridge with a db sqlserver.
Next bind a table to a component jsf. All this is OK, but when  start the browser in the log server print the follow 
exeption:

Caused by: java.sql.SQLException: Error in allocating a connection. Cause: sun.jdbc.odbc.JdbcOdbcDriver cannot be cast 
to javax.sql.DataSource
        at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:115)
        at com.sun.sql.rowset.internal.CachedRowSetXReader.connect(CachedRowSetXReader.java:378)
        at com.sun.sql.rowset.internal.CachedRowSetXReader.readData(CachedRowSetXReader.java:160)
        at com.sun.sql.rowset.CachedRowSetXImpl5.execute(CachedRowSetXImpl5.java:865)
        at com.sun.sql.rowset.CachedRowSetXImpl5.execute(CachedRowSetXImpl5.java:1325)
        at com.sun.data.provider.impl.CachedRowSetDataProvider.checkExecute(CachedRowSetDataProvider.java:1351)
        at com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorRow(CachedRowSetDataProvider.java:402)
        ... 59 more
Can you help me.
Thanks
Comment 2 rgsacchetti 2008-11-15 10:24:40 UTC
Hi,
In a Web Appliation I open  from Services window a connection JDBC-ODBC Bridge with a db sqlserver.
Next bind a table to a component jsf. All this is OK, but when  start the browser in the log server print the follow 
exeption:

Caused by: java.sql.SQLException: Error in allocating a connection. Cause: sun.jdbc.odbc.JdbcOdbcDriver cannot be cast 
to javax.sql.DataSource
        at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:115)
        at com.sun.sql.rowset.internal.CachedRowSetXReader.connect(CachedRowSetXReader.java:378)
        at com.sun.sql.rowset.internal.CachedRowSetXReader.readData(CachedRowSetXReader.java:160)
        at com.sun.sql.rowset.CachedRowSetXImpl5.execute(CachedRowSetXImpl5.java:865)
        at com.sun.sql.rowset.CachedRowSetXImpl5.execute(CachedRowSetXImpl5.java:1325)
        at com.sun.data.provider.impl.CachedRowSetDataProvider.checkExecute(CachedRowSetDataProvider.java:1351)
        at com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorRow(CachedRowSetDataProvider.java:402)
        ... 59 more
Can you help me.
Thanks
Comment 3 Exceptions Reporter 2008-11-16 08:16:35 UTC
This issue has already 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=432