Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Communications Framework (ECF) » ClassNotFoundException for remoteService testing.
ClassNotFoundException for remoteService testing. [message #618904] Fri, 10 August 2007 02:30 Go to next message
Eclipse UserFriend
Originally posted by: leezhenghui.gmail.com

This is a multipart message in MIME format.
--=_alternative 000DC49848257333_=
Content-Type: text/plain; charset="US-ASCII"

Has anyone been able to get the remote services test running. Using the
latest source checked out from CVS, I keep getting the follwing. Any
hints or suggestions would be great.

org.eclipse.ecf.core.util.ECFException: Exception creating proxy for
remote service
at
org.eclipse.ecf.provider.remoteservice.generic.RemoteService Impl.getProxy(RemoteServiceImpl.java:57)
at
org.eclipse.ecf.tests.remoteservice.RemoteServiceTest.testCa llRemoteServiceWithProxy(RemoteServiceTest.java:161)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestRefer ence.run(JUnit3TestReference.java:130)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(Test Execution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R emoteTestRunner.java:386)
at
org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunne r.main(RemotePluginTestRunner.java:58)
at
org.eclipse.pde.internal.junit.runtime.CoreTestApplication.r un(CoreTestApplication.java:24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at
org.eclipse.equinox.internal.app.EclipseAppContainer.callMet hod(EclipseAppContainer.java:533)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:155)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at
org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
org.eclipse.ecf.core.util.ECFException[0]:
java.lang.ClassNotFoundException:
org.eclipse.ecf.tests.remoteservice.IConcat
at java.lang.Class.forName(Class.java:127)
at
org.eclipse.ecf.provider.remoteservice.generic.RemoteService Impl.getProxy(RemoteServiceImpl.java:53)
at
org.eclipse.ecf.tests.remoteservice.RemoteServiceTest.testCa llRemoteServiceWithProxy(RemoteServiceTest.java:161)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestRefer ence.run(JUnit3TestReference.java:130)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(Test Execution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R emoteTestRunner.java:386)
at
org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunne r.main(RemotePluginTestRunner.java:58)
at
org.eclipse.pde.internal.junit.runtime.CoreTestApplication.r un(CoreTestApplication.java:24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at
org.eclipse.equinox.internal.app.EclipseAppContainer.callMet hod(EclipseAppContainer.java:533)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:155)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at
org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)

--=_alternative 000DC49848257333_=
Content-Type: text/html; charset="US-ASCII"


<br><tt><font size=2>&nbsp;Has anyone been able to get the remote services
test running. &nbsp;Using the latest source checked out from CVS, &nbsp;I
keep getting the follwing. &nbsp; Any hints or suggestions would be great.</font></tt>
<br>
<br><tt><font size=2>org.eclipse.ecf.core.util.ECFException: Exception
creating proxy for remote service</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.ecf.provider.remoteservice.generic.RemoteService Impl.getProxy(RemoteServiceImpl.java:57) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.ecf.tests.remoteservice.RemoteServiceTest.testCa llRemoteServiceWithProxy(RemoteServiceTest.java:161) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.reflect.Method.invoke(Method.java:615)</font></tt >
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at junit.framework.TestCase.runTest(TestCase.java:164)</font></tt >
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at junit.framework.TestCase.runBare(TestCase.java:130)</font></tt >
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at junit.framework.TestResult$1.protect(TestResult.java:106)</font ></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at junit.framework.TestResult.runProtected(TestResult.java:124) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at junit.framework.TestResult.run(TestResult.java:109)</font></tt >
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at junit.framework.TestCase.run(TestCase.java:120)</font></tt >
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at junit.framework.TestSuite.runTest(TestSuite.java:230)</font ></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at junit.framework.TestSuite.run(TestSuite.java:225)</font></tt >
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestRefer ence.run(JUnit3TestReference.java:130) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jdt.internal.junit.runner.TestExecution.run(Test Execution.java:38) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:460) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:673) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R emoteTestRunner.java:386) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunne r.main(RemotePluginTestRunner.java:58) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.pde.internal.junit.runtime.CoreTestApplication.r un(CoreTestApplication.java:24) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.reflect.Method.invoke(Method.java:615)</font></tt >
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.equinox.internal.app.EclipseAppContainer.callMet hod(EclipseAppContainer.java:533) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:155) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.reflect.Method.invoke(Method.java:615)</font></tt >
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 504) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)</font ></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.equinox.launcher.Main.run(Main.java:1169)</font ></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.equinox.launcher.Main.main(Main.java:1144)</font ></tt>
<br><tt><font size=2>org.eclipse.ecf.core.util.ECFException[0]: java.lang.ClassNotFoundException:
org.eclipse.ecf.tests.remoteservice.IConcat</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Class.forName(Class.java:127)</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.ecf.provider.remoteservice.generic.RemoteService Impl.getProxy(RemoteServiceImpl.java:53) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.ecf.tests.remoteservice.RemoteServiceTest.testCa llRemoteServiceWithProxy(RemoteServiceTest.java:161) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.reflect.Method.invoke(Method.java:615)</font></tt >
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at junit.framework.TestCase.runTest(TestCase.java:164)</font></tt >
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at junit.framework.TestCase.runBare(TestCase.java:130)</font></tt >
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at junit.framework.TestResult$1.protect(TestResult.java:106)</font ></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at junit.framework.TestResult.runProtected(TestResult.java:124) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at junit.framework.TestResult.run(TestResult.java:109)</font></tt >
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at junit.framework.TestCase.run(TestCase.java:120)</font></tt >
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at junit.framework.TestSuite.runTest(TestSuite.java:230)</font ></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at junit.framework.TestSuite.run(TestSuite.java:225)</font></tt >
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestRefer ence.run(JUnit3TestReference.java:130) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jdt.internal.junit.runner.TestExecution.run(Test Execution.java:38) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:460) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:673) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R emoteTestRunner.java:386) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunne r.main(RemotePluginTestRunner.java:58) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.pde.internal.junit.runtime.CoreTestApplication.r un(CoreTestApplication.java:24) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.reflect.Method.invoke(Method.java:615)</font></tt >
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.equinox.internal.app.EclipseAppContainer.callMet hod(EclipseAppContainer.java:533) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:155) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.reflect.Method.invoke(Method.java:615)</font></tt >
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 504) </font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)</font ></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.equinox.launcher.Main.run(Main.java:1169)</font ></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.equinox.launcher.Main.main(Main.java:1144)</font ></tt>
<br>
--=_alternative 000DC49848257333_=--
Re: ClassNotFoundException for remoteService testing. [message #618905 is a reply to message #618904] Fri, 10 August 2007 16:10 Go to previous messageGo to next message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Strange. I run this test (RemoteServiceTest) all the time (as a JUnit
plugin test) and just ran it again without any trouble.

