[jboss-jira] [JBoss JIRA] (DROOLS-1335) Classpath is not checked for Kie Module ReleaseId

Jan Hrcek (JIRA) issues at jboss.org
Tue Oct 25 02:47:00 EDT 2016


    [ https://issues.jboss.org/browse/DROOLS-1335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13311183#comment-13311183 ] 

Jan Hrcek commented on DROOLS-1335:
-----------------------------------

Hi [~mfusco],
the change introduced in your commit is now causing errors when building & deploying containers to kie-server.
To be specific I see the following stacktrace from kie-server when trying to build&deploy simplest project.

Not sure if this requires fixing on drools-compiler or on kie-server side, so feel free to reassign this..


{noformat}
08:29:29,338 ERROR [org.kie.server.services.impl.KieServerImpl] (default task-11) Error creating container 'abn_1.0' for module 'demo:abn:1.0': java.lang.ClassCastException: org.kie.server.api.model.ReleaseId cannot be cast to org.drools.compiler.kproject.ReleaseIdImpl
	at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.checkClasspathForKieModule(KieRepositoryImpl.java:156)
	at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.getKieModule(KieRepositoryImpl.java:136)
	at org.drools.compiler.kie.builder.impl.KieRepositoryImpl.getKieModule(KieRepositoryImpl.java:119)
	at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:184)
	at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:176)
	at org.kie.server.services.impl.KieServerImpl.createContainer(KieServerImpl.java:245)
{noformat}


> Classpath is not checked for Kie Module ReleaseId
> -------------------------------------------------
>
>                 Key: DROOLS-1335
>                 URL: https://issues.jboss.org/browse/DROOLS-1335
>             Project: Drools
>          Issue Type: Bug
>          Components: kie server
>    Affects Versions: 6.4.0.Final, 6.5.0.CR2, 7.0.0.Beta2
>            Reporter: Chadi El Masri
>            Assignee: Mario Fusco
>             Fix For: 7.0.0.Beta3
>
>         Attachments: 0001-Implement-the-method-to-read-the-KieModule-from-clas.patch
>
>
> Injecting a ksession annotated with a particular @KReleaseId is not able to read the passed release id from the classpath (the part that does that is not implemented).
> The bug is here: https://github.com/droolsjbpm/drools/blob/6.4.0.Final/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieRepositoryImpl.java#L123-L126
> Patch attached.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list