Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Factory not found: org.eclipse.emf.cdo.server.queryHandlerFactories[ocl]
[CDO] Factory not found: org.eclipse.emf.cdo.server.queryHandlerFactories[ocl] [message #885820] Wed, 13 June 2012 16:51 Go to next message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 1
Registered: June 2012
Junior Member
Hi,
Trying to execute a simple query using this code

			
EClass cls= topology.eClass();
			String queryString = topology.eClass().getName().concat(".nodes->size()>50");
			System.out.println(queryString);
			CDOQuery query = topology.cdoView().createQuery("ocl", queryString, cls);


We've got the exception:

[ERROR] Factory not found: org.eclipse.emf.cdo.server.queryHandlerFactories[ocl]
org.eclipse.net4j.util.container.FactoryNotFoundException: Factory not found: org.eclipse.emf.cdo.server.queryHandlerFactories[ocl]
	at org.eclipse.net4j.util.container.ManagedContainer.getFactory(ManagedContainer.java:193)
	at org.eclipse.net4j.util.container.ManagedContainer.createElement(ManagedContainer.java:492)
	at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:281)
	at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:265)
	at org.eclipse.emf.cdo.spi.server.ContainerQueryHandlerProvider.getQueryHandler(ContainerQueryHandlerProvider.java:42)
	at org.eclipse.emf.cdo.internal.server.Repository.getQueryHandler(Repository.java:909)
	at org.eclipse.emf.cdo.internal.server.QueryManager$QueryContext.run(QueryManager.java:292)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)


could anyone tell me what should i do?
ocl and OCL is as query language name tested.

