Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on running the Ant Build #1

Open
anilmisra opened this issue Feb 6, 2015 · 0 comments
Open

Error on running the Ant Build #1

anilmisra opened this issue Feb 6, 2015 · 0 comments

Comments

@anilmisra
Copy link

I am getting the following error on running the Ant Build :

C:\workspace\ServerIntegrationRESTAPIExample-ihub-3.1>ant -Drestapi.host=localho
st -Drestapi.port=5000 -Drestapi.volume="Default Volume" -Drestapi.gzip=true
Buildfile: C:\workspace\ServerIntegrationRESTAPIExample-ihub-3.1\build.xml
[java]
[java] ### loginAsAdministrator
[java] Exception in thread "main" org.apache.http.conn.HttpHostConnectExcep
tion: Connect to localhost:5000 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1]
failed: Connection refused: connect
[java] at org.apache.http.impl.conn.HttpClientConnectionOperator.connec
t(HttpClientConnectionOperator.java:140)
[java] at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.
connect(PoolingHttpClientConnectionManager.java:318)
[java] at org.apache.http.impl.execchain.MainClientExec.establishRoute(
MainClientExec.java:363)
[java] at org.apache.http.impl.execchain.MainClientExec.execute(MainCli
entExec.java:219)
[java] at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolE
xec.java:195)
[java] at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.ja
va:86)
[java] at org.apache.http.impl.execchain.RedirectExec.execute(RedirectE
xec.java:108)
[java] at org.apache.http.impl.client.InternalHttpClient.doExecute(Inte
rnalHttpClient.java:184)
[java] at org.apache.http.impl.client.CloseableHttpClient.execute(Close
ableHttpClient.java:72)
[java] at org.apache.http.impl.client.CloseableHttpClient.execute(Close
ableHttpClient.java:214)
[java] at org.apache.http.impl.client.CloseableHttpClient.execute(Close
ableHttpClient.java:160)
[java] at org.apache.http.impl.client.CloseableHttpClient.execute(Close
ableHttpClient.java:136)
[java] at com.actuate.restapi.commons.Request.post(Request.java:231)
[java] at com.actuate.restapi.commons.Request.post(Request.java:240)
[java] at com.actuate.restapi.commons.Request.auth(Request.java:179)
[java] at com.actuate.restapi.example.SampleLogin.loginAsAdministrator(
SampleLogin.java:32)
[java] at com.actuate.restapi.example.SampleLogin.main(SampleLogin.java
:22)
[java] Caused by: java.net.ConnectException: Connection refused: connect
[java] at java.net.DualStackPlainSocketImpl.connect0(Native Method)
[java] at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlai
nSocketImpl.java:79)
[java] at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocke
tImpl.java:339)
[java] at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPla
inSocketImpl.java:200)
[java] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketI
mpl.java:182)
[java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
[java] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
[java] at java.net.Socket.connect(Socket.java:579)
[java] at org.apache.http.conn.socket.PlainConnectionSocketFactory.conn
ectSocket(PlainConnectionSocketFactory.java:72)
[java] at org.apache.http.impl.conn.HttpClientConnectionOperator.connec
t(HttpClientConnectionOperator.java:123)
[java] ... 16 more

BUILD FAILED
C:\workspace\ServerIntegrationRESTAPIExample-ihub-3.1\build.xml:52: The followin
g error occurred while executing this line:
C:\workspace\ServerIntegrationRESTAPIExample-ihub-3.1\build.xml:40: Java returne
d: 1

Total time: 2 seconds

I have an installation of Actuate IHub F-type . Why is it giving an error connecting at port 5000.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant