Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-48

ClassCastException between KieBase and KnowledgeBaseImpl while loading persistence session

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.0.0.Final
    • 6.0.0.Alpha9
    • None
    • Hide

      1. create ksession through the new kie api
      2. dispose the ksession
      3. ksession = JPAKnowledgeService.loadStatefulKnowledgeSession(sessionId, kbase, config, env);

      Show
      1. create ksession through the new kie api 2. dispose the ksession 3. ksession = JPAKnowledgeService.loadStatefulKnowledgeSession(sessionId, kbase, config, env);

      The third step causes

      java.lang.ClassCastException: org.jboss.weld.proxies.KieBase$1366014918$Proxy$_$$_WeldClientProxy cannot be cast to org.drools.impl.KnowledgeBaseImpl
      at org.drools.marshalling.impl.ProtobufMarshaller.unmarshall(ProtobufMarshaller.java:102)

      https://github.com/droolsjbpm/drools/blob/master/drools-core/src/main/java/org/drools/marshalling/impl/ProtobufMarshaller.java#L103

              mfusco@redhat.com Mario Fusco
              ibek1@redhat.com Ivo Bek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: