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

[dexter-cli_0.9.0_64] Connection refused connect. http://127.0.0.1:4982/api/analysis/result #19

Open
alxpark opened this issue Sep 30, 2015 · 1 comment

Comments

@alxpark
Copy link
Contributor

alxpark commented Sep 30, 2015

I have an error after I executed the dexter-cli for java project.

[ERROR] 2015-09-30 19:38:42 - com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class java.util.HashMap, and MIME media type, application/json, was not found : Connection refused connect. check your server is on > http://127.0.0.1:4982/api/analysis/result
[ERROR] 2015-09-30 19:38:42 - com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class java.util.HashMap, and MIME media type, application/json, was not found : Connection refused connect. check your server is on > http://127.0.0.1:4982/api/analysis/result
com.samsung.sec.dexter.core.exception.DexterRuntimeException: com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class java.util.HashMap, and MIME media type, application/json, was not found : Connection refused connect. check your server is on > http://127.0.0.1:4982/api/analysis/result
at com.samsung.sec.dexter.core.job.SendResultJob.sendResult(SendResultJob.java:100)
at com.samsung.sec.dexter.core.job.SendResultJob.send(SendResultJob.java:70)
at com.samsung.sec.dexter.executor.cli.Main.run(Main.java:444)
at com.samsung.sec.dexter.executor.cli.Main.main(Main.java:119)
Caused by: com.samsung.sec.dexter.core.exception.DexterRuntimeException: com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class java.util.HashMap, and MIME media type, application/json, was not found : Connection refused connect. check your server is on > http://127.0.0.1:4982/api/analysis/result
at com.samsung.sec.dexter.core.util.JerseyDexterWebResource.postWithBody(JerseyDexterWebResource.java:180)
at com.samsung.sec.dexter.core.util.DexterClient.sendAnalsysisResult(DexterClient.java:262)
at com.samsung.sec.dexter.core.job.SendResultJob.sendResult(SendResultJob.java:95)
... 3 more
Caused by: com.sun.jersey.api.client.ClientHandlerException: com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class java.util.HashMap, and MIME media type, application/json, was not found
at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:155)
at com.sun.jersey.api.client.Client.handle(Client.java:652)
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)
at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:570)
at com.samsung.sec.dexter.core.util.JerseyDexterWebResource.postWithBody(JerseyDexterWebResource.java:178)
... 5 more
Caused by: com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class java.util.HashMap, and MIME media type, application/json, was not found
at com.sun.jersey.api.client.RequestWriter.writeRequestEntity(RequestWriter.java:288)
at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:217)
at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:153)
... 10 more

@Min-Ho-Kim
Copy link
Member

Thank you for reporting.

Please use the following command:

$ curl "http://dexter-server-ip:dexter-server-port/api/v1/isServerAlive2" -L

If you see the following result, please use the real IP instead of '127.0.0.1' in a dexter_cfg.json file.
image

If you use your real IP address, you can see like the below:
image

If you have the same problem, please, share your dexter_cfg.json file in 'bin' folder.

Let me know the result. :-)

Min-Ho-Kim added a commit that referenced this issue Sep 9, 2016
Change dexter.em file for v0.10.4
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

2 participants