Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Persistence Options
[Teneo] Persistence Options [message #606625] Tue, 08 May 2007 12:51
Roman Bliznets is currently offline Roman BliznetsFriend
Messages: 75
Registered: July 2009
Member
Hello... I'm try to use PersistenceOptions.PERSISTENCE_XML and get an
exception:

java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:394)
at org.apache.xerces.util.ParserConfigurationSettings.setProper ty(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.setProperty(Unk nown Source)
at org.apache.xerces.parsers.AbstractSAXParser.setProperty(Unkn own Source)
at org.apache.xerces.jaxp.SAXParserImpl.setProperty(Unknown Source)
at
org.eclipse.emf.teneo.annotations.xml.XmlPersistenceMapper.a pplyPersistenceMapping(XmlPersistenceMapper.java:90)
at
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:104)
at
org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore.java:531)
at
org.eclipse.emf.teneo.hibernate.HbSessionDataStore.mapModel( HbSessionDataStore.java:149)
at
org.eclipse.emf.teneo.hibernate.HbSessionDataStore.initializ e(HbSessionDataStore.java:70)
at test.SessionFactoryBean.getSessionFactory(SessionFactoryBean .java:76)
at customs.ru.categories._3._0._0.tests._0Example.main(_0Exampl e.java:86)

this line:
saxParser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource",
this.getClass()
.getResourceAsStream("persistence-mapping.xsd"));
stream is null and ocurr exception

I check file "persistence-mapping.xsd", it exist and
XmlPersistenceMapper.class.getResourceAsStream("persistence-mapping.xsd ")
return not null stream.
In Debug Mode:
"this.getClass()"= Class<T>
(org.eclipse.emf.teneo.hibernate.hbannotation.util.MappingBu ilder$LocalXmlPersistenceMapper)
and because of it stream=null

What should I do?
Previous Topic:CDO for Eclipse 3.3?
Next Topic:Same named element in 2 different xsd
Goto Forum:
  


Current Time: Thu Jan 21 16:16:01 GMT 2021

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

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

Back to the top