• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unexpected Token Error

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
--> I am using JBoss 3.0.2
--> have succesfully deployed my beans
--> client to server communication is happening
But when a method in my session bean is calling a finder method on an entity bean i get the following error
14:23:02,781 ERROR [STDERR] Caused by: javax.ejb.EJBException: Load failed; Caus
edByException is:
Unexpected token: FROM in statement [SELECT name,count FROM ENTITY WHERE
(name='david') OR (name='mandy') OR (name='bush') OR (name='clinton') OR (name=
'arun')]
14:23:02,781 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntity
Command.execute(JDBCLoadEntityCommand.java:176)
14:23:02,781 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntity
Command.execute(JDBCLoadEntityCommand.java:62)
14:23:02,781 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManag
er.loadEntity(JDBCStoreManager.java:572)

what might be the reason ?
Thanks in advance
Meka Toka
[ January 03, 2003: Message edited by: meka toka ]
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am assuming this is a CMP Entity Bean. Could you post your related deployment descriptors?
 
meka toka
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Yes, it is a CMP entity bean,
and somebody hinted me that it might be because the word count is keyword, right now dont have the code with me .. i am going to try and replace the word count.
If i come across a problem .. will post it again

Thank You
Meka Toka
 
Chris Mathews
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by meka toka:
somebody hinted me that it might be because the word count is keyword


That would make sense. I didn't catch that the first time I looked at it. Those obvious errors are always the hardest to catch.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic