CodeNameOneBuildTask can not connect to build server!

93 views
Skip to first unread message

popofish.chen

unread,
Dec 8, 2012, 10:21:13 AM12/8/12
to codenameone...@googlegroups.com
hi, I'm a new user to codenameone. and i'd just make a helloworld project steped by plugin's template in eclipse.
but whatever i used any build action(ios or j2me and so on) , all of them could not connect to the build server.
the console report like:

[codeNameOne] java.net.ConnectException: Connection timed out: connect
[codeNameOne] at java.net.PlainSocketImpl.socketConnect(Native Method)
[codeNameOne] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
[codeNameOne] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
[codeNameOne] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
[codeNameOne] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
[codeNameOne] at java.net.Socket.connect(Socket.java:519)
[codeNameOne] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:550)
[codeNameOne] at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:141)
[codeNameOne] at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
[codeNameOne] at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
[codeNameOne] at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
[codeNameOne] at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:271)
[codeNameOne] at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:328)
[codeNameOne] at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:172)
[codeNameOne] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:778)
[codeNameOne] at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:158)
[codeNameOne] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1026)
[codeNameOne] at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
[codeNameOne] at java.net.URL.openStream(URL.java:1009)
[codeNameOne] at com.codename1.build.client.BuildProcess.login(BuildProcess.java:110)
[codeNameOne] at com.codename1.build.client.CodeNameOneBuildTask.execute(CodeNameOneBuildTask.java:141)
[codeNameOne] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[codeNameOne] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[codeNameOne] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[codeNameOne] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[codeNameOne] at java.lang.reflect.Method.invoke(Method.java:597)
[codeNameOne] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[codeNameOne] at org.apache.tools.ant.Task.perform(Task.java:348)
[codeNameOne] at org.apache.tools.ant.Target.execute(Target.java:392)
[codeNameOne] at org.apache.tools.ant.Target.performTasks(Target.java:413)
[codeNameOne] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[codeNameOne] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[codeNameOne] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[codeNameOne] at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[codeNameOne] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[codeNameOne] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
[codeNameOne] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)

and i try to login from the visual editor, it didn't work else, it displayed: "login failed" dialog. 
my network could not connect to codenameone.com directly, and i used goagent to do all above.
but i'm sure both of addresses like 'http://www.codenameone.com' or https://codename-one.appspot.com/ are connect correctly in browser but could not in eclipse.please help me to find the reason, thanks a lot. 

Shai Almog

unread,
Dec 8, 2012, 1:51:48 PM12/8/12
to codenameone...@googlegroups.com
Hi,
if you can connect with the browser but not from Java then you need to configure Java's proxy settings to match the proxy settings of the browser which you can see in the Java preferences in the control panel.

popofish.chen

unread,
Dec 9, 2012, 3:15:09 AM12/9/12
to codenameone...@googlegroups.com
thanks, i used a vpn to rosolve this problem.
now everything is ok~

gumaolia...@sohu.com

unread,
Apr 18, 2017, 10:56:32 AM4/18/17
to CodenameOne Discussions


在 2012年12月9日星期日 UTC+8上午2:51:48,Shai Almog写道:
Hi,
if you can connect with the browser but not from Java then you need to configure Java's proxy settings to match the proxy settings of the browser which you can see in the Java preferences in the control panel.
I also have the problem,sometimes it works after using a VPN. However,it often doesn't work after using a VPN and setting java.

Steve Hannah

unread,
Apr 18, 2017, 1:34:36 PM4/18/17
to codenameone...@googlegroups.com
If you have a question/issue, please start a new thread rather than opening old threads (in this case from 2012).  Then you can state your exact question and provide details that may enable us or others in the community to help.  There isn't enough information you your question here to say much more than had already been said in the original thread  (to configure your Java proxy settings).

Steve

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/e2687bd2-cedb-4646-84a5-5f154f4ad2c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Steve Hannah
Software Developer
Codename One
Reply all
Reply to author
Forward
0 new messages