dcsimg
FinderException: find failed. while items exist
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Coos_Bos
Posted On:   Monday, May 27, 2002 03:02 AM

I was using Inprise 4.1 as application server with jbuilder, now I changed to JBoss 2.4.4. I changed the ejb-inprise.xml to jboss.xml and jaws.xml. And in jaws.xml I defined the finders. If i start the server and open the webpages I got a really strange error. On some kind of way the entities that really exists can't be stored in entitybeans, while if I don't define the finder in jaws.xml everything goes alright. Here the error: [ERROR,Default] javax.ejb.FinderException: Find failed, msg=java.lang.ArrayIndex OutOfBoundsException [ERROR,Default] at org.jboss.ejb.plugins.jaws.jdbc.JDBCFinderCommand.exe cute(JDBCFinderCommand.java:111) [ERROR,Default] [ERROR,Default] at org.jbo   More>>

I was using Inprise 4.1 as application server with jbuilder, now I changed to JBoss 2.4.4. I changed the ejb-inprise.xml to jboss.xml and jaws.xml. And in jaws.xml I defined the finders. If i start the server and open the webpages I got a really strange error. On some kind of way the entities that really exists can't be stored in entitybeans, while if I don't define the finder in jaws.xml everything goes alright.



Here the error:

[ERROR,Default] javax.ejb.FinderException: Find failed, msg=java.lang.ArrayIndex
OutOfBoundsException
[ERROR,Default] at org.jboss.ejb.plugins.jaws.jdbc.JDBCFinderCommand.exe
cute(JDBCFinderCommand.java:111)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.plugins.jaws.jdbc.JDBCFindEntitiesComma
nd.execute(JDBCFindEntitiesCommand.java:183)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.fin
dEntities(JAWSPersistenceManager.java:144)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.plugins.CMPPersistenceManager.findEntit
ies(CMPPersistenceManager.java:305)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.EntityContainer.find(EntityContainer.ja
va:583)
[ERROR,Default]
[ERROR,Default] at java.lang.reflect.Method.invoke(Native Method)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.EntityContainer$ContainerInterceptor.in
vokeHome(EntityContainer.java:859)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.plugins.EntitySynchronizationIntercepto
r.invokeHome(EntitySynchronizationInterceptor.java:234)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invok
eHome(EntityInstanceInterceptor.java:147)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHom
e(EntityLockInterceptor.java:97)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxI
nterceptorCMT.java:142)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransac
tions(TxInterceptorCMT.java:347)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxI
nterceptorCMT.java:86)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(
SecurityInterceptor.java:102)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogIn
terceptor.java:103)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.EntityContainer.invokeHome(EntityContai
ner.java:421)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoke
r.invokeHome(JRMPContainerInvoker.java:456)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invok
eHome(HomeProxy.java:237)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invok
e(HomeProxy.java:182)
[ERROR,Default]
[ERROR,Default] at $Proxy52.findByShoppingCart(Unknown Source)
[ERROR,Default]
[ERROR,Default] at com.shipit.shoppingcart.administration.EJBCartAdminis
tration.getShoppingCart(EJBCartAdministration.java:254)
[ERROR,Default]
[ERROR,Default] at java.lang.reflect.Method.invoke(Native Method)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.StatelessSessionContainer$ContainerInte
rceptor.invoke(StatelessSessionContainer.java:542)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.plugins.StatelessSessionInstanceInterce
ptor.invoke(StatelessSessionInstanceInterceptor.java:82)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxI
nterceptorCMT.java:138)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransac
tions(TxInterceptorCMT.java:347)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInter
ceptorCMT.java:100)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(Secu
rityInterceptor.java:127)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterc
eptor.java:170)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.StatelessSessionContainer.invoke(Statel
essSessionContainer.java:286)
[ERROR,Default]
[ERROR,Default] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoke
r.invoke(JRMPContainerInvoker.java:410)
[ERROR,Default]
[ERROR,Default] at java.lang.reflect.Method.invoke(Native Method)
[ERROR,Default]
[ERROR,Default] at sun.rmi.server.UnicastServerRef.dispatch(Unknown Sour
ce)
[ERROR,Default]
[ERROR,Default] at sun.rmi.transport.Transport$1.run(Unknown Source)
[ERROR,Default]
[ERROR,Default] at java.security.AccessController.doPrivileged(Native Me
thod)
[ERROR,Default]
[ERROR,Default] at sun.rmi.transport.Transport.serviceCall(Unknown Sourc
e)
[ERROR,Default]
[ERROR,Default] at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unk
nown Source)
[ERROR,Default]
[ERROR,Default] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.
run(Unknown Source)
[ERROR,Default]
[ERROR,Default] at java.lang.Thread.run(Unknown Source)
[ERROR,Default]

   <<Less

Re: FinderException: find failed. while items exist

Posted By:   Coos_Bos  
Posted On:   Monday, May 27, 2002 03:25 AM

Sorry, for the post. I already found the answer. I made a really stupid error in my jaws.xml. In the finder I placed a link to a parameter, and while there was only one, I named it {1}. This had to be {0}.



Sorry.
About | Sitemap | Contact