Hi,

Thanks for the reply - sorry about the terse info in my first post. 

Stepping through the JBoss code, I've found that the cause of the nullpointer is the 
fact that the getEntity() method in org.jboss.ejb.plugins.cmp.ejbql.ASTPath returns 
null, because the last object in the fieldList is neither an instance of 
CMRFieldBridge nor of EntityBridge, but of JDBCCMP2xFieldBridge. This causes an 
exception on line 323 in the class JDBCEJBQLCompiler.

Looks like a bug to me (especially since this deploys without errors in Orion AS), but 
a snippet from the configuration of the EJB in question and the start of the stack 
trace I get follow below.

Regards,
Manne


        

            <ejb-name>TranslationErrorEJB</ejb-name>
            
<local-home>com.zinesoft.translationerror.ejb.entity.TranslationErrorHome</local-home>
            com.zinesoft.translationerror.ejb.entity.TranslationError
            
<ejb-class>com.zinesoft.translationerror.ejb.entity.TranslationErrorBean</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.String</prim-key-class>
            False
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>TranslationError</abstract-schema-name>
            <cmp-field>
                <field-name>originalLanguage</field-name>
            </cmp-field>
            <cmp-field>
                <field-name>targetLanguage</field-name>
            </cmp-field>
            <cmp-field>
                <field-name>incorrectTranslation</field-name>
            </cmp-field>
            <cmp-field>
                <field-name>suggestedTranslation</field-name>
            </cmp-field>
            <cmp-field>
                The phrase in the original language
                <field-name>phrase</field-name>
            </cmp-field>
            <cmp-field>
                <field-name>id</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>
            
                <query-method>
                    <method-name>findByLanguages</method-name>
                    <method-params>
                        <method-param>
                         com.zinesoft.translationerror.ejb.entity.Language
                        </method-param>
                        <method-param>
                         com.zinesoft.translationerror.ejb.entity.Language
                        </method-param>
                    </method-params>
                </query-method>
                <ejb-ql>SELECT OBJECT(t) FROM TranslationError t WHERE 
t.originalLanguage = ?1 AND t.targetLanguage = ?2</ejb-ql>
            
        


2004-04-14 21:51:40,093 ERROR [org.jboss.ejb.EntityContainer] Starting failed
org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 'SELECT 
OBJECT(t) FROM TranslationError t WHERE t.originalLanguage = ?1 AND t.targetLanguage = 
?2'; - nested throwable: (java.lang.NullPointerException)
        at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.(JDBCEJBQLQuery.java:50)
        at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createEJBQLQuery(JDBCCommandFactory.java:59)
...



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830633#3830633

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830633


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to