Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] IllegalStateException: Not able to update container columns of CDOResource with id OID:http://
[CDO] IllegalStateException: Not able to update container columns of CDOResource with id OID:http:// [message #646572] Tue, 28 December 2010 15:05 Go to next message
Hendy Irawan is currently offline Hendy IrawanFriend
Messages: 58
Registered: July 2009
Location: Bandung, Indonesia
Member

Dear CDO devs,

Not content with just looking at CDO I wanted to try it by following
the examples on CDO 3.0.

Some hints I found:
1. Checkout the 3.0 branch of examples. the latest ones use CDO 4.0.
2. For some reason, I have to add the org.hsqldb bundle to
examples.hibernate.server dependencies, otherwise I get
ClassNotFoundException. Note that I use hibernate bundle from Elver
1.2.0 not from Net4j's. (is it a problem?)

After doing so, I still get another problem:

1804 [app thread - org.eclipse.emf.cdo.server.app.0] DEBUG
org.hibernate.tool.hbm2ddl.SchemaUpdate - create table
"cdoresourcecontents" ("cdoresource_e_id" bigint not null,
"contents_type" varchar(255), "contents_id" varchar(255),
"cdoresourcecontents_idx" integer not null, primary key
("cdoresource_e_id", "cdoresourcecontents_idx"))
1805 [app thread - org.eclipse.emf.cdo.server.app.0] DEBUG
org.hibernate.tool.hbm2ddl.SchemaUpdate - create table
"cdoresourcenode" (e_id bigint generated by default as identity (start
with 1), "dtype" varchar(255) not null, e_version integer, resource_id
varchar(255), container_id varchar(255), "cdoresourcenode_folder_e_id"
bigint, "name" varchar(255), "cdoresourcefolder_nodes_idx" integer,
primary key (e_id), unique (container_id, "name"))
1806 [app thread - org.eclipse.emf.cdo.server.app.0] DEBUG
org.hibernate.tool.hbm2ddl.SchemaUpdate - alter table
"cdoresourcecontents" add constraint cdoresourcecontents foreign key
("cdoresource_e_id") references "cdoresourcenode"
1806 [app thread - org.eclipse.emf.cdo.server.app.0] DEBUG
org.hibernate.tool.hbm2ddl.SchemaUpdate - alter table
"cdoresourcenode" add constraint cdoresourcenode_folder foreign key
("cdoresourcenode_folder_e_id") references "cdoresourcenode"
1806 [app thread - org.eclipse.emf.cdo.server.app.0] INFO
org.hibernate.tool.hbm2ddl.SchemaUpdate - schema update complete
Hibernate: insert into "cdoresourcenode" (e_id, e_version, resource_id,
container_id, "name", "dtype") values (null, ?, ?, ?, ?, 'CDOResource')
Hibernate: call identity()
Hibernate: update "cdoresourcenode" set resource_id=? where
"dtype"='CDOResource' and (? is null)
[ERROR] Not able to update container columns of CDOResource with id
OID:http://www.eclipse.org/emf/CDO/Eresource/2.0.0#CDOResour ce#1
java.lang.IllegalStateException: Not able to update container columns
of CDOResource with id
OID:http://www.eclipse.org/emf/CDO/Eresource/2.0.0#CDOResour ce#1
at
org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore Accessor.repairResourceIDs(HibernateStoreAccessor.java:642)
at
org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore Accessor.write(HibernateStoreAccessor.java:595)
at
org.eclipse.emf.cdo.internal.server.TransactionCommitContext .write(TransactionCommitContext.java:328)
at
org.eclipse.emf.cdo.internal.server.Repository.initRootResou rce(Repository.java:1427)
at
org.eclipse.emf.cdo.internal.server.Repository.doActivate(Re pository.java:1326)
at
org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycl e.java:72)
at
org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:98)
at
org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:88)
at
org.eclipse.emf.cdo.server.CDOServerUtil.addRepository(CDOSe rverUtil.java:128)
at
org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigure(RepositoryConfigurator.java:96)
at
org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplicat ion.doStart(CDOServerApplication.java:58)
at
org.eclipse.net4j.util.om.OSGiApplication.start(OSGiApplicat ion.java:61)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:196)
at
org.eclipse.equinox.internal.app.AnyThreadAppLauncher.run(An yThreadAppLauncher.java:26)
at java.lang.Thread.run(Thread.java:662)
[ERROR] Not able to update container columns of CDOResource with id
OID:http://www.eclipse.org/emf/CDO/Eresource/2.0.0#CDOResour ce#1
java.lang.IllegalStateException: Not able to update container columns
of CDOResource with id
OID:http://www.eclipse.org/emf/CDO/Eresource/2.0.0#CDOResour ce#1
at
org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore Accessor.repairResourceIDs(HibernateStoreAccessor.java:642)
at
org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore Accessor.write(HibernateStoreAccessor.java:595)
at
org.eclipse.emf.cdo.internal.server.TransactionCommitContext .write(TransactionCommitContext.java:328)
at
org.eclipse.emf.cdo.internal.server.Repository.initRootResou rce(Repository.java:1427)
at
org.eclipse.emf.cdo.internal.server.Repository.doActivate(Re pository.java:1326)
at
org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycl e.java:72)
at
org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:98)
at
org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:88)
at
org.eclipse.emf.cdo.server.CDOServerUtil.addRepository(CDOSe rverUtil.java:128)
at
org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigure(RepositoryConfigurator.java:96)
at
org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplicat ion.doStart(CDOServerApplication.java:58)
at
org.eclipse.net4j.util.om.OSGiApplication.start(OSGiApplicat ion.java:61)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:196)
at
org.eclipse.equinox.internal.app.AnyThreadAppLauncher.run(An yThreadAppLauncher.java:26)
at java.lang.Thread.run(Thread.java:662)
app thread - org.eclipse.emf.cdo.server.app.0 [debug]
Committing/rollback and closing hibernate session
app thread - org.eclipse.emf.cdo.server.app.0 [debug] Closing hibernate
session
app thread - org.eclipse.emf.cdo.server.app.0 [debug] Commiting
hibernate session
app thread - org.eclipse.emf.cdo.server.app.0 [debug] Committing hb
transaction
app thread - org.eclipse.emf.cdo.server.app.0 [debug] Clearing
commitcontext in threadlocal


