-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate RMI DAtaSource ClassCastException
PostPosted: Wed May 11, 2011 8:34 am 
Newbie

Joined: Mon May 09, 2011 9:09 am
Posts: 2
Hi All,
Am getting the following exception, but when i restart my server. It works fine. This happens very frequently, Any solution si appreciated.

May 9, 2011 2:29:53 PM EDT> <Error> <HTTP> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@128d900 - spec-version: 'null'] Root cause of ServletException.
org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate session for transaction; nested exception is java.lang.ClassCastException: weblogic.jdbc.common.internal.RmiDataSource cannot be cast to weblogic.rmi.extensions.server.RemoteWrapper at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:452)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:234)
at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:217)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
Truncated. see log file for complete stacktrace
java.lang.ClassCastException: weblogic.jdbc.common.internal.RmiDataSource cannot be cast to weblogic.rmi.extensions.server.RemoteWrapper
at weblogic.rmi.cluster.BasicReplicaHandler.refreshReplicaList(BasicReplicaHandler.java:513)
at weblogic.rmi.cluster.BasicReplicaHandler.failOver(BasicReplicaHandler.java:206)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:264)
at weblogic.jdbc.common.internal.RmiDataSource_1030_WLStub.getConnection(Unknown Source)
at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:80)
Truncated. see log file for complete stacktrace


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.