launching JUnit plugin-test from command Prompt [message #527659] |
Thu, 15 April 2010 21:42  |
Eclipse User |
|
|
|
Hi,
I have created a plugin and have a JUnit pluin-test code that will launch this plugin. This plugin, basically opens the eclipse, perform some tasks, collect data and close the eclipse instance. Couldn't find much help with the internet. Any help on this is appreciated.
I m using Eclipse 3.3.2.
I tried the equinox launcher to launch the application. The eclipse opens up, but then, it closes throwing an exception
Could not connect to: : 1564
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:352)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.ja va:214)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:201)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
at java.net.Socket.connect(Socket.java:530)
at java.net.Socket.connect(Socket.java:480)
at java.net.Socket.<init>(Socket.java:377)
at java.net.Socket.<init>(Socket.java:191)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.conne ct(RemoteTestRunner.java:560)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R emoteTestRunner.java:377)
at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunne r.main(RemotePluginTestRunner.java:58)
at org.eclipse.pde.internal.junit.runtime.UITestApplication$1.r un(UITestApplication.java:122)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:129)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3659)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3296)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at org.eclipse.pde.internal.junit.runtime.UITestApplication.sta rt(UITestApplication.java:52)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
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:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
58777 [main] DEBUG AdoptionTrackingActivator - adoption tracking plugin stops
Should I set the port anywhere in the code or should I write a listener that will listen to this port? I need to get this resolved as soon as possible. Any help on this is appreciated.
Thanks
Ram
|
|
|
Re: launching JUnit plugin-test from command Prompt [message #528633 is a reply to message #527659] |
Wed, 21 April 2010 06:42  |
Eclipse User |
|
|
|
hi,
you're asking on Eclipse PHP Development Tools forum. but I guess you
probably wanted to ask on PDE forum :-)
Anyway, maybe there's some firewall blocking the connection between your
Host eclipse and the test one?
HTH
Jacek
Ram wrote:
> Hi,
>
> I have created a plugin and have a JUnit pluin-test code that will
> launch this plugin. This plugin, basically opens the eclipse, perform
> some tasks, collect data and close the eclipse instance. Couldn't find
> much help with the internet. Any help on this is appreciated.
>
> I m using Eclipse 3.3.2.
>
> I tried the equinox launcher to launch the application. The eclipse
> opens up, but then, it closes throwing an exception
> Could not connect to: : 1564
> java.net.ConnectException: Connection refused: connect
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:352)
> at
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.ja va:214)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:201)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
> at java.net.Socket.connect(Socket.java:530)
> at java.net.Socket.connect(Socket.java:480)
> at java.net.Socket.<init>(Socket.java:377)
> at java.net.Socket.<init>(Socket.java:191)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.conne
> ct(RemoteTestRunner.java:560)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R
> emoteTestRunner.java:377)
> at
> org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunne
> r.main(RemotePluginTestRunner.java:58)
> at
> org.eclipse.pde.internal.junit.runtime.UITestApplication$1.r
> un(UITestApplication.java:122)
> at
> org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr
> onizer.java:129)
> at
> org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3659)
> at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3296)
> at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at
> org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault
> (Realm.java:289)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work
> bench.java:461)
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start
> (IDEApplication.java:106)
> at
> org.eclipse.pde.internal.junit.runtime.UITestApplication.sta
> rt(UITestApplication.java:52)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips
> eAppHandle.java:169)
> 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:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
> thodAccessorImpl.java:37)
> at java.lang.reflect.Method.invoke(Method.java:599)
> at
> org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
> 58777 [main] DEBUG AdoptionTrackingActivator - adoption tracking
> plugin stops
>
>
> Should I set the port anywhere in the code or should I write a
> listener that will listen to this port? I need to get this resolved as
> soon as possible. Any help on this is appreciated.
>
> Thanks
> Ram
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02739 seconds