Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-205

Not able to start container which is created using managed REST endpoint.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 6.x.x
    • Kie-Server
    • Hide
      • Deploy kie-server in managed mode.
      • Create simple project in BC and build it
      • Try to create kie-container using managed endpoint
      curl -X PUT  -u 'bpmsAdmin:admin12@' -H 'Content-type: application/xml' --data @/tmp/Create-container.xml 'http://llocalhost:8080/business-central/rest/controller/management/servers/local-server-123/containers/example:NewDemo1:1.01'
      

      Payload:

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <container-spec-details>
          <container-id>example:NewDemo1:1.01</container-id>
          <container-name>example:NewDemo1:1.01</container-name>
          <server-template-key>
              <server-id>local-server-123</server-id>
          </server-template-key>
          <release-id>
              <artifact-id>NewDemo1</artifact-id>
              <group-id>example</group-id>
              <version>1.01</version>
          </release-id>
          <configs> 
              <entry>
                  <key>PROCESS</key>
                  <value xsi:type="processConfig" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                      <strategy>Singleton</strategy>
                      <kie-base-name></kie-base-name>
                      <kie-session-name></kie-session-name>
                      <merge-mode>Merge Collections</merge-mode>
                  </value>
              </entry>
              <entry>
                  <key>RULE</key>
                  <value xsi:type="ruleConfig" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                      <scanner-status>STOPPED</scanner-status>
                  </value>
              </entry>
          </configs>
          <status>STOPPED</status>
      </container-spec-details>
      
      • Check BC UI, container will be created, but if you try to start it will fail with exception.
      Show
      Deploy kie-server in managed mode. Create simple project in BC and build it Try to create kie-container using managed endpoint curl -X PUT -u 'bpmsAdmin:admin12@' -H 'Content-type: application/xml' --data @/tmp/Create-container.xml 'http: //llocalhost:8080/business-central/ rest /controller/management/servers/local-server-123/containers/example:NewDemo1:1.01' Payload: <?xml version= "1.0" encoding= "UTF-8" standalone= "yes" ?> <container-spec-details> <container-id>example:NewDemo1:1.01</container-id> <container-name>example:NewDemo1:1.01</container-name> <server-template-key> <server-id>local-server-123</server-id> </server-template-key> <release-id> <artifact-id>NewDemo1</artifact-id> <group-id>example</group-id> <version>1.01</version> </release-id> <configs> <entry> <key>PROCESS</key> <value xsi:type= "processConfig" xmlns:xsi= "http: //www.w3.org/2001/XMLSchema-instance" > <strategy>Singleton</strategy> <kie-base-name></kie-base-name> <kie-session-name></kie-session-name> <merge-mode>Merge Collections</merge-mode> </value> </entry> <entry> <key>RULE</key> <value xsi:type= "ruleConfig" xmlns:xsi= "http: //www.w3.org/2001/XMLSchema-instance" > <scanner-status>STOPPED</scanner-status> </value> </entry> </configs> <status>STOPPED</status> </container-spec-details> Check BC UI, container will be created, but if you try to start it will fail with exception.

      Not able to start container which is created using managed REST endpoint. When we try to start kie container it fails with exception:
      ~~~
      ERROR [org.kie.server.services.impl.KieServerImpl] (default task-36) Error creating container 'example:NewDemo1:1.01' for module 'example:NewDemo1:1.01': java.lang.NullPointerException
      at org.kie.server.services.impl.KieServerImpl.configureScanner(KieServerImpl.java:488)
      at org.kie.server.services.impl.KieServerImpl.createContainer(KieServerImpl.java:259)
      ~~~

        1. Exception
          5 kB
          Abhijit Humbe

              swiderski.maciej Maciej Swiderski (Inactive)
              rhn-support-abhumbe Abhijit Humbe
              Karel Suta Karel Suta
              Karel Suta Karel Suta
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: