Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Not able to start CDO Server
Not able to start CDO Server [message #119157] Sat, 19 April 2008 11:46 Go to next message
darpan saini is currently offline darpan sainiFriend
Messages: 9
Registered: July 2009
Junior Member
Hi,

I am trying to start a CDO server, but havent been able to do it so far.
The error I get is

java.lang.IllegalArgumentException: dbAdapter is null
at org.eclipse.emf.cdo.server.internal.db.DBStore.<init>(DBStore.java:65)
at
org.eclipse.emf.cdo.server.internal.db.DBStoreFactory.create Store(DBStoreFactory.java:53)
at
org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureStore(RepositoryConfigurator.java:131)
at
org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureRepository(RepositoryConfigurator.java:111)
at
org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigure(RepositoryConfigurator.java:80)
at
org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplicat ion.doStart(CDOServerApplication.java:51)
at
org.eclipse.net4j.util.om.OSGiApplication.start(OSGiApplicat ion.java:61)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)

!ENTRY org.eclipse.osgi 4 0 2008-04-19 07:39:33.819
!MESSAGE Application error
!STACK 1
java.lang.IllegalArgumentException: dbAdapter is null
at org.eclipse.emf.cdo.server.internal.db.DBStore.<init>(DBStore.java:65)
at
org.eclipse.emf.cdo.server.internal.db.DBStoreFactory.create Store(DBStoreFactory.java:53)
at
org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureStore(RepositoryConfigurator.java:131)
at
org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureRepository(RepositoryConfigurator.java:111)
at
org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigure(RepositoryConfigurator.java:80)
at
org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplicat ion.doStart(CDOServerApplication.java:51)
at
org.eclipse.net4j.util.om.OSGiApplication.start(OSGiApplicat ion.java:61)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)


I have placed a cdo-server.xml file in my home directory and it looks like:
<?xml version="1.0" encoding="UTF-8"?>
<cdoServer>

<repository name="repo1">
<property name="overrideUUID"
value="1ff5d226-b1f0-40fb-aba2-0c31b38c764f"/>
<property name="supportingAudits" value="true"/>
<property name="verifyingRevisions" value="false"/>
<property name="rememberingKnownTypes" value="false"/>
<property name="currentLRUCapacity" value="10000"/>
<property name="revisedLRUCapacity" value="100"/>

<store type="db">
<!-- type: horizontal | vertical | <any user-contributed type>-->
<mappingStrategy type="horizontal">
<!-- ONE_TABLE_PER_REFERENCE | ONE_TABLE_PER_CLASS |
ONE_TABLE_PER_PACKAGE | ONE_TABLE_PER_REPOSITORY | LIKE_ATTRIBUTES -->
<property name="toManyReferences" value="ONE_TABLE_PER_REFERENCE"/>

<!-- LIKE_ATTRIBUTES | LIKE_TO_MANY_REFERENCES-->
<property name="toOneReferences" value="LIKE_ATTRIBUTES"/>

<!-- MODEL | STRATEGY-->
<property name="mappingPrecedence" value="MODEL"/>
</mappingStrategy>

<dbAdapter name="derby"/>
<dataSource class="org.apache.derby.jdbc.EmbeddedDataSource"

databaseName=" /home/darpan/Desktop/derby/db-derby-10.3.2.1-bin/bin/MyDbTes t1 "
createDatabase="create"/>

<!--<dbAdapter name="derby"/>
<dataSource class="org.apache.derby.jdbc.ClientDataSource"
databaseName="cdodb1"
createDatabase="create"/>-->

<!--<dbAdapter name="hsqldb"/>
<dataSource class="org.eclipse.net4j.db.hsqldb.HSQLDBDataSource"
database="jdbc:hsqldb:mem:cdodb1"
user="sa"/>-->

<!--<dbAdapter name="mysql"/>
<dataSource class="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"
url="jdbc:mysql://localhost/cdodb1"
user="root"/>-->
</store>
</repository>

</cdoServer>


When I tried using the mysql adapter instead of the Derby adapter I keep
getting

!ENTRY org.eclipse.net4j.util 4 0 2008-04-19 07:35:56.826
!MESSAGE java.lang.ClassNotFoundException:
com.mysql.jdbc.jdbc2.optional.MysqlDataSource
!STACK 0
org.eclipse.net4j.db.DBException: java.lang.ClassNotFoundException:
com.mysql.jdbc.jdbc2.optional.MysqlDataSource
at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:69)
at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:58)
at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:53)
at
org.eclipse.emf.cdo.server.internal.db.DBStoreFactory.getDat aSource(DBStoreFactory.java:104)
at
org.eclipse.emf.cdo.server.internal.db.DBStoreFactory.create Store(DBStoreFactory.java:51)
at
org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureStore(RepositoryConfigurator.java:131)
at
org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureRepository(RepositoryConfigurator.java:111)
at
org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigure(RepositoryConfigurator.java:80)
at
org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplicat ion.doStart(CDOServerApplication.java:51)
at
org.eclipse.net4j.util.om.OSGiApplication.start(OSGiApplicat ion.java:61)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
Caused by: java.lang.ClassNotFoundException:
com.mysql.jdbc.jdbc2.optional.MysqlDataSource
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:434)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.eclipse.net4j.util.ReflectUtil.instantiate(ReflectUtil.j ava:414)
at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:65)
... 22 more

!ENTRY org.eclipse.osgi 4 0 2008-04-19 07:35:56.834
!MESSAGE Application error
!STACK 1
org.eclipse.net4j.db.DBException: java.lang.ClassNotFoundException:
com.mysql.jdbc.jdbc2.optional.MysqlDataSource
at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:69)
at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:58)
at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:53)
at
org.eclipse.emf.cdo.server.internal.db.DBStoreFactory.getDat aSource(DBStoreFactory.java:104)
at
org.eclipse.emf.cdo.server.internal.db.DBStoreFactory.create Store(DBStoreFactory.java:51)
at
org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureStore(RepositoryConfigurator.java:131)
at
org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureRepository(RepositoryConfigurator.java:111)
at
org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigure(RepositoryConfigurator.java:80)
at
org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplicat ion.doStart(CDOServerApplication.java:51)
at
org.eclipse.net4j.util.om.OSGiApplication.start(OSGiApplicat ion.java:61)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
Caused by: java.lang.ClassNotFoundException:
com.mysql.jdbc.jdbc2.optional.MysqlDataSource
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:434)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.eclipse.net4j.util.ReflectUtil.instantiate(ReflectUtil.j ava:414)
at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:65)
... 22 more


I have checked out the net4j.db plugin form CVS and added
mysql-connector-java-5.1.6-bin.jar to its external jars, but am not able
to get rid of the ClassNotFoundError.

For some background, I am trying to create a modeling used to
collaboratively design a UML model. Ed Merks pointed me to CDO, saying it
would help. So far, I have only seen CDO work with EMF editors (in a
demo). Once I get CDO setup I hope to use it with GEF and GMF.

Any help greatly appreciated.

