Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] HibernateStore MappingException: Unknown entity: CDORevisionImpl
[CDO] HibernateStore MappingException: Unknown entity: CDORevisionImpl [message #990476] Wed, 12 December 2012 11:12 Go to next message
Stephan Krusche is currently offline Stephan Krusche
Messages: 18
Registered: September 2012
Junior Member
I am using CDO 4.2 (I20121206-0553) with the HibernateStore Configuration with EMF 2.9.0-M3, Teneo 2.0.1, Hibernate 4.1.1 and Eclipse 4.3-M3.
When I create new objects in my CDO Client, add them to a resource (in my empty database) and commit them, everything works fine.
I can also change values of these attributes and commit these changes without problems.

However creating new objects sometimes leads to the following Hibernate MappingException on the CDO HibernateStore:

org.hibernate.MappingException: Unknown entity: org.eclipse.emf.cdo.internal.common.revision.CDORevisionImpl
	at org.hibernate.internal.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:1190)
	at org.hibernate.type.EntityType.toLoggableString(EntityType.java:494)
	at org.hibernate.type.AnyType.toLoggableString(AnyType.java:201)
	at org.hibernate.type.CollectionType.renderLoggableString(CollectionType.java:193)
	at org.hibernate.type.CollectionType.toLoggableString(CollectionType.java:184)
	at org.hibernate.internal.util.EntityPrinter.toString(EntityPrinter.java:79)
	at org.hibernate.internal.util.EntityPrinter.toString(EntityPrinter.java:121)
	at org.hibernate.event.internal.AbstractFlushingEventListener.logFlushResults(AbstractFlushingEventListener.java:131)
	at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:107)
	at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)
	at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1127)
	at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStoreAccessor.doWrite(HibernateStoreAccessor.java:952)
	at org.eclipse.emf.cdo.spi.server.StoreAccessorBase.write(StoreAccessorBase.java:151)
	at org.eclipse.emf.cdo.internal.server.TransactionCommitContext.write(TransactionCommitContext.java:531)
	at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLoop(InternalCommitContext.java:46)
	at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLoop(InternalCommitContext.java:1)
	at org.eclipse.net4j.util.om.monitor.ProgressDistributor.run(ProgressDistributor.java:96)
	at org.eclipse.emf.cdo.internal.server.Repository.commitUnsynced(Repository.java:917)
	at org.eclipse.emf.cdo.internal.server.Repository.commit(Repository.java:910)
	at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.indicatingCommit(CommitTransactionIndication.java:295)
	at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.indicating(CommitTransactionIndication.java:97)
	at org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerIndicationWithMonitoring.indicating(CDOServerIndicationWithMonitoring.java:109)
	at org.eclipse.net4j.signal.IndicationWithMonitoring.indicating(IndicationWithMonitoring.java:86)
	at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedInput(IndicationWithResponse.java:92)
	at org.eclipse.net4j.signal.Signal.doInput(Signal.java:328)
	at org.eclipse.net4j.signal.IndicationWithResponse.execute(IndicationWithResponse.java:65)
	at org.eclipse.net4j.signal.IndicationWithMonitoring.execute(IndicationWithMonitoring.java:65)
	at org.eclipse.net4j.signal.Signal.runSync(Signal.java:253)
	at org.eclipse.net4j.signal.Signal.run(Signal.java:149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:680)
	at org.hibernate.internal.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:1190)
	at org.hibernate.type.EntityType.toLoggableString(EntityType.java:494)
	at org.hibernate.type.AnyType.toLoggableString(AnyType.java:201)
	at org.hibernate.type.CollectionType.renderLoggableString(CollectionType.java:193)
	at org.hibernate.type.CollectionType.toLoggableString(CollectionType.java:184)
	at org.hibernate.internal.util.EntityPrinter.toString(EntityPrinter.java:79)
	at org.hibernate.internal.util.EntityPrinter.toString(EntityPrinter.java:121)
	at org.hibernate.event.internal.AbstractFlushingEventListener.logFlushResults(AbstractFlushingEventListener.java:131)
	at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:107)
	at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)
	at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1127)
	at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStoreAccessor.doWrite(HibernateStoreAccessor.java:952)
	at org.eclipse.emf.cdo.spi.server.StoreAccessorBase.write(StoreAccessorBase.java:151)
	at org.eclipse.emf.cdo.internal.server.TransactionCommitContext.write(TransactionCommitContext.java:531)
	at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLoop(InternalCommitContext.java:46)
	at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLoop(InternalCommitContext.java:1)
	at org.eclipse.net4j.util.om.monitor.ProgressDistributor.run(ProgressDistributor.java:96)
	at org.eclipse.emf.cdo.internal.server.Repository.commitUnsynced(Repository.java:917)
	at org.eclipse.emf.cdo.internal.server.Repository.commit(Repository.java:910)
	at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.indicatingCommit(CommitTransactionIndication.java:295)
	at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.indicating(CommitTransactionIndication.java:97)
	at org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerIndicationWithMonitoring.indicating(CDOServerIndicationWithMonitoring.java:109)
	at org.eclipse.net4j.signal.IndicationWithMonitoring.indicating(IndicationWithMonitoring.java:86)
	at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedInput(IndicationWithResponse.java:92)
	at org.eclipse.net4j.signal.Signal.doInput(Signal.java:328)
	at org.eclipse.net4j.signal.IndicationWithResponse.execute(IndicationWithResponse.java:65)
	at org.eclipse.net4j.signal.IndicationWithMonitoring.execute(IndicationWithMonitoring.java:65)
	at org.eclipse.net4j.signal.Signal.runSync(Signal.java:253)
	at org.eclipse.net4j.signal.Signal.run(Signal.java:149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:680)


