version 1.2.0 and hibernate 3.3.1.GA error

73 views
Skip to first unread message

herbert mangune

unread,
Aug 28, 2013, 1:58:09 AM8/28/13
to java-gen...@googlegroups.com
Hi,

Good day!

I've encountered this error with the combination written on the subject.

java.lang.NoSuchMethodError: org.hibernate.SessionFactory.getCurrentSession()Lorg/hibernate/Session;
        at com.googlecode.genericdao.dao.hibernate.HibernateBaseDAO.getSession(HibernateBaseDAO.java:68)
        at com.googlecode.genericdao.dao.hibernate.HibernateBaseDAO._searchUnique(HibernateBaseDAO.java:600)
        at com.googlecode.genericdao.dao.hibernate.GenericDAOImpl.searchUnique(GenericDAOImpl.java:125)
        at org.testing.wirring.common.service.impl.ConfigServiceImpl.retrieveConfigByName(ConfigServiceImpl.java:41)
        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:597)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy36.retrieveConfigByName(Unknown Source)
        at org.testing.wirring.common.filter.DMSStartupContext.contextInitialized(DMSStartupContext.java:45)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
        at org.apache.catalina.core.StandardService.start(StandardService.java:519)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
        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:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

the work around i find to keep my current version of hibernate is with generic-dao ver 1.1.0.
Would this be my permanent solution with the version of hibernate I'm currently using?

David Wolverton

unread,
Aug 28, 2013, 10:34:29 PM8/28/13
to java-gen...@googlegroups.com
Indeed Version 1.2 only supports Hibernate 4.x. Version 1.1 does, I believe, does support Hibernate 3.x.


--
You received this message because you are subscribed to the Google Groups "java-generic-dao" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-generic-d...@googlegroups.com.
To post to this group, send email to java-gen...@googlegroups.com.
Visit this group at http://groups.google.com/group/java-generic-dao.
For more options, visit https://groups.google.com/groups/opt_out.

herbert mangune

unread,
Aug 28, 2013, 11:43:58 PM8/28/13
to java-gen...@googlegroups.com
Thanks for the clarification 


--
You received this message because you are subscribed to a topic in the Google Groups "java-generic-dao" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/java-generic-dao/4G54keSoaBg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to java-generic-d...@googlegroups.com.

To post to this group, send email to java-gen...@googlegroups.com.
Visit this group at http://groups.google.com/group/java-generic-dao.
For more options, visit https://groups.google.com/groups/opt_out.



--
Regards,
Herbert L. Mangune
Reply all
Reply to author
Forward
0 new messages