Thanks,
-darpan
Re: Not able to start CDO Server [message #119222 is a reply to message #119157] Sat, 19 April 2008 17:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

Hi Darpan,

I renamed the derby adapters to "derby-embedded", "derby-client"
respectively.
Can you get it to work with the new adapter name in the cdo-server.xml?

Cheers
/Eike



Darpan Saini schrieb:
> Hi,
>
> I am trying to start a CDO server, but havent been able to do it so
> far. The error I get is
> java.lang.IllegalArgumentException: dbAdapter is null
> at
> org.eclipse.emf.cdo.server.internal.db.DBStore.<init>(DBStore.java:65)
> at
> org.eclipse.emf.cdo.server.internal.db.DBStoreFactory.create Store(DBStoreFactory.java:53)
>
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureStore(RepositoryConfigurator.java:131)
>
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureRepository(RepositoryConfigurator.java:111)
>
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigure(RepositoryConfigurator.java:80)
>
> at
> org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplicat ion.doStart(CDOServerApplication.java:51)
>
> at
> org.eclipse.net4j.util.om.OSGiApplication.start(OSGiApplicat ion.java:61)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>
> !ENTRY org.eclipse.osgi 4 0 2008-04-19 07:39:33.819
> !MESSAGE Application error
> !STACK 1
> java.lang.IllegalArgumentException: dbAdapter is null
> at
> org.eclipse.emf.cdo.server.internal.db.DBStore.<init>(DBStore.java:65)
> at
> org.eclipse.emf.cdo.server.internal.db.DBStoreFactory.create Store(DBStoreFactory.java:53)
>
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureStore(RepositoryConfigurator.java:131)
>
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureRepository(RepositoryConfigurator.java:111)
>
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigure(RepositoryConfigurator.java:80)
>
> at
> org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplicat ion.doStart(CDOServerApplication.java:51)
>
> at
> org.eclipse.net4j.util.om.OSGiApplication.start(OSGiApplicat ion.java:61)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>
>
> I have placed a cdo-server.xml file in my home directory and it looks
> like:
> <?xml version="1.0" encoding="UTF-8"?>
> <cdoServer>
>
> <repository name="repo1">
> <property name="overrideUUID"
> value="1ff5d226-b1f0-40fb-aba2-0c31b38c764f"/>
> <property name="supportingAudits" value="true"/>
> <property name="verifyingRevisions" value="false"/>
> <property name="rememberingKnownTypes" value="false"/>
> <property name="currentLRUCapacity" value="10000"/>
> <property name="revisedLRUCapacity" value="100"/>
>
> <store type="db">
> <!-- type: horizontal | vertical | <any user-contributed type>-->
> <mappingStrategy type="horizontal">
> <!-- ONE_TABLE_PER_REFERENCE | ONE_TABLE_PER_CLASS |
> ONE_TABLE_PER_PACKAGE | ONE_TABLE_PER_REPOSITORY | LIKE_ATTRIBUTES -->
> <property name="toManyReferences"
> value="ONE_TABLE_PER_REFERENCE"/>
>
> <!-- LIKE_ATTRIBUTES | LIKE_TO_MANY_REFERENCES-->
> <property name="toOneReferences" value="LIKE_ATTRIBUTES"/>
>
> <!-- MODEL | STRATEGY-->
> <property name="mappingPrecedence" value="MODEL"/>
> </mappingStrategy>
>
> <dbAdapter name="derby"/>
> <dataSource class="org.apache.derby.jdbc.EmbeddedDataSource"
>
> databaseName=" /home/darpan/Desktop/derby/db-derby-10.3.2.1-bin/bin/MyDbTes t1 "
>
> createDatabase="create"/>
>
> <!--<dbAdapter name="derby"/>
> <dataSource class="org.apache.derby.jdbc.ClientDataSource"
> databaseName="cdodb1"
> createDatabase="create"/>-->
>
> <!--<dbAdapter name="hsqldb"/>
> <dataSource class="org.eclipse.net4j.db.hsqldb.HSQLDBDataSource"
> database="jdbc:hsqldb:mem:cdodb1"
> user="sa"/>-->
>
> <!--<dbAdapter name="mysql"/>
> <dataSource class="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"
> url="jdbc:mysql://localhost/cdodb1"
> user="root"/>-->
> </store>
> </repository>
>
> </cdoServer>
>
>
> When I tried using the mysql adapter instead of the Derby adapter I
> keep getting
> !ENTRY org.eclipse.net4j.util 4 0 2008-04-19 07:35:56.826
> !MESSAGE java.lang.ClassNotFoundException:
> com.mysql.jdbc.jdbc2.optional.MysqlDataSource
> !STACK 0
> org.eclipse.net4j.db.DBException: java.lang.ClassNotFoundException:
> com.mysql.jdbc.jdbc2.optional.MysqlDataSource
> at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:69)
> at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:58)
> at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:53)
> at
> org.eclipse.emf.cdo.server.internal.db.DBStoreFactory.getDat aSource(DBStoreFactory.java:104)
>
> at
> org.eclipse.emf.cdo.server.internal.db.DBStoreFactory.create Store(DBStoreFactory.java:51)
>
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureStore(RepositoryConfigurator.java:131)
>
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureRepository(RepositoryConfigurator.java:111)
>
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigure(RepositoryConfigurator.java:80)
>
> at
> org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplicat ion.doStart(CDOServerApplication.java:51)
>
> at
> org.eclipse.net4j.util.om.OSGiApplication.start(OSGiApplicat ion.java:61)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
> Caused by: java.lang.ClassNotFoundException:
> com.mysql.jdbc.jdbc2.optional.MysqlDataSource
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:434)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at
> org.eclipse.net4j.util.ReflectUtil.instantiate(ReflectUtil.j ava:414)
> at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:65)
> ... 22 more
>
> !ENTRY org.eclipse.osgi 4 0 2008-04-19 07:35:56.834
> !MESSAGE Application error
> !STACK 1
> org.eclipse.net4j.db.DBException: java.lang.ClassNotFoundException:
> com.mysql.jdbc.jdbc2.optional.MysqlDataSource
> at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:69)
> at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:58)
> at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:53)
> at
> org.eclipse.emf.cdo.server.internal.db.DBStoreFactory.getDat aSource(DBStoreFactory.java:104)
>
> at
> org.eclipse.emf.cdo.server.internal.db.DBStoreFactory.create Store(DBStoreFactory.java:51)
>
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureStore(RepositoryConfigurator.java:131)
>
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureRepository(RepositoryConfigurator.java:111)
>
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigure(RepositoryConfigurator.java:80)
>
> at
> org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplicat ion.doStart(CDOServerApplication.java:51)
>
> at
> org.eclipse.net4j.util.om.OSGiApplication.start(OSGiApplicat ion.java:61)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
> Caused by: java.lang.ClassNotFoundException:
> com.mysql.jdbc.jdbc2.optional.MysqlDataSource
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:434)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at
> org.eclipse.net4j.util.ReflectUtil.instantiate(ReflectUtil.j ava:414)
> at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:65)
> ... 22 more
>
>
> I have checked out the net4j.db plugin form CVS and added
> mysql-connector-java-5.1.6-bin.jar to its external jars, but am not
> able to get rid of the ClassNotFoundError.
>
> For some background, I am trying to create a modeling used to
> collaboratively design a UML model. Ed Merks pointed me to CDO, saying
> it would help. So far, I have only seen CDO work with EMF editors (in
> a demo). Once I get CDO setup I hope to use it with GEF and GMF.
>
> Any help greatly appreciated.
>
> Thanks,
> -darpan
>
>
Re: Not able to start CDO Server [message #119351 is a reply to message #119222] Mon, 21 April 2008 11:58 Go to previous messageGo to next message
darpan saini is currently offline darpan sainiFriend
Messages: 9
Registered: July 2009
Junior Member
Hi Eike,

Thanks, I was able to start the server with that modification. But, once I
create a resource the editor I got:

[ERROR] org.eclipse.core.runtime.CoreException: Plug-in
org.eclipse.emf.cdo.edit was unable to load class
org.eclipse.emf.cdo.eresource.provider.EresourceItemProvider AdapterFactory.
org.eclipse.emf.common.util.WrappedException:
org.eclipse.core.runtime.CoreException: Plug-in org.eclipse.emf.cdo.edit
was unable to load class
org.eclipse.emf.cdo.eresource.provider.EresourceItemProvider AdapterFactory.
at
org.eclipse.emf.ecore.plugin.RegistryReader$PluginClassDescr iptor.createInstance(RegistryReader.java:171)
at
org.eclipse.emf.edit.EMFEditPlugin$2$1PluginAdapterFactoryDe scriptor.createAdapterFactory(EMFEditPlugin.java:162)
at
org.eclipse.emf.edit.provider.ComposedAdapterFactory.getFact oryForTypes(ComposedAdapterFactory.java:226)
at
org.eclipse.emf.edit.provider.ComposedAdapterFactory.adapt(C omposedAdapterFactory.java:278)
at
org.eclipse.emf.edit.provider.ComposedAdapterFactory.adapt(C omposedAdapterFactory.java:258)
at
org.eclipse.emf.edit.provider.ComposedAdapterFactory.adapt(C omposedAdapterFactory.java:245)
at
org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvid er.getElements(AdapterFactoryContentProvider.java:142)
at
org.eclipse.jface.viewers.StructuredViewer.getRawChildren(St ructuredViewer.java:937)
at
org.eclipse.jface.viewers.ColumnViewer.getRawChildren(Column Viewer.java:693)
at
org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren( AbstractTreeViewer.java:1298)
at
org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeView er.java:378)
at
org.eclipse.jface.viewers.AbstractTreeViewer.getFilteredChil dren(AbstractTreeViewer.java:615)
at
org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildr en(AbstractTreeViewer.java:581)
at
org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractT reeViewer.java:778)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.jface.viewers.AbstractTreeViewer.createChildren( AbstractTreeViewer.java:755)
at
org.eclipse.jface.viewers.TreeViewer.createChildren(TreeView er.java:627)
at
org.eclipse.jface.viewers.AbstractTreeViewer.internalInitial izeTree(AbstractTreeViewer.java:1463)
at
org.eclipse.jface.viewers.TreeViewer.internalInitializeTree( TreeViewer.java:816)
at
org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractT reeViewer.java:1446)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1368)
at
org.eclipse.jface.viewers.TreeViewer.preservingSelection(Tre eViewer.java:390)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1330)
at
org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(Ab stractTreeViewer.java:1435)
at
org.eclipse.jface.viewers.ContentViewer.setInput(ContentView er.java:251)
at
org.eclipse.jface.viewers.StructuredViewer.setInput(Structur edViewer.java:1606)
at
org.eclipse.emf.cdo.internal.ui.editor.CDOEditor.createPages (CDOEditor.java:1170)
at
org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:283)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
at
org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:263)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2739)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
at
org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
at
org.eclipse.emf.cdo.internal.ui.editor.CDOEditor$21.run(CDOE ditor.java:2227)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3296)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2974)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)

