Could not get response from Postman

2,783 views
Skip to first unread message

jeroni...@gmail.com

unread,
Jan 19, 2018, 1:33:41 AM1/19/18
to Drools Usage
Hi, Im using kie server 7.5.0 on Tomcat.

I have the following configuration on postman :
Authentication - basic , with tomcat admin credentials
headers - x-kie-contenttype set to xstream and content-type application/xml
body is raw type , and im using post method with container url and appended /'instances' to the url after /containers
The project is successfully deployed from workbench , and container stop start messages are logged into the console

########################

I can test container status with http://localhost:8080/kie-server/services/rest/server :-

<content>
Container LogTestKIE_1.0.0 successfully created with module com.myteam:LogTestKIE:1.0.0.
</content>
<severity>INFO</severity>
<timestamp>2018-01-19T11:59:07.826+05:30</timestamp>
</messages>

########################


I can succesfully execute  POST commands with same structure on another machine with 7.4.1. But with 7.5.0 , im getting response as 

Could not get any response
Why this might have happened:
  • The server couldn't send a response:
    Ensure that the backend is working properly
  • Self-signed SSL certificates are being blocked:
    Fix this by turning off 'SSL certificate verification' in Settings > General
  • Proxy configured incorrectly
    Ensure that proxy is configured correctly in Settings > Proxy
  • Request timeout:
    Change request timeout in Settings > General


Maciej Swiderski

unread,
Jan 19, 2018, 1:37:35 AM1/19/18
to drools...@googlegroups.com
check server logs to see what has failed

Maciej

--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/b908fa0d-aa62-4237-a56d-ec82c27a4e2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jeroni...@gmail.com

unread,
Jan 19, 2018, 1:40:44 AM1/19/18
to Drools Usage
Hi Maciej,

Im using POST, but the log says :

19-Jan-2018 11:21:09.432 ERROR [http-nio-8080-exec-13] org.jboss.resteasy.core.ExceptionHandler.handleWebApplicationException RESTEASY002010: Failed to execute
 javax.ws.rs.NotAllowedException: RESTEASY003650: No resource method found for GET, return 405 with Allow header
at org.jboss.resteasy.core.registry.SegmentNode.match(SegmentNode.java:382)
at org.jboss.resteasy.core.registry.SegmentNode.match(SegmentNode.java:121)
at org.jboss.resteasy.core.registry.RootNode.match(RootNode.java:43)
at org.jboss.resteasy.core.registry.RootClassNode.match(RootClassNode.java:48)
at org.jboss.resteasy.core.ResourceMethodRegistry.getResourceInvoker(ResourceMethodRegistry.java:445)
at org.jboss.resteasy.core.SynchronousDispatcher.getInvoker(SynchronousDispatcher.java:264)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:201)
at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:221)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.kie.server.services.impl.security.web.CaptureHttpRequestFilter.doFilter(CaptureHttpRequest

Maciej Swiderski

unread,
Jan 19, 2018, 1:43:06 AM1/19/18
to drools...@googlegroups.com
it’s clearly using GET so there must be something in between not going as expected. Try with curl or similar to make sure that POST is actually used.

jeroni...@gmail.com

unread,
Jan 19, 2018, 2:00:28 AM1/19/18
to Drools Usage
Hi Maciej,

My mistake, the log doesnt print anything when i send a postman request. 
The log pasted above was received when i entered the url directly in browser.
Message has been deleted

AV

unread,
Jan 25, 2018, 2:50:16 PM1/25/18
to Drools Usage
Try using Soap UI.

I am facing the same issue with one of the environments. Postman gives me the same error but surprinsingly the same request works on the same URL on using SOAP UI. However, postman works fine on the other environments. Seems like postman is not able to connect to that specific URL, not sure what the reason is.

Thanks,
AV
Reply all
Reply to author
Forward
0 new messages