On CDO Client side I get the following exception:

[ERROR] Rollback in HibernateStore: org.hibernate.MappingException: Unknown entity: org.eclipse.emf.cdo.internal.common.revision.CDORevisionImpl
	at org.hibernate.internal.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:1190)
	at org.hibernate.type.EntityType.toLoggableString(EntityType.java:494)
	at org.hibernate.type.AnyType.toLoggableString(AnyType.java:201)
	at org.hibernate.type.CollectionType.renderLoggableString(CollectionType.java:193)
	at org.hibernate.type.CollectionType.toLoggableString(CollectionType.java:184)
	at org.hibernate.internal.util.EntityPrinter.toString(EntityPrinter.java:79)
	at org.hibernate.internal.util.EntityPrinter.toString(EntityPrinter.java:121)
	at org.hibernate.event.internal.AbstractFlushingEventListener.logFlushResults(AbstractFlushingEventListener.java:131)
	at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:107)
	at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)
	at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1127)
	at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStoreAccessor.doWrite(HibernateStoreAccessor.java:952)
	at org.eclipse.emf.cdo.spi.server.StoreAccessorBase.write(StoreAccessorBase.java:151)
	at org.eclipse.emf.cdo.internal.server.TransactionCommitContext.write(TransactionCommitContext.java:531)
	at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLoop(InternalCommitContext.java:46)
	at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLoop(InternalCommitContext.java:1)
	at org.eclipse.net4j.util.om.monitor.ProgressDistributor.run(ProgressDistributor.java:96)
	at org.eclipse.emf.cdo.internal.server.Repository.commitUnsynced(Repository.java:917)
	at org.eclipse.emf.cdo.internal.server.Repository.commit(Repository.java:910)
	at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.indicatingCommit(CommitTransactionIndication.java:295)
	at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.indicating(CommitTransactionIndication.java:97)
	at org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerIndicationWithMonitoring.indicating(CDOServerIndicationWithMonitoring.java:109)
	at org.eclipse.net4j.signal.IndicationWithMonitoring.indicating(IndicationWithMonitoring.java:86)
	at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedInput(IndicationWithResponse.java:92)
	at org.eclipse.net4j.signal.Signal.doInput(Signal.java:328)
	at org.eclipse.net4j.signal.IndicationWithResponse.execute(IndicationWithResponse.java:65)
	at org.eclipse.net4j.signal.IndicationWithMonitoring.execute(IndicationWithMonitoring.java:65)
	at org.eclipse.net4j.signal.Signal.runSync(Signal.java:253)
	at org.eclipse.net4j.signal.Signal.run(Signal.java:149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:680)



