0 Replies Latest reply on Oct 18, 2016 1:34 AM by amoolya.da

    Cannot add asset: Process : Task node [2] has no task type

    amoolya.da

      Hi,

       

      i am new to jbpm and using jbpm 6.4 version. I tried to execute a asyncronus service task but im getting below error.

       

      Oct 17, 2016 4:27:53 PM org.drools.compiler.kie.builder.impl.ClasspathKieProject notifyKieModuleFound

      INFO: Found kmodule: file:/C:/Amoolya/workspace/maventest/AsyncProcess/bin/META-INF/kmodule.xml

      Oct 17, 2016 4:27:53 PM org.drools.compiler.kie.builder.impl.ClasspathKieProject getPomPropertiesFromFileSystem

      WARNING: Unable to find pom.properties in /C:/Amoolya/workspace/maventest/AsyncProcess/bin

      Oct 17, 2016 4:27:53 PM org.drools.compiler.kie.builder.impl.ClasspathKieProject generatePomPropertiesFromPom

      WARNING: As folder project tried to fall back to pom.xml, but could not find one for null

      Oct 17, 2016 4:27:53 PM org.drools.compiler.kie.builder.impl.ClasspathKieProject getPomProperties

      WARNING: Unable to load pom.properties from/C:/Amoolya/workspace/maventest/AsyncProcess/bin

      Oct 17, 2016 4:27:53 PM org.drools.compiler.kie.builder.impl.ClasspathKieProject fetchKModule

      WARNING: Cannot find maven pom properties for this project. Using the container's default ReleaseId

      Oct 17, 2016 4:27:53 PM org.drools.compiler.kie.builder.impl.KieRepositoryImpl addKieModule

      INFO: KieModule was added: FileKieModule[releaseId=org.default:artifact:1.0.0-SNAPSHOT,file=C:\Amoolya\workspace\maventest\AsyncProcess\bin]

      Oct 17, 2016 4:27:53 PM org.drools.compiler.kie.builder.impl.ClasspathKieProject notifyKieModuleFound

      INFO: Found kmodule: jar:file:/C:/Amoolya/jbpm-installer/runtime/drools-pmml-6.3.0.Final.jar!/META-INF/kmodule.xml

      Oct 17, 2016 4:27:53 PM org.drools.compiler.kie.builder.impl.KieRepositoryImpl addKieModule

      INFO: KieModule was added: ZipKieModule[releaseId=org.drools:drools-pmml:6.3.0.Final,file=C:\Amoolya\jbpm-installer\runtime\drools-pmml-6.3.0.Final.jar]

      Oct 17, 2016 4:27:54 PM org.drools.compiler.kie.builder.impl.AbstractKieModule buildKnowledgePackages

      WARNING: No files found for KieBase kbase, searching folder C:\Amoolya\workspace\maventest\AsyncProcess\bin

      0    [main] WARN  org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl  - HHH000402: Using Hibernate built-in connection pool (not for production use!)

      Oct 17, 2016 4:27:57 PM bitronix.tm.BitronixTransactionManager logVersion

      INFO: Bitronix Transaction Manager version 2.1.4

      Oct 17, 2016 4:27:57 PM bitronix.tm.Configuration buildServerIdArray

      WARNING: cannot get this JVM unique ID. Make sure it is configured and you only use ASCII characters. Will use IP address instead (unsafe for production usage!).

      Oct 17, 2016 4:27:57 PM bitronix.tm.Configuration buildServerIdArray

      INFO: JVM unique ID: <16.169.150.163>

      Oct 17, 2016 4:27:58 PM bitronix.tm.journal.DiskJournal open

      WARNING: active log file is unclean, did you call BitronixTransactionManager.shutdown() at the end of the last run?

      Oct 17, 2016 4:28:00 PM bitronix.tm.recovery.Recoverer run

      INFO: recovery committed 0 dangling transaction(s) and rolled back 0 aborted transaction(s) on 1 resource(s) [jdbc/jbpm-ds] (restricted to serverId '16.169.150.163')

      Oct 17, 2016 4:28:01 PM org.drools.core.xml.ExtensibleXmlParser error

      SEVERE: (null: 123, 82): cvc-datatype-valid.1.2.1: '#//@definitions/@diagrams.0/@labelStyle.0' is not a valid value for 'QName'.

      Oct 17, 2016 4:28:01 PM org.drools.core.xml.ExtensibleXmlParser error

      SEVERE: (null: 123, 82): cvc-attribute.3: The value '#//@definitions/@diagrams.0/@labelStyle.0' of attribute 'labelStyle' on element 'bpmndi:BPMNLabel' is not valid with respect to its type, 'QName'.

      Exception in thread "main" java.lang.IllegalArgumentException: Cannot add asset: Process 'AsyncProcess' [com.hp.AsyncProcess]: Task node 'AsyncService' [2] has no task type.,

        at org.jbpm.runtime.manager.impl.SimpleRuntimeEnvironment.addAsset(SimpleRuntimeEnvironment.java:171)

        at org.jbpm.runtime.manager.impl.RuntimeEnvironmentBuilder.addAsset(RuntimeEnvironmentBuilder.java:341)

        at org.jbpm.runtime.manager.impl.RuntimeEnvironmentBuilder.addAsset(RuntimeEnvironmentBuilder.java:74)

        at com.hp.main.ProcessMain.createRuntimeManager(ProcessMain.java:92)

        at com.hp.main.ProcessMain.main(ProcessMain.java:38)

       

       

      i have written junit as well as main class to execute this. both gives the same error. Kindly help.