Please help. Thank you.

--
Eclipse Driven Rich Application Development -
http://eclipsedriven.blogspot.com/
Re: [CDO] IllegalStateException: Not able to update container columns of CDOResource with id OID:htt [message #646574 is a reply to message #646572] Tue, 28 December 2010 20:52 Go to previous messageGo to next message
Hendy Irawan is currently offline Hendy IrawanFriend
Messages: 58
Registered: July 2009
Location: Bandung, Indonesia
Member

I solved my own problem:

Turned out it was due to me putting several duplicate Teneo plugins of
different versions. (common sense, I know.)

Blogged at: http://eclipsedriven.blogspot.com/2010/12/cdo-30-with-
hibernate-experiences.html

--
Eclipse Driven Rich Application Development -
http://eclipsedriven.blogspot.com/
Re: [CDO] IllegalStateException: Not able to update container columns of CDOResource with id OID:htt [message #661909 is a reply to message #646574] Mon, 28 March 2011 13:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: swt.magellium.fr

Hi Hendy, CDO team, and others :)

I know this is a quite old post, but I'm running into the same problem,
and I can't find the cause.
I think I have only necessary Teneo plugins.

I also found that after this "failure", if I start the server again, the
error doesn't show up anymore, and the server "seems" to be starting
properly. But it's not true.

Here is what I could find :

In fact, this error happens when first starting a CDO server on an empty
database. The "hibernate.hbm2ddl.auto" causes the database tables to be
created. Then, a root resource is created.
There happens the problem, and the root resource does not get created...

If the server is started again afterwards, database tables already
exist, and the root resource is not created again. But it wasn't created
the first time !
So the server seems to start (no error), but without any root resource.
If a client tries do call "getOrCreateResource", the call fails because
the root resource cannot be found...


I personnaly don't have much time to dig into this, and my knowledge of
CDO is far from sufficient.
I'm re-trying CDO from time to time and I'm always stuck by this kind of
PostgreSQL related initial set-up issues...
It would be great if someone can help fixing this problem...


I think this can easily be reproduced from scratch using the examples.
(Don't hesitate to ask me for more info.)
Here is the full step by step procedure I followed :

1] Install Eclipse (I used Helios SR2)
2] Add the following update sites :
- Latest stable CDO 4 plugins
( https://hudson.eclipse.org/hudson/job/emf-cdo-integration/la stStableBuild/artifact/result/site.p2)
- Hibernate plugins (http://www.elver.org/eclipse/update)
- Net4j updates (http://net4j.sourceforge.net/update)
- Teneo
( http://download.eclipse.org/modeling/emf/teneo/updates/1.2.0 /interim/)
3] Install all required dependencies Eclipse :
CDO Model Repository Client
CDO Model Repository Definitions
CDO Model Repository Documentation
CDO Model Repository SDK
CDO Model Repository Server
CDO Model Repository Server Hibernate
Net4j DB Framework
Net4j DB Framework PostgreSQL Adapter
Net4j Signalling Platform Definitions
Net4j Signalling Platform Runtime
Net4j Signalling Platform SDK
Net4j Signalling Platform UI (?)
Apache Commons Logging
Apache Log4j
Dom4j
Hibernate 3.6.0
PostgresSQL JDBC3 Driver
EMF Teneo CDO
EMF Teneo CDO SDK
EMF Teneo Hibernate Runtime
EMF Teneo Hibernate SDK
4] Install PostgreSQL with PGAdmin 3
(http://www.postgresql.org/download/) and create a database
("my_database"). I used PostgreSQL 8.4.
5] Follow CDO Hibernate Store Quick Start :
http://wiki.eclipse.org/CDO/Hibernate_Store/Quick_Start
With the following hibernate database access properties :
<property name="hibernate.dialect"
value="org.hibernate.dialect.PostgreSQLDialect" />
<property name="hibernate.connection.driver_class"
value="org.postgresql.Driver" />
<property name="hibernate.connection.url"
value="jdbc:postgresql://127.0.0.1/my_database" />
<property name="hibernate.connection.username" value="postgres" />
<property name="hibernate.connection.password" value="postgres" />
6] Launch the server using the provided launch configuration.

Hopefully, you will end up with the following exception (only the first
time the server is started) :

[...]
1640 [app thread - org.eclipse.emf.cdo.server.app.0] INFO
org.hibernate.tool.hbm2ddl.SchemaUpdate - Running hbm2ddl schema update
1640 [app thread - org.eclipse.emf.cdo.server.app.0] INFO
org.hibernate.tool.hbm2ddl.SchemaUpdate - fetching database metadata
1640 [app thread - org.eclipse.emf.cdo.server.app.0] INFO
org.hibernate.tool.hbm2ddl.SchemaUpdate - updating schema
1656 [app thread - org.eclipse.emf.cdo.server.app.0] INFO
org.hibernate.tool.hbm2ddl.DatabaseMetadata - table not found:
cdoresourcecontents
1656 [app thread - org.eclipse.emf.cdo.server.app.0] INFO
org.hibernate.tool.hbm2ddl.DatabaseMetadata - table not found:
cdoresourcenode
1656 [app thread - org.eclipse.emf.cdo.server.app.0] INFO
org.hibernate.tool.hbm2ddl.DatabaseMetadata - table not found: cdo_lob
1656 [app thread - org.eclipse.emf.cdo.server.app.0] INFO
org.hibernate.tool.hbm2ddl.DatabaseMetadata - table not found:
cdoresourcecontents
1656 [app thread - org.eclipse.emf.cdo.server.app.0] INFO
org.hibernate.tool.hbm2ddl.DatabaseMetadata - table not found:
cdoresourcenode
1656 [app thread - org.eclipse.emf.cdo.server.app.0] INFO
org.hibernate.tool.hbm2ddl.DatabaseMetadata - table not found: cdo_lob
1656 [app thread - org.eclipse.emf.cdo.server.app.0] DEBUG
org.hibernate.tool.hbm2ddl.SchemaUpdate - create table
"cdoresourcecontents" ("cdoresource_e_id" int8 not null, "contents_type"
varchar(255), "contents_id" varchar(255), "cdoresourcecontents_idx" int4
not null, primary key ("cdoresource_e_id", "cdoresourcecontents_idx"))
1672 [app thread - org.eclipse.emf.cdo.server.app.0] DEBUG
org.hibernate.tool.hbm2ddl.SchemaUpdate - create table
"cdoresourcenode" (e_id int8 not null, "dtype" varchar(255) not null,
e_version int4, resource_id varchar(255), container_id varchar(255),
"cdoresourcenode_folder_e_id" int8, "name" varchar(255),
"cdoresourcefolder_nodes_idx" int4, primary key (e_id), unique
(container_id, "name"))
1703 [app thread - org.eclipse.emf.cdo.server.app.0] DEBUG
org.hibernate.tool.hbm2ddl.SchemaUpdate - create table cdo_lob (id
varchar(255) not null, clob text, blob oid, size int4, primary key (id))
1719 [app thread - org.eclipse.emf.cdo.server.app.0] DEBUG
org.hibernate.tool.hbm2ddl.SchemaUpdate - alter table
"cdoresourcecontents" add constraint cdoresourcecontents foreign key
("cdoresource_e_id") references "cdoresourcenode"
1719 [app thread - org.eclipse.emf.cdo.server.app.0] DEBUG
org.hibernate.tool.hbm2ddl.SchemaUpdate - alter table "cdoresourcenode"
add constraint cdoresourcenode_folder foreign key
("cdoresourcenode_folder_e_id") references "cdoresourcenode"
1719 [app thread - org.eclipse.emf.cdo.server.app.0] INFO
org.hibernate.tool.hbm2ddl.SchemaUpdate - schema update complete
Hibernate: select nextval ('hibernate_sequence')
Hibernate: insert into "cdoresourcenode" (e_version, resource_id,
container_id, "name", "dtype", e_id) values (?, ?, ?, ?, 'CDOResource', ?)
Hibernate: update "cdoresourcenode" set resource_id=? where
"dtype"='CDOResource' and (? is null)
[ERROR] Not able to update container columns of CDOResource with id
OID:http://www.eclipse.org/emf/CDO/Eresource/4.0.0#CDOResour ce#2
java.lang.IllegalStateException: Not able to update container columns of
CDOResource with id
OID:http://www.eclipse.org/emf/CDO/Eresource/4.0.0#CDOResour ce#2
at
org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore Accessor.repairResourceIDs(HibernateStoreAccessor.java:746)
at
org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore Accessor.doWrite(HibernateStoreAccessor.java:669)
at
org.eclipse.emf.cdo.spi.server.StoreAccessorBase.write(Store AccessorBase.java:135)
at
org.eclipse.emf.cdo.internal.server.TransactionCommitContext .write(TransactionCommitContext.java:409)
at
org.eclipse.emf.cdo.internal.server.Repository.initRootResou rce(Repository.java:1449)
at
org.eclipse.emf.cdo.internal.server.Repository.doActivate(Re pository.java:1561)
at org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycl e.java:72)
at
org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:99)
at
org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:89)
at
org.eclipse.emf.cdo.server.CDOServerUtil.addRepository(CDOSe rverUtil.java:201)
at
org.eclipse.emf.cdo.spi.server.RepositoryConfigurator.config ure(RepositoryConfigurator.java:94)
at
org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplicat ion.doStart(CDOServerApplication.java:61)
at org.eclipse.net4j.util.om.OSGiApplication.start(OSGiApplicat ion.java:61)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:196)
at
org.eclipse.equinox.internal.app.AnyThreadAppLauncher.run(An yThreadAppLauncher.java:26)
at java.lang.Thread.run(Unknown Source)
[...]

