commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Wragg <will...@datapro.co.uk>
Subject [beanutils]RowSetDynaClass Error
Date Thu, 08 May 2003 13:07:33 GMT
Hi,

I am just creating a quick test in a JSP and get the following error from 
the RowSetDynaClass:

exception

javax.servlet.ServletException: Cannot load column class 'unknown': 
java.lang.ClassNotFoundException: unknown

.
.
.

root cause

java.sql.SQLException: Cannot load column class 'unknown': 
java.lang.ClassNotFoundException: unknown
	at 
org.apache.commons.beanutils.RowSetDynaClass.loadClass(RowSetDynaClass.java:421)
	at 
org.apache.commons.beanutils.RowSetDynaClass.createDynaProperty(RowSetDynaClass.java:396)
	at 
org.apache.commons.beanutils.RowSetDynaClass.introspect(RowSetDynaClass.java:350)
	at org.apache.commons.beanutils.RowSetDynaClass.(RowSetDynaClass.java:175)
	at org.apache.commons.beanutils.RowSetDynaClass.(RowSetDynaClass.java:142)
.
.
.

The JSP code is:

.
.
.
<jsp:useBean id="DbSQL3" scope="session" class="com.db.DbSQL3" />

<%-- Connect to the database using the context and datasource --%>
<% DbSQL3.connect(); %>

<%-- Run a query --%>
<% java.sql.ResultSet rs = DbSQL3.query("select * from user"); %>
<% RowSetDynaClass rsdc = new RowSetDynaClass(rs); %>

<% rs.close(); %>
<% DbSQL3.disconnect(); %>
.
.
.

The table concerned is from an Informix database and contains only chars. 
There is a null in one of the records, could this be the problem?

Regards,

Wm.

Mime
View raw message