[ http://jira.jboss.com/jira/browse/JBAS-277?page=comments#action_12311336 
]
     
Alex Loubyansky commented on JBAS-277:
--------------------------------------

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?

> datetime as PK doesn't work in 3.0.3
> ------------------------------------
>
>          Key: JBAS-277
>          URL: http://jira.jboss.com/jira/browse/JBAS-277
>      Project: JBoss Application Server
>         Type: Bug
>   Components: CMP service
>     Reporter: SourceForge User
>     Assignee: Alex Loubyansky
>     Priority: Critical

>
>
> SourceForge Submitter: softwaremasters .
> 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)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to