Does anyone have an idea why I get this exception and how can I avoid it?

Thanks for help
Stephan
Re: [CDO] HibernateStore MappingException: Unknown entity: CDORevisionImpl [message #990499 is a reply to message #990476] Wed, 12 December 2012 13:39 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal Karaca
Messages: 731
Registered: July 2009
Senior Member
I think I encountered that stack trace already: you could try to use a less verbose log setting until Martin comes with a better solution Smile
Re: [CDO] HibernateStore MappingException: Unknown entity: CDORevisionImpl [message #990702 is a reply to message #990499] Wed, 12 December 2012 17:05 Go to previous messageGo to next message
Martin Taal is currently offline Martin Taal
Messages: 5329
Registered: July 2009
Senior Member
Hmm, yes it seems related to the log setting, can you tell me what log4j or other log settings you use?
Maybe I can reproduce it and solve it more thoroughly..

gr. Martin

On 12/12/2012 07:39 PM, Erdal Karaca wrote:
> I think I encountered that stack trace already: you could try to use a less verbose log setting until Martin comes with
> a better solution :)


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Re: [CDO] HibernateStore MappingException: Unknown entity: CDORevisionImpl [message #991190 is a reply to message #990702] Mon, 17 December 2012 11:39 Go to previous messageGo to next message
Stephan Krusche is currently offline Stephan Krusche
Messages: 18
Registered: September 2012
Junior Member
Hi Martin,

I am not injecting specific log settings for the CDO server and thus not using anything specific. However on my target platform log4j is existing and I have my own log4j Logger. I subclass org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplication in order to set some SSL settings:

public class CDOApplication extends CDOServerApplication {

	public CDOApplication() {
		super();
		prepareSSLCommunication();
		registerEPackages();
	}

	private void registerEPackages() {
		for(EPackage ePkg : PackageUtil.allPackages) {
			EPackage.Registry.INSTANCE.put(ePkg.getNsURI(), ePkg);
		}
	}

	private void prepareSSLCommunication() {
		// Prepare SSL communication
		Authentication authentication = Authentication.getInstance();
		File keyFile = new File(authentication.getPathToKeyStore());
		String keyURLPath = null;
		try {
			keyURLPath = keyFile.toURI().toURL().toString();
		} catch (MalformedURLException ex) {
			Logger.error(ex);
		}
		SSLUtil.setDefaultSSLConfiguration(keyURLPath, keyURLPath, authentication.getKeyStorePassword());
	}
}


At the moment I see the following log when starting the CDO server with an empty database:

[INFO] CDO server starting
!SESSION 2012-12-17 17:29:22.834 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_37
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments:  -product de.tum.in.www1.armed.cdo.server.product
Command-line arguments:  -product de.tum.in.www1.armed.cdo.server.product -data /Users/krusche/Development/armed-kepler-m3/workspace/../runtime/cdo-server.product -dev file:/Users/krusche/Development/armed-kepler-m3/workspace/.metadata/.plugins/org.eclipse.pde.core/cdo-server.product/dev.properties -os macosx -ws cocoa -arch x86 -consoleLog

!ENTRY org.eclipse.emf.cdo.server 1 0 2012-12-17 17:29:24.694
!MESSAGE CDO server starting
log4j: Trying to find [log4j.xml] using context classloader org.eclipse.core.runtime.internal.adaptor.ContextFinder@a826da.
log4j: Trying to find [log4j.xml] using org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@1cbda0a[org.apache.log4j:1.2.16(id=66)] class loader.
log4j: Trying to find [log4j.xml] using ClassLoader.getSystemResource().
log4j: Trying to find [log4j.properties] using context classloader org.eclipse.core.runtime.internal.adaptor.ContextFinder@a826da.
log4j: Trying to find [log4j.properties] using org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@1cbda0a[org.apache.log4j:1.2.16(id=66)] class loader.
log4j: Trying to find [log4j.properties] using ClassLoader.getSystemResource().
log4j: Could not find resource: [null].
log4j:WARN No appenders could be found for logger (org.jboss.logging).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

    create table cdo_package_info (
        packageURI varchar(255) not null,
        parentURI varchar(255),
        cdo_package_unit_id varchar(255),
        idx integer,
        primary key (packageURI)
    ) ENGINE=InnoDB

    create table cdo_package_unit (
        nsUri varchar(255) not null,
        originalType tinyblob,
        timeStamp bigint,
        EPackageBlob longblob,
        primary key (nsUri)
    ) ENGINE=InnoDB

    create table cdo_system_information (
        id integer not null auto_increment,
        creationTime bigint,
        primary key (id)
    ) ENGINE=InnoDB

    create table cdo_system_property (
        name varchar(255) not null,
        value longtext,
        primary key (name)
    ) ENGINE=InnoDB

    alter table cdo_package_info 
        add index FK5702C978798F06A8 (cdo_package_unit_id), 
        add constraint FK5702C978798F06A8 
        foreign key (cdo_package_unit_id) 
        references cdo_package_unit (nsUri)
Dec 17, 2012 5:29:26 PM org.eclipse.emf.teneo.classloader.ClassLoaderResolver setClassLoaderStrategy
INFO: Class loader strategy set to: org.eclipse.emf.teneo.classloader.ContextClassLoaderStrategy
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore setDefaultProperties
INFO: Hibernate property: hibernate.hbm2ddl.auto not set, setting to update
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: hibernate.connection.url: jdbc:mysql://localhost:3306/armed?createDatabaseIfNotExist=true
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.default_varchar_length: -1
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.set_default_cascade_on_non_containment: 
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.naming.default_id_feature: e_id
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.naming.auditing.jointable.postfix: Auditing
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.auditing.prune.commit.interval: 1000
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.cascade_policy_on_non_containment: PERSIST,MERGE
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.always_version: true
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: hibernate.cache.provider_class: org.hibernate.cache.HashtableCacheProvider
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: e_container_column: e_container
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.fetch_one_to_many_extra_lazy: false
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.naming.sql_discriminator_version_immutable_eclass: true
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.runtime.update_schema: false
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.runtime.handle_unset_as_null: true
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.naming.version_column: e_version
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.set_proxy: false
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.naming.discriminator_column_name: DTYPE
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.auditing.enable: false
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.disable_econtainer: false
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.naming.sql_column_name_prefix: 
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.naming.auto_adapt_manual_set_sql_names: true
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.set_entity_automatically: true
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.naming.join_column_naming_strategy: unique
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.naming.set_foreign_key_name: true
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.naming.set_generated_value_on_id_feature: true
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.auditing.prune.days: 0
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.emap_as_true_map: true
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.inheritance: SINGLE_TABLE
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.naming.id_feature_as_primary_key: true
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: hibernate.max_fetch_depth: 3
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: e_container_feature_name_column: e_container_feature_name
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: hibernate.connection.password: deadbeef
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.UserTimeType: org.eclipse.emf.teneo.hibernate.mapping.XSDDateTime
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.UserDateTimeType: org.eclipse.emf.teneo.hibernate.mapping.XSDDateTime
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.hibernate_mapping_file: false
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.UserDateType: org.eclipse.emf.teneo.hibernate.mapping.XSDDate
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.add_index_for_fk: true
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.map_all_lists_as_idbag: false
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: hibernate.connection.username: root
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.naming.idbag_id_column_name: ID
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.ignore_eannotations: false
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.naming.econtainer_feature_persistence_strategy: FEATURENAME
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.naming.strategy: lowercase
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.naming.join_table_naming_strategy: unique
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: hibernate.hbm2ddl.auto: update
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.XSDDateClass: javax.xml.datatype.XMLGregorianCalendar
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.naming.sql_index_name_prefix: 
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.extra_annotation_sources: 
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: hibernate.connection.driver_class: com.mysql.jdbc.Driver
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.naming.sql_fk_name_prefix: 
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: hibernate.dialect: org.hibernate.dialect.MySQL5InnoDBDialect
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.map_document_root: false
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.max_comment_length: 0
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.naming.max_sql_name_length: -1
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.naming.default_id_column: e_id
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.always_map_list_as_bag: false
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.force_lazy: false
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.also_map_as_class: true
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.default_temporal: TIMESTAMP
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.naming.auditing.entity.prefix: 
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: econtainer_class_column: econtainer_class
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.persistence_xml.parse.lenient: false
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.fetch_containment_eagerly: false
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.map_embeddable_as_embedded: false
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.sql_name_escape_character: `
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.eav_mapping: false
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.optimistic_locking: true
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.cascade_all_on_containment: 
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.naming.sql_table_name_prefix: 
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.runtime.convert_unset_to_null: false
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.cascade_policy_on_containment: ALL
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.default_cache_strategy: NONE
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.auditing.database.schema: 
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.featuremap_as_component: false
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.naming.auditing.entity.postfix: Auditing
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.join_table_for_non_contained_associations: true
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: teneo.mapping.auto_add_referenced_epackages: false
Dec 17, 2012 5:29:27 PM org.eclipse.emf.teneo.hibernate.HbDataStore logProperties
INFO: hibernate.connection.pool_size: 10
[INFO] Net4j extension starting

!ENTRY org.eclipse.emf.cdo.server.net4j 1 0 2012-12-17 17:29:27.486
!MESSAGE Net4j extension starting
[INFO] Net4j extension started

!ENTRY org.eclipse.emf.cdo.server.net4j 1 0 2012-12-17 17:29:27.539
!MESSAGE Net4j extension started
[INFO] CDO server started

!ENTRY org.eclipse.emf.cdo.server 1 0 2012-12-17 17:29:27.539
!MESSAGE CDO server started



Further investigations showed that always the first commit (independent which objects) works and that always the second commit fails.
Any idea why this happens?

Thanks for help and best regards
Stephan


Martin taal wrote on Wed, 12 December 2012 17:05
Hmm, yes it seems related to the log setting, can you tell me what log4j or other log settings you use?
Maybe I can reproduce it and solve it more thoroughly..

gr. Martin




Re: [CDO] HibernateStore MappingException: Unknown entity: CDORevisionImpl [message #991670 is a reply to message #990476] Wed, 19 December 2012 19:25 Go to previous messageGo to next message
Stephan Krusche is currently offline Stephan Krusche
Messages: 18
Registered: September 2012
Junior Member
any ideas what the problem could be?
Re: [CDO] HibernateStore MappingException: Unknown entity: CDORevisionImpl [message #991889 is a reply to message #991670] Thu, 20 December 2012 07:26 Go to previous messageGo to next message
Martin Taal is currently offline Martin Taal
Messages: 5329
Registered: July 2009
Senior Member
Hi Stephan,
Sorry missed it, it seems to be a bug in hibernate that it does not support logging using entities which are mapped with
only entity names:
Somehwere in the code this method is called to get the Entity Type, it uses the class name instead of the entity name.
public static Type entity(Class persistentClass) {
return entity( persistentClass.getName() );
}

It should use the entity name instead. I think this is a hibernate bug. Can you check in the hibernate site/forum to see
if it is solved? Or post it there as a question.

gr. Martin

On 12/20/2012 01:25 AM, Stephan Krusche wrote:
> any ideas what the problem could be?


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Re: [CDO] HibernateStore MappingException: Unknown entity: CDORevisionImpl [message #992388 is a reply to message #991889] Fri, 21 December 2012 09:25 Go to previous messageGo to next message
Stephan Krusche is currently offline Stephan Krusche
Messages: 18
Registered: September 2012
Junior Member
Can I not just deactivate logging in order to solve the problem?
If yes, how can you deactivate it?
Re: [CDO] HibernateStore MappingException: Unknown entity: CDORevisionImpl [message #992397 is a reply to message #992388] Fri, 21 December 2012 09:39 Go to previous messageGo to next message
Martin Taal is currently offline Martin Taal
Messages: 5329
Registered: July 2009
Senior Member
Hi Stephan,
Here is some information:
http://wiki.eclipse.org/CDO/Hibernate_Store/Configuration_and_Setup#How_to_enable_Hibernate_logging
http://www.eclipsezone.com/eclipse/forums/t99588.html

Attached an example log4j.properties I use.

If you can solve this by using a different log setting, can you let me know what you did? So I can update the wiki.

gr. Martin

On 12/21/2012 03:25 PM, Stephan Krusche wrote:
> Can I not just deactivate logging in order to solve the problem?
> If yes, how can you deactivate it?


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org

# Set root logger level to error and its only appender to A1.
log4j.rootCategory=error, A1

log4j.category.JPOX=OFF

# A1 is set to be a ConsoleAppender.
log4j.appender.A1=org.apache.log4j.ConsoleAppender

# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

#log4j.logger.org.hibernate=error
log4j.logger.org.hibernate=error
#org.hibernate.pretty

### log HQL query parser activity
log4j.logger.org.hibernate.hql.ast.AST=error

### log just the SQL
log4j.logger.org.hibernate.SQL=debug

### log JDBC bind parameters ###
log4j.logger.org.hibernate.type=error
#log4j.logger.org.hibernate.type=error

### log schema export/update ###
log4j.logger.org.hibernate.tool.hbm2ddl=error

### log HQL parse trees
log4j.logger.org.hibernate.hql=error

### log cache activity ###
log4j.logger.org.hibernate.cache=error

### log transaction activity
log4j.logger.org.hibernate.transaction=error

### log JDBC resource acquisition
log4j.logger.org.hibernate.jdbc=error

### enable the following line if you want to track down connection ###
### leakages when using DriverManagerConnectionProvider ###
log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=error
Re: [CDO] HibernateStore MappingException: Unknown entity: CDORevisionImpl [message #992401 is a reply to message #992388] Fri, 21 December 2012 09:39 Go to previous messageGo to next message
Martin Taal is currently offline Martin Taal
Messages: 5329
Registered: July 2009
Senior Member
Hi Stephan,
Here is some information:
http://wiki.eclipse.org/CDO/Hibernate_Store/Configuration_and_Setup#How_to_enable_Hibernate_logging
http://www.eclipsezone.com/eclipse/forums/t99588.html

Attached an example log4j.properties I use.

If you can solve this by using a different log setting, can you let me know what you did? So I can update the wiki.

gr. Martin

On 12/21/2012 03:25 PM, Stephan Krusche wrote:
> Can I not just deactivate logging in order to solve the problem?
> If yes, how can you deactivate it?


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org

# Set root logger level to error and its only appender to A1.
log4j.rootCategory=error, A1

log4j.category.JPOX=OFF

# A1 is set to be a ConsoleAppender.
log4j.appender.A1=org.apache.log4j.ConsoleAppender

# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

#log4j.logger.org.hibernate=error
log4j.logger.org.hibernate=error
#org.hibernate.pretty

### log HQL query parser activity
log4j.logger.org.hibernate.hql.ast.AST=error

### log just the SQL
log4j.logger.org.hibernate.SQL=debug

### log JDBC bind parameters ###
log4j.logger.org.hibernate.type=error
#log4j.logger.org.hibernate.type=error

### log schema export/update ###
log4j.logger.org.hibernate.tool.hbm2ddl=error

### log HQL parse trees
log4j.logger.org.hibernate.hql=error

### log cache activity ###
log4j.logger.org.hibernate.cache=error

### log transaction activity
log4j.logger.org.hibernate.transaction=error

### log JDBC resource acquisition
log4j.logger.org.hibernate.jdbc=error

### enable the following line if you want to track down connection ###
### leakages when using DriverManagerConnectionProvider ###
log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=error
Re: [CDO] HibernateStore MappingException: Unknown entity: CDORevisionImpl [message #994648 is a reply to message #992401] Thu, 27 December 2012 18:16 Go to previous message
Stephan Krusche is currently offline Stephan Krusche
Messages: 18
Registered: September 2012
Junior Member
Hi Martin,

with your log settings I can avoid this error.
Thanks for the tip.

Best regards
Stephan
Previous Topic:[CDO] Skipping EClasses/EStructuralFeatures from prefetch
Next Topic:Xcore persistence format
Goto Forum:
  


Current Time: Wed Aug 20 01:07:34 EDT 2014

Powered by FUDForum. Page generated in 0.39265 seconds