I tried solving this by checking out the cdo.edit plugin from CVS and try
a CDO client from a child eclipse, but I got the same error.
I can see that I have that plugin and the class in my parent eclipse's
plugins directory as well.

I noticed that I am unable to open resource.genmodel in
org.eclipse.emf.cdo because of two FeatureNotFoundExceptions:
extensibleProviderFactory Not found
childCreationExtenders not found

I reloaded the genmodel and regenerated the code. After this I got the
editor working but now I am unable to commit changes.
Whenever I try to commit a transaction, I get a
Caused by: java.util.concurrent.TimeoutException: Timeout
at org.eclipse.net4j.signal.Signal.runSync(Signal.java:152)
at
org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr otocol.java:232)
at org.eclipse.net4j.signal.SignalActor.send(SignalActor.java:5 0)
at
org.eclipse.net4j.signal.failover.NOOPFailOverStrategy.send( NOOPFailOverStrategy.java:34)
at
org.eclipse.emf.internal.cdo.CDOTransactionImpl.commit(CDOTr ansactionImpl.java:236)
... 4 more

I am not sure how to fix this.

Thanks,
-darpan
Re: Not able to start CDO Server [message #119364 is a reply to message #119351] Mon, 21 April 2008 12:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

Hi Darpan,

I have the feeling that the cdo.edit plugin gets installed but not
activated. This can have at least two reasons I can imagine of:

1) The requirements of the cdo.edit plugin are not met. Are the emf.edit
and emf.ecore.edit installed and active? Please try the "Validate
Plugins" button in your launch config.
2) Are you using (a new) EMF 2.4? I can vaguely recall that
extensibleProviderFactory and childCreationExtenders belong to the newer
features of EMF. Ed?

Cheers
/Eike


