Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Possible bug in CDORepositorySynchronizer?([CDO] Possible bug in CDORepositorySynchronizer?)
[CDO] Possible bug in CDORepositorySynchronizer? [message #1016564] Wed, 06 March 2013 22:50 Go to next message
Andrew Whelan is currently offline Andrew WhelanFriend
Messages: 71
Registered: October 2012
Location: Syracuse NY
Member
Hello,

First of all I want to make clear that I am just trying to figure out how the non GUI related peices of the Offline example from Eike's webcast works. I am fooling with standalone code which will be posted below. When I try to start a NodeType.Client type node a NullPointerException is repeatedly thrown.

The owner variable below is null and so a NullPointerException is thrown in the second line of the following method.
public void handleLockChangeInfo(CDOLockChangeInfo lockChangeInfo)
  {
    CDOLockOwner owner = lockChangeInfo.getLockOwner();
    String durableLockingID = owner.getDurableLockingID();
    CDOBranch viewedBranch = lockChangeInfo.getBranch();


So my question is, what could I leaving out that causes the lock owner to be null? Following is the code I am running in its entirety. It is standalone, just a main() and a couple of private methods. I did have to modify the NodeType.java in a couple of spots due to access issues (public instead of private method access).

Any ideas would be appreciated.
public class TestCDOOffline {

	private static final String ROOT_PROPERTY = "node.manager.root";

	public static void main(String[] args) {

		OMPlatform.INSTANCE.setDebugging(true);
		OMPlatform.INSTANCE.addTraceHandler(PrintTraceHandler.CONSOLE);
		OMPlatform.INSTANCE.addLogHandler(PrintLogHandler.CONSOLE);

		NodeManager nodeManager = createNodeManager();

		Net4jUtil.prepareContainer(IPluginContainer.INSTANCE); // Prepare the
																// Net4j kernel
		TCPUtil.prepareContainer(IPluginContainer.INSTANCE); // Prepare the TCP
																// support
		JVMUtil.prepareContainer(IPluginContainer.INSTANCE); //ditto JVM support
		
		CDONet4jServerUtil.prepareContainer(IPluginContainer.INSTANCE); //prepare the CDO server.
		
		
		String normalRepositoryName = "normal-repository-1";															// server
                 String normalClient1 = "normal-client-1";
		
		NodeType.NormalRepository repository = createNormalRepository(
				normalRepositoryName, nodeManager);

		Node normalRepository = nodeManager.createNode(repository);
        
		Node normal1 = nodeManager.getNode(normalRepositoryName);
		normal1.start();

		NodeType.Client client1 = createClient(normalClient1,
				nodeManager, "7778", normalRepositoryName);
		nodeManager.createNode(client1);
		Node c1 = nodeManager.getNode(normalClient1);
		c1.start(); //THIS IS WHERE THE PROBLEM STARTS!
		
		System.out.println("Everything is started!");
	}

	private static IStore createStore(Node node) {
		final boolean AUDITING = true;
		final boolean BRANCHING = true;

		JdbcDataSource dataSource = new JdbcDataSource();
		dataSource.setURL("jdbc:h2:" + node.getFolder() + "/db/repository");

		IMappingStrategy mappingStrategy = CDODBUtil
				.createHorizontalMappingStrategy(AUDITING, BRANCHING);
		IDBAdapter dbAdapter = new H2Adapter();
		IDBConnectionProvider dbConnectionProvider = DBUtil
				.createConnectionProvider(dataSource);
		return CDODBUtil.createStore(mappingStrategy, dbAdapter,
				dbConnectionProvider);
	}

	private static Map<String, String> createProperties(String name) {
		Map<String, String> props = new HashMap<String, String>();
		props.put(IRepository.Props.OVERRIDE_UUID, name);
		props.put(IRepository.Props.SUPPORTING_AUDITS, "true");
		props.put(IRepository.Props.SUPPORTING_BRANCHES, "true");
		return props;
	}

	public static NodeManager createNodeManager() {
		File f = new File(ROOT_PROPERTY);
		System.out.println("root path: " + f.getAbsolutePath());
		return new NodeManager(f);
	}

	public static NodeType.NormalRepository createNormalRepository(String name,
			NodeManager nodeManager) {
		NodeType.NormalRepository repository = new NodeType.NormalRepository(
				nodeManager);

		repository.getSettings().setProperty(NodeType.NAME_PROPERTY, name);
		repository.getSettings().setProperty(NodeType.BROWSER_PROPERTY, "7777");
		repository.getSettings().setProperty(NodeType.PORT_PROPERTY, "2036");
		return repository;
	}

	public static NodeType.Client createClient(String name,
			NodeManager nodeManager, String browserPort, String server) {

		NodeType.Client client = new NodeType.Client(nodeManager);

		client.getSettings().setProperty(NodeType.NAME_PROPERTY, name);
		client.getSettings()
				.setProperty(NodeType.BROWSER_PROPERTY, browserPort);
		client.getSettings().setProperty(NodeType.SERVER_PROPERTY, server);
		return client;
	}
 }
Re: [CDO] Possible bug in CDORepositorySynchronizer? [message #1016695 is a reply to message #1016564] Thu, 07 March 2013 11:25 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6681
Registered: July 2009
Senior Member
Hi Andrew,

There's a first exception that you didn't mention:

Exception in thread "main" org.eclipse.net4j.util.container.FactoryNotFoundException: Factory not found:
org.eclipse.emf.cdo.server.browsers[default]
at org.eclipse.net4j.util.container.ManagedContainer.getFactory(ManagedContainer.java:228)
at org.eclipse.net4j.util.container.ManagedContainer.createElement(ManagedContainer.java:562)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:320)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:301)
at org.eclipse.emf.cdo.examples.client.offline.nodes.NodeType.start(NodeType.java:232)
at org.eclipse.emf.cdo.examples.client.offline.nodes.Node.start(Node.java:112)
at org.eclipse.emf.cdo.examples.client.offline.nodes.TestCDOOffline.main(TestCDOOffline.java:52)

You fix it by adding this to your stand-alone code:

IPluginContainer.INSTANCE.registerFactory(new CDOServerBrowser.ContainerBased.Factory());

Then there's a NullPointerException that you didn't mention, either:

Exception in thread "main" org.eclipse.net4j.util.container.FactoryNotFoundException: Factory not found:
org.eclipse.emf.cdo.sessions[cdo]
at org.eclipse.net4j.util.container.ManagedContainer.getFactory(ManagedContainer.java:228)
at org.eclipse.net4j.util.container.ManagedContainer.createElement(ManagedContainer.java:562)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:320)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:301)
at org.eclipse.emf.cdo.examples.client.offline.nodes.NodeType$Client.start(NodeType.java:549)
at org.eclipse.emf.cdo.examples.client.offline.nodes.Node.start(Node.java:112)
at org.eclipse.emf.cdo.examples.client.offline.nodes.TestCDOOffline.main(TestCDOOffline.java:58)

You can fix it by adding this to your stand-alone code:

CDONet4jUtil.prepareContainer(IPluginContainer.INSTANCE);

Well, I just realized that this call does not add the needed Net4jConnectorInjector to the container. I've fixed that in
the master branch:

402636: Net4jConnectorInjector is missing from CDONet4jUtil.prepareContainer()
https://bugs.eclipse.org/bugs/show_bug.cgi?id=402636

You can work around this problem by adding this to your stand-alone code:

IPluginContainer.INSTANCE.addPostProcessor(new Net4jConnectorInjector());

Finally, the NullPointerException you mentioned seems to be caused by a bug in
SynchronizableRepository.replicateRawNotifyClients(long, long). These last two lines are not from me and I can currently
not make a sense out of them:

CDOLockChangeInfo lockChangeInfo = CDOLockUtil.createLockChangeInfo();
sessionManager.sendLockNotification(replicatorSession, lockChangeInfo);

