No cigar ...

[CMP,DEBUG] EQL-QL: select object(t) from transferhead t where t.status=' '
[CMP,DEBUG] java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
[CMP,DEBUG]     at java.util.ArrayList.RangeCheck(ArrayList.java:491)
[CMP,DEBUG]     at java.util.ArrayList.remove(ArrayList.java:375)
[CMP,DEBUG]     at org.jboss.ejb.plugins.cmp.ejbql.Assembly.pop(Assembly.java:55)
[CMP,DEBUG]     at 
org.jboss.ejb.plugins.cmp.jdbc.ejbql.EJBQLParser$5.workOn(EJBQLParser.java:250)
[CMP,DEBUG]     at 
org.jboss.ejb.plugins.cmp.ejbql.Parser.matchAndAssemble(Parser.java:22)
[CMP,DEBUG]     at 
org.jboss.ejb.plugins.cmp.ejbql.Optional.match(Optional.java:14)
[CMP,DEBUG]     at 
org.jboss.ejb.plugins.cmp.ejbql.Parser.matchAndAssemble(Parser.java:14)
[CMP,DEBUG]     at 
org.jboss.ejb.plugins.cmp.ejbql.Sequence.match(Sequence.java:25)
[CMP,DEBUG]     at 
org.jboss.ejb.plugins.cmp.ejbql.Parser.matchAndAssemble(Parser.java:14)
[CMP,DEBUG]     at 
org.jboss.ejb.plugins.cmp.ejbql.Parser.soleMatch(Parser.java:48)
[CMP,DEBUG]     at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLFinderCommand.<init>(JDBCEJBQLFinderCommand.java:54)
[CMP,DEBUG]     at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createEJBQLFinderCommand(JDBCCommandFactory.java:100)
[CMP,DEBUG]     at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntitiesCommand.start(JDBCFindEntitiesCommand.java:89)
[CMP,DEBUG]     at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:94)
[CMP,DEBUG]     at 
org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:169)
[CMP,DEBUG]     at org.jboss.ejb.EntityContainer.start(EntityContainer.java:355)
[CMP,DEBUG]     at org.jboss.ejb.Application.start(Application.java:213)
[CMP,DEBUG]     at 
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:384)
[CMP,DEBUG]     at 
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:308)
[CMP,DEBUG]     at java.lang.reflect.Method.invoke(Native Method)
[CMP,DEBUG]     at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[CMP,DEBUG]     at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[CMP,DEBUG]     at 
org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:492)
[CMP,DEBUG]     at 
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:470)
[CMP,DEBUG]     at 
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:209)
[CMP,DEBUG]     at java.lang.reflect.Method.invoke(Native Method)
[CMP,DEBUG]     at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[CMP,DEBUG]     at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[CMP,DEBUG]     at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:437)
[CMP,DEBUG]     at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
[CMP,DEBUG]     at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:362)
[CMP,DEBUG]     at 
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:109)
[CMP,DEBUG]     at java.lang.reflect.Method.invoke(Native Method)
[CMP,DEBUG]     at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[CMP,DEBUG]     at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[CMP,DEBUG]     at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:506)
[CMP,DEBUG]     at $Proxy0.start(Unknown Source)
[CMP,DEBUG]     at 
org.jboss.system.ServiceController.deploy(ServiceController.java:138)
[CMP,DEBUG]     at java.lang.reflect.Method.invoke(Native Method)
[CMP,DEBUG]     at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[CMP,DEBUG]     at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[CMP,DEBUG]     at 
org.jboss.deployment.ServiceDeployer.postRegister(ServiceDeployer.java:405)
[CMP,DEBUG]     at 
com.sun.management.jmx.MBeanServerImpl.postRegisterInvoker(MBeanServerImpl.java:2274)
[CMP,DEBUG]     at 
com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:532)
[CMP,DEBUG]     at org.jboss.Main.<init>(Main.java:231)
[CMP,DEBUG]     at org.jboss.Main$1.run(Main.java:134)
[CMP,DEBUG]     at java.security.AccessController.doPrivileged(Native Method)
[CMP,DEBUG]     at org.jboss.Main.main(Main.java:130)

Dain Sundstrom wrote:

> Right now there is no error handling in the ejb-ql parser. The problem with
> your ejb-ql is you have status when you should have t.status.
> 
> It should work then,
> 
> -dain
> 
> 
>>-----Original Message-----
>>From: Dave Smith [mailto:[EMAIL PROTECTED]]
>>Sent: Friday, August 31, 2001 8:12 AM
>>To: [EMAIL PROTECTED]
>>Subject: [JBoss-dev] EJB playing with finders
>>
>>
>>I am trying a simple home method with a query
>>
>>Home method
>>
>>public java.util.Collection  findByInQueue()
>>       throws java.rmi.RemoteException,javax.ejb.FinderException;
>>
>>
>>ejb-jar.xml snippit
>>
>><query>
>><ejb-ql>select object(t) from transferhead t where status=' '</ejb-ql>
>><query-method>
>><method-name>findByInQueue</method-name>
>><method-params>
>></method-params>
>></query-method>
>><result-type-mapping>Remote</result-type-mapping>
>></query>
>>
>>Now there are two problems
>>
>>1)
>>[CMP,DEBUG] Finder: inQueue
>>[CMP,DEBUG] Could not create the finder findByInQueue, because no 
>>matching CMP field was found.
>>
>>there are no arguments, just run it.
>>
>>2) Now actually call the homemethod and I get
>>  findByInQueue command executing: SELECT t1_t.objectid FROM 
>>Transferhead t1_t
>>
>>Which politly returns all of them. Should it not throw an error or at 
>>least not return anything?
>>
>>
>>_______________________________________________
>>Jboss-development mailing list
>>[EMAIL PROTECTED]
>>http://lists.sourceforge.net/lists/listinfo/jboss-development
>>
>>
> 
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-development
> 
> 



_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to