Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Parse exception in EJB QL  RSS feed

 
krishna poluru
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am getting the following error
SELECT OBJECT(a) FROM ECMAreaInfoEJB a WHERE a.stateText = ?1
" specified for findByStateTxt(java.lang.String) could not be parsed. The parse exception text is "Encountered " a" at line 1, column 1.
Was expecting:
"FROM" ...
".
following is part of my deployment descriptor
<abstract-schema-name>ECMAreaInfoEJB</abstract-schema-name>
<cmp-field>
<field-name>zipRangeText</field-name>
</cmp-field>
<cmp-field>
<field-name>stateText</field-name>
</cmp-field>
<cmp-field>
<field-name>areaID</field-name>
</cmp-field>
<cmp-field>
<field-name>pOPNbr</field-name>
</cmp-field>
<cmp-field>
<field-name>gPCIUID</field-name>
</cmp-field>
<cmp-field>
<field-name>mSAText</field-name>
</cmp-field>
<primkey-field>areaID</primkey-field>
<query>
<query-method>
<method-name>findByStateTxt</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM ECMAreaInfoEJB a WHERE a.stateText = ?1]]>
</ejb-ql>
</query>

Can any one help me out to resolve this compile time error please!!!
Thanks in advance,
Krishna
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!