Please submit a bugzilla so that I can investigate in more depth. Meanwhile you can just comment these two lines out and
avoid to use explicit durable locks in your example code.

Cheers
/Eike

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




Am 06.03.2013 23:50, schrieb Andrew Whelan:
> Hello,
>
> First of all I want to make clear that I am just trying to figure out how the non GUI related peices of the Offline
> example from Eike's webcast works. I am fooling with standalone code which will be posted below. When I try to start a
> NodeType.Client type node a NullPointerException is repeatedly thrown.
>
> The owner variable below is null and so a NullPointerException is thrown in the second line of the following method.
>
> public void handleLockChangeInfo(CDOLockChangeInfo lockChangeInfo)
> {
> CDOLockOwner owner = lockChangeInfo.getLockOwner();
> String durableLockingID = owner.getDurableLockingID();
> CDOBranch viewedBranch = lockChangeInfo.getBranch();
>
>
> So my question is, what could I leaving out that causes the lock owner to be null? Following is the code I am running
> in its entirety. It is standalone, just a main() and a couple of private methods. I did have to modify the
> NodeType.java in a couple of spots due to access issues (public instead of private method access).
> Any ideas would be appreciated.
> public class TestCDOOffline {
>
> private static final String ROOT_PROPERTY = "node.manager.root";
>
> public static void main(String[] args) {
>
> OMPlatform.INSTANCE.setDebugging(true);
> OMPlatform.INSTANCE.addTraceHandler(PrintTraceHandler.CONSOLE);
> OMPlatform.INSTANCE.addLogHandler(PrintLogHandler.CONSOLE);
>
> NodeManager nodeManager = createNodeManager();
>
> Net4jUtil.prepareContainer(IPluginContainer.INSTANCE); // Prepare the
> // Net4j kernel
> TCPUtil.prepareContainer(IPluginContainer.INSTANCE); // Prepare the TCP
> // support
> JVMUtil.prepareContainer(IPluginContainer.INSTANCE); //ditto JVM support
>
> CDONet4jServerUtil.prepareContainer(IPluginContainer.INSTANCE); //prepare the CDO server.
>
>
> String normalRepositoryName = "normal-repository-1"; // server
> String normalClient1 = "normal-client-1";
>
> NodeType.NormalRepository repository = createNormalRepository(
> normalRepositoryName, nodeManager);
>
> Node normalRepository = nodeManager.createNode(repository);
> Node normal1 = nodeManager.getNode(normalRepositoryName);
> normal1.start();
>
> NodeType.Client client1 = createClient(normalClient1,
> nodeManager, "7778", normalRepositoryName);
> nodeManager.createNode(client1);
> Node c1 = nodeManager.getNode(normalClient1);
> c1.start(); //THIS IS WHERE THE PROBLEM STARTS!
>
> System.out.println("Everything is started!");
> }
>
> private static IStore createStore(Node node) {
> final boolean AUDITING = true;
> final boolean BRANCHING = true;
>
> JdbcDataSource dataSource = new JdbcDataSource();
> dataSource.setURL("jdbc:h2:" + node.getFolder() + "/db/repository");
>
> IMappingStrategy mappingStrategy = CDODBUtil
> .createHorizontalMappingStrategy(AUDITING, BRANCHING);
> IDBAdapter dbAdapter = new H2Adapter();
> IDBConnectionProvider dbConnectionProvider = DBUtil
> .createConnectionProvider(dataSource);
> return CDODBUtil.createStore(mappingStrategy, dbAdapter,
> dbConnectionProvider);
> }
>
> private static Map<String, String> createProperties(String name) {
> Map<String, String> props = new HashMap<String, String>();
> props.put(IRepository.Props.OVERRIDE_UUID, name);
> props.put(IRepository.Props.SUPPORTING_AUDITS, "true");
> props.put(IRepository.Props.SUPPORTING_BRANCHES, "true");
> return props;
> }
>
> public static NodeManager createNodeManager() {
> File f = new File(ROOT_PROPERTY);
> System.out.println("root path: " + f.getAbsolutePath());
> return new NodeManager(f);
> }
>
> public static NodeType.NormalRepository createNormalRepository(String name,
> NodeManager nodeManager) {
> NodeType.NormalRepository repository = new NodeType.NormalRepository(
> nodeManager);
>
> repository.getSettings().setProperty(NodeType.NAME_PROPERTY, name);
> repository.getSettings().setProperty(NodeType.BROWSER_PROPERTY, "7777");
> repository.getSettings().setProperty(NodeType.PORT_PROPERTY, "2036");
> return repository;
> }
>
> public static NodeType.Client createClient(String name,
> NodeManager nodeManager, String browserPort, String server) {
>
> NodeType.Client client = new NodeType.Client(nodeManager);
>
> client.getSettings().setProperty(NodeType.NAME_PROPERTY, name);
> client.getSettings()
> .setProperty(NodeType.BROWSER_PROPERTY, browserPort);
> client.getSettings().setProperty(NodeType.SERVER_PROPERTY, server);
> return client;
> }
> }
>


Re: [CDO] Possible bug in CDORepositorySynchronizer? [message #1016859 is a reply to message #1016695] Thu, 07 March 2013 23:01 Go to previous messageGo to next message
Andrew Whelan is currently offline Andrew WhelanFriend
Messages: 71
Registered: October 2012
Location: Syracuse NY
Member
[quote title=Eike Stepper wrote on Thu, 07 March 2013 06:25]Hi Andrew,

There's a first exception that you didn't mention:

Quote:
Ok, in this case I actually had commented out the code that would have caused the exception during my investigation. Thanks for clearing this up. Sorry about the confusion.


Exception in thread "main" org.eclipse.net4j.util.container.FactoryNotFoundException: Factory not found:
org.eclipse.emf.cdo.server.browsers[default]
at org.eclipse.net4j.util.container.ManagedContainer.getFactory(ManagedContainer.java:228)
at org.eclipse.net4j.util.container.ManagedContainer.createElement(ManagedContainer.java:562)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:320)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:301)
at org.eclipse.emf.cdo.examples.client.offline.nodes.NodeType.start(NodeType.java:232)
at org.eclipse.emf.cdo.examples.client.offline.nodes.Node.start(Node.java:112)
at org.eclipse.emf.cdo.examples.client.offline.nodes.TestCDOOffline.main(TestCDOOffline.java:52)

You fix it by adding this to your stand-alone code:

IPluginContainer.INSTANCE.registerFactory(new CDOServerBrowser.ContainerBased.Factory());

Then there's a NullPointerException that you didn't mention, either:

Quote:
You're amazing!. That is buried in there. I thought I saw some red text flash before my eyes once or twice. I did some "Find" searches on Exception but, I must not have boosted my buffer size those times....


Exception in thread "main" org.eclipse.net4j.util.container.FactoryNotFoundException: Factory not found:
org.eclipse.emf.cdo.sessions[cdo]
at org.eclipse.net4j.util.container.ManagedContainer.getFactory(ManagedContainer.java:228)
at org.eclipse.net4j.util.container.ManagedContainer.createElement(ManagedContainer.java:562)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:320)
at org.eclipse.net4j.util.container.ManagedContainer.getElement(ManagedContainer.java:301)
at org.eclipse.emf.cdo.examples.client.offline.nodes.NodeType$Client.start(NodeType.java:549)
at org.eclipse.emf.cdo.examples.client.offline.nodes.Node.start(Node.java:112)
at org.eclipse.emf.cdo.examples.client.offline.nodes.TestCDOOffline.main(TestCDOOffline.java:58)

You can fix it by adding this to your stand-alone code:

CDONet4jUtil.prepareContainer(IPluginContainer.INSTANCE);

Well, I just realized that this call does not add the needed Net4jConnectorInjector to the container. I've fixed that in
the master branch:

402636: Net4jConnectorInjector is missing from CDONet4jUtil.prepareContainer()
https://bugs.eclipse.org/bugs/show_bug.cgi?id=402636

