Bugs item #618491, was opened at 2002-10-04 13:42
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=618491&group_id=22866
Category: JBossCMP
Group: None
>Status: Closed
>Resolution: Invalid
Priority: 7
Submitted By: Vinh Nguyen (softwaremasters)
Assigned to: Alexey Loubyansky (loubyansky)
Summary: datetime as PK doesn't work in 3.0.3
Initial Comment:
OS: Win2K
JDK: 1.4
DBMS: MS SQL Server 7.0
JBoss version: 3.0.3
I have a table with a composite primary key consisting
of a varchar column and a datetime column. I tried to
remove all rows in the table by doing a findAll() and then
iterate through the list and remove each bean. JBoss
complained that these beans cannot be found. Tried
changing the JDBC type for java.util.Date in
standardjaws.xml and standardjbosscmp-jdbc.xml from
DATE to TIMESTAMP but got the same results.
This is the exception generated on the server side:
06:32:36,564 ERROR [LogInterceptor]
TransactionRolledbackLocalException, causedBy:
javax.ejb.NoSuchObjectLocalException: Entity not
found: primaryKey=[.my.machine.
Fri Oct 04 10:32:32 EDT 2002.]
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext
(AbstractTxInterceptor.java:181)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransacti
ons(TxInterceptorCMT.java:178)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke
(TxInterceptorCMT.java:60)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke
(SecurityInterceptor.java:130)
at org.jboss.ejb.plugins.LogInterceptor.invoke
(LogInterceptor.java:203)
at org.jboss.ejb.EntityContainer.invoke
(EntityContainer.java:493)
at
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.inv
oke(BaseLocalContainerInvoker.java:301)
at org.jboss.ejb.plugins.local.EntityProxy.invoke
(EntityProxy.java:38)
at $Proxy54.getStateMachine(Unknown Source)
at
com.macronetics.wf.ejb.StateMachineManagerBean.get
ActiveVersion(StateMachineManagerBean.java:110)
at sun.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.ejb.StatelessSessionContainer$ContainerInterc
eptor.invoke(StatelessSessionContainer.java:660)
at
org.jboss.resource.connectionmanager.CachedConnectio
nInterceptor.invoke
(CachedConnectionInterceptor.java:186)
at
org.jboss.ejb.plugins.StatelessSessionInstanceIntercept
or.invoke(StatelessSessionInstanceInterceptor.java:77)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext
(AbstractTxInterceptor.java:107)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransacti
ons(TxInterceptorCMT.java:178)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke
(TxInterceptorCMT.java:60)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke
(SecurityInterceptor.java:130)
at org.jboss.ejb.plugins.LogInterceptor.invoke
(LogInterceptor.java:203)
at org.jboss.ejb.StatelessSessionContainer.invoke
(StatelessSessionContainer.java:313)
at org.jboss.ejb.Container.invoke
(Container.java:712)
at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:517)
at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke
(JRMPInvoker.java:381)
at sun.reflect.GeneratedMethodAccessor29.invoke
(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch
(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run
(Transport.java:148)
at java.security.AccessController.doPrivileged
(Native Method)
at sun.rmi.transport.Transport.serviceCall
(Transport.java:144)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages
(TCPTransport.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.r
un(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:536)
----------------------------------------------------------------------
>Comment By: Alexey Loubyansky (loubyansky)
Date: 2002-10-11 11:29
Message:
Logged In: YES
user_id=543482
Closing as no feedback.
----------------------------------------------------------------------
Comment By: Alexey Loubyansky (loubyansky)
Date: 2002-10-04 15:40
Message:
Logged In: YES
user_id=543482
I coudn't reproduce it.
- Composite pk with VARCHAR and TIMESTAMP;
- create 10 records;
- findAll records and remove each one iterating through all.
- Branch_3_0.
Could you provide a test-case or more details?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=618491&group_id=22866
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development