Unable to sync Kie-server-7.5.0.Final with Kie-wb-7.5.0.Final | response code 500

2,494 views
Skip to first unread message

Rob Saunders

unread,
Feb 4, 2018, 10:45:48 PM2/4/18
to Drools Setup
Hello,

I'm having some issues with establishing a connection between kie-wb and kie-server and hoping someone could help. I have searched extensively on this, and other forums for a solution however have not been able to get it to work even using this great blog post by Maciej.

I am attempting to configure both kie-wb and kie-server on the same server. I am doing so on EAP 7.1 with kie-server-7.5.0.Final-ee7.war and kie-drools-wb-7.5.0.Final-eap7.war and get the following error messages in the log:


2018-02-05 13:01:28,213 INFO  [org.kie.server.controller.websocket.client.WebSocketKieServerControllerImpl] (KieServer-ControllerConnect) Kie Server points to non Web Socket controller 'http://localhost:8080/kie-wb/rest/controller', using default REST mechanism
2018-02-05 13:01:28,213 WARN  [org.kie.server.common.KeyStoreHelperUtil] (KieServer-ControllerConnect) Unable to load key store. Using password from configuration
2018-02-05 13:01:28,215 ERROR [io.undertow.request] (default task-4) UT005023: Exception handling request to /kie-wb/rest/controller/server/wildfly-kieserver: org.jboss.resteasy.spi.UnhandledException: java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.jsontype.impl.AsWrapperTypeDeserializer.<init>(Lcom/fasterxml/jackson/databind/JavaType;Lcom/fasterxml/jackson/databind/jsontype/TypeIdResolver;Ljava/lang/String;ZLjava/lang/Class;)V
...
...
...
2018-02-05 13:01:28,218 WARN  [org.kie.server.services.impl.controller.DefaultRestControllerImpl] (KieServer-ControllerConnect) Exception encountered while syncing with controller at http://localhost:8080/kie-wb/rest/controller/server/wildfly-kieserver
 error
Error while sending PUT request to
http
://localhost:8080/kie-wb/rest/controller/server/wildfly-kieserver
response code
500


I'm using the following properties as part of my standalone-full.xml
<system-properties>
   
<property name="org.kie.server.location" value="http://localhost:8080/kie-server/services/rest/server/"/>
   
<property name="org.kie.server.controller" value="http://localhost:8080/kie-wb/rest/controller/"/>
   
<property name="org.kie.server.user" value="kieserver"/>
   
<property name="org.kie.server.pwd" value="kieserver1!"/>
   
<property name="org.kie.server.controller.user" value="kieserver"/>
   
<property name="org.kie.server.controller.pwd" value="kieserver1!"/>
</system-properties>

and launching the server with the following command:
standalone.bat -c standalone-full.xml -Dorg.kie.server.id=wildfly-kieserver

user kieserver exists in the applicationrealm with password kieserver1! and is a member of the groups: kie-server,rest-all,admin

I can login to kie-wb and all functionality is working except connection to kie-server (and subsequent deployment of containers to same).

As I mentioned, the server is throwing the following error in the log every 10 secs or so:

2018-02-05 13:01:28,213 INFO  [org.kie.server.controller.websocket.client.WebSocketKieServerControllerImpl] (KieServer-ControllerConnect) Kie Server points to non Web Socket controller 'http://localhost:8080/kie-wb/rest/controller', using default REST mechanism
2018-02-05 13:01:28,213 WARN  [org.kie.server.common.KeyStoreHelperUtil] (KieServer-ControllerConnect) Unable to load key store. Using password from configuration
2018-02-05 13:01:28,215 ERROR [io.undertow.request] (default task-4) UT005023: Exception handling request to /kie-wb/rest/controller/server/wildfly-kieserver: org.jboss.resteasy.spi.UnhandledException: java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.jsontype.impl.AsWrapperTypeDeserializer.<init>(Lcom/fasterxml/jackson/databind/JavaType;Lcom/fasterxml/jackson/databind/jsontype/TypeIdResolver;Ljava/lang/String;ZLjava/lang/Class;)V
...
...
...
2018-02-05 13:01:28,218 WARN  [org.kie.server.services.impl.controller.DefaultRestControllerImpl] (KieServer-ControllerConnect) Exception encountered while syncing with controller at http://localhost:8080/kie-wb/rest/controller/server/wildfly-kieserver error Error while sending PUT request to http://localhost:8080/kie-wb/rest/controller/server/wildfly-kieserver response code 500


Using Postman I succesfully obtain a response to a GET request to http://localhost:8080/kie-server/services/rest/server/ with username kieserver and password kieserver1!
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response type="SUCCESS" msg="Kie Server info">
   
<kie-server-info>
       
<capabilities>KieServer</capabilities>
       
<capabilities>BRM</capabilities>
       
<capabilities>BPM</capabilities>
       
<capabilities>CaseMgmt</capabilities>
       
<capabilities>BPM-UI</capabilities>
       
<capabilities>BRP</capabilities>
       
<capabilities>DMN</capabilities>
       
<capabilities>Swagger</capabilities>
       
<location>http://localhost:8080/kie-server/services/rest/server</location>
       
<name>wildfly-kieserver</name>
       
<id>wildfly-kieserver</id>
       
<version>7.5.0.Final</version>
   
</kie-server-info>
</response>

When I query http://localhost:8080/kie-wb/rest/controller/server/wildfly-kieserver/ with a PUT and username kieserver and password kieserver1! it returns a 415 Unsupported Media Type

I've attached the full extract from the log to avoid clogging up the forum if this helps troubleshoot the issue

I'd be grateful for anyone's input as I have been scratching my head for a few days on this without luck =S

Thanks in advance - cheers,

Rob
log.txt

Maciej Swiderski

unread,
Feb 5, 2018, 2:09:36 AM2/5/18
to drools...@googlegroups.com
7.5 (and 7.6 that is just around the corner) does not support EAP 7.1 (or WildFly 11). This is planed to be ready by next release (7.7). The issue is with jackson library change that is not backward compatible and thus this error.

Maciej

--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@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-setup/730c0505-8567-40ed-bbbf-7bfc40414502%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<log.txt>

Rob Saunders

unread,
Feb 6, 2018, 6:42:18 PM2/6/18
to Drools Setup
Maciej - thankyou very much for your prompt response. I tried again with EAP 7.0 and the issue was resolved.

Cheers,

Rob

Rajeev Naik

unread,
Feb 21, 2018, 8:56:52 AM2/21/18
to Drools Setup
Hi, am getting same issue with spring boot impl 'org.kie:kie-server-spring-boot-starter-drools:7.6.0.Final'

error:

Rajeev Naik

unread,
Feb 22, 2018, 10:42:00 AM2/22/18
to Drools Setup
Solved it by adding 2.7.x version of Jackson. In 2.8.x there is change in constructor for 'AsWrapperTypeDeserializer.java'


compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.7.9'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.7.9'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotation', version: '2.7.9'
Reply all
Reply to author
Forward
0 new messages