Bugs item #608202, was opened at 2002-09-12 15:30
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=608202&group_id=22866
Category: JBossCMP
Group: v3.0 Rabbit Hole
Status: Open
Resolution: Accepted
Priority: 5
Submitted By: Cory Prowse (cosmic)
Assigned to: Dain Sundstrom (dsundstrom)
Summary: EJBQL fails to compile
Initial Comment:
OS:
Linux (2.4 kernel)
JDK:
java version "1.4.0_01"
Java(TM) 2 Runtime Environment, Standard Edition
(build 1.4.0_01-b03)
Java HotSpot(TM) Client VM (build 1.4.0_01-b03,
mixed mode)
JBoss Release:
JBoss-3.0.2 CVSTag=JBoss_3_0_2
NOTE: I will try and cut out a test case but it may
take a few days (deadline). A workaround is to use
OBJECT() and get the field that way.
When I attempt the following EJBQL:
<query>
<query-method>
<method-name>ejbSelectCargoValue</method-name>
<method-params>
<method-param>packet.interfaces.PacketEntityLocal</method-param>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>[CDATA[SELECT c.value FROM PacketEntity p, IN
(p.cargoes) AS c WHERE p = ?1 AND c.name = ?2]]</ejb-ql>
</query>
I get the following exception:
org.jboss.deployment.DeploymentException: Error
compiling ejbql; - nested throwable:
(java.lang.IllegalStateException: Can not visit
multi-column path node. Should have been handled at a
higher level.)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.<init>(JDBCEJBQLQuery.java:46)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createEJBQLQuery(JDBCCommandFactory.java:44)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.start(JDBCQueryManager.java:214)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:463)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:369)
at
org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:198)
----------------------------------------------------------------------
>Comment By: Cory Prowse (cosmic)
Date: 2002-09-18 13:20
Message:
Logged In: YES
user_id=32851
I'm not sure what you mean?
I don't think I mapped it to multiple columns, it has no CMR
associated with it.
----------------------------------------------------------------------
Comment By: Dain Sundstrom (dsundstrom)
Date: 2002-09-17 06:02
Message:
Logged In: YES
user_id=251431
Did you provide a mapping for the value cmp field (to
multiple columns)?
----------------------------------------------------------------------
Comment By: Cory Prowse (cosmic)
Date: 2002-09-13 11:05
Message:
Logged In: YES
user_id=32851
The Entity beans in question have the following structure:
Packet {
long: packetId
}
Cargo {
long: cargoId
String: name
Object: value
}
With a relationship of one to many (Packet contains many
cargoes).
The Packet also has two other relationships set up with two
other Entities but they are not currently used (the HQSQLDB
has two other Foreign Key columns within the Packet table as
well). I'm not sure if that could be the cause of the issue
though... just letting you know the full details.
I can post the excerpts from the ejb-jar.xml?
----------------------------------------------------------------------
Comment By: Dain Sundstrom (dsundstrom)
Date: 2002-09-13 03:39
Message:
Logged In: YES
user_id=251431
What is the type of c.value? Is it a mapped dependent value
class?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=608202&group_id=22866
-------------------------------------------------------
This SF.NET email is sponsored by: AMD - Your access to the experts
on Hammer Technology! Open Source & Linux Developers, register now
for the AMD Developer Symposium. Code: EX8664
http://www.developwithamd.com/developerlab
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development