Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-7076

KIE Server Controller Deploy Maven Plugin doesn't expect timestamp in ISO 8601 format

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.8.0.Final
    • 7.5.0.Final, 7.6.0.Final
    • None
    • None
    • NEW
    • NEW
    • Hide

      According to the manual the command "kie-ctl:deploy" gives the following output:

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      $ mvn kie-ctrl:deploy
      [INFO] Scanning for projects...
      [INFO]                                                                         
      [INFO] ------------------------------------------------------------------------
      [INFO] Building contracting 0.0.1
      [INFO] ------------------------------------------------------------------------
      [INFO] 
      [INFO] --- kie-server-controller-plugin:7.5.0.Final:deploy-container (default-cli) @ contracting ---
      [INFO] Protocol: http
      [INFO] Host Name: workbench-myproject.192.168.42.124.nip.io
      [INFO] Port: 80
      [INFO] Controller Username: admin
      [INFO] Marshaller extensions init
      [INFO] Server Template Id: kie-server-dev
      [INFO] Server Template Name: kie-server-dev
      [INFO] --- Container --- 
      [INFO] Container: com.finomancer:contracting:0.0.1
      [INFO] Release: com.finomancer:contracting:0.0.1
      [INFO] Status: STOPPED
      [INFO] ----------------- 
      [INFO] Container com.finomancer:contracting:0.0.1 CREATED on server template kie-server-dev
      [INFO] Container com.finomancer:contracting:0.0.1 STARTED on server template kie-server-dev
      [INFO] --- Server Template --- 
      [INFO] Server Template Id: kie-server-dev
      [INFO] Server Template Name: kie-server-dev
      [INFO] Capabilities: [RULE, PROCESS, PLANNING]
      [INFO] Server: http://kie-server-myproject.192.168.42.124.nip.io/kie-server/services/rest/server
      [INFO] --- Container --- 
      [INFO] Container: evaluation_1.0.0-SNAPSHOT
      [INFO] Release: evaluation:evaluation:1.0.0-SNAPSHOT
      [INFO] Status: STARTED
      [INFO] Capability: PROCESS
      [INFO] Config: [ runtimeStrategy = SINGLETON. kSession = . kBase = . mergeMode = MERGE_COLLECTIONS ]
      [INFO] Capability: RULE
      [INFO] Config: [ poolInterval = Default. scannerStatus = STOPPED ]
      [INFO] ----------------- 
      [INFO] --- Container --- 
      [INFO] Container: com.finomancer:contracting:0.0.1
      [INFO] Release: com.finomancer:contracting:0.0.1
      [INFO] Status: STARTED
      [INFO] ----------------- 
      [INFO] ----------------------- 
      [INFO] Verify Server - Wait Time: 1000
      [INFO] Verify Server - Max Time: 300000
      [INFO] Verifying Server: http://kie-server-myproject.192.168.42.124.nip.io/kie-server/services/rest/server
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 15.107 s
      [INFO] Finished at: 2018-03-23T13:41:14+07:00
      [INFO] Final Memory: 27M/309M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.kie.server:kie-server-controller-plugin:7.5.0.Final:deploy-container (default-cli) on project contracting: javax.ws.rs.ProcessingException: com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.util.Date out of START_OBJECT token
      [ERROR] at [Source: org.apache.http.conn.EofSensorInputStream@67594471; line: 24, column: 28] (through reference chain: org.kie.server.api.model.ServiceResponse["result"]->org.kie.server.api.model.KieContainerResource["messages"]->java.util.ArrayList[0]->org.kie.server.api.model.Message["timestamp"])
      [ERROR] -> [Help 1]
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
      
      Process finished with exit code 1
      
      Show
      According to the manual the command "kie-ctl:deploy" gives the following output: Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml $ mvn kie-ctrl:deploy [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building contracting 0.0.1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- kie-server-controller-plugin:7.5.0.Final:deploy-container ( default -cli) @ contracting --- [INFO] Protocol: http [INFO] Host Name: workbench-myproject.192.168.42.124.nip.io [INFO] Port: 80 [INFO] Controller Username: admin [INFO] Marshaller extensions init [INFO] Server Template Id: kie-server-dev [INFO] Server Template Name: kie-server-dev [INFO] --- Container --- [INFO] Container: com.finomancer:contracting:0.0.1 [INFO] Release: com.finomancer:contracting:0.0.1 [INFO] Status: STOPPED [INFO] ----------------- [INFO] Container com.finomancer:contracting:0.0.1 CREATED on server template kie-server-dev [INFO] Container com.finomancer:contracting:0.0.1 STARTED on server template kie-server-dev [INFO] --- Server Template --- [INFO] Server Template Id: kie-server-dev [INFO] Server Template Name: kie-server-dev [INFO] Capabilities: [RULE, PROCESS, PLANNING] [INFO] Server: http: //kie-server-myproject.192.168.42.124.nip.io/kie-server/services/ rest /server [INFO] --- Container --- [INFO] Container: evaluation_1.0.0-SNAPSHOT [INFO] Release: evaluation:evaluation:1.0.0-SNAPSHOT [INFO] Status: STARTED [INFO] Capability: PROCESS [INFO] Config: [ runtimeStrategy = SINGLETON. kSession = . kBase = . mergeMode = MERGE_COLLECTIONS ] [INFO] Capability: RULE [INFO] Config: [ poolInterval = Default. scannerStatus = STOPPED ] [INFO] ----------------- [INFO] --- Container --- [INFO] Container: com.finomancer:contracting:0.0.1 [INFO] Release: com.finomancer:contracting:0.0.1 [INFO] Status: STARTED [INFO] ----------------- [INFO] ----------------------- [INFO] Verify Server - Wait Time: 1000 [INFO] Verify Server - Max Time: 300000 [INFO] Verifying Server: http: //kie-server-myproject.192.168.42.124.nip.io/kie-server/services/ rest /server [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 15.107 s [INFO] Finished at: 2018-03-23T13:41:14+07:00 [INFO] Final Memory: 27M/309M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.kie.server:kie-server-controller-plugin:7.5.0.Final:deploy-container ( default -cli) on project contracting: javax.ws.rs.ProcessingException: com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.util.Date out of START_OBJECT token [ERROR] at [Source: org.apache.http.conn.EofSensorInputStream@67594471; line: 24, column: 28] (through reference chain: org.kie.server.api.model.ServiceResponse[ "result" ]->org.kie.server.api.model.KieContainerResource[ "messages" ]->java.util.ArrayList[0]->org.kie.server.api.model.Message[ "timestamp" ]) [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch . [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http: //cwiki.apache.org/confluence/display/MAVEN/MojoFailureException Process finished with exit code 1
    • 2018 Week 13-14, 2018 Week 15-16

    Description

      Request for "Kie Server info" like:

      GET http://kie-server-myproject.192.168.42.124.nip.io/kie-server/services/rest/server
      

      returns the xml with with timestamp in ISO 8601 format:

      <?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://kie-server-myproject.192.168.42.124.nip.io/kie-server/services/rest/server</location>
        <messages>
        <content>Server KieServerInfo{serverId='kie-server-dev', version='7.6.0.Final', location='http://kie-server-myproject.192.168.42.124.nip.io/kie-server/services/rest/server', capabilities=[KieServer, BRM, BPM, CaseMgmt, BPM-UI, BRP, DMN, Swagger]}started successfully at Fri Mar 23 03:13:16 UTC 2018</content>
        <severity>INFO</severity>
        <timestamp>2018-03-23T03:13:16.787Z</timestamp>
        </messages>
        <name>kie-server-dev</name>
        <id>kie-server-dev</id>
        <version>7.6.0.Final</version>
        </kie-server-info>
      </response>
      

      However, KIE Server Maven Plugins operate on 'java.util.Date' format.

      It is needed to fix the inconsistent behaviour. Thank you!

      Here is the timestamp field which causes the issue:

      @XmlRootElement(name="kie-message")
      @XmlType(name = "kie-message")
      @XStreamAlias( "kie-message" )
      public class Message {
      
          private Severity severity;
          private Date timestamp;
          private List<String> messages = new ArrayList<String>();
      

      Attachments

        Activity

          People

            swiderski.maciej Maciej Swiderski (Inactive)
            alex.v.karasev Alex Karasev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: