Definitely a bug.. - does it for me also on previously working code.

Andy

- looks like fixing bug #80 broke something else

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jeffrey & Nikkole
Bonevich
Sent: Friday, July 28, 2000 4:52 AM
To: jBoss
Subject: Re: [jBoss-User] new CVS OK!!!!

Marc-

Just checked out the latest cvs and re-built.  I am getting an
IndexOutOfBoundsException when trying to change a field on an entity
bean:

   // Now we will retrieve the bean with a primary key
   SimpleCmpPK pk = new SimpleCmpPK(1);
   SimpleCmp simpleCmp3 = home.findByPrimaryKey(pk);
   System.out.println("simple2 has ID = " + simpleCmp3.getId());
   String first = simpleCmp3.getFirstName();
   System.out.println("changing first name from '" +
      first + "' to 'carl'"
   );
   simpleCmp3.setFirstName("carl");

SimpleCmpPK has a single field: public int id
which corresponds to SimpleCmpBean's public int id field declared as
primary key in ejhb-jar.xml (prim-key-class is
com.bonevich.simplecmp.SimpleCmpPK)

Be this a bug?  Or bad config on my part?


[SimpleCmp] Calling the next invoker in runInvoke
[JAWS] Load SQL:SELECT id,firstName FROM SimpleCmp WHERE id=?
[SimpleCmp] Set parameter:1
[SimpleCmp] Calling the next invoker in runInvoke
[SimpleCmp] Calling the next invoker in runInvoke
[SimpleCmp] Calling the next invoker in runInvoke
[SimpleCmp] CURRENTSTATE I1
[SimpleCmp] OLDSTATE ARRAYnull
[SimpleCmp] CURRENTSTATE Icarl
[SimpleCmp] OLDSTATE ARRAYnull
[SimpleCmp] Set parameter:1
[SimpleCmp] Set parameter:carl
[SimpleCmp] java.rmi.ServerException: Store failed; nested exception is:
[SimpleCmp]     java.rmi.ServerException: Store failed; nested exception
is:
[SimpleCmp]     java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
[SimpleCmp] java.rmi.ServerException: Store failed; nested exception is:
[SimpleCmp]     java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
[SimpleCmp] java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
[SimpleCmp]     at java.lang.Throwable.<init>(Throwable.java:96)
[SimpleCmp]     at java.lang.Exception.<init>(Exception.java:44)
[SimpleCmp]     at
java.lang.RuntimeException.<init>(RuntimeException.java:49)
[SimpleCmp]     at
java.util.ArrayList.RangeCheck(ArrayList.java(Compiled Code))
[SimpleCmp]     at
java.util.ArrayList.RangeCheck(ArrayList.java(Compiled Code))
[SimpleCmp]     at java.util.ArrayList.get(ArrayList.java(Compiled
Code))
[SimpleCmp]     at
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.getPkFieldValue(JAWSPersis
tenceManager.java:1344)
[SimpleCmp]     at
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.storeEntity(JAWSPersistenc
eManager.java:933)
[SimpleCmp]     at
org.jboss.ejb.plugins.CMPPersistenceManager.storeEntity(CMPPersistenceManage
r.java:199)
[SimpleCmp]     at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchron
izationInterceptor.java:231)
[SimpleCmp]     at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterce
ptor.java:100)
[SimpleCmp]     at
org.jboss.ejb.plugins.TxInterceptor$RunInvoke.run(TxInterceptor.java:491)
[SimpleCmp]     at
org.jboss.ejb.plugins.TxInterceptor.runWithTransactions(TxInterceptor.java:2
89)
[SimpleCmp]     at
org.jboss.ejb.plugins.TxInterceptor.invoke(TxInterceptor.java:100)
[SimpleCmp]     at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:93
)
[SimpleCmp]     at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:154)
[SimpleCmp]     at
org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:315)
[SimpleCmp]     at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
nvoker.java:175)
[SimpleCmp]     at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
nvoker.java:159)
[SimpleCmp]     at java.lang.reflect.Method.invoke(Native Method)
[SimpleCmp]     at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:242)
[SimpleCmp]     at sun.rmi.transport.Transport$1.run(Transport.java:155)
[SimpleCmp]     at java.security.AccessController.doPrivileged(Native
Method)
[SimpleCmp]     at
sun.rmi.transport.Transport.serviceCall(Transport.java:152)
[SimpleCmp]     at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:462)
[SimpleCmp]     at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:6
62)
[SimpleCmp]     at java.lang.Thread.run(Thread.java:498)
[SimpleCmp] Calling the next invoker in runInvoke
[SimpleCmp] Set parameter:1
[SimpleCmp] Calling the next invoker in runInvoke
[SimpleCmp] Set parameter:2


marc fleury wrote:
>
> folks,
>
> It works! :)
>
> go get it! :)
>
> TestBeans.jar now complete the test since sebastien solved the tuned
updates
> bug, the Enumeration bug and helped me trouble shoot the bind problem with
> the EJX classes.
>
> I have to go so I won't list the new features...
>
> regards
>
> marc
>
> PS: I will put it in binary tomorrow, we need to set up the mirrors at
this
> time
> PS2: I will duplicate to jboss-ann, sorry for the cross posting
>
> ________________________
> Marc Fleury
> Chief Technology Officer
> Telkel, Inc.
> ________________________
>
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]

--
Jeffrey & Nikole Bonevich
Maxmillian Bonevich
Ann Arbor, Michigan
[EMAIL PROTECTED]
http://www.bonevich.com


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to