Skip to content

Instantly share code, notes, and snippets.

View danielezonca's full-sized avatar

Daniele Zonca danielezonca

  • Red Hat
  • Milan, Italy
View GitHub Profile
[INFO] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Building fat jar: /home/dzonca/IdeaProjects/RHSummit/home-automation-poc/sample-kogito/target/sample-kogito-1.0-SNAPSHOT-runner.jar
[WARNING] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Duplicate entry META-INF/kie.conf entry from org.kie.kogito:drools-compiler::jar:0.9.0(compile) will be ignored. Existing file was provided by org.kie.kogito:drools-core::jar:0.9.0(compile)
[WARNING] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Duplicate entry META-INF/kie.conf entry from org.kie.kogito:kogito-ruleunits::jar:0.9.0(compile) will be ignored. Existing file was provided by org.kie.kogito:drools-core::jar:0.9.0(compile)
[WARNING] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Duplicate entry META-INF/kie.conf entry from org.drools:drools-model-compiler::jar:7.34.0.Final(compile) will be ignored. Existing file was provided by org.kie.kogito:drools-core::jar:0.9.0(compile)
[WARNING] [io.quarkus.deployment.pkg.steps.JarResultBuildStep]
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.376 s
[INFO] Finished at: 2020-04-03T09:05:25+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:1.3.0.Final:native-image (default) on project sample-kogito: Failed to generate native image: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[ERROR] [error]: Build step org.kie.kogito.quarkus.deployment.KogitoAssetsProcessor#generateModel threw an exception: java.lang.IllegalArgumentException: 'other' is different type of Path
[ERROR] at java.base/sun.nio.fs.UnixPath.relativize(UnixPath.java:429)
[ERROR] at java.base/sun.nio.fs.UnixPath.relativize(UnixPath.java:43)
[ERROR] at org.kie.kogito.codegen.decision.DecisionContainerGenerator.classDeclaration(DecisionContainerGenerator.java:74)
[ERROR] at org.kie.kogito.codegen.ApplicationGenerator.generate
apiVersion: apps/v1
kind: Deployment
metadata:
name: sample-kogito
namespace: cloud-sweet-cloud
spec:
selector:
matchLabels:
app: sample-kogito
apiVersion: apps/v1
kind: Deployment
metadata:
name: face-recognition-poc
namespace: cloud-sweet-cloud
spec:
selector:
matchLabels:
app: face-recognition-poc
replicas: 3
2020-04-01 16:16:12,721 ERROR [org.jbp.wor.ins.imp.WorkflowProcessInstanceImpl] (executor-thread-1) Unexpected error (id 59dcd3d4-5407-415c-bbff-85fc949f35eb) while executing node Request Picture from Camera in process instance 4c9b39cc-6b2a-4e07-ba2e-f679e3c1d353: org.jbpm.workflow.instance.WorkflowRuntimeException: [WelcomeHome:4c9b39cc-6b2a-4e07-ba2e-f679e3c1d353 - Request Picture from Camera:13] -- javax.net.ssl.SSLException: failed to initialize the client-side SSL context
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.handleException(WorkItemNodeInstance.java:184)
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:172)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:200)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:404)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:389)
at
Caused by: java.lang.NoSuchMethodError: 'com.thoughtworks.xstream.XStream org.kie.soup.commons.xstream.XStreamUtils.createTrustingXStream(com.thoughtworks.xstream.io.HierarchicalStreamDriver, java.lang.ClassLoader)'
at org.kie.dmn.backend.marshalling.v1_2.xstream.XStreamMarshaller.newXStream(XStreamMarshaller.java:191)
at org.kie.dmn.backend.marshalling.v1_2.xstream.XStreamMarshaller.unmarshal(XStreamMarshaller.java:150)
at org.kie.dmn.backend.marshalling.v1x.XStreamMarshaller.unmarshal(XStreamMarshaller.java:72)
at org.kie.dmn.backend.marshalling.v1x.XStreamMarshaller.unmarshal(XStreamMarshaller.java:119)
at org.kie.dmn.core.compiler.DMNCompilerImpl.compile(DMNCompilerImpl.java:155)
at org.kie.dmn.core.compiler.DMNCompilerImpl.compile(DMNCompilerImpl.java:140)
at org.kie.dmn.api.core.DMNCompiler.compile(DMNCompiler.java:29)
at org.kie.kogito.dmn.DMNKogito.createGenericDMNRuntime(DMNKogito.java:83)
[dzonca@dzonca proactive-fraud-detection-dmn-master]$ curl -u wbadmin:wbadmin -H "accept: application/json" -H "content-type: application/json" -X POST "http://localhost:8080/kie-server/services/rest/server/conainers/sample/dmn" -d "{ \"model-namespace\" : \"http://www.redhat.com/dmn/definitions/_81556584-7d78-4f8c-9d5f-b3cddb9b5c73\", \"model-name\" : \"fraud-scoring\", \"dmn-context\" : { \"Transactions\" : [{\"Auth Code\":\"Authorized\", \"Amount\":100, \"Merchant Code\":\"LEGITBIZ\", \"Card Type\":\"Debit\", \"Date\":\"2017-09-07T10:20:30\", \"Location\":\"Local\"}]}}"
{
"type" : "SUCCESS",
"msg" : "OK from container 'sample'",
"result" : {
"dmn-evaluation-result" : {
"messages" : [ ],
"model-namespace" : "http://www.redhat.com/dmn/definitions/_81556584-7d78-4f8c-9d5f-b3cddb9b5c73",
"model-name" : "fraud-scoring",
"decision-name" : [ ],
public class BigDecimalClass {
private java.math.BigDecimal myBigDecimal;
public java.math.BigDecimal getMyBigDecimal() {
return myBigDecimal;
}
public void setMyBigDecimal(java.math.BigDecimal myBigDecimal) {
this.myBigDecimal = myBigDecimal;
/*
* Copyright 2018 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-direct-dependencies) @ dashbuilder-services ---
[INFO] Analyze dependencies of artifact 'org.dashbuilder:dashbuilder-services:jar:2.21.0-SNAPSHOT'.
[INFO] Downloading from mirror-central: http://bxms-qe.rhev-ci-vms.eng.rdu2.redhat.com:8081/nexus/content/groups/kie-all/org/dashbuilder/dashbuilder-services/2.21.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded from mirror-central: http://bxms-qe.rhev-ci-vms.eng.rdu2.redhat.com:8081/nexus/content/groups/kie-all/org/dashbuilder/dashbuilder-services/2.21.0-SNAPSHOT/maven-metadata.xml (1.7 kB at 15 kB/s)
[INFO] Downloading from mirror-central: http://bxms-qe.rhev-ci-vms.eng.rdu2.redhat.com:8081/nexus/content/groups/kie-all/org/dashbuilder/dashbuilder-services/2.21.0-SNAPSHOT/dashbuilder-services-2.21.0-20190628.133342-11.jar
[INFO] Downloaded from mirror-central: http://bxms-qe.rhev-ci-vms.eng.rdu2.redhat.com:8081/nexus/content/groups/kie-all/org/dashbuilder/dashbuilder-services/2.21.0-SNAPSHOT/dashbuilder-se