Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] Running the Hello Service Consumer RS.product example

hi wim,

just to make sure i understand correctly...
if i want to execute these examples outside of my eclipse IDE (Server Side) i need the same bundles deployed in the target environment
for example using tomcat 6 + the bridge.war

adding these bundles listed should work?

BR

ronen.


On Fri, Apr 1, 2011 at 2:06 PM, Wim Jongman <wim.jongman@xxxxxxxxx> wrote:
Ho ronen,

Please see the provided launch configurations in the examples to find out the bundles to include and pre-start.

Regards,

Wim 

On Fri, Apr 1, 2011 at 12:05 PM, ronen hamias <ronen.hamias@xxxxxxxxx> wrote:
Hi all,

i have managed to set up the environment and now trying to run the
Hello Service Consumer RS.product
from the:
org.eclipse.ecf.examples.remoteservices.hello.consumer.rs - egit version.

i get the following error:
osgi> !SESSION 2011-04-01 12:57:46.793 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -application
Command-line arguments:  -application -data C:\java\workspace\sandbox\ecf/../runtime-HelloServiceConsumerRS.product -dev file:C:/java/workspace/sandbox/ecf/.metadata/.plugins/org.eclipse.pde.core/Hello Service Consumer RS.product/dev.properties -os win32 -ws win32 -arch x86 -consoleLog -os win32 -ws win32 -arch x86 -os win32 -ws win32 -arch x86 -console

!ENTRY org.eclipse.ecf.examples.remoteservices.hello.consumer.rs 4 0 2011-04-01 12:58:00.115
!MESSAGE
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.ecf.internal.examples.remoteservices.hello.consumer.rs.Activator.start() of bundle org.eclipse.ecf.examples.remoteservices.hello.consumer.rs.
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:806)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:374)
    at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1067)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:561)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:546)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:459)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:440)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)
Caused by: org.eclipse.core.runtime.AssertionFailedException: null argument:
    at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
    at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
    at org.eclipse.ecf.internal.examples.remoteservices.hello.consumer.rs.Activator.start(Activator.java:50)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
    ... 11 more
Root exception:
org.eclipse.core.runtime.AssertionFailedException: null argument:
    at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
    at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
    at org.eclipse.ecf.internal.examples.remoteservices.hello.consumer.rs.Activator.start(Activator.java:50)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:374)
    at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1067)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:561)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:546)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:459)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:440)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)

!ENTRY org.eclipse.osgi 4 0 2011-04-01 12:58:00.136
!MESSAGE Bundle org.eclipse.ecf.examples.remoteservices.hello.consumer.rs_1.0.0.qualifier [1] is not active.

it seems that the helloReferences is null.
// 3. Lookup IRemoteServiceReference
        IRemoteServiceReference[] helloReferences = containerAdapter
                .getRemoteServiceReferences(IDFactory.getDefault().createID(
                        container.getConnectNamespace(), ROSGI_SERVICE_HOST),
                        IHello.class.getName(), null);


by bundle state is:
ramework is launched.

id    State       Bundle
0    ACTIVE      org.eclipse.osgi_3.6.2.R36x_v20110210
1    RESOLVED    org.eclipse.ecf.examples.remoteservices.hello.consumer.rs_1.0.0.qualifier
2    RESOLVED    org.eclipse.ecf.osgi.services.remoteserviceadmin.proxy_1.0.0.v20110313-1843
3    ACTIVE      org.eclipse.ecf.discovery_4.0.0.v20110313-1843
4    RESOLVED    org.eclipse.core.runtime.compatibility.registry_3.3.0.v20100520
                Master=12
5    ACTIVE      org.eclipse.ecf.provider.r_osgi_3.2.0.v20110313-1843
6    ACTIVE      ch.ethz.iks.r_osgi.remote_1.0.0.RC4_v20110313-1843
7    <<LAZY>>    org.eclipse.core.jobs_3.5.1.R36x_v20100824
8    <<LAZY>>    org.eclipse.equinox.app_1.3.1.R36x_v20100803
9    ACTIVE      org.eclipse.ecf.remoteservice_6.0.0.v20110313-1843
10    ACTIVE      org.eclipse.equinox.concurrent_1.0.100.v20100503
11    ACTIVE      org.objectweb.asm_3.3.1.v201101071600
12    ACTIVE      org.eclipse.equinox.registry_3.5.0.v20100503
                Fragments=4
13    RESOLVED    org.eclipse.ecf.examples.remoteservices.hello_3.0.0.qualifier
14    ACTIVE      org.eclipse.ecf.sharedobject_2.2.100.v20110313-1843
15    ACTIVE      org.eclipse.ecf.identity_3.1.100.v20110313-1843
16    RESOLVED    org.eclipse.ecf.ssl_1.0.100.v20110313-1843
                Master=21
17    <<LAZY>>    org.eclipse.core.contenttype_3.4.100.v20100505-1235
18    ACTIVE      org.eclipse.equinox.common_3.6.0.v20100503
19    ACTIVE      org.eclipse.ecf.provider_4.1.0.v20110313-1843
20    RESOLVED    org.eclipse.osgi.services_3.2.100.v20100503
21    ACTIVE      org.eclipse.ecf_3.1.200.v20110313-1843
                Fragments=16
22    <<LAZY>>    org.eclipse.equinox.preferences_3.3.0.v20100503

what am i missing?

BR
ronen.


_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev



_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev




--
Ronen Hamias
Cell Phone: +972-50-2289988

Back to the top