Darpan Saini schrieb:
> Hi Eike,
>
> Thanks, I was able to start the server with that modification. But,
> once I create a resource the editor I got:
>
> [ERROR] org.eclipse.core.runtime.CoreException: Plug-in
> org.eclipse.emf.cdo.edit was unable to load class
> org.eclipse.emf.cdo.eresource.provider.EresourceItemProvider AdapterFactory.
>
> org.eclipse.emf.common.util.WrappedException:
> org.eclipse.core.runtime.CoreException: Plug-in
> org.eclipse.emf.cdo.edit was unable to load class
> org.eclipse.emf.cdo.eresource.provider.EresourceItemProvider AdapterFactory.
>
> at
> org.eclipse.emf.ecore.plugin.RegistryReader$PluginClassDescr iptor.createInstance(RegistryReader.java:171)
>
> at
> org.eclipse.emf.edit.EMFEditPlugin$2$1PluginAdapterFactoryDe scriptor.createAdapterFactory(EMFEditPlugin.java:162)
>
> at
> org.eclipse.emf.edit.provider.ComposedAdapterFactory.getFact oryForTypes(ComposedAdapterFactory.java:226)
>
> at
> org.eclipse.emf.edit.provider.ComposedAdapterFactory.adapt(C omposedAdapterFactory.java:278)
>
> at
> org.eclipse.emf.edit.provider.ComposedAdapterFactory.adapt(C omposedAdapterFactory.java:258)
>
> at
> org.eclipse.emf.edit.provider.ComposedAdapterFactory.adapt(C omposedAdapterFactory.java:245)
>
> at
> org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvid er.getElements(AdapterFactoryContentProvider.java:142)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.getRawChildren(St ructuredViewer.java:937)
>
> at
> org.eclipse.jface.viewers.ColumnViewer.getRawChildren(Column Viewer.java:693)
>
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren( AbstractTreeViewer.java:1298)
>
> at
> org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeView er.java:378)
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.getFilteredChil dren(AbstractTreeViewer.java:615)
>
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildr en(AbstractTreeViewer.java:581)
>
> at
> org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractT reeViewer.java:778)
>
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.createChildren( AbstractTreeViewer.java:755)
>
> at
> org.eclipse.jface.viewers.TreeViewer.createChildren(TreeView er.java:627)
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.internalInitial izeTree(AbstractTreeViewer.java:1463)
>
> at
> org.eclipse.jface.viewers.TreeViewer.internalInitializeTree( TreeViewer.java:816)
>
> at
> org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractT reeViewer.java:1446)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1368)
>
> at
> org.eclipse.jface.viewers.TreeViewer.preservingSelection(Tre eViewer.java:390)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1330)
>
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(Ab stractTreeViewer.java:1435)
>
> at
> org.eclipse.jface.viewers.ContentViewer.setInput(ContentView er.java:251)
> at
> org.eclipse.jface.viewers.StructuredViewer.setInput(Structur edViewer.java:1606)
>
> at
> org.eclipse.emf.cdo.internal.ui.editor.CDOEditor.createPages (CDOEditor.java:1170)
>
> at
> org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:283)
>
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
>
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
>
> at
> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:263)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2739)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
> at
> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
> at
> org.eclipse.emf.cdo.internal.ui.editor.CDOEditor$21.run(CDOE ditor.java:2227)
>
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
>
> at
> org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3296)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2974)
> at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
>
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>
> I tried solving this by checking out the cdo.edit plugin from CVS and
> try a CDO client from a child eclipse, but I got the same error.
> I can see that I have that plugin and the class in my parent eclipse's
> plugins directory as well.
>
> I noticed that I am unable to open resource.genmodel in
> org.eclipse.emf.cdo because of two FeatureNotFoundExceptions:
> extensibleProviderFactory Not found
> childCreationExtenders not found
>
> I reloaded the genmodel and regenerated the code. After this I got the
> editor working but now I am unable to commit changes.
> Whenever I try to commit a transaction, I get a Caused by:
> java.util.concurrent.TimeoutException: Timeout
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:152)
> at
> org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr otocol.java:232)
>
> at org.eclipse.net4j.signal.SignalActor.send(SignalActor.java:5 0)
> at
> org.eclipse.net4j.signal.failover.NOOPFailOverStrategy.send( NOOPFailOverStrategy.java:34)
>
> at
> org.eclipse.emf.internal.cdo.CDOTransactionImpl.commit(CDOTr ansactionImpl.java:236)
>
> ... 4 more
>
> I am not sure how to fix this.
>
> Thanks,
> -darpan
>
Re: Not able to start CDO Server [message #119378 is a reply to message #119364] Mon, 21 April 2008 12:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Eike,

Yes, these are new to 2.4. And there was also a bug that generated a
registration for the extenders when the option to do that was set to
false (which should result in a warning in your plugin.xml).


Eike Stepper wrote:
> Hi Darpan,
>
> I have the feeling that the cdo.edit plugin gets installed but not
> activated. This can have at least two reasons I can imagine of:
>
> 1) The requirements of the cdo.edit plugin are not met. Are the
> emf.edit and emf.ecore.edit installed and active? Please try the
> "Validate Plugins" button in your launch config.
> 2) Are you using (a new) EMF 2.4? I can vaguely recall that
> extensibleProviderFactory and childCreationExtenders belong to the
> newer features of EMF. Ed?
>
> Cheers
> /Eike
>
>
> Darpan Saini schrieb:
>> Hi Eike,
>>
>> Thanks, I was able to start the server with that modification. But,
>> once I create a resource the editor I got:
>>
>> [ERROR] org.eclipse.core.runtime.CoreException: Plug-in
>> org.eclipse.emf.cdo.edit was unable to load class
>> org.eclipse.emf.cdo.eresource.provider.EresourceItemProvider AdapterFactory.
>>
>> org.eclipse.emf.common.util.WrappedException:
>> org.eclipse.core.runtime.CoreException: Plug-in
>> org.eclipse.emf.cdo.edit was unable to load class
>> org.eclipse.emf.cdo.eresource.provider.EresourceItemProvider AdapterFactory.
>>
>> at
>> org.eclipse.emf.ecore.plugin.RegistryReader$PluginClassDescr iptor.createInstance(RegistryReader.java:171)
>>
>> at
>> org.eclipse.emf.edit.EMFEditPlugin$2$1PluginAdapterFactoryDe scriptor.createAdapterFactory(EMFEditPlugin.java:162)
>>
>> at
>> org.eclipse.emf.edit.provider.ComposedAdapterFactory.getFact oryForTypes(ComposedAdapterFactory.java:226)
>>
>> at
>> org.eclipse.emf.edit.provider.ComposedAdapterFactory.adapt(C omposedAdapterFactory.java:278)
>>
>> at
>> org.eclipse.emf.edit.provider.ComposedAdapterFactory.adapt(C omposedAdapterFactory.java:258)
>>
>> at
>> org.eclipse.emf.edit.provider.ComposedAdapterFactory.adapt(C omposedAdapterFactory.java:245)
>>
>> at
>> org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvid er.getElements(AdapterFactoryContentProvider.java:142)
>>
>> at
>> org.eclipse.jface.viewers.StructuredViewer.getRawChildren(St ructuredViewer.java:937)
>>
>> at
>> org.eclipse.jface.viewers.ColumnViewer.getRawChildren(Column Viewer.java:693)
>>
>> at
>> org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren( AbstractTreeViewer.java:1298)
>>
>> at
>> org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeView er.java:378)
>> at
>> org.eclipse.jface.viewers.AbstractTreeViewer.getFilteredChil dren(AbstractTreeViewer.java:615)
>>
>> at
>> org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildr en(AbstractTreeViewer.java:581)
>>
>> at
>> org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractT reeViewer.java:778)
>>
>> at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>> at
>> org.eclipse.jface.viewers.AbstractTreeViewer.createChildren( AbstractTreeViewer.java:755)
>>
>> at
>> org.eclipse.jface.viewers.TreeViewer.createChildren(TreeView er.java:627)
>> at
>> org.eclipse.jface.viewers.AbstractTreeViewer.internalInitial izeTree(AbstractTreeViewer.java:1463)
>>
>> at
>> org.eclipse.jface.viewers.TreeViewer.internalInitializeTree( TreeViewer.java:816)
>>
>> at
>> org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractT reeViewer.java:1446)
>>
>> at
>> org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1368)
>>
>> at
>> org.eclipse.jface.viewers.TreeViewer.preservingSelection(Tre eViewer.java:390)
>>
>> at
>> org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1330)
>>
>> at
>> org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(Ab stractTreeViewer.java:1435)
>>
>> at
>> org.eclipse.jface.viewers.ContentViewer.setInput(ContentView er.java:251)
>> at
>> org.eclipse.jface.viewers.StructuredViewer.setInput(Structur edViewer.java:1606)
>>
>> at
>> org.eclipse.emf.cdo.internal.ui.editor.CDOEditor.createPages (CDOEditor.java:1170)
>>
>> at
>> org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:283)
>>
>> at
>> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
>>
>> at
>> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
>>
>> at
>> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:263)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2739)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
>> at
>> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
>> at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
>>
>> at
>> org.eclipse.emf.cdo.internal.ui.editor.CDOEditor$21.run(CDOE ditor.java:2227)
>>
>> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
>> at
>> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
>>
>> at
>> org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3296)
>> at
>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2974)
>> at
>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
>> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
>> at
>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>>
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
>>
>> at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at
>> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
>>
>> at
>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>>
>> I tried solving this by checking out the cdo.edit plugin from CVS and
>> try a CDO client from a child eclipse, but I got the same error.
>> I can see that I have that plugin and the class in my parent
>> eclipse's plugins directory as well.
>>
>> I noticed that I am unable to open resource.genmodel in
>> org.eclipse.emf.cdo because of two FeatureNotFoundExceptions:
>> extensibleProviderFactory Not found
>> childCreationExtenders not found
>>
>> I reloaded the genmodel and regenerated the code. After this I got
>> the editor working but now I am unable to commit changes.
>> Whenever I try to commit a transaction, I get a Caused by:
>> java.util.concurrent.TimeoutException: Timeout
>> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:152)
>> at
>> org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr otocol.java:232)
>>
>> at org.eclipse.net4j.signal.SignalActor.send(SignalActor.java:5 0)
>> at
>> org.eclipse.net4j.signal.failover.NOOPFailOverStrategy.send( NOOPFailOverStrategy.java:34)
>>
>> at
>> org.eclipse.emf.internal.cdo.CDOTransactionImpl.commit(CDOTr ansactionImpl.java:236)
>>
>> ... 4 more
>>
>> I am not sure how to fix this.
>>
>> Thanks,
>> -darpan
>>
Re: Not able to start CDO Server [message #119391 is a reply to message #119378] Mon, 21 April 2008 14:31 Go to previous messageGo to next message
darpan saini is currently offline darpan sainiFriend
Messages: 9
Registered: July 2009
Junior Member
Success!!
I was able to run the server and client without a problem with Eclipse
3.4, EMF 2.4. But, I had to do it from my windows box. All this while I
was working on Ubuntu Gutsy. I suspected that switching to Windows could
help since I read one of your earlier posts that you work primarily on
Windows.

Do you think this would be possible to use with GEF and GMF? I am going to
start looking into that now.

Thanks,
-darpan

ps. I guess I had the server and client working on Ubuntu except for the
TimeOutException.
Re: Not able to start CDO Server [message #119403 is a reply to message #119391] Mon, 21 April 2008 15:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Darpan,

A lot of the Linux problems are hear about seem to be caused by a poor
default JVM implementation, gcj I think...


Darpan Saini wrote:
> Success!!
> I was able to run the server and client without a problem with Eclipse
> 3.4, EMF 2.4. But, I had to do it from my windows box. All this while
> I was working on Ubuntu Gutsy. I suspected that switching to Windows
> could help since I read one of your earlier posts that you work
> primarily on Windows.
>
> Do you think this would be possible to use with GEF and GMF? I am
> going to start looking into that now.
>
> Thanks,
> -darpan
>
> ps. I guess I had the server and client working on Ubuntu except for
> the TimeOutException.
>
>
Re: Not able to start CDO Server [message #119573 is a reply to message #119391] Tue, 22 April 2008 17:51 Go to previous message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

Darpan Saini schrieb:
> Success!!
> I was able to run the server and client without a problem with Eclipse
> 3.4, EMF 2.4.

Great ;-)


> But, I had to do it from my windows box. All this while I
> was working on Ubuntu Gutsy. I suspected that switching to Windows could
> help since I read one of your earlier posts that you work primarily on
> Windows.

Yes, I work primarily on Windows but the automated tests regularly run on linux. Isn't Ubuntu something like linux?


> Do you think this would be possible to use with GEF and GMF? I am going
> to start looking into that now.

No idea what should prevent a CDO client from using GEF.
But a different story for GMF. Please search this newsgroup for "CDO GMF" for a more detailed discussion.
I plan to work on the CDO/GMF issues soon but it's not top priority for me.

Cheers
/Eike


>
> Thanks,
> -darpan
>
> ps. I guess I had the server and client working on Ubuntu except for the
> TimeOutException.
>
>
Re: Not able to start CDO Server [message #617851 is a reply to message #119157] Sat, 19 April 2008 17:18 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6487
Registered: July 2009
Senior Member
Hi Darpan,

I renamed the derby adapters to "derby-embedded", "derby-client"
respectively.
Can you get it to work with the new adapter name in the cdo-server.xml?

Cheers
/Eike



Darpan Saini schrieb:
> Hi,
>
> I am trying to start a CDO server, but havent been able to do it so
> far. The error I get is
> java.lang.IllegalArgumentException: dbAdapter is null
> at
> org.eclipse.emf.cdo.server.internal.db.DBStore.<init>(DBStore.java:65)
> at
> org.eclipse.emf.cdo.server.internal.db.DBStoreFactory.create Store(DBStoreFactory.java:53)
>
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureStore(RepositoryConfigurator.java:131)
>
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureRepository(RepositoryConfigurator.java:111)
>
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigure(RepositoryConfigurator.java:80)
>
> at
> org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplicat ion.doStart(CDOServerApplication.java:51)
>
> at
> org.eclipse.net4j.util.om.OSGiApplication.start(OSGiApplicat ion.java:61)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>
> !ENTRY org.eclipse.osgi 4 0 2008-04-19 07:39:33.819
> !MESSAGE Application error
> !STACK 1
> java.lang.IllegalArgumentException: dbAdapter is null
> at
> org.eclipse.emf.cdo.server.internal.db.DBStore.<init>(DBStore.java:65)
> at
> org.eclipse.emf.cdo.server.internal.db.DBStoreFactory.create Store(DBStoreFactory.java:53)
>
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureStore(RepositoryConfigurator.java:131)
>
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureRepository(RepositoryConfigurator.java:111)
>
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigure(RepositoryConfigurator.java:80)
>
> at
> org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplicat ion.doStart(CDOServerApplication.java:51)
>
> at
> org.eclipse.net4j.util.om.OSGiApplication.start(OSGiApplicat ion.java:61)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>
>
> I have placed a cdo-server.xml file in my home directory and it looks
> like:
> <?xml version="1.0" encoding="UTF-8"?>
> <cdoServer>
>
> <repository name="repo1">
> <property name="overrideUUID"
> value="1ff5d226-b1f0-40fb-aba2-0c31b38c764f"/>
> <property name="supportingAudits" value="true"/>
> <property name="verifyingRevisions" value="false"/>
> <property name="rememberingKnownTypes" value="false"/>
> <property name="currentLRUCapacity" value="10000"/>
> <property name="revisedLRUCapacity" value="100"/>
>
> <store type="db">
> <!-- type: horizontal | vertical | <any user-contributed type>-->
> <mappingStrategy type="horizontal">
> <!-- ONE_TABLE_PER_REFERENCE | ONE_TABLE_PER_CLASS |
> ONE_TABLE_PER_PACKAGE | ONE_TABLE_PER_REPOSITORY | LIKE_ATTRIBUTES -->
> <property name="toManyReferences"
> value="ONE_TABLE_PER_REFERENCE"/>
>
> <!-- LIKE_ATTRIBUTES | LIKE_TO_MANY_REFERENCES-->
> <property name="toOneReferences" value="LIKE_ATTRIBUTES"/>
>
> <!-- MODEL | STRATEGY-->
> <property name="mappingPrecedence" value="MODEL"/>
> </mappingStrategy>
>
> <dbAdapter name="derby"/>
> <dataSource class="org.apache.derby.jdbc.EmbeddedDataSource"
>
> databaseName=" /home/darpan/Desktop/derby/db-derby-10.3.2.1-bin/bin/MyDbTes t1 "
>
> createDatabase="create"/>
>
> <!--<dbAdapter name="derby"/>
> <dataSource class="org.apache.derby.jdbc.ClientDataSource"
> databaseName="cdodb1"
> createDatabase="create"/>-->
>
> <!--<dbAdapter name="hsqldb"/>
> <dataSource class="org.eclipse.net4j.db.hsqldb.HSQLDBDataSource"
> database="jdbc:hsqldb:mem:cdodb1"
> user="sa"/>-->
>
> <!--<dbAdapter name="mysql"/>
> <dataSource class="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"
> url="jdbc:mysql://localhost/cdodb1"
> user="root"/>-->
> </store>
> </repository>
>
> </cdoServer>
>
>
> When I tried using the mysql adapter instead of the Derby adapter I
> keep getting
> !ENTRY org.eclipse.net4j.util 4 0 2008-04-19 07:35:56.826
> !MESSAGE java.lang.ClassNotFoundException:
> com.mysql.jdbc.jdbc2.optional.MysqlDataSource
> !STACK 0
> org.eclipse.net4j.db.DBException: java.lang.ClassNotFoundException:
> com.mysql.jdbc.jdbc2.optional.MysqlDataSource
> at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:69)
> at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:58)
> at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:53)
> at
> org.eclipse.emf.cdo.server.internal.db.DBStoreFactory.getDat aSource(DBStoreFactory.java:104)
>
> at
> org.eclipse.emf.cdo.server.internal.db.DBStoreFactory.create Store(DBStoreFactory.java:51)
>
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureStore(RepositoryConfigurator.java:131)
>
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureRepository(RepositoryConfigurator.java:111)
>
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigure(RepositoryConfigurator.java:80)
>
> at
> org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplicat ion.doStart(CDOServerApplication.java:51)
>
> at
> org.eclipse.net4j.util.om.OSGiApplication.start(OSGiApplicat ion.java:61)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
> Caused by: java.lang.ClassNotFoundException:
> com.mysql.jdbc.jdbc2.optional.MysqlDataSource
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:434)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at
> org.eclipse.net4j.util.ReflectUtil.instantiate(ReflectUtil.j ava:414)
> at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:65)
> ... 22 more
>
> !ENTRY org.eclipse.osgi 4 0 2008-04-19 07:35:56.834
> !MESSAGE Application error
> !STACK 1
> org.eclipse.net4j.db.DBException: java.lang.ClassNotFoundException:
> com.mysql.jdbc.jdbc2.optional.MysqlDataSource
> at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:69)
> at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:58)
> at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:53)
> at
> org.eclipse.emf.cdo.server.internal.db.DBStoreFactory.getDat aSource(DBStoreFactory.java:104)
>
> at
> org.eclipse.emf.cdo.server.internal.db.DBStoreFactory.create Store(DBStoreFactory.java:51)
>
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureStore(RepositoryConfigurator.java:131)
>
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigureRepository(RepositoryConfigurator.java:111)
>
> at
> org.eclipse.emf.cdo.internal.server.RepositoryConfigurator.c onfigure(RepositoryConfigurator.java:80)
>
> at
> org.eclipse.emf.cdo.internal.server.bundle.CDOServerApplicat ion.doStart(CDOServerApplication.java:51)
>
> at
> org.eclipse.net4j.util.om.OSGiApplication.start(OSGiApplicat ion.java:61)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
> Caused by: java.lang.ClassNotFoundException:
> com.mysql.jdbc.jdbc2.optional.MysqlDataSource
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:434)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at
> org.eclipse.net4j.util.ReflectUtil.instantiate(ReflectUtil.j ava:414)
> at org.eclipse.net4j.db.DBUtil.createDataSource(DBUtil.java:65)
> ... 22 more
>
>
> I have checked out the net4j.db plugin form CVS and added
> mysql-connector-java-5.1.6-bin.jar to its external jars, but am not
> able to get rid of the ClassNotFoundError.
>
> For some background, I am trying to create a modeling used to
> collaboratively design a UML model. Ed Merks pointed me to CDO, saying
> it would help. So far, I have only seen CDO work with EMF editors (in
> a demo). Once I get CDO setup I hope to use it with GEF and GMF.
>
> Any help greatly appreciated.
>
> Thanks,
> -darpan
>
>


