Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Connection refused: Running Junit plugin tests.
Connection refused: Running Junit plugin tests. [message #291075] Wed, 07 September 2005 13:42 Go to next message
Eclipse UserFriend
Originally posted by: VMarathe.ifmc.sdps.org

Hi All,

While invoking test cases under my own application, I am getting a
following exception. I am issuing the below command at command line.
This is the replica of how I invoke plugin test cases on my Eclipse IDE.
I have learnt that JUnitRunner is trying to connect to this port for
sending its results. This test works fine when invoked using Eclipse
IDE. Does it not work with command line. It uses same eclipse
installation as the IDE when invoked through command line. Is there any
other way to accomplish this?


java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.conne ct(RemoteTestRunner.java:754)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R emoteTestRunner.java:336)
at
org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunne r.main(RemotePluginTestRunner.java:57)
at
org.eclipse.pde.internal.junit.runtime.UITestApplication$1.r un(UITestApplication.java:99)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
at
org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3057)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2716)
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)


Thanks,
Vasant.
Re: Connection refused: Running Junit plugin tests. [message #291576 is a reply to message #291075] Tue, 20 September 2005 13:16 Go to previous message
Eclipse UserFriend
Originally posted by: VMarathe.ifmc.sdps.org

Hi All,

I would like to post this message again, just to check in case anyone
has solution to it.

Appreciate your help,

Thanks,
Vasant.
Vasant wrote:
> Hi All,
>
> While invoking test cases under my own application, I am getting a
> following exception. I am issuing the below command at command line.
> This is the replica of how I invoke plugin test cases on my Eclipse IDE.
> I have learnt that JUnitRunner is trying to connect to this port for
> sending its results. This test works fine when invoked using Eclipse
> IDE. Does it not work with command line. It uses same eclipse
> installation as the IDE when invoked through command line. Is there any
> other way to accomplish this?
>
>
> java.net.ConnectException: Connection refused: connect
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(Unknown Source)
> at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
> at java.net.PlainSocketImpl.connect(Unknown Source)
> at java.net.SocksSocketImpl.connect(Unknown Source)
> at java.net.Socket.connect(Unknown Source)
> at java.net.Socket.connect(Unknown Source)
> at java.net.Socket.<init>(Unknown Source)
> at java.net.Socket.<init>(Unknown Source)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.conne ct(RemoteTestRunner.java:754)
>
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R emoteTestRunner.java:336)
>
> at
> org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunne r.main(RemotePluginTestRunner.java:57)
>
> at
> org.eclipse.pde.internal.junit.runtime.UITestApplication$1.r un(UITestApplication.java:99)
>
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
>
> at
> org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3057)
> at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2716)
> at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
>
>
> Thanks,
> Vasant.
Previous Topic:Placing of the editor in a desired position
Next Topic:Cvs resource history for directories
Goto Forum:
  


Current Time: Thu Jul 25 16:18:29 GMT 2024

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

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

Back to the top