Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

need help urgently,about IHelperType.createHelper()

I use EMF ecore to build a custom db.it contains two classes, one's super class was simpleItem and the other one's super class is Helper . There is a reference(to the helper) in the simpleItem class(one-many).
My issue is :when i want to create a helper there is a JVM exception was throwed.I think there are caches in the eclipse may be ,but how to resolve this issue??

code snippet:
throw an Exception at createHelper():
History history = (History) getHistoryType().createHelper();


private static IHelperType getHistoryType() {
return IHelperType.IRegistry.INSTANCE.getHelperType(
DataCollectorPackage.eINSTANCE.getHistory().getName(),
DataCollectorPackage.eNS_URI);
}



Exception:
"The type org.osgi.framework.BundleContext cannot be resolved. It is indirectly referenced from required .class files

com.ibm.team.repository.common.transport.ServiceMethodInvocationError: java.lang.ExceptionInInitializerError"


additional: J9VMInternals->initialize(Class clazz)->getInitStatus(clazz) always return FAILED. This is the main reason.

Thanks very much.

0 votes



One answer

Permanent link
when i change all of the UUID attribute to String ,it was fixed.But i don't know the reason.. Does anybody could tell me whether there are conficts or rules when the helper class and some UUID attributes was used together?

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,937

Question asked: Feb 02 '10, 3:32 a.m.

Question was seen: 5,648 times

Last updated: Feb 02 '10, 3:32 a.m.

Confirmation Cancel Confirm