-->
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.  [ 3 posts ] 
Author Message
 Post subject: JBoss 3.2.6RC1 --> 3.2.6
PostPosted: Tue Oct 19, 2004 10:58 am 
Newbie

Joined: Mon Oct 18, 2004 4:18 pm
Posts: 4
Hibernate version:
JBoss 3.2.6

Attempting to get a SessionFactory from the HibernateContext and I get the following error:

10:30:14,099 ERROR [LogInterceptor] Unexpected Error in method: public abstract java.util.List com.tsys.esc.ta.ejb.session.interfaces.ProgramSession.getProgram(java.lang.Object) throws java.rmi.RemoteException
java.lang.NoSuchMethodError: org.jboss.hibernate.session.TransactionSynch.<init>(Ljava/lang/String;Lnet/sf/hibernate/Session;)V
at org.jboss.hibernate.session.HibernateContext.prepareSession(HibernateContext.java:171)
at org.jboss.hibernate.session.HibernateContext.getSession(HibernateContext.java:99)
at com.tsys.esc.ta.dao.util.HibernateManager.getSession(HibernateManager.java:42)
at com.tsys.esc.ta.dao.util.HibernateManager.getSession(HibernateManager.java:37)
at com.tsys.esc.ta.dao.hibernate.AbstractHibernateDAO.getObject(AbstractHibernateDAO.java:98)
at com.tsys.esc.ta.ejb.session.bean.ProgramSessionBean.getProgram(ProgramSessionBean.java:134)
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$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:111)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
at org.jboss.ejb.Container.invoke(Container.java:709)
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.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:360)
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 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.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)


I traced into the source and it appears the following line errors out:
HibernateContext.java Line: 171
tm.getTransaction().registerSynchronization( new TransactionSynch(name, session) );

This all worked in version 3.2.6RC1. I made a change from SesssionContext to HibernateContext because of some refactoring between RC1 and the Release version. I even tried to omit the Hibernate-Session container configuration section in our build. That was part of the setup for RC1, but doesn't get mentioned in the wiki for the 3.2.6 release version. Any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 20, 2004 2:04 pm 
Beginner
Beginner

Joined: Mon Aug 16, 2004 6:09 am
Posts: 46
Location: Geneva, Switzerland
Make sure you're using correct jboss-hibernate.jar. I'm pretty sure the one shipped with 3.2.6 release has correct signature:
Code:
   public TransactionSynch(String name, Session session)


isn't it what your code wants saying java.lang.NoSuchMethodError: org.jboss.hibernate.session.TransactionSynch.<init>(Ljava/lang/String;Lnet/sf/hibernate/Session;)V

Note that in 3.2.6RC1 it was different
Code:
    public TransactionSynch(Session session)


seems you're using this one (from RC1).


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 21, 2004 11:47 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Yes, this most definitely appears to be a jar version issue.


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

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.