Submit a bug report.
----- Original Message -----
From: "Fred Loney" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, July 10, 2001 10:32 AM
Subject: Re: [JBoss-user] null finder parameter
> My mistake. I've been surprised by that distinction before; you'd think
I'd learn.
>
> There is, however, a bigger problem that precludes any jboss declared cmp
finder with a null argument. jboss gets the type of an argument by calling
getClass() on the instance. If the argument is null, this raises an
exception with the unenlightening message "Find failed".
>
> It would be preferable to modify the jboss jaws plugin to check for a null
argument and format the PreparedStatement accordingly. To be precise, a null
check on arg in
org.jboss.ejb.plugins.jaws.jdbc.JDBCDefinedFinderCommand.setParameters():
>
> if (arg == null)
> jdbcType = java.sql.Types.NULL;
> else
> jdbcType = typeMapping.getJdbcTypeForJavaType(arg.getClass());
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user