You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by William Wragg <wi...@datapro.co.uk> on 2003/05/08 15:07:33 UTC

[beanutils]RowSetDynaClass Error

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.