Unknown KieSession name: ksession-process, Build problem for a simple helloworld drools project.

1,494 views
Skip to first unread message

nareshs...@gmail.com

unread,
Jan 2, 2017, 2:35:37 AM1/2/17
to jBPM Usage
I have been trying to compile simple process in drool project. 
I have imported 6.3.0 droolsjbpm-integrateion.distribution Runtime to the eclipse.
When imported didn't enter the following details left them as blank

groupId=
artifactId=
version=

I just ran the project and got the below errors Please suggest if i had done something wrong or a reference to follow up with 6.3 jbpm.
I was currently following : https://www.tutorialspoint.com/jbpm5/jbpm5_components.htm  which is jbpm5.

12:52:47.427 [main] INFO org.drools.compiler.kie.builder.impl.ClasspathKieProject - Found kmodule: file:/C:/Users/kevin/Desktop/Official/SoftWares/jbpm-installer/workspace3/Sample/target/META-INF/kmodule.xml
12:52:47.443 [main] DEBUG org.drools.compiler.kie.builder.impl.ClasspathKieProject - KieModule URL type=file url=/C:/Users/kevin/Desktop/Official/SoftWares/jbpm-installer/workspace3/Sample/target
12:52:47.743 [main] DEBUG org.drools.compiler.kie.builder.impl.ClasspathKieProject - Found and used pom.properties C:\Users\kevin\Desktop\Official\SoftWares\jbpm-installer\workspace3\Sample\target\META-INF\maven\pom.properties
12:52:47.759 [main] ERROR org.drools.compiler.kie.builder.impl.ClasspathKieProject - Unable to build index of kmodule.xml url=file:/C:/Users/kevin/Desktop/Official/SoftWares/jbpm-installer/workspace3/Sample/target/META-INF/kmodule.xml
pom.properties exists but ReleaseId content is malformed
groupId=
artifactId=
version=
12:52:47.761 [main] ERROR org.drools.compiler.kie.builder.impl.KieContainerImpl - Unknown KieSession name: ksession-process
java.lang.NullPointerException
at com.sample.ProcessTest.main(ProcessTest.java:19)


Abhijit Humbe

unread,
Jan 2, 2017, 7:40:01 AM1/2/17
to nareshs...@gmail.com, jBPM Usage
Make sure kieSession name you are using in kmodule.xml is same as you are using in ProcessTest.java to create kieSesson
~~
kContainer.newKieSession("ksession-process");
~~

Abhijit Humbe

--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+unsubscribe@googlegroups.com.
To post to this group, send email to jbpm-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/15d5de91-a76d-4eeb-9150-ef95fcee0f06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

nareshs...@gmail.com

unread,
Jan 2, 2017, 11:09:53 AM1/2/17
to jBPM Usage, nareshs...@gmail.com
Hi Abhijit, I the kieSession name is same in both the places. Attached screen shots for your reference.

Abhijit Humbe

To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.
Screenshot (425).png
Screenshot (424).png

Abhijit Humbe

unread,
Jan 3, 2017, 2:49:13 AM1/3/17
to nareshs...@gmail.com, jBPM Usage
In provided screen shot I cant see this exception. Looks like process is executed without any issue and output from script task is available on console.

Abhijit Humbe

To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+unsubscribe@googlegroups.com.

To post to this group, send email to jbpm-...@googlegroups.com.

Donato Marrazzo

unread,
Jan 3, 2017, 6:01:51 AM1/3/17
to jBPM Usage

naresh softpath

unread,
Jan 4, 2017, 2:40:27 AM1/4/17
to Abhijit Humbe, jBPM Usage
That was the output of different project Abhijit. Please ignore.
Reply all
Reply to author
Forward
0 new messages