Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Teneo newbi, problems getting started
Teneo newbi, problems getting started [message #601421] Fri, 19 January 2007 23:07
Mark Geib is currently offline Mark GeibFriend
Messages: 432
Registered: July 2009
Senior Member
I have the following code section in the start() method of my plugin:

final Properties props = new Properties();
props.setProperty(Environment.DRIVER, "com.mysql.jdbc.Driver");
props.setProperty(Environment.USER, "geib");
props.setProperty(Environment.URL,
"jdbc:mysql://200.50.32.186:3306/srdV3");
props.setProperty(Environment.PASS, "");
props.setProperty(Environment.DIALECT,
org.hibernate.dialect.MySQL5InnoDBDialect.class.getName());

// Initialize and create the HbDataStore
HbDataStore dataStore =
HbHelper.INSTANCE.createRegisterDataStore("srdV3");
dataStore.setEPackages(new EPackage[] {SrdPackage.eINSTANCE});
dataStore.setHibernateProperties(props);
dataStore.initialize();

When the last line, dataStore.initialize() is called I get the following
stack trace...any ideas or help would be appreciated.

Mark.

java.lang.NullPointerException
at java.lang.String.compareTo(Unknown Source)
at
org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessOneToManyReference(DefaultAnnotator.java:785)
at
org.eclipse.emf.teneo.hibernate.hbannotation.util.HibernateD efaultAnnotator.processOneToManyReference(HibernateDefaultAn notator.java:176)
at
org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessEFeature(DefaultAnnotator.java:511)
at
org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessClass(DefaultAnnotator.java:390)
at
org.eclipse.emf.teneo.hibernate.hbannotation.util.HibernateD efaultAnnotator.processClass(HibernateDefaultAnnotator.java: 140)
at
org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessPackage(DefaultAnnotator.java:235)
at
org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.ma p(DefaultAnnotator.java:155)
at
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:158)
at
org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore.java:374)
at
org.eclipse.emf.teneo.hibernate.HbDataStore.mapModel(HbDataS tore.java:363)
at
org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:156)
at
srd.view.navigator.ServiceNavigatorPlugin.start(ServiceNavig atorPlugin.java:73)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:991)
Previous Topic:Teneo: It is impossible to specify queries order for Hibernate resource
Next Topic:[Transactions] [Teneo] What is the best way to create a NotificationFilter for the contents of a spe
Goto Forum:
  


Current Time: Sun Feb 28 07:55:37 GMT 2021

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

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

Back to the top