Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Error creating repository in h2 DB(insert into cdo_package_units throws UnsuppoetedOperationException)
[CDO] Error creating repository in h2 DB [message #1016184] Tue, 05 March 2013 06:50 Go to next message
Rui Rosado is currently offline Rui Rosado
Messages: 5
Registered: March 2013
Junior Member
Hi all,

I am trying to reproduce the CDO/Embedded example as it would cover one of our use-cases: http://wiki.eclipse.org/CDO/Embedded
Things seem to start working well, but after creating a few tables in the H2 database the program stops with an UnsupportedOperationException on the sql statement:
INSERT INTO cdo_package_units VALUES (?, ?, ?, ?)

I included the console-output as an attachment, and also the java-source as I am using it, and a picture from dbVisualizer which shows a view of the tables that where already created before this exception ocurred. BTW: all the created tables are empty.

Can anybody point me where I am going wrong (I still consider myself a newby Wink)?

Thanks in advance.
Rui Rosado
Re: [CDO] Error creating repository in h2 DB [message #1016697 is a reply to message #1016184] Thu, 07 March 2013 06:30 Go to previous messageGo to next message
Eike Stepper is currently offline Eike Stepper
Messages: 5446
Registered: July 2009
Senior Member
Am 07.03.2013 01:34, schrieb Rui Rosado:
> Hi all,
>
> I am trying to reproduce the CDO/Embedded example as it would cover one of our use-cases: http://wiki.eclipse.org/CDO/Embedded
> Things seem to start working well, but after creating a few tables in the H2 database the program stops with an UnsupportedOperationException on the sql statement:
> INSERT INTO cdo_package_units VALUES (?, ?, ?, ?)
I *think* this problem can be caused if the org.eclipse.emf.ecore.xmi bundle is not properly deployed to the server. Can
you please check that?


> I included the console-output as an attachment, and also the java-source as I am using it, and a picture from dbVisualizer which shows a view of the tables that where already created before this exception ocurred. BTW: all the created tables are empty.
I'm currently working on the problem that some databases don't support rollback of a series of DDL statements in case
one of them fails. Not sure if that's related.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: [CDO] Error creating repository in h2 DB [message #1016715 is a reply to message #1016697] Thu, 07 March 2013 08:16 Go to previous message
Rui Rosado is currently offline Rui Rosado
Messages: 5
Registered: March 2013
Junior Member
Eike,

Thank you for your pointer!
Everything works fine now that all the tables were created.

Regards,
Rui
Previous Topic:[CDO] CDORevisionImpl instance count
Next Topic:can't find org.eclipse.emf.edit.ui.EditorEntryPoint for GWT editor
Goto Forum:
  


Current Time: Sat Apr 19 08:58:46 EDT 2014

Powered by FUDForum. Page generated in 0.01916 seconds