The running CDO server is Ok, we can create, store and retrieve objects from it.
We use CDO 4.0.1
Re: [CDO] Factory not found: org.eclipse.emf.cdo.server.queryHandlerFactories[ocl] [message #885841 is a reply to message #885820] Wed, 13 June 2012 17:40 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 5574
Registered: July 2009
Senior Member
You just have to deploy the org.eclipse.emf.cdo.server.ocl bundle to your repository OSGi installation.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 13.06.2012 18:51, schrieb Missing name Mising name:
> Hi,
> Trying to execute a simple query using this code
>
>
> EClass cls= topology.eClass();
> String queryString = topology.eClass().getName().concat(".nodes->size()>50");
> System.out.println(queryString);
> CDOQuery query = topology.cdoView().createQuery("ocl", queryString, cls);
>
> We've got the exception:
>
> [ERROR] Factory not found: org.eclipse.emf.cdo.server.queryHandlerFactories[ocl]
> org.eclipse.net4j.util.container.FactoryNotFoundException: Factory not found:
> org.eclipse.emf.cdo.server.queryHandlerFactories[ocl]
> at org.eclipse.net4j.util.container.ManagedContainer.getFactory(ManagedContainer.java:193)
> at org.eclipse.net4j.util.container.ManagedContainer.createElement(ManagedContainer.java:492)
> at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:281)
> at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:265)
> at org.eclipse.emf.cdo.spi.server.ContainerQueryHandlerProvider.getQueryHandler(ContainerQueryHandlerProvider.java:42)
> at org.eclipse.emf.cdo.internal.server.Repository.getQueryHandler(Repository.java:909)
> at org.eclipse.emf.cdo.internal.server.QueryManager$QueryContext.run(QueryManager.java:292)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:662)
>
> could anyone tell me what should i do?
> ocl and OCL is as query language name tested.
>
> The running CDO server is Ok, we can create, store and retrieve objects from it.
> We use CDO 4.0.1
Re: [CDO] Factory not found: org.eclipse.emf.cdo.server.queryHandlerFactories[ocl] [message #895090 is a reply to message #885841] Wed, 11 July 2012 16:33 Go to previous messageGo to next message
hadrien hadrien is currently offline hadrien hadrienFriend
Messages: 3
Registered: July 2012
Junior Member
Hi,
exact same error trace as the 1st message of this post.

I am running the CDO server as a feature, CDOv4.0.0

I included "org.eclipse.emf.cdo.server.ocl" plugin to the server configuration, clean, start... still the same problem when executing:

CDOQuery cdoQuery = transaction.createQuery("ocl", "Book.allInstances()->select(book:Book | book.title = 'Eclipse Modeling Framework')");


Can you help me to figure out what i did miss ?
Re: [CDO] Factory not found: org.eclipse.emf.cdo.server.queryHandlerFactories[ocl] [message #895101 is a reply to message #895090] Wed, 11 July 2012 16:59 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 5574
Registered: July 2009
Senior Member
Am 11.07.2012 18:33, schrieb hadrien hadrien:
> Hi,
> exact same error trace as the 1st message of this post.
>
> I am running the CDO server as a feature, CDOv4.0.0
>
> I included "org.eclipse.emf.cdo.server.ocl" plugin to the server configuration, clean, start... still the same problem
> when executing:
>
>
> CDOQuery cdoQuery = transaction.createQuery("ocl", "Book.allInstances()->select(book:Book | book.title = 'Eclipse
> Modeling Framework')");
>
>
> Can you help me to figure out what i did miss ?
On the server's OSGi console please enter "ss" and see if the org.eclipse.emf.cdo.server.ocl bundle is resolved or
active. If not there may be a problem with the OCL dependencies.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: [CDO] Factory not found: org.eclipse.emf.cdo.server.queryHandlerFactories[ocl] [message #895155 is a reply to message #895101] Wed, 11 July 2012 20:14 Go to previous messageGo to next message
hadrien hadrien is currently offline hadrien hadrienFriend
Messages: 3
Registered: July 2012
Junior Member
Hey,

both plugins appear as "installed"... what would you suggest ?

(see console trace below)

Framework is launched.

id	State       Bundle
0	ACTIVE      org.eclipse.osgi_3.7.2.v20120110-1415
2	ACTIVE      org.eclipse.equinox.preferences_3.4.2.v20120111-2020
5	ACTIVE      org.eclipse.equinox.app_1.3.100.v20110321
8	ACTIVE      org.eclipse.emf.ecore_2.7.0.v20120127-1122
10	<<LAZY>>    org.eclipse.core.contenttype_3.4.100.v20110423-0524
11	ACTIVE      org.eclipse.emf.common_2.7.0.v20120127-1122
12	ACTIVE      org.eclipse.equinox.common_3.6.0.v20110523
13	ACTIVE      org.eclipse.core.runtime_3.7.0.v20110110
16	ACTIVE      org.eclipse.core.jobs_3.5.101.v20120113-1953
18	ACTIVE      org.eclipse.emf.ecore.change_2.7.1.v20120127-1122
19	RESOLVED    org.eclipse.core.runtime.compatibility.registry_3.5.0.v20110505
	            Master=22
20	ACTIVE      org.eclipse.emf.ecore.xmi_2.7.0.v20120127-1122
22	ACTIVE      org.eclipse.equinox.registry_3.5.101.R37x_v20110810-1611
	            Fragments=19
24	ACTIVE      org.eclipse.net4j.db_4.0.0.v20111221-2122
25	ACTIVE      org.eclipse.emf.cdo_4.0.1.v20120214-1021
26	ACTIVE      org.eclipse.net4j.util_3.1.1.v20111210-0952
27	ACTIVE      org.eclipse.emf.cdo.server_4.0.1.v20111208-1739
28	ACTIVE      org.eclipse.net4j.tcp_4.0.0.v20110607-1632
29	ACTIVE      org.eclipse.net4j_4.0.1.v20111123-0654
30	ACTIVE      org.eclipse.emf.cdo.server.net4j_4.0.1.v20120113-1233
31	ACTIVE      org.eclipse.emf.cdo.common_4.0.1.v20111215-1854
32	ACTIVE      org.eclipse.emf.cdo.server.db_4.0.1.v20111221-2220
35	RESOLVED    com.mysql.jdbc_5.1.11
36	ACTIVE      org.eclipse.net4j.db.mysql_4.0.1.v20110727-0844
37	INSTALLED   org.eclipse.emf.cdo.server.ocl_4.0.0.v20110818-0735
38	INSTALLED   org.eclipse.emf.query.ocl_2.0.0.v20091215-1624
Re: [CDO] Factory not found: org.eclipse.emf.cdo.server.queryHandlerFactories[ocl] [message #895203 is a reply to message #895155] Thu, 12 July 2012 04:47 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 5574
Registered: July 2009
Senior Member
Am 11.07.2012 22:14, schrieb hadrien hadrien:
> Hey,
>
> both plugins appear as "installed"... what would you suggest ?
"Installed" means "Not resolved", required bundles are missing.
In this case, as I already suspected, org.eclipse.ocl.ecore

Bundle-SymbolicName: org.eclipse.emf.cdo.server.ocl;singleton:=true
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)",
org.eclipse.ocl.ecore;bundle-version="[3.0.0,4.0.0)",
org.eclipse.emf.cdo.server;bundle-version="[4.0.0,5.0.0)"

I generally create Eclipse installations with the p2 director tool, which would have pointed this problem out earlier,
or given an adequate list of p2 repositories (see the bookmarks.xml files on our downloads page) fix it silently.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper



>
> (see console trace below)
>
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE org.eclipse.osgi_3.7.2.v20120110-1415
> 2 ACTIVE org.eclipse.equinox.preferences_3.4.2.v20120111-2020
> 5 ACTIVE org.eclipse.equinox.app_1.3.100.v20110321
> 8 ACTIVE org.eclipse.emf.ecore_2.7.0.v20120127-1122
> 10 <<LAZY>> org.eclipse.core.contenttype_3.4.100.v20110423-0524
> 11 ACTIVE org.eclipse.emf.common_2.7.0.v20120127-1122
> 12 ACTIVE org.eclipse.equinox.common_3.6.0.v20110523
> 13 ACTIVE org.eclipse.core.runtime_3.7.0.v20110110
> 16 ACTIVE org.eclipse.core.jobs_3.5.101.v20120113-1953
> 18 ACTIVE org.eclipse.emf.ecore.change_2.7.1.v20120127-1122
> 19 RESOLVED org.eclipse.core.runtime.compatibility.registry_3.5.0.v20110505
> Master=22
> 20 ACTIVE org.eclipse.emf.ecore.xmi_2.7.0.v20120127-1122
> 22 ACTIVE org.eclipse.equinox.registry_3.5.101.R37x_v20110810-1611
> Fragments=19
> 24 ACTIVE org.eclipse.net4j.db_4.0.0.v20111221-2122
> 25 ACTIVE org.eclipse.emf.cdo_4.0.1.v20120214-1021
> 26 ACTIVE org.eclipse.net4j.util_3.1.1.v20111210-0952
> 27 ACTIVE org.eclipse.emf.cdo.server_4.0.1.v20111208-1739
> 28 ACTIVE org.eclipse.net4j.tcp_4.0.0.v20110607-1632
> 29 ACTIVE org.eclipse.net4j_4.0.1.v20111123-0654
> 30 ACTIVE org.eclipse.emf.cdo.server.net4j_4.0.1.v20120113-1233
> 31 ACTIVE org.eclipse.emf.cdo.common_4.0.1.v20111215-1854
> 32 ACTIVE org.eclipse.emf.cdo.server.db_4.0.1.v20111221-2220
> 35 RESOLVED com.mysql.jdbc_5.1.11
> 36 ACTIVE org.eclipse.net4j.db.mysql_4.0.1.v20110727-0844
> 37 INSTALLED org.eclipse.emf.cdo.server.ocl_4.0.0.v20110818-0735
> 38 INSTALLED org.eclipse.emf.query.ocl_2.0.0.v20091215-1624
>
Re: [CDO] Factory not found: org.eclipse.emf.cdo.server.queryHandlerFactories[ocl] [message #895204 is a reply to message #895155] Thu, 12 July 2012 04:49 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 5574
Registered: July 2009
Senior Member
http://wiki.eclipse.org/Where_Is_My_Bundle may also help.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Previous Topic:EMF databinding and resource change
Next Topic:[Xbase] How to integrate xbase interpreter into another DSL interpreter?
Goto Forum:
  


Current Time: Fri Nov 28 05:57:54 GMT 2014

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

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