Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Null Pointer Exception in HbDataStore ComputeReferers
[Teneo] Null Pointer Exception in HbDataStore ComputeReferers [message #603506] Mon, 12 March 2007 12:56
Duncan Alexander is currently offline Duncan AlexanderFriend
Messages: 90
Registered: July 2009
Member
Hi,
I have been attempting to intialize an HB Datastore however I am hitting a Null Pointer
Exception in the computeReferers method of the HbDataStore. The full stack trace is:

java.lang.NullPointerException
at org.eclipse.emf.teneo.hibernate.HbDataStore.computeReferers( HbDataStore.java:742)
at org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:163)
at
org.sdmx.registry.persistence.TestHibernateSessionManager.te stTeneoPersistence(TestHibernateSessionManager.java:471)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStar ter.java:32)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at com.intellij.rt.execution.application.AppMain.main(AppMain.j ava:90)


Setup: Teneo 0.75, EMF 2.2, Hiberate 3.2, Java 1.5

Other Info:

Within my setup I am using a hibernate mapping file which I generated with Teneo manually and force
its use through the USE_MAPPING_FILE persistence option.

From tracing through the code it would appear that it is falling over on this line below when it
attempts to get the 'element' from the property value and it is null. The property in question is an
org.hibernate.mapping.List.

throw new HbMapperException("Type "+ ((Collection)prop.getValue()).getElement().getClass().getNam e()
+ " not supported");


regards

Duncan
Previous Topic:[Teneo] Duplicate entity name problem in hibernate mapping file.
Next Topic:[Teneo] Null Pointer Exception in HbDataStore ComputeReferers
Goto Forum:
  


Current Time: Thu Apr 25 16:37:11 GMT 2024

Powered by FUDForum. Page generated in 0.02456 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top