Home » Modeling » EMF » CDO starting but not started - how to get more logging info
CDO starting but not started - how to get more logging info [message #759304] |
Mon, 28 November 2011 10:33 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi,
I am trying CDO with the 4.0 latest build. I have the problem that the CDO server is starting but I can't connect. Also
the string 'CDO Server Started' is not printed in the console, giving me the idea that something goes wrong when
starting the CDO server. I can connect using telnet though and do cdo sessions repo1
See the config.xml below, the cdo server starts correctly with a previous 4.0 build.
My main question, how can I enable more logging to be printed to the console?
(I tried OMPlatform.INSTANCE.setDebugging(true), but it did not help)
Listening on port 0.0.0.0/0.0.0.0:8811 ...
CURRENT Locale: country = United Stateslanguage = English
NEW Locale: country = United Kingdomlanguage = English
!SESSION 2011-11-27 22:33:36.114 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments: -product com.netxforge.netxstudio.server.product --launcher.XXMaxPermSize 128M
Command-line arguments: -product com.netxforge.netxstudio.server.product -data
/home/mtaal/mydata/dev/tmobile/workspaces/tm2/../runtime-netxserver_production.product -dev
file:/home/mtaal/mydata/dev/tmobile/workspaces/tm2/.metadata/.plugins/org.eclipse.pde.core/netxserver_production.product/dev.properties
-os linux -ws gtk -arch x86 -consoleLog -clean -console 8811 --launcher.XXMaxPermSize 128M
!ENTRY org.eclipse.osgi 2 0 2011-11-27 22:33:38.620
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-11-27 22:33:38.620
!MESSAGE Bundle initial@reference:file:../svn/trunk/Client/com.netxforge.netxscript.ui/ was not resolved.
!SUBENTRY 2 com.netxforge.netxscript.ui 2 0 2011-11-27 22:33:38.620
!MESSAGE Missing required bundle org.eclipse.xtext.ui.codetemplates.ui_0.0.0.
!SUBENTRY 2 com.netxforge.netxscript.ui 2 0 2011-11-27 22:33:38.620
!MESSAGE Missing required bundle org.eclipse.ui_0.0.0.
!SUBENTRY 2 com.netxforge.netxscript.ui 2 0 2011-11-27 22:33:38.620
!MESSAGE Missing required bundle org.eclipse.ui.editors_3.5.0.
!SUBENTRY 2 com.netxforge.netxscript.ui 2 0 2011-11-27 22:33:38.621
!MESSAGE Missing required bundle org.eclipse.xtext.builder_0.0.0.
!SUBENTRY 2 com.netxforge.netxscript.ui 2 0 2011-11-27 22:33:38.621
!MESSAGE Missing required bundle org.eclipse.compare_0.0.0.
!SUBENTRY 2 com.netxforge.netxscript.ui 2 0 2011-11-27 22:33:38.621
!MESSAGE Missing required bundle org.eclipse.xtext.ui_0.0.0.
!SUBENTRY 2 com.netxforge.netxscript.ui 2 0 2011-11-27 22:33:38.621
!MESSAGE Missing required bundle org.eclipse.ui.ide_3.5.0.
!ENTRY org.eclipse.osgi 2 0 2011-11-27 22:33:38.627
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause
if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-11-27 22:33:38.627
!MESSAGE Bundle com.netxforge.netxscript.ui_1.0.0.qualifier [41] was not resolved.
!SUBENTRY 2 com.netxforge.netxscript.ui 2 0 2011-11-27 22:33:38.627
!MESSAGE Missing required bundle org.eclipse.xtext.ui_0.0.0.
!SUBENTRY 2 com.netxforge.netxscript.ui 2 0 2011-11-27 22:33:38.628
!MESSAGE Missing required bundle org.eclipse.ui.editors_3.5.0.
!SUBENTRY 2 com.netxforge.netxscript.ui 2 0 2011-11-27 22:33:38.628
!MESSAGE Missing required bundle org.eclipse.ui.ide_3.5.0.
!SUBENTRY 2 com.netxforge.netxscript.ui 2 0 2011-11-27 22:33:38.628
!MESSAGE Missing optionally required bundle org.eclipse.xtext.ui.shared_0.0.0.
!SUBENTRY 2 com.netxforge.netxscript.ui 2 0 2011-11-27 22:33:38.628
!MESSAGE Missing required bundle org.eclipse.ui_0.0.0.
!SUBENTRY 2 com.netxforge.netxscript.ui 2 0 2011-11-27 22:33:38.628
!MESSAGE Missing required bundle org.eclipse.xtext.builder_0.0.0.
!SUBENTRY 2 com.netxforge.netxscript.ui 2 0 2011-11-27 22:33:38.628
!MESSAGE Missing optionally required bundle org.eclipse.xtext.common.types.ui_0.0.0.
!SUBENTRY 2 com.netxforge.netxscript.ui 2 0 2011-11-27 22:33:38.629
!MESSAGE Missing required bundle org.eclipse.xtext.ui.codetemplates.ui_0.0.0.
!SUBENTRY 2 com.netxforge.netxscript.ui 2 0 2011-11-27 22:33:38.629
!MESSAGE Missing required bundle org.eclipse.compare_0.0.0.
[INFO] CDO server starting
!ENTRY org.eclipse.emf.cdo.server 1 0 2011-11-27 22:33:38.634
!MESSAGE CDO server starting
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [bundleresource://54.fwk1913643:9/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [bundleresource://54.fwk1913643:10/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [bundleresource://26.fwk1913643:3/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: This version of SLF4J requires log4j version 1.2.12 or later. See also http://www.slf4j.org/codes.html#log4j_version
log4j:WARN No appenders could be found for logger (org.hibernate.type.BasicTypeRegistry).
log4j:WARN Please initialize the log4j system properly.
27-Nov-2011 22:33:39 org.eclipse.emf.teneo.classloader.ClassLoaderResolver setClassLoaderStrategy
INFO: Class loader strategy set to: org.eclipse.emf.teneo.classloader.ContextClassLoaderStrategy
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
| |
Re: CDO starting but not started - how to get more logging info [message #759325 is a reply to message #759315] |
Mon, 28 November 2011 11:33 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Thanks, I get the same messages in a previous version of cdo, and then it started fine. In any case, my original
question (how to get more logging info), stays the same...
gr. Martin
On 11/28/2011 12:04 PM, Erdal Karaca wrote:
> It seems you are using xtext and an editor created by it that itself depends on the IDE.
> Maybe, you should get rid of the IDE dependent bundles...
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
| |
Re: CDO starting but not started - how to get more logging info [message #759343 is a reply to message #759330] |
Mon, 28 November 2011 12:32 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Thanks Eike for your response. There is more logging/tracing now, but I don't see anything special. If you have a few
mins, can you take a look (see attached log)?
When I try to run a client side test, it timesout on the connection.The cpu is not showing any action, so it seems to be
a connection problem.
gr. Martin
On 11/28/2011 01:03 PM, Eike Stepper wrote:
> Am 28.11.2011 12:33, schrieb Martin Taal:
>> Thanks, I get the same messages in a previous version of cdo, and then it started fine. In any case, my original
>> question (how to get more logging info), stays the same...
> In an Eclipse Application launch you can use the Tracing tab. In standalone
> http://wiki.eclipse.org/FAQ_for_CDO_and_Net4j#How_can_I_enable_tracing.3F should help ;-)
>
> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Re: CDO starting but not started - how to get more logging info [message #759357 is a reply to message #759343] |
Mon, 28 November 2011 13:31 |
|
Am 28.11.2011 13:32, schrieb Martin Taal:
> Thanks Eike for your response. There is more logging/tracing now, but I don't see anything special. If you have a few
> mins, can you take a look (see attached log)?
That's ~1MB of traces!
> When I try to run a client side test, it timesout on the connection.The cpu is not showing any action, so it seems to
> be a connection problem.
I'm about to leave for a demo camp and tomorrow I'm on a conference in Frankfurt. Please try to skype me on Wednesday
and make sure you've TeamViewer installed ;-)
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
>
> gr. Martin
>
> On 11/28/2011 01:03 PM, Eike Stepper wrote:
>
>> Am 28.11.2011 12:33, schrieb Martin Taal:
>>> Thanks, I get the same messages in a previous version of cdo, and then it started fine. In any case, my original
>>> question (how to get more logging info), stays the same...
>> In an Eclipse Application launch you can use the Tracing tab. In standalone
>> http://wiki.eclipse.org/FAQ_for_CDO_and_Net4j#How_can_I_enable_tracing.3F should help ;-)
>>
>> Cheers
>> /Eike
>>
>> ----
>> http://www.esc-net.de
>> http://thegordian.blogspot.com
>> http://twitter.com/eikestepper
>>
>>
>
>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Re: CDO starting but not started - how to get more logging info [message #759365 is a reply to message #759357] |
Mon, 28 November 2011 13:38 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
He he, it is large indeed :-), sorry, I thought your page down/scroll button would go fast!
Have a good travel, Eike!
gr. Martin
On 11/28/2011 02:31 PM, Eike Stepper wrote:
> Am 28.11.2011 13:32, schrieb Martin Taal:
>> Thanks Eike for your response. There is more logging/tracing now, but I don't see anything special. If you have a few
>> mins, can you take a look (see attached log)?
> That's ~1MB of traces!
>
>> When I try to run a client side test, it timesout on the connection.The cpu is not showing any action, so it seems to
>> be a connection problem.
> I'm about to leave for a demo camp and tomorrow I'm on a conference in Frankfurt. Please try to skype me on Wednesday
> and make sure you've TeamViewer installed ;-)
>
> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
>>
>> gr. Martin
>>
>> On 11/28/2011 01:03 PM, Eike Stepper wrote:
>>
>>> Am 28.11.2011 12:33, schrieb Martin Taal:
>>>> Thanks, I get the same messages in a previous version of cdo, and then it started fine. In any case, my original
>>>> question (how to get more logging info), stays the same...
>>> In an Eclipse Application launch you can use the Tracing tab. In standalone
>>> http://wiki.eclipse.org/FAQ_for_CDO_and_Net4j#How_can_I_enable_tracing.3F should help ;-)
>>>
>>> Cheers
>>> /Eike
>>>
>>> ----
>>> http://www.esc-net.de
>>> http://thegordian.blogspot.com
>>> http://twitter.com/eikestepper
>>>
>>>
>>
>>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Re: CDO starting but not started - how to get more logging info [message #759367 is a reply to message #759357] |
Mon, 28 November 2011 13:43 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Okay the log contained all kind of unimportant things, here is one that is 100kb.
gr. Martin
On 11/28/2011 02:31 PM, Eike Stepper wrote:
> Am 28.11.2011 13:32, schrieb Martin Taal:
>> Thanks Eike for your response. There is more logging/tracing now, but I don't see anything special. If you have a few
>> mins, can you take a look (see attached log)?
> That's ~1MB of traces!
>
>> When I try to run a client side test, it timesout on the connection.The cpu is not showing any action, so it seems to
>> be a connection problem.
> I'm about to leave for a demo camp and tomorrow I'm on a conference in Frankfurt. Please try to skype me on Wednesday
> and make sure you've TeamViewer installed ;-)
>
> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
>>
>> gr. Martin
>>
>> On 11/28/2011 01:03 PM, Eike Stepper wrote:
>>
>>> Am 28.11.2011 12:33, schrieb Martin Taal:
>>>> Thanks, I get the same messages in a previous version of cdo, and then it started fine. In any case, my original
>>>> question (how to get more logging info), stays the same...
>>> In an Eclipse Application launch you can use the Tracing tab. In standalone
>>> http://wiki.eclipse.org/FAQ_for_CDO_and_Net4j#How_can_I_enable_tracing.3F should help ;-)
>>>
>>> Cheers
>>> /Eike
>>>
>>> ----
>>> http://www.esc-net.de
>>> http://thegordian.blogspot.com
>>> http://twitter.com/eikestepper
>>>
>>>
>>
>>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Re: CDO starting but not started - how to get more logging info [message #759395 is a reply to message #759367] |
Mon, 28 November 2011 14:41 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Some more info, I have an IElementProcessor which opens a session a jvm connector. This is done when the activated
lifecycle event has been fired. But the jvmconnection is not possible, so the system/startup stops there (waiting for
connection) and the tcp stuff is not created/initialized in cdo. Is the ElementProcessor to early in trying to connect
to the CDO Server (even with a jvm connection)?
I added an elementprocessor to initialize some things in the database when starting the cdo server.
>>> session configuration:
final IManagedContainer container = IPluginContainer.INSTANCE;
acceptor = JVMUtil.getAcceptor(container, "default");
connector = JVMUtil.getConnector(container, "default");
// Create configuration
final CDOSessionConfiguration sessionConfiguration = CDONet4jUtil
.createSessionConfiguration();
sessionConfiguration.setConnector(connector);
sessionConfiguration.setRepositoryName(REPO_NAME);
>>> element processor:
public static class ServerElementProcessor implements IElementProcessor {
public Object process(IManagedContainer container, String productGroup,
String factoryType, String description, Object element) {
if (element instanceof IRepository) {
// create all the resources at startup
final IRepository repository = (IRepository) element;
repository.addListener(new LifecycleEventAdapter() {
@Override
public void notifyLifecycleEvent(ILifecycleEvent event) {
if (event.getKind() == Kind.ACTIVATED) {
getInstance().initializeServer(repository);
}
}
});
}
return element;
}
}
On 11/28/2011 02:43 PM, Martin Taal wrote:
> Okay the log contained all kind of unimportant things, here is one that is 100kb.
>
> gr. Martin
>
> On 11/28/2011 02:31 PM, Eike Stepper wrote:
>> Am 28.11.2011 13:32, schrieb Martin Taal:
>>> Thanks Eike for your response. There is more logging/tracing now, but I don't see anything special. If you have a few
>>> mins, can you take a look (see attached log)?
>> That's ~1MB of traces!
>>
>>> When I try to run a client side test, it timesout on the connection.The cpu is not showing any action, so it seems to
>>> be a connection problem.
>> I'm about to leave for a demo camp and tomorrow I'm on a conference in Frankfurt. Please try to skype me on Wednesday
>> and make sure you've TeamViewer installed ;-)
>>
>> Cheers
>> /Eike
>>
>> ----
>> http://www.esc-net.de
>> http://thegordian.blogspot.com
>> http://twitter.com/eikestepper
>>
>>
>>>
>>> gr. Martin
>>>
>>> On 11/28/2011 01:03 PM, Eike Stepper wrote:
>>>
>>>> Am 28.11.2011 12:33, schrieb Martin Taal:
>>>>> Thanks, I get the same messages in a previous version of cdo, and then it started fine. In any case, my original
>>>>> question (how to get more logging info), stays the same...
>>>> In an Eclipse Application launch you can use the Tracing tab. In standalone
>>>> http://wiki.eclipse.org/FAQ_for_CDO_and_Net4j#How_can_I_enable_tracing.3F should help ;-)
>>>>
>>>> Cheers
>>>> /Eike
>>>>
>>>> ----
>>>> http://www.esc-net.de
>>>> http://thegordian.blogspot.com
>>>> http://twitter.com/eikestepper
>>>>
>>>>
>>>
>>>
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Re: CDO starting but not started - how to get more logging info [message #759551 is a reply to message #759395] |
Tue, 29 November 2011 07:06 |
|
Am 28.11.2011 15:41, schrieb Martin Taal:
> Some more info, I have an IElementProcessor which opens a session a jvm connector. This is done when the activated
> lifecycle event has been fired. But the jvmconnection is not possible, so the system/startup stops there (waiting for
> connection) and the tcp stuff is not created/initialized in cdo. Is the ElementProcessor to early in trying to connect
> to the CDO Server (even with a jvm connection)?
Tomorrow I'll try your code. More feedback then...
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
> I added an elementprocessor to initialize some things in the database when starting the cdo server.
>
> >>> session configuration:
>
> final IManagedContainer container = IPluginContainer.INSTANCE;
> acceptor = JVMUtil.getAcceptor(container, "default");
> connector = JVMUtil.getConnector(container, "default");
>
> // Create configuration
> final CDOSessionConfiguration sessionConfiguration = CDONet4jUtil
> .createSessionConfiguration();
> sessionConfiguration.setConnector(connector);
> sessionConfiguration.setRepositoryName(REPO_NAME);
>
>
>
> >>> element processor:
>
> public static class ServerElementProcessor implements IElementProcessor {
>
> public Object process(IManagedContainer container, String productGroup,
> String factoryType, String description, Object element) {
> if (element instanceof IRepository) {
> // create all the resources at startup
> final IRepository repository = (IRepository) element;
> repository.addListener(new LifecycleEventAdapter() {
> @Override
> public void notifyLifecycleEvent(ILifecycleEvent event) {
> if (event.getKind() == Kind.ACTIVATED) {
> getInstance().initializeServer(repository);
> }
> }
> });
>
> }
>
> return element;
> }
> }
>
>
> On 11/28/2011 02:43 PM, Martin Taal wrote:
>> Okay the log contained all kind of unimportant things, here is one that is 100kb.
>>
>> gr. Martin
>>
>> On 11/28/2011 02:31 PM, Eike Stepper wrote:
>>> Am 28.11.2011 13:32, schrieb Martin Taal:
>>>> Thanks Eike for your response. There is more logging/tracing now, but I don't see anything special. If you have a few
>>>> mins, can you take a look (see attached log)?
>>> That's ~1MB of traces!
>>>
>>>> When I try to run a client side test, it timesout on the connection.The cpu is not showing any action, so it seems to
>>>> be a connection problem.
>>> I'm about to leave for a demo camp and tomorrow I'm on a conference in Frankfurt. Please try to skype me on Wednesday
>>> and make sure you've TeamViewer installed ;-)
>>>
>>> Cheers
>>> /Eike
>>>
>>> ----
>>> http://www.esc-net.de
>>> http://thegordian.blogspot.com
>>> http://twitter.com/eikestepper
>>>
>>>
>>>>
>>>> gr. Martin
>>>>
>>>> On 11/28/2011 01:03 PM, Eike Stepper wrote:
>>>>
>>>>> Am 28.11.2011 12:33, schrieb Martin Taal:
>>>>>> Thanks, I get the same messages in a previous version of cdo, and then it started fine. In any case, my original
>>>>>> question (how to get more logging info), stays the same...
>>>>> In an Eclipse Application launch you can use the Tracing tab. In standalone
>>>>> http://wiki.eclipse.org/FAQ_for_CDO_and_Net4j#How_can_I_enable_tracing.3F should help ;-)
>>>>>
>>>>> Cheers
>>>>> /Eike
>>>>>
>>>>> ----
>>>>> http://www.esc-net.de
>>>>> http://thegordian.blogspot.com
>>>>> http://twitter.com/eikestepper
>>>>>
>>>>>
>>>>
>>>>
>>
>>
>
>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Goto Forum:
Current Time: Thu Mar 28 09:15:59 GMT 2024
Powered by FUDForum. Page generated in 0.02307 seconds
|