Le 28/12/2010 21:52, Hendy Irawan a écrit :
> I solved my own problem:
>
> Turned out it was due to me putting several duplicate Teneo plugins of
> different versions. (common sense, I know.)
>
> Blogged at: http://eclipsedriven.blogspot.com/2010/12/cdo-30-with-
> hibernate-experiences.html
>
Re: [CDO] IllegalStateException: Not able to update container columns of CDOResource with id OID:htt [message #663250 is a reply to message #661909] Mon, 04 April 2011 12:57 Go to previous message
Eclipse UserFriend
Originally posted by: swt.magellium.fr

I checked that everything work fine with CDO 3 and Teneo 1.1.2
(Hibernate 3.3.2).

So I'll wait for the official release of CDO 4 / Teneo 1.2.0 / Hibernate
3.6.
Then if the issue is still present, it will be usefull to investigate...

For the moment, I'll stick with CDO 3, which works fine.

SWT.

Le 28/03/2011 15:43, SWT a écrit :
> Hi Hendy, CDO team, and others :)
>
> I know this is a quite old post, but I'm running into the same problem,
> and I can't find the cause.
> I think I have only necessary Teneo plugins.
>
> I also found that after this "failure", if I start the server again, the
> error doesn't show up anymore, and the server "seems" to be starting
> properly. But it's not true.
>
> Here is what I could find :
>
> In fact, this error happens when first starting a CDO server on an empty
> database. The "hibernate.hbm2ddl.auto" causes the database tables to be
> created. Then, a root resource is created.
> There happens the problem, and the root resource does not get created...
>
> If the server is started again afterwards, database tables already
> exist, and the root resource is not created again. But it wasn't created
> the first time !
> So the server seems to start (no error), but without any root resource.
> If a client tries do call "getOrCreateResource", the call fails because
> the root resource cannot be found...
>
>
> I personnaly don't have much time to dig into this, and my knowledge of
> CDO is far from sufficient.
> I'm re-trying CDO from time to time and I'm always stuck by this kind of
> PostgreSQL related initial set-up issues...
> It would be great if someone can help fixing this problem...
>
>
> I think this can easily be reproduced from scratch using the examples.
> (Don't hesitate to ask me for more info.)
> Here is the full step by step procedure I followed :
>
> 1] Install Eclipse (I used Helios SR2)
> 2] Add the following update sites :
> - Latest stable CDO 4 plugins
> ( https://hudson.eclipse.org/hudson/job/emf-cdo-integration/la stStableBuild/artifact/result/site.p2)
>
> - Hibernate plugins (http://www.elver.org/eclipse/update)
> - Net4j updates (http://net4j.sourceforge.net/update)
> - Teneo
> ( http://download.eclipse.org/modeling/emf/teneo/updates/1.2.0 /interim/)
> 3] Install all required dependencies Eclipse :
> CDO Model Repository Client
> CDO Model Repository Definitions
> CDO Model Repository Documentation
> CDO Model Repository SDK
> CDO Model Repository Server
> CDO Model Repository Server Hibernate
> Net4j DB Framework
> Net4j DB Framework PostgreSQL Adapter
> Net4j Signalling Platform Definitions
> Net4j Signalling Platform Runtime
> Net4j Signalling Platform SDK
> Net4j Signalling Platform UI (?)
> Apache Commons Logging
> Apache Log4j
> Dom4j
> Hibernate 3.6.0
> PostgresSQL JDBC3 Driver
> EMF Teneo CDO
> EMF Teneo CDO SDK
> EMF Teneo Hibernate Runtime
> EMF Teneo Hibernate SDK
> 4] Install PostgreSQL with PGAdmin 3
> (http://www.postgresql.org/download/) and create a database
> ("my_database"). I used PostgreSQL 8.4.
> 5] Follow CDO Hibernate Store Quick Start :
> http://wiki.eclipse.org/CDO/Hibernate_Store/Quick_Start
> With the following hibernate database access properties :
> <property name="hibernate.dialect"
> value="org.hibernate.dialect.PostgreSQLDialect" />
> <property name="hibernate.connection.driver_class"
> value="org.postgresql.Driver" />
> <property name="hibernate.connection.url"
> value="jdbc:postgresql://127.0.0.1/my_database" />
> <property name="hibernate.connection.username" value="postgres" />
> <property name="hibernate.connection.password" value="postgres" />
> 6] Launch the server using the provided launch configuration.
>
> Hopefully, you will end up with the following exception (only the first
> time the server is started) :
>
> [...]
> 1640 [app thread - org.eclipse.emf.cdo.server.app.0] INFO
> org.hibernate.tool.hbm2ddl.SchemaUpdate - Running hbm2ddl schema update
> 1640 [app thread - org.eclipse.emf.cdo.server.app.0] INFO
> org.hibernate.tool.hbm2ddl.SchemaUpdate - fetching database metadata
> 1640 [app thread - org.eclipse.emf.cdo.server.app.0] INFO
> org.hibernate.tool.hbm2ddl.SchemaUpdate - updating schema
> 1656 [app thread - org.eclipse.emf.cdo.server.app.0] INFO
> org.hibernate.tool.hbm2ddl.DatabaseMetadata - table not found:
> cdoresourcecontents
> 1656 [app thread - org.eclipse.emf.cdo.server.app.0] INFO
> org.hibernate.tool.hbm2ddl.DatabaseMetadata - table not found:
> cdoresourcenode
> 1656 [app thread - org.eclipse.emf.cdo.server.app.0] INFO
> org.hibernate.tool.hbm2ddl.DatabaseMetadata - table not found: cdo_lob
> 1656 [app thread - org.eclipse.emf.cdo.server.app.0] INFO
> org.hibernate.tool.hbm2ddl.DatabaseMetadata - table not found:
> cdoresourcecontents
> 1656 [app thread - org.eclipse.emf.cdo.server.app.0] INFO
> org.hibernate.tool.hbm2ddl.DatabaseMetadata - table not found:
> cdoresourcenode
> 1656 [app thread - org.eclipse.emf.cdo.server.app.0] INFO
> org.hibernate.tool.hbm2ddl.DatabaseMetadata - table not found: cdo_lob
> 1656 [app thread - org.eclipse.emf.cdo.server.app.0] DEBUG
> org.hibernate.tool.hbm2ddl.SchemaUpdate - create table
> "cdoresourcecontents" ("cdoresource_e_id" int8 not null, "contents_type"
> varchar(255), "contents_id" varchar(255), "cdoresourcecontents_idx" int4
> not null, primary key ("cdoresource_e_id", "cdoresourcecontents_idx"))
> 1672 [app thread - org.eclipse.emf.cdo.server.app.0] DEBUG
> org.hibernate.tool.hbm2ddl.SchemaUpdate - create table "cdoresourcenode"
> (e_id int8 not null, "dtype" varchar(255) not null, e_version int4,
> resource_id varchar(255), container_id varchar(255),
> "cdoresourcenode_folder_e_id" int8, "name" varchar(255),
> "cdoresourcefolder_nodes_idx" int4, primary key (e_id), unique
> (container_id, "name"))
> 1703 [app thread - org.eclipse.emf.cdo.server.app.0] DEBUG
> org.hibernate.tool.hbm2ddl.SchemaUpdate - create table cdo_lob (id
> varchar(255) not null, clob text, blob oid, size int4, primary key (id))
> 1719 [app thread - org.eclipse.emf.cdo.server.app.0] DEBUG
> org.hibernate.tool.hbm2ddl.SchemaUpdate - alter table
> "cdoresourcecontents" add constraint cdoresourcecontents foreign key
> ("cdoresource_e_id") references "cdoresourcenode"
> 1719 [app thread - org.eclipse.emf.cdo.server.app.0] DEBUG
> org.hibernate.tool.hbm2ddl.SchemaUpdate - alter table "cdoresourcenode"
> add constraint cdoresourcenode_folder foreign key
> ("cdoresourcenode_folder_e_id") references "cdoresourcenode"
> 1719 [app thread - org.eclipse.emf.cdo.server.app.0] INFO
> org.hibernate.tool.hbm2ddl.SchemaUpdate - schema update complete
> Hibernate: select nextval ('hibernate_sequence')
> Hibernate: insert into "cdoresourcenode" (e_version, resource_id,
> container_id, "name", "dtype", e_id) values (?, ?, ?, ?, 'CDOResource', ?)
> Hibernate: update "cdoresourcenode" set resource_id=? where
> "dtype"='CDOResource' and (? is null)
> [ERROR] Not able to update container columns of CDOResource with id
> OID:http://www.eclipse.org/emf/CDO/Eresource/4.0.0#CDOResour ce#2
> java.lang.IllegalStateException: Not able to update container columns of
> CDOResource with id
> OID:http://www.eclipse.org/emf/CDO/Eresource/4.0.0#CDOResour ce#2
> at
> org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore Accessor.repairResourceIDs(HibernateStoreAccessor.java:746)
>
> at
> org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore Accessor.doWrite(HibernateStoreAccessor.java:669)
>
> at
> org.eclipse.emf.cdo.spi.server.StoreAccessorBase.write(Store AccessorBase.java:135)
>
> at
> org.eclipse.emf.cdo.internal.server.TransactionCommitContext .write(TransactionCommitContext.java:409)
>
> at
> org.eclipse.emf.cdo.internal.server.Repository.initRootResou rce(Repository.java:1449)
>
> at
> org.eclipse.emf.cdo.internal.server.Repository.doActivate(Re pository.java:1561)
>
> at org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycl e.java:72)
> at
> org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:99)
>
> at
> org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:89)
>
> at
> org.eclipse.emf.cdo.server.CDOServerUtil.addRepository(CDOSe rverUtil.java:201)
>
> at
> org.eclipse.emf.cdo.spi.server.RepositoryConfigurator.config ure(RepositoryConfigurator.java:94)
>
> at
> org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplicat ion.doStart(CDOServerApplication.java:61)
>
> at org.eclipse.net4j.util.om.OSGiApplication.start(OSGiApplicat ion.java:61)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:196)
>
> at
> org.eclipse.equinox.internal.app.AnyThreadAppLauncher.run(An yThreadAppLauncher.java:26)
>
> at java.lang.Thread.run(Unknown Source)
> [...]
>
> Le 28/12/2010 21:52, Hendy Irawan a écrit :
>> I solved my own problem:
>>
>> Turned out it was due to me putting several duplicate Teneo plugins of
>> different versions. (common sense, I know.)
>>
>> Blogged at: http://eclipsedriven.blogspot.com/2010/12/cdo-30-with-
>> hibernate-experiences.html
>>
>
Previous Topic:Generated tests from EMF
Next Topic:Change help text in properties view
Goto Forum:
  


Current Time: Wed Apr 24 22:54:04 GMT 2024

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

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

Back to the top