You can work around this problem by adding this to your stand-alone code:

IPluginContainer.INSTANCE.addPostProcessor(new Net4jConnectorInjector());

Finally, the NullPointerException you mentioned seems to be caused by a bug in
SynchronizableRepository.replicateRawNotifyClients(long, long). These last two lines are not from me and I can currently
not make a sense out of them:

CDOLockChangeInfo lockChangeInfo = CDOLockUtil.createLockChangeInfo();
sessionManager.sendLockNotification(replicatorSession, lockChangeInfo);

Please submit a bugzilla so that I can investigate in more depth. Meanwhile you can just comment these two lines out and
avoid to use explicit durable locks in your example code.

Quote:
[
I will create a bug, but I wanted to try your fix. I cant seem to check out the source code. I really didn't want to ask about this but, I'm burning an enormous amount of time on this(all afternoon). I tried the Buckminster route in http://wiki.eclipse.org/CDO_Source_Installation (using http://git.eclipse.org/c/cdo/cdo.git/plain/plugins/org.eclipse.emf.cdo.releng/local.mspec).
I get ERROR [0001] : No suitable provider for component org.eclipse.emf.cdo.releng:osgi.bundle was found in resourceMap http://git.eclipse.org/c/cdo/cdo.git/plain/plugins/org.eclipse.emf.cdo.releng/build.rmap.

I have the GIT GUI and tried cloning it, using http://git.eclipse.org/c/cdo/cdo.git/tag/?id=drops/S20130205-06 for the Source location.
I get

fatal: http://git.eclipse.org/c/cdo/cdo.git/tag/?id=drops/S20130205-0640/info/refs not valid: is this a git repository?

Also, what is the URL for the master branch? Is it that one from the http://wiki.eclipse.org/CDO_Source_Installation instructions.

I downloaded the emf-cdo-S20130205-0640-Dropins.zip and imported the plugins into Eclipse but couldn't figure out how to get that to compile. I am used to using a Target Platform (application .target) file solution and didn't find one in any of those plugins.

Any crumbs you could throw would be appreciated.
/quote]

Cheers
/Eike

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