Re: Not able to start CDO Server [message #617861 is a reply to message #119222] Mon, 21 April 2008 11:58 Go to previous message
darpan saini is currently offline darpan sainiFriend
Messages: 9
Registered: July 2009
Junior Member
Hi Eike,

Thanks, I was able to start the server with that modification. But, once I
create a resource the editor I got:

[ERROR] org.eclipse.core.runtime.CoreException: Plug-in
org.eclipse.emf.cdo.edit was unable to load class
org.eclipse.emf.cdo.eresource.provider.EresourceItemProvider AdapterFactory.
org.eclipse.emf.common.util.WrappedException:
org.eclipse.core.runtime.CoreException: Plug-in org.eclipse.emf.cdo.edit
was unable to load class
org.eclipse.emf.cdo.eresource.provider.EresourceItemProvider AdapterFactory.
at
org.eclipse.emf.ecore.plugin.RegistryReader$PluginClassDescr iptor.createInstance(RegistryReader.java:171)
at
org.eclipse.emf.edit.EMFEditPlugin$2$1PluginAdapterFactoryDe scriptor.createAdapterFactory(EMFEditPlugin.java:162)
at
org.eclipse.emf.edit.provider.ComposedAdapterFactory.getFact oryForTypes(ComposedAdapterFactory.java:226)
at
org.eclipse.emf.edit.provider.ComposedAdapterFactory.adapt(C omposedAdapterFactory.java:278)
at
org.eclipse.emf.edit.provider.ComposedAdapterFactory.adapt(C omposedAdapterFactory.java:258)
at
org.eclipse.emf.edit.provider.ComposedAdapterFactory.adapt(C omposedAdapterFactory.java:245)
at
org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvid er.getElements(AdapterFactoryContentProvider.java:142)
at
org.eclipse.jface.viewers.StructuredViewer.getRawChildren(St ructuredViewer.java:937)
at
org.eclipse.jface.viewers.ColumnViewer.getRawChildren(Column Viewer.java:693)
at
org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren( AbstractTreeViewer.java:1298)
at
org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeView er.java:378)
at
org.eclipse.jface.viewers.AbstractTreeViewer.getFilteredChil dren(AbstractTreeViewer.java:615)
at
org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildr en(AbstractTreeViewer.java:581)
at
org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractT reeViewer.java:778)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.jface.viewers.AbstractTreeViewer.createChildren( AbstractTreeViewer.java:755)
at
org.eclipse.jface.viewers.TreeViewer.createChildren(TreeView er.java:627)
at
org.eclipse.jface.viewers.AbstractTreeViewer.internalInitial izeTree(AbstractTreeViewer.java:1463)
at
org.eclipse.jface.viewers.TreeViewer.internalInitializeTree( TreeViewer.java:816)
at
org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractT reeViewer.java:1446)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1368)
at
org.eclipse.jface.viewers.TreeViewer.preservingSelection(Tre eViewer.java:390)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1330)
at
org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(Ab stractTreeViewer.java:1435)
at
org.eclipse.jface.viewers.ContentViewer.setInput(ContentView er.java:251)
at
org.eclipse.jface.viewers.StructuredViewer.setInput(Structur edViewer.java:1606)
at
org.eclipse.emf.cdo.internal.ui.editor.CDOEditor.createPages (CDOEditor.java:1170)
at
org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:283)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
at
org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:263)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2739)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
at
org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
at
org.eclipse.emf.cdo.internal.ui.editor.CDOEditor$21.run(CDOE ditor.java:2227)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3296)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2974)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)

