You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by pds1602 <pa...@ds-s.com> on 2008/03/04 10:29:06 UTC

Camel 1.2 JPA consumer broken?

Trying to consume an entity bean using JPA:

from("jpa:com.dss.persistence.InTable")

Results in the following exception:

Caused by: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2.0 (Build
b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.EJBQLException
Exception Description: Syntax error parsing the query [select x from
com.dss.persistence.InTable x], line 1, column 18: unexpected token [.].


-- 
View this message in context: http://www.nabble.com/Camel-1.2-JPA-consumer-broken--tp15823400s22882p15823400.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel 1.2 JPA consumer broken?

Posted by David Siefert <si...@gmail.com>.
On Tue, Mar 4, 2008 at 4:29 AM, pds1602 <pa...@ds-s.com> wrote:

>
> Trying to consume an entity bean using JPA:
>
> from("jpa:com.dss.persistence.InTable")
>
> Results in the following exception:
>
> Caused by: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2.0(Build
> b58g-fcs (09/07/2007))):
> oracle.toplink.essentials.exceptions.EJBQLException
> Exception Description: Syntax error parsing the query [select x from
> com.dss.persistence.InTable x], line 1, column 18: unexpected token [.].
>
>
> --
> View this message in context:
> http://www.nabble.com/Camel-1.2-JPA-consumer-broken--tp15823400s22882p15823400.html
> Sent from the Camel - Users mailing list archive at Nabble.com<http://nabble.com/>
> .
>
>

I do not have any experience with Oracle TopLink (I use Hibernate), but have
you tried this without the package name, and just using the JPA entity name
(either the name in @Entity, or class name alone--the default)?

-David

Re: Camel 1.2 JPA consumer broken?

Posted by James Strachan <ja...@gmail.com>.
On 04/03/2008, pds1602 <pa...@ds-s.com> wrote:
>
>
>
>  James.Strachan wrote:
>  >
>  > On 04/03/2008, pds1602 <pa...@ds-s.com> wrote:
>  >>
>  >>  Trying to consume an entity bean using JPA:
>  >>
>  >>  from("jpa:com.dss.persistence.InTable")
>  >>
>  >>  Results in the following exception:
>  >>
>  >>  Caused by: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2.0
>  >> (Build
>  >>  b58g-fcs (09/07/2007))):
>  >> oracle.toplink.essentials.exceptions.EJBQLException
>  >>  Exception Description: Syntax error parsing the query [select x from
>  >>  com.dss.persistence.InTable x], line 1, column 18: unexpected token [.].
>  >
>  > Ah - I wonder if TopLink doesn't support fully qualified class names.
>  > This query seems to work fine in OpenJPA and Hibernate.
>  >
>  > I wonder what the magic encoding of the query is for TopLink?  I
>  > thought this JPA stuff was meant to be a standard dammit :)
>  > --
>  > James
>  > -------
>  > http://macstrac.blogspot.com/
>  >
>  > Open Source Integration
>  > http://open.iona.com
>  >
>  >
>
>
> I tried hibernate and it works ok so must be an incompatibility problem with
>  TopLink.

Thanks for letting us know - if any TopLink experts ever figure out
how to do a simple JPA query with it, I'd be grateful :)

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Re: Camel 1.2 JPA consumer broken?

Posted by pds1602 <pa...@ds-s.com>.


James.Strachan wrote:
> 
> On 04/03/2008, pds1602 <pa...@ds-s.com> wrote:
>>
>>  Trying to consume an entity bean using JPA:
>>
>>  from("jpa:com.dss.persistence.InTable")
>>
>>  Results in the following exception:
>>
>>  Caused by: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2.0
>> (Build
>>  b58g-fcs (09/07/2007))):
>> oracle.toplink.essentials.exceptions.EJBQLException
>>  Exception Description: Syntax error parsing the query [select x from
>>  com.dss.persistence.InTable x], line 1, column 18: unexpected token [.].
> 
> Ah - I wonder if TopLink doesn't support fully qualified class names.
> This query seems to work fine in OpenJPA and Hibernate.
> 
> I wonder what the magic encoding of the query is for TopLink?  I
> thought this JPA stuff was meant to be a standard dammit :)
> -- 
> James
> -------
> http://macstrac.blogspot.com/
> 
> Open Source Integration
> http://open.iona.com
> 
> 

I tried hibernate and it works ok so must be an incompatibility problem with
TopLink.


-- 
View this message in context: http://www.nabble.com/Camel-1.2-JPA-consumer-broken--tp15823400s22882p15826587.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel 1.2 JPA consumer broken?

Posted by James Strachan <ja...@gmail.com>.
On 04/03/2008, pds1602 <pa...@ds-s.com> wrote:
>
>  Trying to consume an entity bean using JPA:
>
>  from("jpa:com.dss.persistence.InTable")
>
>  Results in the following exception:
>
>  Caused by: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2.0 (Build
>  b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.EJBQLException
>  Exception Description: Syntax error parsing the query [select x from
>  com.dss.persistence.InTable x], line 1, column 18: unexpected token [.].

Ah - I wonder if TopLink doesn't support fully qualified class names.
This query seems to work fine in OpenJPA and Hibernate.

I wonder what the magic encoding of the query is for TopLink?  I
thought this JPA stuff was meant to be a standard dammit :)
-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com