Hello,

I doubt that the ArrayStoreException is really related to your using a
JBoss DataSource connection. I think that this might be due to a class
loading issue when the generated field that you're passing to
DSLContext.select() does not really implement the org.jooq.Field type
expected within the method.

Can you provide a minimal test case to reproduce this issue?

Cheers
Lukas


2013/10/21 <[email protected]>

> I'm trying to run a query using JOOQ and JBOSS AS 7.1 by using a
> datasource connection. The connection is stablished correctly and passed to
> the DSLContext object via DSLContext create = DSL.using(conn,
> SQLDialect.ORACLE); but when i try to run any query i get the following
> error:
>
> java.lang.ArrayStoreException: org.jooq.impl.TableFieldImpl
> at org.jooq.impl.DefaultDSLContext.select(DefaultDSLContext.java:644)
> [jooq-3.1.0.jar:]
>
> And when i use a normal JDBC connection to the same DB, the query executes
> correctly.
>
> I'm injecting the Datasource in a EJB and getting the connection as
> follows:
>
> Connection c = datasource.getConnection();
>
> Is there any problem with JOOQ and this kind of datasources?
>
> Thanks for any help
>
> --
> You received this message because you are subscribed to the Google Groups
> "jOOQ User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to