I tried solving this by checking out the cdo.edit plugin from CVS and try
a CDO client from a child eclipse, but I got the same error.
I can see that I have that plugin and the class in my parent eclipse's
plugins directory as well.

I noticed that I am unable to open resource.genmodel in
org.eclipse.emf.cdo because of two FeatureNotFoundExceptions:
extensibleProviderFactory Not found
childCreationExtenders not found

I reloaded the genmodel and regenerated the code. After this I got the
editor working but now I am unable to commit changes.
Whenever I try to commit a transaction, I get a
Caused by: java.util.concurrent.TimeoutException: Timeout
at org.eclipse.net4j.signal.Signal.runSync(Signal.java:152)
at
org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr otocol.java:232)
at org.eclipse.net4j.signal.SignalActor.send(SignalActor.java:5 0)
at
org.eclipse.net4j.signal.failover.NOOPFailOverStrategy.send( NOOPFailOverStrategy.java:34)
at
org.eclipse.emf.internal.cdo.CDOTransactionImpl.commit(CDOTr ansactionImpl.java:236)
... 4 more

I am not sure how to fix this.

Thanks,
-darpan
Re: Not able to start CDO Server [message #617862 is a reply to message #119351] Mon, 21 April 2008 12:39 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6487
Registered: July 2009
Senior Member
Hi Darpan,

I have the feeling that the cdo.edit plugin gets installed but not
activated. This can have at least two reasons I can imagine of:

1) The requirements of the cdo.edit plugin are not met. Are the emf.edit
and emf.ecore.edit installed and active? Please try the "Validate
Plugins" button in your launch config.
2) Are you using (a new) EMF 2.4? I can vaguely recall that
extensibleProviderFactory and childCreationExtenders belong to the newer
features of EMF. Ed?