Am 06.03.2013 23:50, schrieb Andrew Whelan:
> Hello,
>
> First of all I want to make clear that I am just trying to figure out how the non GUI related peices of the Offline
> example from Eike's webcast works. I am fooling with standalone code which will be posted below. When I try to start a
> NodeType.Client type node a NullPointerException is repeatedly thrown.
>
> The owner variable below is null and so a NullPointerException is thrown in the second line of the following method.
>
> public void handleLockChangeInfo(CDOLockChangeInfo lockChangeInfo)
> {
> CDOLockOwner owner = lockChangeInfo.getLockOwner();
> String durableLockingID = owner.getDurableLockingID();
> CDOBranch viewedBranch = lockChangeInfo.getBranch();
>
>
> So my question is, what could I leaving out that causes the lock owner to be null? Following is the code I am running
> in its entirety. It is standalone, just a main() and a couple of private methods. I did have to modify the
> NodeType.java in a couple of spots due to access issues (public instead of private method access).
> Any ideas would be appreciated.
> public class TestCDOOffline {
>
> private static final String ROOT_PROPERTY = "node.manager.root";
>
> public static void main(String[] args) {
>
> OMPlatform.INSTANCE.setDebugging(true);
> OMPlatform.INSTANCE.addTraceHandler(PrintTraceHandler.CONSOLE);
> OMPlatform.INSTANCE.addLogHandler(PrintLogHandler.CONSOLE);
>
> NodeManager nodeManager = createNodeManager();
>
> Net4jUtil.prepareContainer(IPluginContainer.INSTANCE); // Prepare the
> // Net4j kernel
> TCPUtil.prepareContainer(IPluginContainer.INSTANCE); // Prepare the TCP
> // support
> JVMUtil.prepareContainer(IPluginContainer.INSTANCE); //ditto JVM support
>
> CDONet4jServerUtil.prepareContainer(IPluginContainer.INSTANCE); //prepare the CDO server.
>
>
> String normalRepositoryName = "normal-repository-1"; // server
> String normalClient1 = "normal-client-1";
>
> NodeType.NormalRepository repository = createNormalRepository(
> normalRepositoryName, nodeManager);
>
> Node normalRepository = nodeManager.createNode(repository);
> Node normal1 = nodeManager.getNode(normalRepositoryName);
> normal1.start();
>
> NodeType.Client client1 = createClient(normalClient1,
> nodeManager, "7778", normalRepositoryName);
> nodeManager.createNode(client1);
> Node c1 = nodeManager.getNode(normalClient1);
> c1.start(); //THIS IS WHERE THE PROBLEM STARTS!
>
> System.out.println("Everything is started!");
> }
>
> private static IStore createStore(Node node) {
> final boolean AUDITING = true;
> final boolean BRANCHING = true;
>
> JdbcDataSource dataSource = new JdbcDataSource();
> dataSource.setURL("jdbc:h2:" + node.getFolder() + "/db/repository");
>
> IMappingStrategy mappingStrategy = CDODBUtil
> .createHorizontalMappingStrategy(AUDITING, BRANCHING);
> IDBAdapter dbAdapter = new H2Adapter();
> IDBConnectionProvider dbConnectionProvider = DBUtil
> .createConnectionProvider(dataSource);
> return CDODBUtil.createStore(mappingStrategy, dbAdapter,
> dbConnectionProvider);
> }
>
> private static Map<String, String> createProperties(String name) {
> Map<String, String> props = new HashMap<String, String>();
> props.put(IRepository.Props.OVERRIDE_UUID, name);
> props.put(IRepository.Props.SUPPORTING_AUDITS, "true");
> props.put(IRepository.Props.SUPPORTING_BRANCHES, "true");
> return props;
> }
>
> public static NodeManager createNodeManager() {
> File f = new File(ROOT_PROPERTY);
> System.out.println("root path: " + f.getAbsolutePath());
> return new NodeManager(f);
> }
>
> public static NodeType.NormalRepository createNormalRepository(String name,
> NodeManager nodeManager) {
> NodeType.NormalRepository repository = new NodeType.NormalRepository(
> nodeManager);
>
> repository.getSettings().setProperty(NodeType.NAME_PROPERTY, name);
> repository.getSettings().setProperty(NodeType.BROWSER_PROPERTY, "7777");
> repository.getSettings().setProperty(NodeType.PORT_PROPERTY, "2036");
> return repository;
> }
>
> public static NodeType.Client createClient(String name,
> NodeManager nodeManager, String browserPort, String server) {
>
> NodeType.Client client = new NodeType.Client(nodeManager);
>
> client.getSettings().setProperty(NodeType.NAME_PROPERTY, name);
> client.getSettings()
> .setProperty(NodeType.BROWSER_PROPERTY, browserPort);
> client.getSettings().setProperty(NodeType.SERVER_PROPERTY, server);
> return client;
> }
> }
>

Re: [CDO] Possible bug in CDORepositorySynchronizer? [message #1016891 is a reply to message #1016859] Fri, 08 March 2013 05:21 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6681
Registered: July 2009
Senior Member
Am 08.03.2013 00:01, schrieb Andrew Whelan:
>
>> I will create a bug, but I wanted to try your fix. I cant seem to check out the source code. I really didn't want to
>> ask about this but, I'm burning an enormous amount of time on this(all afternoon). I tried the Buckminster route in
>> http://wiki.eclipse.org/CDO_Source_Installation (using
>> http://git.eclipse.org/c/cdo/cdo.git/plain/plugins/org.eclipse.emf.cdo.releng/local.mspec). I get ERROR [0001] : No
>> suitable provider for component org.eclipse.emf.cdo.releng:osgi.bundle was found in resourceMap
>> http://git.eclipse.org/c/cdo/cdo.git/plain/plugins/org.eclipse.emf.cdo.releng/build.rmap.
>>
>> I have the GIT GUI and tried cloning it, using http://git.eclipse.org/c/cdo/cdo.git/tag/?id=drops/S20130205-06 for
>> the Source location. I get
>>
>> fatal: http://git.eclipse.org/c/cdo/cdo.git/tag/?id=drops/S20130205-0640/info/refs not valid: is this a git repository?
Hmm, please try this one: git://git.eclipse.org/gitroot/cdo/cdo.git

Then import all projects into the workspace and then run Import on the local.mspec. That should provision your target
platform.

>> Also, what is the URL for the master branch? Is it that one from the http://wiki.eclipse.org/CDO_Source_Installation
>> instructions.
>> I downloaded the emf-cdo-S20130205-0640-Dropins.zip and imported the plugins into Eclipse but couldn't figure out
>> how to get that to compile. I am used to using a Target Platform (application .target) file solution and didn't find
>> one in any of those plugins.
>> Any crumbs you could throw would be appreciated.
It's better to use Bucky. Let me know if the above helps.

Cheers
/Eike

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


Re: [CDO] Possible bug in CDORepositorySynchronizer? [message #1017048 is a reply to message #1016891] Fri, 08 March 2013 18:32 Go to previous messageGo to next message
Andrew Whelan is currently offline Andrew WhelanFriend
Messages: 71
Registered: October 2012
Location: Syracuse NY
Member
Eike Stepper wrote on Fri, 08 March 2013 00:21
Am 08.03.2013 00:01, schrieb Andrew Whelan:
>
>> I will create a bug, but I wanted to try your fix. I cant seem to check out the source code. I really didn't want to
>> ask about this but, I'm burning an enormous amount of time on this(all afternoon). I tried the Buckminster route in
>> http://wiki.eclipse.org/CDO_Source_Installation (using
>> http://git.eclipse.org/c/cdo/cdo.git/plain/plugins/org.eclipse.emf.cdo.releng/local.mspec). I get ERROR [0001] : No
>> suitable provider for component org.eclipse.emf.cdo.releng:osgi.bundle was found in resourceMap
>> http://git.eclipse.org/c/cdo/cdo.git/plain/plugins/org.eclipse.emf.cdo.releng/build.rmap.
>>
>> I have the GIT GUI and tried cloning it, using http://git.eclipse.org/c/cdo/cdo.git/tag/?id=drops/S20130205-06 for
>> the Source location. I get
>>
>> fatal: http://git.eclipse.org/c/cdo/cdo.git/tag/?id=drops/S20130205-0640/info/refs not valid: is this a git repository?
Hmm, please try this one: git://git.eclipse.org/gitroot/cdo/cdo.git

Then import all projects into the workspace and then run Import on the local.mspec. That should provision your target
platform.

>> Also, what is the URL for the master branch? Is it that one from the http://wiki.eclipse.org/CDO_Source_Installation
>> instructions.
>> I downloaded the emf-cdo-S20130205-0640-Dropins.zip and imported the plugins into Eclipse but couldn't figure out
>> how to get that to compile. I am used to using a Target Platform (application .target) file solution and didn't find
>> one in any of those plugins.
>> Any crumbs you could throw would be appreciated.
It's better to use Bucky. Let me know if the above helps.

Quote:
I was able to use the GIT GUI to clone http://git.eclipse.org/gitroot/cdo/cdo.git.

Then I was able to Import->Projects from GIT->Select a GIT Repository and just import everything (I couldn't find a URL to the .mspec, so this is what I was able to get working).

I set the API Baseline default to the plugins directory of the downloaded stuff(in the GIT repository).

I ran import on org.eclipse.emf.releng/local.mspec. It did its thing and only warnings like the following were produced:WARNING [0012] : Component request org.junit:osgi.bundle/[3.8.2.v3_8_2_v20100427-1100,3.8.2.v3_8_2_v20100427-1100] is in conflict with request org.junit:osgi.bundle/[4.10.0.v4_10_0_v20120426-0900,4.10.0.v4_10_0_v20120426-0900]

The trouble is that the project did not all build correctly. There are 1707 errors.

The compilation errors at the top of the Problems list involve files in the ..releng.doc plugin because the com.sun.javadoc package cannot be found (Example: ClassDoc cannot be resolved to a type). There are also a bunch of "Invalid @since" tag errors that might be related to the com.sun.javadoc issue?

The de.escnet package is also not being resolved.

I am not really familiar with Buckminster but seeing as you recommend it I assume its what you all are using. I'm hoping there is something minor that comes to mind for you? Maybe I don't have all of the Eclipse tooling that I should have? Or maybe I need to edit something in the buckminster build files to satisfy the third party dependency issues?




Cheers
/Eike

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

Re: [CDO] Possible bug in CDORepositorySynchronizer? [message #1017097 is a reply to message #1017048] Sat, 09 March 2013 06:39 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6681
Registered: July 2009
Senior Member
Am 08.03.2013 19:32, schrieb Andrew Whelan:
> Quote:
>> > I was able to use the GIT GUI to clone http://git.eclipse.org/gitroot/cdo/cdo.git.

>> > > Then I was able to Import->Projects from GIT->Select a GIT Repository and just import everything
Perfect.

>> (I couldn't find a URL to the .mspec, so this is what I was able to get working).
Below you say that you found and imported org.eclipse.emf.releng/local.mspec . Perfect!

>> > > I set the API Baseline default to the plugins directory of the downloaded stuff(in the GIT repository).
I don't get that. As a non-committer you're not strictly required to use an API baseline.

>> > > I ran import on org.eclipse.emf.releng/local.mspec. It did its thing and only warnings like the following were produced:WARNING
>> [0012] : Component request org.junit:osgi.bundle/[3.8.2.v3_8_2_v20100427-1100,3.8.2.v3_8_2_v20100427-1100] is in
>> conflict with request org.junit:osgi.bundle/[4.10.0.v4_10_0_v20120426-0900,4.10.0.v4_10_0_v20120426-0900]
I've never figured out how those can be avoided. Probably they can't.

>> > > The trouble is that the project did not all build correctly. There are 1707 errors. > > The compilation errors at the top of the Problems list
>> involve files in the ..releng.doc plugin because the com.sun.javadoc package cannot be found (Example: ClassDoc
>> cannot be resolved to a type). There are also a bunch of "Invalid @since" tag errors that might be related to the
>> com.sun.javadoc issue?
>> > > The de.escnet package is also not being resolved. > > I am not really familiar with Buckminster but seeing as you
>> recommend it I assume its what you all are using. I'm hoping there is something minor that comes to mind for you?
>> Maybe I don't have all of the Eclipse tooling that I should have?
That's basically the case for ..releng.doc plugin. It requires a generator that I haven't open sourced, yet. Just close
or remove that project from your workspace and you should be good ;-)

>> Or maybe I need to edit something in the buckminster build files to satisfy the third party dependency issues?
No, I think you're good.

Cheers
/Eike

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


Re: [CDO] Possible bug in CDORepositorySynchronizer? [message #1018252 is a reply to message #1017097] Wed, 13 March 2013 13:52 Go to previous messageGo to next message
Andrew Whelan is currently offline Andrew WhelanFriend
Messages: 71
Registered: October 2012
Location: Syracuse NY
Member
Is there an easy way to just build the Jar I need (say org.eclipse.emf.cdo.server_4.2.0.v20130126-0958.jar)?

I want to just comment out the two lines of code you mentioned above, build and replace the said jar, and see if I can get any further with this.


I couldn't get the ANT build to work (in org.eclipse.emf.cdo.releng) because ${hudson.WORKSPACE} didn't exist. I think this might have had something to do with one of those funky imports where there are really no plugins in my workspace folder. All of the packages showing up in my package explorer were actually pointers into my GIT repository. Anyhow, I found a way to re-import the plugins so they are copied into my workspace (they are physically located there).


When I try to run Import on the local.mspec in the org.eclipse.emf.cdo.releng package
and I keep getting the following errors. Does anyone have an idea what might be happening? Thanks

ERROR [0002] : No suitable provider for component org.eclipse.emf.cdo.site:eclipse.feature was found in resourceMap file:/D:/Shepherd/workspace_cdo_build/org.eclipse.emf.cdo.releng/build.rmap
ERROR [0002] : No suitable provider for component org.eclipse.emf.cdo.site:eclipse.feature was found in searchPath git
ERROR [0002] : Rejecting provider git({0},plugins/{1}[C:\Users\awhelan/git/cdo,plugins/org.eclipse.emf.cdo.site]): Components of type eclipse.feature are not supported
ERROR [0002] : Rejecting provider git({0},features/{1}-feature[C:\Users\awhelan/git/cdo,features/org.eclipse.emf.cdo.site-feature]): No component match was found
ERROR java.lang.NullPointerException
ERROR [0002] : No suitable provider for component oracle.database.driver.jdk50:osgi.bundle was found in resourceMap file:/D:/Shepherd/workspace_cdo_build/org.eclipse.emf.cdo.releng/build.rmap
ERROR [0002] : No suitable provider for component oracle.database.driver.jdk50:osgi.bundle was found in searchPath p2
ERROR [0002] : Rejecting provider p2(http://download.eclipse.org/eclipse/updates/{0}[http://download.eclipse.org/eclipse/updates/3.8]): No component match was found
ERROR [0002] : Rejecting provider p2(https://hudson.eclipse.org/hudson/job/emf-core-head/384/artifact/EMF.p2.repository[https://hudson.eclipse.org/hudson/job/emf-core-head/384/artifact/EMF.p2.repository]): No component match was found
ERROR [0002] : Rejecting provider p2(http://download.eclipse.org/modeling/emf/updates/milestones[http://download.eclipse.org/modeling/emf/updates/milestones]): No component match was found
ERROR [0002] : Rejecting provider p2(http://download.eclipse.org/modeling/emf/compare/updates/interim/2.1[http://download.eclipse.org/modeling/emf/compare/updates/interim/2.1]): No component match was found
ERROR [0002] : Rejecting provider p2(http://download.eclipse.org/modeling/emft/mwe/updates/milestones[http://download.eclipse.org/modeling/emft/mwe/updates/milestones]): No component match was found
ERROR [0002] : Rejecting provider p2(http://download.eclipse.org/modeling/amalgam/temp/ecoretools-1.0.0[http://download.eclipse.org/modeling/amalgam/temp/ecoretools-1.0.0]): No component match was found
ERROR [0002] : Rejecting provider p2(http://download.eclipse.org/tools/gef/updates/milestones[http://download.eclipse.org/tools/gef/updates/milestones]): No component match was found
ERROR [0002] : Rejecting provider p2(http://download.eclipse.org/graphiti/updates/milestones[http://download.eclipse.org/graphiti/updates/milestones]): No component match was found
ERROR [0002] : Rejecting provider p2(http://download.eclipse.org/modeling/gmp/updates/milestones[http://download.eclipse.org/modeling/gmp/updates/milestones]): No component match was found
ERROR [0002] : Rejecting provider p2(http://download.eclipse.org/modeling/mdt/ocl/updates/milestones/4.1.0[http://download.eclipse.org/modeling/mdt/ocl/updates/milestones/4.1.0]): No component match was found
ERROR [0002] : Rejecting provider p2(http://download.eclipse.org/mmt/qvto/updates/milestones[http://download.eclipse.org/mmt/qvto/updates/milestones]): No component match was found
ERROR [0002] : Rejecting provider p2(http://download.eclipse.org/modeling/mdt/uml2/updates/4.0.x[http://download.eclipse.org/modeling/mdt/uml2/updates/4.0.x]): No component match was found
ERROR [0002] : Rejecting provider p2(http://download.eclipse.org/modeling/m2t/xpand/updates/milestones[http://download.eclipse.org/modeling/m2t/xpand/updates/milestones]): No component match was found
ERROR [0002] : Rejecting provider p2(http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site[http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site]): No component match was found
ERROR [0002] : Rejecting provider p2(http://download.eclipse.org/mylyn/snapshots/kepler[http://download.eclipse.org/mylyn/snapshots/kepler]): No component match was found
ERROR [0002] : Rejecting provider p2(http://download.eclipse.org/egit/updates-nightly[http://download.eclipse.org/egit/updates-nightly]): No component match was found
ERROR [0002] : Rejecting provider p2(http://download.eclipse.org/tools/buckminster/headless-4.2[http://download.eclipse.org/tools/buckminster/headless-4.2]): No component match was found
ERROR [0002] : Rejecting provider p2(http://download.eclipse.org/technology/nebula/snapshot[http://download.eclipse.org/technology/nebula/snapshot]): No component match was found
ERROR [0002] : Rejecting provider p2(http://download.eclipse.org/tools/orbit/downloads/drops/{0}/repository[http://download.eclipse.org/tools/orbit/downloads/drops/S20130308121626/repository]): No component match was found
ERROR [0002] : Rejecting provider p2(http://download.eclipse.org/modeling/emf/teneo/updates/2.0.0/interim[http://download.eclipse.org/modeling/emf/teneo/updates/2.0.0/interim]): No component match was found
ERROR [0002] : Rejecting provider p2(http://download.oracle.com/otn_software/oepe/juno[http://download.oracle.com/otn_software/oepe/juno]): No component match was found
ERROR No repository found at http://download.oracle.com/otn_software/oepe/juno/.
ERROR [0002] : Rejecting provider p2(http://www.elver.org/eclipse/2.0.0/update[http://www.elver.org/eclipse/2.0.0/update]): No component match was found
WARNING [0008] : Component request org.junit:osgi.bundle/[3.8.2.v3_8_2_v20100427-1100,3.8.2.v3_8_2_v20100427-1100] is in conflict with request org.junit:osgi.bundle/[4.10.0.v4_10_0_v20120426-0900,4.10.0.v4_10_0_v20120426-0900]
WARNING [0008] : Component request org.junit:osgi.bundle/[3.8.2.v3_8_2_v20100427-1100,3.8.2.v3_8_2_v20100427-1100] is in conflict with request org.junit:osgi.bundle/4.8.1
WARNING [0008] : Component request org.junit:osgi.bundle/[3.8.2.v3_8_2_v20100427-1100,3.8.2.v3_8_2_v20100427-1100] is in conflict with request org.junit:osgi.bundle/4.7.0
ERROR [0050] : java.lang.ArrayIndexOutOfBoundsException: -1
ERROR [0050] : java.lang.ArrayIndexOutOfBoundsException: -1
Attempt to use an unresolved node. Request is org.hamcrest.text.source:osgi.bundle/[1.1.0.v20090501071000,1.1.0.v20090501071000]
Re: [CDO] Possible bug in CDORepositorySynchronizer? [message #1018346 is a reply to message #1018252] Wed, 13 March 2013 16:43 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6681
Registered: July 2009
Senior Member
Am 13.03.2013 14:52, schrieb Andrew Whelan:
> Is there an easy way to just build the Jar I need (say org.eclipse.emf.cdo.server_4.2.0.v20130126-0958.jar)?
> I want to just comment out the two lines of code you mentioned above, build and replace the said jar, and see if I can
> get any further with this.
Why don't you just export the plugin(s) in question via PDE?

>
>
> I couldn't get the ANT build to work (in org.eclipse.emf.cdo.releng) because ${hudson.WORKSPACE} didn't exist.
Unfortunately the Ant build is really made for the Eclipse.org build server because it does a lot more than just build.

> I think this might have had something to do with one of those funky imports where there are really no plugins in my
> workspace folder. All of the packages showing up in my package explorer were actually pointers into my GIT repository.
> Anyhow, I found a way to re-import the plugins so they are copied into my workspace (they are physically located there).
>
> When I try to run Import on the local.mspec in the org.eclipse.emf.cdo.releng package
> and I keep getting the following errors. Does anyone have an idea what might be happening? Thanks
> ERROR [0002] : No suitable provider for component org.eclipse.emf.cdo.site:eclipse.feature was found in resourceMap
> file:/D:/Shepherd/workspace_cdo_build/org.eclipse.emf.cdo.releng/build.rmap
> ERROR [0002] : No suitable provider for component org.eclipse.emf.cdo.site:eclipse.feature was found in searchPath git
> ERROR [0002] : Rejecting provider
> git({0},plugins/{1}[C:\Users\awhelan/git/cdo,plugins/org.eclipse.emf.cdo.site]): Components of type eclipse.feature
> are not supported
> ERROR [0002] : Rejecting provider
> git({0},features/{1}-feature[C:\Users\awhelan/git/cdo,features/org.eclipse.emf.cdo.site-feature]): No component match
> was found
> ERROR java.lang.NullPointerException
Buckminster is supposed to show stack traces with --displaystacktrace, but then there is
https://bugs.eclipse.org/bugs/show_bug.cgi?id=372470 ;-(

> ERROR [0002] : No suitable provider for component oracle.database.driver.jdk50:osgi.bundle was found in resourceMap
> file:/D:/Shepherd/workspace_cdo_build/org.eclipse.emf.cdo.releng/build.rmap
> ERROR [0002] : No suitable provider for component oracle.database.driver.jdk50:osgi.bundle was found in searchPath p2
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/eclipse/updates/{0}[http://download.eclipse.org/eclipse/updates/3.8]): No component
> match was found
> ERROR [0002] : Rejecting provider
> p2(https://hudson.eclipse.org/hudson/job/emf-core-head/384/artifact/EMF.p2.repository[https://hudson.eclipse.org/hudson/job/emf-core-head/384/artifact/EMF.p2.repository]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/modeling/emf/updates/milestones[http://download.eclipse.org/modeling/emf/updates/milestones]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/modeling/emf/compare/updates/interim/2.1[http://download.eclipse.org/modeling/emf/compare/updates/interim/2.1]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/modeling/emft/mwe/updates/milestones[http://download.eclipse.org/modeling/emft/mwe/updates/milestones]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/modeling/amalgam/temp/ecoretools-1.0.0[http://download.eclipse.org/modeling/amalgam/temp/ecoretools-1.0.0]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/tools/gef/updates/milestones[http://download.eclipse.org/tools/gef/updates/milestones]): No
> component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/graphiti/updates/milestones[http://download.eclipse.org/graphiti/updates/milestones]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/modeling/gmp/updates/milestones[http://download.eclipse.org/modeling/gmp/updates/milestones]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/modeling/mdt/ocl/updates/milestones/4.1.0[http://download.eclipse.org/modeling/mdt/ocl/updates/milestones/4.1.0]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/mmt/qvto/updates/milestones[http://download.eclipse.org/mmt/qvto/updates/milestones]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/modeling/mdt/uml2/updates/4.0.x[http://download.eclipse.org/modeling/mdt/uml2/updates/4.0.x]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/modeling/m2t/xpand/updates/milestones[http://download.eclipse.org/modeling/m2t/xpand/updates/milestones]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site[http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/mylyn/snapshots/kepler[http://download.eclipse.org/mylyn/snapshots/kepler]): No
> component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/egit/updates-nightly[http://download.eclipse.org/egit/updates-nightly]): No component
> match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/tools/buckminster/headless-4.2[http://download.eclipse.org/tools/buckminster/headless-4.2]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/technology/nebula/snapshot[http://download.eclipse.org/technology/nebula/snapshot]): No
> component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/tools/orbit/downloads/drops/{0}/repository[http://download.eclipse.org/tools/orbit/downloads/drops/S20130308121626/repository]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/modeling/emf/teneo/updates/2.0.0/interim[http://download.eclipse.org/modeling/emf/teneo/updates/2.0.0/interim]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.oracle.com/otn_software/oepe/juno[http://download.oracle.com/otn_software/oepe/juno]): No component
> match was found
> ERROR No repository found at http://download.oracle.com/otn_software/oepe/juno/.
> ERROR [0002] : Rejecting provider
> p2(http://www.elver.org/eclipse/2.0.0/update[http://www.elver.org/eclipse/2.0.0/update]): No component match was found
> WARNING [0008] : Component request org.junit:osgi.bundle/[3.8.2.v3_8_2_v20100427-1100,3.8.2.v3_8_2_v20100427-1100] is
> in conflict with request org.junit:osgi.bundle/[4.10.0.v4_10_0_v20120426-0900,4.10.0.v4_10_0_v20120426-0900]
> WARNING [0008] : Component request org.junit:osgi.bundle/[3.8.2.v3_8_2_v20100427-1100,3.8.2.v3_8_2_v20100427-1100] is
> in conflict with request org.junit:osgi.bundle/4.8.1
> WARNING [0008] : Component request org.junit:osgi.bundle/[3.8.2.v3_8_2_v20100427-1100,3.8.2.v3_8_2_v20100427-1100] is
> in conflict with request org.junit:osgi.bundle/4.7.0
> ERROR [0050] : java.lang.ArrayIndexOutOfBoundsException: -1
This could be an instance of http://www.eclipse.org/forums/index.php/m/676099 , which also lets our build fail every
once in a while ;-(

Cheers
/Eike

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


> ERROR [0050] : java.lang.ArrayIndexOutOfBoundsException: -1
> Attempt to use an unresolved node. Request is
> org.hamcrest.text.source:osgi.bundle/[1.1.0.v20090501071000,1.1.0.v20090501071000]
>


Re: [CDO] Possible bug in CDORepositorySynchronizer? [message #1018444 is a reply to message #1018346] Wed, 13 March 2013 21:00 Go to previous messageGo to next message
Andrew Whelan is currently offline Andrew WhelanFriend
Messages: 71
Registered: October 2012
Location: Syracuse NY
Member
Eike Stepper wrote on Wed, 13 March 2013 12:43
Am 13.03.2013 14:52, schrieb Andrew Whelan:
> Is there an easy way to just build the Jar I need (say org.eclipse.emf.cdo.server_4.2.0.v20130126-0958.jar)?
> I want to just comment out the two lines of code you mentioned above, build and replace the said jar, and see if I can
> get any further with this.
Why don't you just export the plugin(s) in question via PDE?

Quote:
Yes, I can do that for now. The temporary fix you mentioned above works. I created bug 403229 as you asked earlier today.

>
>
> I couldn't get the ANT build to work (in org.eclipse.emf.cdo.releng) because ${hudson.WORKSPACE} didn't exist.
Unfortunately the Ant build is really made for the Eclipse.org build server because it does a lot more than just build.


Quote:
So there isn't really a configured way in the downloaded code to generate JARs? If I do Buckminster->Invoke Action on local.mspec and build.mspec and choose bundle.jar, I have the opportunity to choose the build.properties or plubin.properties in org.eclipse.emf.cdo.server. When I do this something happens but the output in the console (shown below) doesn't give me too many clues. I'm not sure what the below means. I cant seem to find an updated jar anywhere so I'm assuming this won't help me?

[start org.eclipse.emf.cdo.releng:osgi.bundle$4.2.0.qualifier#eclipse.build]
[end org.eclipse.emf.cdo.releng:osgi.bundle$4.2.0.qualifier#eclipse.build]


Quote:
I was kind of hoping we could set up a mirror of the environment you are working with so we could make modifications and donate the updates back to you guys if we ever get rolling with this stuff here. It probably wont be real soon (It could be a matter of a few months before we got to that point).


Quote:
For the record though, the Buckminster configuration that I have downloaded and built here isn't really sufficient for development purposes is it?

Thanks! -Andrew


> I think this might have had something to do with one of those funky imports where there are really no plugins in my
> workspace folder. All of the packages showing up in my package explorer were actually pointers into my GIT repository.
> Anyhow, I found a way to re-import the plugins so they are copied into my workspace (they are physically located there).
>
> When I try to run Import on the local.mspec in the org.eclipse.emf.cdo.releng package
> and I keep getting the following errors. Does anyone have an idea what might be happening? Thanks
> ERROR [0002] : No suitable provider for component org.eclipse.emf.cdo.site:eclipse.feature was found in resourceMap
> file:/D:/Shepherd/workspace_cdo_build/org.eclipse.emf.cdo.releng/build.rmap
> ERROR [0002] : No suitable provider for component org.eclipse.emf.cdo.site:eclipse.feature was found in searchPath git
> ERROR [0002] : Rejecting provider
> git({0},plugins/{1}[C:\Users\awhelan/git/cdo,plugins/org.eclipse.emf.cdo.site]): Components of type eclipse.feature
> are not supported
> ERROR [0002] : Rejecting provider
> git({0},features/{1}-feature[C:\Users\awhelan/git/cdo,features/org.eclipse.emf.cdo.site-feature]): No component match
> was found
> ERROR java.lang.NullPointerException
Buckminster is supposed to show stack traces with --displaystacktrace, but then there is
https://bugs.eclipse.org/bugs/show_bug.cgi?id=372470 ;-(

> ERROR [0002] : No suitable provider for component oracle.database.driver.jdk50:osgi.bundle was found in resourceMap
> file:/D:/Shepherd/workspace_cdo_build/org.eclipse.emf.cdo.releng/build.rmap
> ERROR [0002] : No suitable provider for component oracle.database.driver.jdk50:osgi.bundle was found in searchPath p2
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/eclipse/updates/{0}[http://download.eclipse.org/eclipse/updates/3.8]): No component
> match was found
> ERROR [0002] : Rejecting provider
> p2(https://hudson.eclipse.org/hudson/job/emf-core-head/384/artifact/EMF.p2.repository[https://hudson.eclipse.org/hudson/job/emf-core-head/384/artifact/EMF.p2.repository]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/modeling/emf/updates/milestones[http://download.eclipse.org/modeling/emf/updates/milestones]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/modeling/emf/compare/updates/interim/2.1[http://download.eclipse.org/modeling/emf/compare/updates/interim/2.1]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/modeling/emft/mwe/updates/milestones[http://download.eclipse.org/modeling/emft/mwe/updates/milestones]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/modeling/amalgam/temp/ecoretools-1.0.0[http://download.eclipse.org/modeling/amalgam/temp/ecoretools-1.0.0]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/tools/gef/updates/milestones[http://download.eclipse.org/tools/gef/updates/milestones]): No
> component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/graphiti/updates/milestones[http://download.eclipse.org/graphiti/updates/milestones]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/modeling/gmp/updates/milestones[http://download.eclipse.org/modeling/gmp/updates/milestones]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/modeling/mdt/ocl/updates/milestones/4.1.0[http://download.eclipse.org/modeling/mdt/ocl/updates/milestones/4.1.0]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/mmt/qvto/updates/milestones[http://download.eclipse.org/mmt/qvto/updates/milestones]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/modeling/mdt/uml2/updates/4.0.x[http://download.eclipse.org/modeling/mdt/uml2/updates/4.0.x]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/modeling/m2t/xpand/updates/milestones[http://download.eclipse.org/modeling/m2t/xpand/updates/milestones]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site[http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/mylyn/snapshots/kepler[http://download.eclipse.org/mylyn/snapshots/kepler]): No
> component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/egit/updates-nightly[http://download.eclipse.org/egit/updates-nightly]): No component
> match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/tools/buckminster/headless-4.2[http://download.eclipse.org/tools/buckminster/headless-4.2]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/technology/nebula/snapshot[http://download.eclipse.org/technology/nebula/snapshot]): No
> component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/tools/orbit/downloads/drops/{0}/repository[http://download.eclipse.org/tools/orbit/downloads/drops/S20130308121626/repository]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.eclipse.org/modeling/emf/teneo/updates/2.0.0/interim[http://download.eclipse.org/modeling/emf/teneo/updates/2.0.0/interim]):
> No component match was found
> ERROR [0002] : Rejecting provider
> p2(http://download.oracle.com/otn_software/oepe/juno[http://download.oracle.com/otn_software/oepe/juno]): No component
> match was found
> ERROR No repository found at http://download.oracle.com/otn_software/oepe/juno/.
> ERROR [0002] : Rejecting provider
> p2(http://www.elver.org/eclipse/2.0.0/update[http://www.elver.org/eclipse/2.0.0/update]): No component match was found
> WARNING [0008] : Component request org.junit:osgi.bundle/[3.8.2.v3_8_2_v20100427-1100,3.8.2.v3_8_2_v20100427-1100] is
> in conflict with request org.junit:osgi.bundle/[4.10.0.v4_10_0_v20120426-0900,4.10.0.v4_10_0_v20120426-0900]
> WARNING [0008] : Component request org.junit:osgi.bundle/[3.8.2.v3_8_2_v20100427-1100,3.8.2.v3_8_2_v20100427-1100] is
> in conflict with request org.junit:osgi.bundle/4.8.1
> WARNING [0008] : Component request org.junit:osgi.bundle/[3.8.2.v3_8_2_v20100427-1100,3.8.2.v3_8_2_v20100427-1100] is
> in conflict with request org.junit:osgi.bundle/4.7.0
> ERROR [0050] : java.lang.ArrayIndexOutOfBoundsException: -1
This could be an instance of http://www.eclipse.org/forums/index.php/m/676099 , which also lets our build fail every
once in a while ;-(

Cheers
/Eike

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


> ERROR [0050] : java.lang.ArrayIndexOutOfBoundsException: -1
> Attempt to use an unresolved node. Request is
> org.hamcrest.text.source:osgi.bundle/[1.1.0.v20090501071000,1.1.0.v20090501071000]
>

Re: [CDO] Possible bug in CDORepositorySynchronizer? [message #1018734 is a reply to message #1018444] Thu, 14 March 2013 11:33 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6681
Registered: July 2009
Senior Member
Andrew,

How are you replying to forum posts? The entire post below is a huge quote and very hard to parse ;-(

Comments below...



Am 13.03.2013 22:00, schrieb Andrew Whelan:
> Eike Stepper wrote on Wed, 13 March 2013 12:43
>> Am 13.03.2013 14:52, schrieb Andrew Whelan:
>> > Is there an easy way to just build the Jar I need (say org.eclipse.emf.cdo.server_4.2.0.v20130126-0958.jar)?
>> > I want to just comment out the two lines of code you mentioned above, build and replace the said jar, and see if I
>> can > get any further with this.
>> Why don't you just export the plugin(s) in question via PDE?
>>
>> Quote:
>> > Yes, I can do that for now. The temporary fix you mentioned above works. I created bug 403229 as you asked earlier
>> today.
Thanks!

>>
>> >
>> >
>> > I couldn't get the ANT build to work (in org.eclipse.emf.cdo.releng) because ${hudson.WORKSPACE} didn't exist.
>> Unfortunately the Ant build is really made for the Eclipse.org build server because it does a lot more than just build.
>>
>>
>> Quote:
>> > So there isn't really a configured way in the downloaded code to generate JARs?
No other way than the aforementioned PDE export.

>> If I do Buckminster->Invoke Action on local.mspec and build.mspec and choose bundle.jar, I have the opportunity to
>> choose the build.properties or plubin.properties in org.eclipse.emf.cdo.server. When I do this something happens but
>> the output in the console (shown below) doesn't give me too many clues. I'm not sure what the below means. I cant
>> seem to find an updated jar anywhere so I'm assuming this won't help me?
>> > > [start org.eclipse.emf.cdo.releng:osgi.bundle$4.2.0.qualifier#eclipse.build]
>> > [end org.eclipse.emf.cdo.releng:osgi.bundle$4.2.0.qualifier#eclipse.build]
>>
>>
>> Quote:
>> > I was kind of hoping we could set up a mirror of the environment you are working with so we could make
>> modifications and donate the updates back to you guys if we ever get rolling with this stuff here. It probably wont
>> be real soon (It could be a matter of a few months before we got to that point).
Buckminster should do that for you. I'll try to test it with a fresh local workspace...

>>
>>
>> Quote:
>> > For the record though, the Buckminster configuration that I have downloaded and built here isn't really sufficient
>> for development purposes is it?
It should be: http://wiki.eclipse.org/CDO_Source_Installation

Cheers
/Eike

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


Re: [CDO] Possible bug in CDORepositorySynchronizer? [message #1018768 is a reply to message #1018734] Thu, 14 March 2013 12:42 Go to previous messageGo to next message
Andrew Whelan is currently offline Andrew WhelanFriend
Messages: 71
Registered: October 2012
Location: Syracuse NY
Member
Eike Stepper wrote on Thu, 14 March 2013 07:33
Andrew,

How are you replying to forum posts? The entire post below is a huge quote and very hard to parse ;-(

Quote:
How do you? Honestly, I've tried figuring out how to do what you are doing and their must be something simple I am missing. I felt stupid for asking before so now I am just going to make a public spectacle out of myself. LOL. If I hit the quote button below and quote the whole thing my comments and your latest comments are indistinguishable from eachother.


Comments below...



Am 13.03.2013 22:00, schrieb Andrew Whelan:
> Eike Stepper wrote on Wed, 13 March 2013 12:43
>> Am 13.03.2013 14:52, schrieb Andrew Whelan:
>> > Is there an easy way to just build the Jar I need (say org.eclipse.emf.cdo.server_4.2.0.v20130126-0958.jar)?
>> > I want to just comment out the two lines of code you mentioned above, build and replace the said jar, and see if I
>> can > get any further with this.
>> Why don't you just export the plugin(s) in question via PDE?
>>
>> Quote:
>> > Yes, I can do that for now. The temporary fix you mentioned above works. I created bug 403229 as you asked earlier
>> today.
Thanks!

>>
>> >
>> >
>> > I couldn't get the ANT build to work (in org.eclipse.emf.cdo.releng) because ${hudson.WORKSPACE} didn't exist.
>> Unfortunately the Ant build is really made for the Eclipse.org build server because it does a lot more than just build.
>>
>>
>> Quote:
>> > So there isn't really a configured way in the downloaded code to generate JARs?
No other way than the aforementioned PDE export.

Quote:
So it sounds like we will need to come up with our own way to turn CDO code into JAR artifacts for when we need to productize our applications. Correct?



>> If I do Buckminster->Invoke Action on local.mspec and build.mspec and choose bundle.jar, I have the opportunity to
>> choose the build.properties or plubin.properties in org.eclipse.emf.cdo.server. When I do this something happens but
>> the output in the console (shown below) doesn't give me too many clues. I'm not sure what the below means. I cant
>> seem to find an updated jar anywhere so I'm assuming this won't help me?
>> > > [start org.eclipse.emf.cdo.releng:osgi.bundle$4.2.0.qualifier#eclipse.build]
>> > [end org.eclipse.emf.cdo.releng:osgi.bundle$4.2.0.qualifier#eclipse.build]
>>
>>
>> Quote:
>> > I was kind of hoping we could set up a mirror of the environment you are working with so we could make
>> modifications and donate the updates back to you guys if we ever get rolling with this stuff here. It probably wont
>> be real soon (It could be a matter of a few months before we got to that point).
Buckminster should do that for you. I'll try to test it with a fresh local workspace...

>>
>>
>> Quote:
>> > For the record though, the Buckminster configuration that I have downloaded and built here isn't really sufficient
>> for development purposes is it?
It should be: http://wiki.eclipse.org/CDO_Source_Installation

Cheers
/Eike

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

Re: [CDO] Possible bug in CDORepositorySynchronizer? [message #1018849 is a reply to message #1018768] Thu, 14 March 2013 15:09 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6681
Registered: July 2009
Senior Member
Am 14.03.2013 13:42, schrieb Andrew Whelan:
> Eike Stepper wrote on Thu, 14 March 2013 07:33
>> Andrew,
>>
>> How are you replying to forum posts? The entire post below is a huge quote and very hard to parse ;-(
>>
>> Quote:
>> > How do you?
I use Thunderbird's NNTP client.

>> Honestly, I've tried figuring out how to do what you are doing and their must be something simple I am missing. I
>> felt stupid for asking before so now I am just going to make a public spectacle out of myself. LOL.
;-)

>> If I hit the quote button below and quote the whole thing my comments and your latest comments are indistinguishable
>> from eachother.
>>
>>
>> Comments below...
>>
>>
>>
>> Am 13.03.2013 22:00, schrieb Andrew Whelan:
>> > Eike Stepper wrote on Wed, 13 March 2013 12:43
>> >> Am 13.03.2013 14:52, schrieb Andrew Whelan:
>> >> > Is there an easy way to just build the Jar I need (say org.eclipse.emf.cdo.server_4.2.0.v20130126-0958.jar)?
>> >> > I want to just comment out the two lines of code you mentioned above, build and replace the said jar, and see if
>> I >> can > get any further with this.
>> >> Why don't you just export the plugin(s) in question via PDE?
>> >>
>> >> Quote:
>> >> > Yes, I can do that for now. The temporary fix you mentioned above works. I created bug 403229 as you asked
>> earlier >> today.
>> Thanks!
>>
>> >>
>> >> >
>> >> >
>> >> > I couldn't get the ANT build to work (in org.eclipse.emf.cdo.releng) because ${hudson.WORKSPACE} didn't exist.
>> >> Unfortunately the Ant build is really made for the Eclipse.org build server because it does a lot more than just
>> build.
>> >>
>> >>
>> >> Quote:
>> >> > So there isn't really a configured way in the downloaded code to generate JARs? No other way than the
>> aforementioned PDE export.
>>
>> Quote:
>> > So it sounds like we will need to come up with our own way to turn CDO code into JAR artifacts for when we need to
>> productize our applications. Correct?
>>
>>
>>
>> >> If I do Buckminster->Invoke Action on local.mspec and build.mspec and choose bundle.jar, I have the opportunity
>> to >> choose the build.properties or plubin.properties in org.eclipse.emf.cdo.server. When I do this something
>> happens but >> the output in the console (shown below) doesn't give me too many clues. I'm not sure what the below
>> means. I cant >> seem to find an updated jar anywhere so I'm assuming this won't help me?
>> >> > > [start org.eclipse.emf.cdo.releng:osgi.bundle$4.2.0.qualifier#eclipse.build]
>> >> > [end org.eclipse.emf.cdo.releng:osgi.bundle$4.2.0.qualifier#eclipse.build]
>> >>
>> >>
>> >> Quote:
>> >> > I was kind of hoping we could set up a mirror of the environment you are working with so we could make >>
>> modifications and donate the updates back to you guys if we ever get rolling with this stuff here. It probably wont
>> >> be real soon (It could be a matter of a few months before we got to that point).
>> Buckminster should do that for you. I'll try to test it with a fresh local workspace...
>>
>> >>
>> >>
>> >> Quote:
>> >> > For the record though, the Buckminster configuration that I have downloaded and built here isn't really
>> sufficient >> for development purposes is it?
>> It should be: http://wiki.eclipse.org/CDO_Source_Installation
>>
>> Cheers
>> /Eike
>>
>> ----
>> http://www.esc-net.de
>> http://thegordian.blogspot.com
>> http://twitter.com/eikestepper
>
>


Previous Topic:[CDO] [HibernateStore]
Next Topic:EMF.edit icons in extra plug-in
Goto Forum:
  


Current Time: Tue Mar 19 08:13:13 GMT 2024

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

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

Back to the top