[GRADLE-1235] gradle -gui exeception - can't bind to port Created: 26/Nov/10  Updated: 16/Jan/17  Resolved: 16/Jan/17

Status: Resolved
Project: Gradle
Affects Version/s: 0.8
Fix Version/s: None

Type: Bug
Reporter: chris snow Assignee: Unassigned
Resolution: Won't Fix Votes: 0


 Description   

This is shown in the DOS window:

12:31:20.268 [Thread-4] ERROR o.g.f.ipc.basic.ClientProcess - Failed to connect to server: -1
java.lang.IllegalArgumentException: port out of range:-1
        at java.net.InetSocketAddress.<init>(InetSocketAddress.java:83)
        at java.net.Socket.<init>(Socket.java:213)
        at org.gradle.foundation.ipc.basic.ClientProcess.start(ClientProcess.java:83)
        at org.gradle.foundation.ipc.gradle.AbstractGradleServerProtocol.messageReceived(AbstractGradleServerProtocol.java:148)
        at org.gradle.foundation.ipc.basic.Server.processCommunications(Server.java:268)
        at org.gradle.foundation.ipc.basic.Server.listenForConnections(Server.java:208)
        at org.gradle.foundation.ipc.basic.Server.access$000(Server.java:38)
        at org.gradle.foundation.ipc.basic.Server$1.run(Server.java:136)
        at java.lang.Thread.run(Thread.java:595)

This is shown in the gradle gui window:

ould not listen on port: 1800
java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
	at java.net.PlainSocketImpl.socketBind(Native Method)
	at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
	at java.net.ServerSocket.bind(ServerSocket.java:319)
	at java.net.ServerSocket.<init>(ServerSocket.java:185)
	at java.net.ServerSocket.<init>(ServerSocket.java:97)
	at org.gradle.foundation.ipc.basic.Server.connect(Server.java:169)
	at org.gradle.foundation.ipc.basic.Server.start(Server.java:128)
	at org.gradle.foundation.ipc.gradle.TaskListClientProtocol.serverConnected(TaskListClientProtocol.java:142)
	at org.gradle.foundation.ipc.basic.ClientProcess.start(ClientProcess.java:86)
	at org.gradle.foundation.ipc.gradle.GradleClient.start(GradleClient.java:73)
	at org.gradle.foundation.ipc.gradle.IPCUtilities.invokeTaskListGradleClient(IPCUtilities.java:90)
	at org.gradle.foundation.ipc.gradle.IPCUtilities$invokeTaskListGradleClient.call(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
	at refresh_tasks_init_script1962790145770371224_gradle_fe598d4a9cc98728fd91cfc2c61388f7.run(C:\..0145770371224.gradle:4)
	at org.gradle.groovy.scripts.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:53)
	at org.gradle.configuration.DefaultInitScriptProcessor.process(DefaultInitScriptProcessor.java:54)
	at org.gradle.initialization.InitScriptHandler.executeScripts(InitScriptHandler.java:40)
	at org.gradle.GradleLauncher.doBuildStages(GradleLauncher.java:136)
	at org.gradle.GradleLauncher.doBuild(GradleLauncher.java:124)
	at org.gradle.GradleLauncher.run(GradleLauncher.java:95)
	at org.gradle.Main.execute(Main.java:100)
	at org.gradle.Main.main(Main.java:43)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at org.gradle.BootstrapMain.main(BootstrapMain.java:50)
:reportTask

------------------------------------------------------------
Root Project
------------------------------------------------------------
No tasks

BUILD SUCCESSFUL

Total time: 1.985 secs

Completed Successfully

Nothing is listen on port 1800:

C:\dev\setup\test>netstat -na | find "1800"



 Comments   
Comment by Benjamin Muschko [ 15/Nov/16 ]

As announced on the Gradle blog we are planning to completely migrate issues from JIRA to GitHub.

We intend to prioritize issues that are actionable and impactful while working more closely with the community. Many of our JIRA issues are inactionable or irrelevant. We would like to request your help to ensure we can appropriately prioritize JIRA issues you’ve contributed to.

Please confirm that you still advocate for your JIRA issue before December 10th, 2016 by:

  • Checking that your issues contain requisite context, impact, behaviors, and examples as described in our published guidelines.
  • Leave a comment on the JIRA issue or open a new GitHub issue confirming that the above is complete.

We look forward to collaborating with you more closely on GitHub. Thank you for your contribution to Gradle!

Comment by Benjamin Muschko [ 16/Jan/17 ]

The Gradle GUI has been deprecated and is scheduled to be removed with Gradle 4.0. We are not going to work on this issue anymore.

Generated at Wed Jun 30 11:50:24 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.