Cheers
/Eike


Darpan Saini schrieb:
> Hi Eike,
>
> Thanks, I was able to start the server with that modification. But,
> once I create a resource the editor I got:
>
> [ERROR] org.eclipse.core.runtime.CoreException: Plug-in
> org.eclipse.emf.cdo.edit was unable to load class
> org.eclipse.emf.cdo.eresource.provider.EresourceItemProvider AdapterFactory.
>
> org.eclipse.emf.common.util.WrappedException:
> org.eclipse.core.runtime.CoreException: Plug-in
> org.eclipse.emf.cdo.edit was unable to load class
> org.eclipse.emf.cdo.eresource.provider.EresourceItemProvider AdapterFactory.
>
> at
> org.eclipse.emf.ecore.plugin.RegistryReader$PluginClassDescr iptor.createInstance(RegistryReader.java:171)
>
> at
> org.eclipse.emf.edit.EMFEditPlugin$2$1PluginAdapterFactoryDe scriptor.createAdapterFactory(EMFEditPlugin.java:162)
>
> at
> org.eclipse.emf.edit.provider.ComposedAdapterFactory.getFact oryForTypes(ComposedAdapterFactory.java:226)
>
> at
> org.eclipse.emf.edit.provider.ComposedAdapterFactory.adapt(C omposedAdapterFactory.java:278)
>
> at
> org.eclipse.emf.edit.provider.ComposedAdapterFactory.adapt(C omposedAdapterFactory.java:258)
>
> at
> org.eclipse.emf.edit.provider.ComposedAdapterFactory.adapt(C omposedAdapterFactory.java:245)
>
> at
> org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvid er.getElements(AdapterFactoryContentProvider.java:142)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.getRawChildren(St ructuredViewer.java:937)
>
> at
> org.eclipse.jface.viewers.ColumnViewer.getRawChildren(Column Viewer.java:693)
>
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren( AbstractTreeViewer.java:1298)
>
> at
> org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeView er.java:378)
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.getFilteredChil dren(AbstractTreeViewer.java:615)
>
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildr en(AbstractTreeViewer.java:581)
>
> at
> org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractT reeViewer.java:778)
>
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.createChildren( AbstractTreeViewer.java:755)
>
> at
> org.eclipse.jface.viewers.TreeViewer.createChildren(TreeView er.java:627)
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.internalInitial izeTree(AbstractTreeViewer.java:1463)
>
> at
> org.eclipse.jface.viewers.TreeViewer.internalInitializeTree( TreeViewer.java:816)
>
> at
> org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractT reeViewer.java:1446)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1368)
>
> at
> org.eclipse.jface.viewers.TreeViewer.preservingSelection(Tre eViewer.java:390)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1330)
>
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(Ab stractTreeViewer.java:1435)
>
> at
> org.eclipse.jface.viewers.ContentViewer.setInput(ContentView er.java:251)
> at
> org.eclipse.jface.viewers.StructuredViewer.setInput(Structur edViewer.java:1606)
>
> at
> org.eclipse.emf.cdo.internal.ui.editor.CDOEditor.createPages (CDOEditor.java:1170)
>
> at
> org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:283)
>
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
>
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
>
> at
> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:263)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2739)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
> at
> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
> at
> org.eclipse.emf.cdo.internal.ui.editor.CDOEditor$21.run(CDOE ditor.java:2227)
>
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
>
> at
> org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3296)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2974)
> at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
>
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>
> I tried solving this by checking out the cdo.edit plugin from CVS and
> try a CDO client from a child eclipse, but I got the same error.
> I can see that I have that plugin and the class in my parent eclipse's
> plugins directory as well.
>
> I noticed that I am unable to open resource.genmodel in
> org.eclipse.emf.cdo because of two FeatureNotFoundExceptions:
> extensibleProviderFactory Not found
> childCreationExtenders not found
>
> I reloaded the genmodel and regenerated the code. After this I got the
> editor working but now I am unable to commit changes.
> Whenever I try to commit a transaction, I get a Caused by:
> java.util.concurrent.TimeoutException: Timeout
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:152)
> at
> org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr otocol.java:232)
>
> at org.eclipse.net4j.signal.SignalActor.send(SignalActor.java:5 0)
> at
> org.eclipse.net4j.signal.failover.NOOPFailOverStrategy.send( NOOPFailOverStrategy.java:34)
>
> at
> org.eclipse.emf.internal.cdo.CDOTransactionImpl.commit(CDOTr ansactionImpl.java:236)
>
> ... 4 more
>
> I am not sure how to fix this.
>
> Thanks,
> -darpan
>


