• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Fixed
  • Integration Modules
  • hhuynh
  • Reporter: teck
  • January 23, 2008
  • 0
  • Watchers: 0
  • April 18, 2008
  • March 27, 2008

Description

source: http://forums.terracotta.org/forums/posts/list/15/738.page#4443

Caused by: com.tc.exception.TCRuntimeException: com.tc.exception.TCRuntimeException: java.lang.reflect.InvocationTargetException at com.tc.object.ClientObjectManagerImpl.createNewPeer(ClientObjectManagerImpl.java:1043) at com.tc.object.TCObjectImpl.createPeerObjectIfNecessary(TCObjectImpl.java:176) at com.tc.object.TCObjectImpl.hydrate(TCObjectImpl.java:104) at com.tc.object.ClientObjectManagerImpl.lookup(ClientObjectManagerImpl.java:521) at com.tc.object.ClientObjectManagerImpl.lookupObject(ClientObjectManagerImpl.java:41 at com.tc.object.ClientObjectManagerImpl.lookupObject(ClientObjectManagerImpl.java:407) at com.tc.object.TCObjectPhysical.resolveReference(TCObjectPhysical.java:133) at x.common.model.Delivery.__tc_getuser(Unknown Source) at x.common.model.Delivery.__tc_getmanagedfield(Unknown Source) at x.chalkboard.delivery.model.ChalkboardDelivery.__tc_getmanagedfield(Unknown Source) at com.tc.util.FieldUtils.resolveReference(FieldUtils.java:212) at com.tc.util.FieldUtils.get(FieldUtils.java:3 at java.lang.reflect.Field.get(Field.java) at org.hibernate.property.DirectPropertyAccessor$DirectGetter.get(DirectPropertyAccessor.java:32) … 28 more Caused by: com.tc.exception.TCRuntimeException: java.lang.reflect.InvocationTargetException at org.terracotta.modules.hibernate_3_1_2.object.applicator.HibernateProxyApplicator.getSession(HibernateProxyApplicator.java:271) at org.terracotta.modules.hibernate_3_1_2.object.applicator.HibernateProxyApplicator.getNewInstance(HibernateProxyApplicator.java:202) at com.tc.object.TCClassImpl.getNewInstanceFromNonDefaultConstructor(TCClassImpl.java:343) at com.tc.object.TCObjectFactoryImpl.getNewPeerObject(TCObjectFactoryImpl.java:50) at com.tc.object.ClientObjectManagerImpl.createNewPeer(ClientObjectManagerImpl.java:1041) … 41 more Caused by: java.lang.reflect.InvocationTargetException 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:585) at org.terracotta.modules.hibernate_3_1_2.object.applicator.HibernateProxyApplicator.getSession(HibernateProxyApplicator.java:257) … 45 more Caused by: org.hibernate.HibernateException: No CurrentSessionContext configured! at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:542) … 50 more

Comments

Fiona OShea 2008-03-19

Tim can you summerise what the issue is? so that we can understand what impact fixing would be. thanks

Tim Eck 2008-03-19

I actually don’t remember at all what is wrong with this. Antonio, do you remember?

Antonio Si 2008-03-27

It seems like there is a missing configuration in the SessionFactory of the hibernate cfg file:

org.hibernate.context.ThreadLocalSessionContext

After setting this, it seems they are running fine so far.

Fiona OShea 2008-03-31

Does this mean that we need to manually add this? Or it has been added? Is it documented?