The ClassNotFoundException usually happens when the
Class.forName("classname") call is in one plugin, and the class being
loaded "classname" is in another plugin...and since they don't share the
same classloader the class is not found.

But in this (test) case, the IConcat class is in an exported package of
the org.eclipse.ecf.tests.remoteservice plugin.

I can't get it to fail in my local tests (with latest from HEAD in my
workspace). Could you describe your environment a little further (i.e.
Eclipse version, ECF version, workspace contents, etc) and I'll try to
diagnose.

Thanks,

Scott


leezhenghui@gmail.com wrote:
>
> Has anyone been able to get the remote services test running. Using
> the latest source checked out from CVS, I keep getting the follwing.
> Any hints or suggestions would be great.
>
> org.eclipse.ecf.core.util.ECFException: Exception creating proxy for
> remote service
> at
> org.eclipse.ecf.provider.remoteservice.generic.RemoteService Impl.getProxy(RemoteServiceImpl.java:57)
>
> at
> org.eclipse.ecf.tests.remoteservice.RemoteServiceTest.testCa llRemoteServiceWithProxy(RemoteServiceTest.java:161)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:615)
> at junit.framework.TestCase.runTest(TestCase.java:164)
> at junit.framework.TestCase.runBare(TestCase.java:130)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:120)
> at junit.framework.TestSuite.runTest(TestSuite.java:230)
> at junit.framework.TestSuite.run(TestSuite.java:225)
> at
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestRefer ence.run(JUnit3TestReference.java:130)
>
> at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(Test Execution.java:38)
>
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:460)
>
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:673)
>
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R emoteTestRunner.java:386)
>
> at
> org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunne r.main(RemotePluginTestRunner.java:58)
>
> at
> org.eclipse.pde.internal.junit.runtime.CoreTestApplication.r un(CoreTestApplication.java:24)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:615)
> at
> org.eclipse.equinox.internal.app.EclipseAppContainer.callMet hod(EclipseAppContainer.java:533)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:155)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:615)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 504)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
> org.eclipse.ecf.core.util.ECFException[0]:
> java.lang.ClassNotFoundException:
> org.eclipse.ecf.tests.remoteservice.IConcat
> at java.lang.Class.forName(Class.java:127)
> at
> org.eclipse.ecf.provider.remoteservice.generic.RemoteService Impl.getProxy(RemoteServiceImpl.java:53)
>
> at
> org.eclipse.ecf.tests.remoteservice.RemoteServiceTest.testCa llRemoteServiceWithProxy(RemoteServiceTest.java:161)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:615)
> at junit.framework.TestCase.runTest(TestCase.java:164)
> at junit.framework.TestCase.runBare(TestCase.java:130)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:120)
> at junit.framework.TestSuite.runTest(TestSuite.java:230)
> at junit.framework.TestSuite.run(TestSuite.java:225)
> at
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestRefer ence.run(JUnit3TestReference.java:130)
>
> at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(Test Execution.java:38)
>
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:460)
>
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:673)
>
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R emoteTestRunner.java:386)
>
> at
> org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunne r.main(RemotePluginTestRunner.java:58)
>
> at
> org.eclipse.pde.internal.junit.runtime.CoreTestApplication.r un(CoreTestApplication.java:24)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:615)
> at
> org.eclipse.equinox.internal.app.EclipseAppContainer.callMet hod(EclipseAppContainer.java:533)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:155)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:615)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 504)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
Re: ClassNotFoundException for remoteService testing. [message #618907 is a reply to message #618905] Fri, 10 August 2007 17:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: leezhenghui.gmail.com

This is a multipart message in MIME format.
--=_alternative 005D6B2F48257333_=
Content-Type: text/plain; charset="US-ASCII"

Hi, Scott
Thanks for you so quick response, I did further investigation on this
issue, what I found is:
There are two remoteservice test projects,
1.org.eclipse.ecf/archive/tests/org.eclipse.ecf.test.remotes ervice
2.org.eclipse.ecf/tests/org.eclipse.ecf.tests.remoteservice
Both them existed in my workspace, When I run the the test cases
via Junit plugin test, both them are launched into the test runtime, If I
remove the 2nd one, the test case in project 1 will passed.

So, I am little confused, if two bundles exported the same package,
in this case, both test projects have exported pkg
"org.eclipse.ecf.tests.remoteservice", osgi will only seach the class in
the first bundle which export the required the pkg, if not find the class,
it will return at once, does not give any try on any other bundle which
also export the pkg. right?
--=_alternative 005D6B2F48257333_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Hi, Scott</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp;Thanks for you so
quick response, I did further investigation on this issue, what I found
is:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; There
are two remoteservice test projects, </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; 1.org.eclipse.ecf/archive/tests/org.eclipse.ecf.test.remotes ervice </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; 2.org.eclipse.ecf/tests/org.eclipse.ecf.tests.remoteservice</font >
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Both
them existed in my workspace, When I run the the test cases via Junit plugin
test, both them are launched into the test runtime, If I remove the 2nd
one, the test case in project 1 will passed. </font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; So, I am little
confused, if two bundles exported the same package, in this case, both
test projects have exported pkg &quot;org.eclipse.ecf.tests.remoteservice&quot;,
osgi will only seach the class in the first bundle which export the required
the pkg, if not find the class, it will return at once, does not give any
try on any other bundle which also export the pkg. right?</font>
--=_alternative 005D6B2F48257333_=--
Re: ClassNotFoundException for remoteService testing. [message #618909 is a reply to message #618907] Fri, 10 August 2007 17:38 Go to previous message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hi,

leezhenghui@gmail.com wrote:
>
> Hi, Scott
> Thanks for you so quick response, I did further investigation on
> this issue, what I found is:
> There are two remoteservice test projects,
>
> 1.org.eclipse.ecf/archive/tests/org.eclipse.ecf.test.remotes ervice
>
> 2.org.eclipse.ecf/tests/org.eclipse.ecf.tests.remoteservice
> Both them existed in my workspace, When I run the the test
> cases via Junit plugin test, both them are launched into the test
> runtime, If I remove the 2nd one, the test case in project 1 will passed.

I see.

>
> So, I am little confused, if two bundles exported the same
> package, in this case, both test projects have exported pkg
> "org.eclipse.ecf.tests.remoteservice", osgi will only seach the class in
> the first bundle which export the required the pkg, if not find the
> class, it will return at once, does not give any try on any other bundle
> which also export the pkg. right?

I think this is considered 'undefined behavior' for the classloader
(i.e. having the same class exported by multiple plugins).

Actually, this is an interesting/informative case, as I would expect the
classloader to only look for the given class in the plugins that are
resolved by the platform...and I would expect this to be the instance of
the org.eclipse.ecf.tests.remoteservice plugin with the highest version
number.

I see that the two copies do have different version numbers
(archive=0.9.5 and HEAD=1.0.0), so I'm surprised that this failed.
Perhaps this is a classloading anomoly...and we should consult with the
Equinox classloading folks. I'll do this when I can.

In the mean time, I'm glad things are working for you now.

Scott
Previous Topic:8/5/2007 conf call RESCHEDULED for 8/13/2007
Next Topic:webcam streaming
Goto Forum:
  


Current Time: Fri Apr 26 16:04:36 GMT 2024

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

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

Back to the top