Home » Modeling » EMF » [cdo] trying to run cdo with hibernate as back end
| | | | |
| Re: [cdo] trying to run cdo with hibernate as back end [message #1101943 is a reply to message #1101387] |
Thu, 05 September 2013 02:06   |
saurav singh Messages: 14 Registered: August 2013 |
Junior Member |
|
|
Thanks Eike & Martin 
Now the dependencies problem is solved- but when I am running the server following output is coming-
Configuration location:
file:/home/saurav/workspace/.metadata/.plugins/org.eclipse.pde.core/CDOHibernateServer/
Configuration file:
file:/home/saurav/workspace/.metadata/.plugins/org.eclipse.pde.core/CDOHibernateServer/config.ini loaded
Install location:
file:/home/saurav/eclipse/
Framework located:
file:/home/saurav/eclipse/plugins/org.eclipse.osgi_3.8.2.v20130124-134944.jar
Framework classpath:
file:/home/saurav/eclipse/plugins/org.eclipse.osgi_3.8.2.v20130124-134944.jar
Debug options:
file:/home/saurav/eclipse/.options not found
osgi> Time to load bundles: 379
Starting application: 1114
[INFO] CDO server starting
log4j: Trying to find [log4j.xml] using context classloader org.eclipse.core.runtime.internal.adaptor.ContextFinder@4406cef4.
log4j: Trying to find [log4j.xml] using org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@207ff5b6[org.apache.log4j:1.2.15.v201012070815(id=110)] 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@4406cef4.
log4j: Trying to find [log4j.properties] using org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@207ff5b6[org.apache.log4j:1.2.15.v201012070815(id=110)] 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.
create table cdo_package_info (
packageURI varchar(255) not null,
parentURI varchar(255),
cdo_package_unit_id varchar(255),
idx integer,
primary key (packageURI)
)
create table cdo_package_unit (
nsUri varchar(255) not null,
originalType varbinary(255),
timeStamp bigint,
EPackageBlob blob,
primary key (nsUri)
)
create table cdo_system_information (
id integer generated by default as identity (start with 1),
creationTime bigint,
primary key (id)
)
create table cdo_system_property (
name varchar(255) not null,
value longvarchar,
primary key (name)
)
alter table cdo_package_info
add constraint FK5702C978798F06A8
foreign key (cdo_package_unit_id)
references cdo_package_unit
Hibernate: select this_.id as id2_0_, this_.creationTime as creation2_2_0_ from cdo_system_information this_
Hibernate: insert into cdo_system_information (id, creationTime) values (default, ?)
[ERROR] org.eclipse.emf.cdo.common.id.CDOIDUtil.createMap()Ljava/util/Map;
java.lang.NoSuchMethodError: org.eclipse.emf.cdo.common.id.CDOIDUtil.createMap()Ljava/util/Map;
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateRawCommitContext.<init>(HibernateRawCommitContext.java:49)
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStoreAccessor.<init>(HibernateStoreAccessor.java:129)
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore.createWriter(HibernateStore.java:442)
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore.createWriter(HibernateStore.java:1)
at org.eclipse.emf.cdo.spi.server.Store.getWriter(Store.java:374)
at org.eclipse.emf.cdo.internal.server.Repository.initSystemPackages(Repository.java:1647)
at org.eclipse.emf.cdo.internal.server.Repository.doActivate(Repository.java:1864)
at org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycle.java:76)
at org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(LifecycleUtil.java:114)
at org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(LifecycleUtil.java:104)
at org.eclipse.emf.cdo.server.CDOServerUtil.addRepository(CDOServerUtil.java:208)
at org.eclipse.emf.cdo.spi.server.RepositoryConfigurator.configure(RepositoryConfigurator.java:111)
at org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplication.doStart(CDOServerApplication.java:61)
at org.eclipse.net4j.util.om.OSGiApplication.start(OSGiApplication.java:63)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.equinox.internal.app.AnyThreadAppLauncher.run(AnyThreadAppLauncher.java:26)
at java.lang.Thread.run(Thread.java:679)
I am not getting the error. I changed the VM argument line
-Dlog4j.debug=true
to
-Dlog4j.configuration=file:/home/saurav/git/cdo/plugins/org.eclipse.emf.cdo.examples.hibernate.server/src/log4j.properties
now on running the server console is showing
Configuration location:
file:/home/saurav/workspace/.metadata/.plugins/org.eclipse.pde.core/CDOHibernateServer/
Configuration file:
file:/home/saurav/workspace/.metadata/.plugins/org.eclipse.pde.core/CDOHibernateServer/config.ini loaded
Install location:
file:/home/saurav/eclipse/
Framework located:
file:/home/saurav/eclipse/plugins/org.eclipse.osgi_3.8.2.v20130124-134944.jar
Framework classpath:
file:/home/saurav/eclipse/plugins/org.eclipse.osgi_3.8.2.v20130124-134944.jar
Debug options:
file:/home/saurav/eclipse/.options not found
osgi> Time to load bundles: 375
Starting application: 1110
[INFO] CDO server starting
create table cdo_package_info (
packageURI varchar(255) not null,
parentURI varchar(255),
cdo_package_unit_id varchar(255),
idx integer,
primary key (packageURI)
)
create table cdo_package_unit (
nsUri varchar(255) not null,
originalType varbinary(255),
timeStamp bigint,
EPackageBlob blob,
primary key (nsUri)
)
create table cdo_system_information (
id integer generated by default as identity (start with 1),
creationTime bigint,
primary key (id)
)
create table cdo_system_property (
name varchar(255) not null,
value longvarchar,
primary key (name)
)
alter table cdo_package_info
add constraint FK5702C978798F06A8
foreign key (cdo_package_unit_id)
references cdo_package_unit
Hibernate: select this_.id as id2_0_, this_.creationTime as creation2_2_0_ from cdo_system_information this_
Hibernate: insert into cdo_system_information (id, creationTime) values (default, ?)
[ERROR] org.eclipse.emf.cdo.common.id.CDOIDUtil.createMap()Ljava/util/Map;
java.lang.NoSuchMethodError: org.eclipse.emf.cdo.common.id.CDOIDUtil.createMap()Ljava/util/Map;
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateRawCommitContext.<init>(HibernateRawCommitContext.java:49)
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStoreAccessor.<init>(HibernateStoreAccessor.java:129)
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore.createWriter(HibernateStore.java:442)
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore.createWriter(HibernateStore.java:1)
at org.eclipse.emf.cdo.spi.server.Store.getWriter(Store.java:374)
at org.eclipse.emf.cdo.internal.server.Repository.initSystemPackages(Repository.java:1647)
at org.eclipse.emf.cdo.internal.server.Repository.doActivate(Repository.java:1864)
at org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycle.java:76)
at org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(LifecycleUtil.java:114)
at org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(LifecycleUtil.java:104)
at org.eclipse.emf.cdo.server.CDOServerUtil.addRepository(CDOServerUtil.java:208)
at org.eclipse.emf.cdo.spi.server.RepositoryConfigurator.configure(RepositoryConfigurator.java:111)
at org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplication.doStart(CDOServerApplication.java:61)
at org.eclipse.net4j.util.om.OSGiApplication.start(OSGiApplication.java:63)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.equinox.internal.app.AnyThreadAppLauncher.run(AnyThreadAppLauncher.java:26)
at java.lang.Thread.run(Thread.java:679)
What should I do?
Thanks
|
|
|
| Re: [cdo] trying to run cdo with hibernate as back end [message #1101953 is a reply to message #1101943] |
Thu, 05 September 2013 02:28   |
Eike Stepper Messages: 5252 Registered: July 2009 |
Senior Member |
|
|
To me it looks as if your bundle versions don't match together, i.e. org.eclipse.emf.cdo.common is too old for
org.eclipse.emf.cdo.server.hibernate. What versions do you use?
The method org.eclipse.emf.cdo.common.id.CDOIDUtil.createMap() exists @since 4.2.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Am 05.09.2013 08:06, schrieb saurav singh:
> Thanks Eike & Martin :)
>
> Now the dependencies problem is solved- but when I am running the server following output is coming-
>
> Configuration location:
> file:/home/saurav/workspace/.metadata/.plugins/org.eclipse.pde.core/CDOHibernateServer/
> Configuration file:
> file:/home/saurav/workspace/.metadata/.plugins/org.eclipse.pde.core/CDOHibernateServer/config.ini loaded
> Install location:
> file:/home/saurav/eclipse/
> Framework located:
> file:/home/saurav/eclipse/plugins/org.eclipse.osgi_3.8.2.v20130124-134944.jar
> Framework classpath:
> file:/home/saurav/eclipse/plugins/org.eclipse.osgi_3.8.2.v20130124-134944.jar
> Debug options:
> file:/home/saurav/eclipse/.options not found
>
> osgi> Time to load bundles: 379
> Starting application: 1114
> [INFO] CDO server starting
> log4j: Trying to find [log4j.xml] using context classloader
> mailto:org.eclipse.core.runtime.internal.adaptor.ContextFinder@4406cef4.
> log4j: Trying to find [log4j.xml] using
> mailto:org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@207ff5b6[org.apache.log4j:1.2.15.v201012070815(id=110)] class
> loader.
> log4j: Trying to find [log4j.xml] using ClassLoader.getSystemResource().
> log4j: Trying to find [log4j.properties] using context classloader
> mailto:org.eclipse.core.runtime.internal.adaptor.ContextFinder@4406cef4.
> log4j: Trying to find [log4j.properties] using
> mailto:org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@207ff5b6[org.apache.log4j:1.2.15.v201012070815(id=110)] 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.
>
> create table cdo_package_info (
> packageURI varchar(255) not null,
> parentURI varchar(255),
> cdo_package_unit_id varchar(255),
> idx integer,
> primary key (packageURI)
> )
>
> create table cdo_package_unit (
> nsUri varchar(255) not null,
> originalType varbinary(255),
> timeStamp bigint,
> EPackageBlob blob,
> primary key (nsUri)
> )
>
> create table cdo_system_information (
> id integer generated by default as identity (start with 1),
> creationTime bigint,
> primary key (id)
> )
>
> create table cdo_system_property (
> name varchar(255) not null,
> value longvarchar,
> primary key (name)
> )
>
> alter table cdo_package_info add constraint FK5702C978798F06A8 foreign key (cdo_package_unit_id)
> references cdo_package_unit
> Hibernate: select this_.id as id2_0_, this_.creationTime as creation2_2_0_ from cdo_system_information this_
> Hibernate: insert into cdo_system_information (id, creationTime) values (default, ?)
> [ERROR] org.eclipse.emf.cdo.common.id.CDOIDUtil.createMap()Ljava/util/Map;
> java.lang.NoSuchMethodError: org.eclipse.emf.cdo.common.id.CDOIDUtil.createMap()Ljava/util/Map;
> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateRawCommitContext.<init>(HibernateRawCommitContext.java:49)
> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStoreAccessor.<init>(HibernateStoreAccessor.java:129)
> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore.createWriter(HibernateStore.java:442)
> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore.createWriter(HibernateStore.java:1)
> at org.eclipse.emf.cdo.spi.server.Store.getWriter(Store.java:374)
> at org.eclipse.emf.cdo.internal.server.Repository.initSystemPackages(Repository.java:1647)
> at org.eclipse.emf.cdo.internal.server.Repository.doActivate(Repository.java:1864)
> at org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycle.java:76)
> at org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(LifecycleUtil.java:114)
> at org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(LifecycleUtil.java:104)
> at org.eclipse.emf.cdo.server.CDOServerUtil.addRepository(CDOServerUtil.java:208)
> at org.eclipse.emf.cdo.spi.server.RepositoryConfigurator.configure(RepositoryConfigurator.java:111)
> at org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplication.doStart(CDOServerApplication.java:61)
> at org.eclipse.net4j.util.om.OSGiApplication.start(OSGiApplication.java:63)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> at org.eclipse.equinox.internal.app.AnyThreadAppLauncher.run(AnyThreadAppLauncher.java:26)
> at java.lang.Thread.run(Thread.java:679)
>
> I am not getting the error. I changed the VM argument line
>
> -Dlog4j.debug=true
> to
> -Dlog4j.configuration=file:/home/saurav/git/cdo/plugins/org.eclipse.emf.cdo.examples.hibernate.server/src/log4j.properties
>
>
> now on running the server console is showing
> Configuration location:
> file:/home/saurav/workspace/.metadata/.plugins/org.eclipse.pde.core/CDOHibernateServer/
> Configuration file:
> file:/home/saurav/workspace/.metadata/.plugins/org.eclipse.pde.core/CDOHibernateServer/config.ini loaded
> Install location:
> file:/home/saurav/eclipse/
> Framework located:
> file:/home/saurav/eclipse/plugins/org.eclipse.osgi_3.8.2.v20130124-134944.jar
> Framework classpath:
> file:/home/saurav/eclipse/plugins/org.eclipse.osgi_3.8.2.v20130124-134944.jar
> Debug options:
> file:/home/saurav/eclipse/.options not found
>
> osgi> Time to load bundles: 375
> Starting application: 1110
> [INFO] CDO server starting
>
> create table cdo_package_info (
> packageURI varchar(255) not null,
> parentURI varchar(255),
> cdo_package_unit_id varchar(255),
> idx integer,
> primary key (packageURI)
> )
>
> create table cdo_package_unit (
> nsUri varchar(255) not null,
> originalType varbinary(255),
> timeStamp bigint,
> EPackageBlob blob,
> primary key (nsUri)
> )
>
> create table cdo_system_information (
> id integer generated by default as identity (start with 1),
> creationTime bigint,
> primary key (id)
> )
>
> create table cdo_system_property (
> name varchar(255) not null,
> value longvarchar,
> primary key (name)
> )
>
> alter table cdo_package_info add constraint FK5702C978798F06A8 foreign key (cdo_package_unit_id)
> references cdo_package_unit
> Hibernate: select this_.id as id2_0_, this_.creationTime as creation2_2_0_ from cdo_system_information this_
> Hibernate: insert into cdo_system_information (id, creationTime) values (default, ?)
> [ERROR] org.eclipse.emf.cdo.common.id.CDOIDUtil.createMap()Ljava/util/Map;
> java.lang.NoSuchMethodError: org.eclipse.emf.cdo.common.id.CDOIDUtil.createMap()Ljava/util/Map;
> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateRawCommitContext.<init>(HibernateRawCommitContext.java:49)
> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStoreAccessor.<init>(HibernateStoreAccessor.java:129)
> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore.createWriter(HibernateStore.java:442)
> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore.createWriter(HibernateStore.java:1)
> at org.eclipse.emf.cdo.spi.server.Store.getWriter(Store.java:374)
> at org.eclipse.emf.cdo.internal.server.Repository.initSystemPackages(Repository.java:1647)
> at org.eclipse.emf.cdo.internal.server.Repository.doActivate(Repository.java:1864)
> at org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycle.java:76)
> at org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(LifecycleUtil.java:114)
> at org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(LifecycleUtil.java:104)
> at org.eclipse.emf.cdo.server.CDOServerUtil.addRepository(CDOServerUtil.java:208)
> at org.eclipse.emf.cdo.spi.server.RepositoryConfigurator.configure(RepositoryConfigurator.java:111)
> at org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplication.doStart(CDOServerApplication.java:61)
> at org.eclipse.net4j.util.om.OSGiApplication.start(OSGiApplication.java:63)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> at org.eclipse.equinox.internal.app.AnyThreadAppLauncher.run(AnyThreadAppLauncher.java:26)
> at java.lang.Thread.run(Thread.java:679)
>
> What should I do?
> Thanks
|
|
| | | | |
| Re: [cdo] trying to run cdo with hibernate as back end [message #1102923 is a reply to message #1102830] |
Fri, 06 September 2013 03:47  |
Martin Taal Messages: 5162 Registered: July 2009 |
Senior Member |
|
|
Hi Saurav,
Okay, are you sure the actions you do on the client are send to the server? So are you committing the transaction?
gr. Martin
On 09/06/2013 07:35 AM, saurav singh wrote:
> Hello Martin, I am using mysql database.
--
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
|
|
|
Goto Forum:
Current Time: Tue Oct 08 07:44:28 EDT 2013
Powered by FUDForum. Page generated in 0.01871 seconds
|