Re: Not able to start CDO Server [message #617863 is a reply to message #119364] Mon, 21 April 2008 12:54 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30996
Registered: July 2009
Senior Member
Eike,

Yes, these are new to 2.4. And there was also a bug that generated a
registration for the extenders when the option to do that was set to
false (which should result in a warning in your plugin.xml).


Eike Stepper wrote:
> Hi Darpan,
>
> I have the feeling that the cdo.edit plugin gets installed but not
> activated. This can have at least two reasons I can imagine of:
>
> 1) The requirements of the cdo.edit plugin are not met. Are the
> emf.edit and emf.ecore.edit installed and active? Please try the
> "Validate Plugins" button in your launch config.
> 2) Are you using (a new) EMF 2.4? I can vaguely recall that
> extensibleProviderFactory and childCreationExtenders belong to the
> newer features of EMF. Ed?
>
> Cheers
> /Eike
>
>
> Darpan Saini schrieb:
>> Hi Eike,
>>
>> Thanks, I was able to start the server with that modification. But,
>> once I create a resource the editor I got:
>>
>> [ERROR] org.eclipse.core.runtime.CoreException: Plug-in
>> org.eclipse.emf.cdo.edit was unable to load class
>> org.eclipse.emf.cdo.eresource.provider.EresourceItemProvider AdapterFactory.
>>
>> org.eclipse.emf.common.util.WrappedException:
>> org.eclipse.core.runtime.CoreException: Plug-in
>> org.eclipse.emf.cdo.edit was unable to load class
>> org.eclipse.emf.cdo.eresource.provider.EresourceItemProvider AdapterFactory.
>>
>> at
>> org.eclipse.emf.ecore.plugin.RegistryReader$PluginClassDescr iptor.createInstance(RegistryReader.java:171)
>>
>> at
>> org.eclipse.emf.edit.EMFEditPlugin$2$1PluginAdapterFactoryDe scriptor.createAdapterFactory(EMFEditPlugin.java:162)
>>
>> at
>> org.eclipse.emf.edit.provider.ComposedAdapterFactory.getFact oryForTypes(ComposedAdapterFactory.java:226)
>>
>> at
>> org.eclipse.emf.edit.provider.ComposedAdapterFactory.adapt(C omposedAdapterFactory.java:278)
>>
>> at
>> org.eclipse.emf.edit.provider.ComposedAdapterFactory.adapt(C omposedAdapterFactory.java:258)
>>
>> at
>> org.eclipse.emf.edit.provider.ComposedAdapterFactory.adapt(C omposedAdapterFactory.java:245)
>>
>> at
>> org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvid er.getElements(AdapterFactoryContentProvider.java:142)
>>
>> at
>> org.eclipse.jface.viewers.StructuredViewer.getRawChildren(St ructuredViewer.java:937)
>>
>> at
>> org.eclipse.jface.viewers.ColumnViewer.getRawChildren(Column Viewer.java:693)
>>
>> at
>> org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren( AbstractTreeViewer.java:1298)
>>
>> at
>> org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeView er.java:378)
>> at
>> org.eclipse.jface.viewers.AbstractTreeViewer.getFilteredChil dren(AbstractTreeViewer.java:615)
>>
>> at
>> org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildr en(AbstractTreeViewer.java:581)
>>
>> at
>> org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractT reeViewer.java:778)
>>
>> at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>> at
>> org.eclipse.jface.viewers.AbstractTreeViewer.createChildren( AbstractTreeViewer.java:755)
>>
>> at
>> org.eclipse.jface.viewers.TreeViewer.createChildren(TreeView er.java:627)
>> at
>> org.eclipse.jface.viewers.AbstractTreeViewer.internalInitial izeTree(AbstractTreeViewer.java:1463)
>>
>> at
>> org.eclipse.jface.viewers.TreeViewer.internalInitializeTree( TreeViewer.java:816)
>>
>> at
>> org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractT reeViewer.java:1446)
>>
>> at
>> org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1368)
>>
>> at
>> org.eclipse.jface.viewers.TreeViewer.preservingSelection(Tre eViewer.java:390)
>>
>> at
>> org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1330)
>>
>> at
>> org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(Ab stractTreeViewer.java:1435)
>>
>> at
>> org.eclipse.jface.viewers.ContentViewer.setInput(ContentView er.java:251)
>> at
>> org.eclipse.jface.viewers.StructuredViewer.setInput(Structur edViewer.java:1606)
>>
>> at
>> org.eclipse.emf.cdo.internal.ui.editor.CDOEditor.createPages (CDOEditor.java:1170)
>>
>> at
>> org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:283)
>>
>> at
>> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
>>
>> at
>> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
>>
>> at
>> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:263)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2739)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
>> at
>> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
>> at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2557)
>>
>> at
>> org.eclipse.emf.cdo.internal.ui.editor.CDOEditor$21.run(CDOE ditor.java:2227)
>>
>> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
>> at
>> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
>>
>> at
>> org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3296)
>> at
>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2974)
>> at
>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
>> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
>> at
>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>>
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
>>
>> at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at
>> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
>>
>> at
>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>>
>> I tried solving this by checking out the cdo.edit plugin from CVS and
>> try a CDO client from a child eclipse, but I got the same error.
>> I can see that I have that plugin and the class in my parent
>> eclipse's plugins directory as well.
>>
>> I noticed that I am unable to open resource.genmodel in
>> org.eclipse.emf.cdo because of two FeatureNotFoundExceptions:
>> extensibleProviderFactory Not found
>> childCreationExtenders not found
>>
>> I reloaded the genmodel and regenerated the code. After this I got
>> the editor working but now I am unable to commit changes.
>> Whenever I try to commit a transaction, I get a Caused by:
>> java.util.concurrent.TimeoutException: Timeout
>> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:152)
>> at
>> org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalPr otocol.java:232)
>>
>> at org.eclipse.net4j.signal.SignalActor.send(SignalActor.java:5 0)
>> at
>> org.eclipse.net4j.signal.failover.NOOPFailOverStrategy.send( NOOPFailOverStrategy.java:34)
>>
>> at
>> org.eclipse.emf.internal.cdo.CDOTransactionImpl.commit(CDOTr ansactionImpl.java:236)
>>
>> ... 4 more
>>
>> I am not sure how to fix this.
>>
>> Thanks,
>> -darpan
>>
Re: Not able to start CDO Server [message #617864 is a reply to message #119378] Mon, 21 April 2008 14:31 Go to previous message
darpan saini is currently offline darpan sainiFriend
Messages: 9
Registered: July 2009
Junior Member
Success!!
I was able to run the server and client without a problem with Eclipse
3.4, EMF 2.4. But, I had to do it from my windows box. All this while I
was working on Ubuntu Gutsy. I suspected that switching to Windows could
help since I read one of your earlier posts that you work primarily on
Windows.

Do you think this would be possible to use with GEF and GMF? I am going to
start looking into that now.

Thanks,
-darpan

ps. I guess I had the server and client working on Ubuntu except for the
TimeOutException.
Re: Not able to start CDO Server [message #617865 is a reply to message #119391] Mon, 21 April 2008 15:58 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30996
Registered: July 2009
Senior Member
Darpan,

A lot of the Linux problems are hear about seem to be caused by a poor
default JVM implementation, gcj I think...


Darpan Saini wrote:
> Success!!
> I was able to run the server and client without a problem with Eclipse
> 3.4, EMF 2.4. But, I had to do it from my windows box. All this while
> I was working on Ubuntu Gutsy. I suspected that switching to Windows
> could help since I read one of your earlier posts that you work
> primarily on Windows.
>
> Do you think this would be possible to use with GEF and GMF? I am
> going to start looking into that now.
>
> Thanks,
> -darpan
>
> ps. I guess I had the server and client working on Ubuntu except for
> the TimeOutException.
>
>
Re: Not able to start CDO Server [message #617878 is a reply to message #119391] Tue, 22 April 2008 17:51 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6487
Registered: July 2009
Senior Member
Darpan Saini schrieb:
> Success!!
> I was able to run the server and client without a problem with Eclipse
> 3.4, EMF 2.4.

Great ;-)


> But, I had to do it from my windows box. All this while I
> was working on Ubuntu Gutsy. I suspected that switching to Windows could
> help since I read one of your earlier posts that you work primarily on
> Windows.

Yes, I work primarily on Windows but the automated tests regularly run on linux. Isn't Ubuntu something like linux?


> Do you think this would be possible to use with GEF and GMF? I am going
> to start looking into that now.

No idea what should prevent a CDO client from using GEF.
But a different story for GMF. Please search this newsgroup for "CDO GMF" for a more detailed discussion.
I plan to work on the CDO/GMF issues soon but it's not top priority for me.

Cheers
/Eike


>
> Thanks,
> -darpan
>
> ps. I guess I had the server and client working on Ubuntu except for the
> TimeOutException.
>
>


Previous Topic:[CDO] Storing multivalue-attributes
Next Topic:emfatic
Goto Forum:
  


Current Time: Mon Mar 30 14:55:23 GMT 2020

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

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

Back to the top