Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-5283

Kogito Build Fails with Persistence ( The type KogitoProcessInstancesFactoryImpl must implement the inherited abstract method ProtoStreamProcessInstancesFactory.proto())

    XMLWordPrintable

Details

    Description

      When Persistence is enabled in POM.xml. The build fails with following Error.

       

      [error]: Build step org.kie.kogito.quarkus.deployment.ProcessesAssetsProcessor#postGenerationProcessing threw an exception: java.lang.IllegalStateException: src/main/java/org/kie/kogito/persistence/KogitoProcessInstancesFactoryImpl.java (4:96) : The type KogitoProcessInstancesFactoryImpl must implement the inherited abstract method ProtoStreamProcessInstancesFactory.proto()
      [ERROR] src/main/java/org/kie/kogito/persistence/KogitoProcessInstancesFactoryImpl.java (4:96) : The type KogitoProcessInstancesFactoryImpl must implement the inherited abstract method ProtoStreamProcessInstancesFactory.proto()
      [ERROR] at org.kie.kogito.quarkus.common.deployment.InMemoryCompiler.compile(InMemoryCompiler.java:100)
      [ERROR] at org.kie.kogito.quarkus.common.deployment.KogitoQuarkusResourceUtils.compileGeneratedSources(KogitoQuarkusResourceUtils.java:140)
      [ERROR] at org.kie.kogito.quarkus.deployment.ProcessesAssetsProcessor.generatePersistenceInfo(ProcessesAssetsProcessor.java:166)
      [ERROR] at org.kie.kogito.quarkus.deployment.ProcessesAssetsProcessor.postGenerationProcessing(ProcessesAssetsProcessor.java:122)
      [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      [ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      [ERROR] at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:920)
      [ERROR] at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
      [ERROR] at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2415)
      [ERROR] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
      [ERROR] at java.base/java.lang.Thread.run(Thread.java:832)
      [ERROR] at org.jboss.threads.JBossThread.run(JBossThread.java:501)

       

      Steps to Reproduce:

      1) Create a Maven project with version 1.6.0.Final for Quarkus

      2) Add following dependencies 
      <dependency>
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-infinispan-client</artifactId>
      </dependency>
      <dependency>
            <groupId>org.kie.kogito</groupId>
             <artifactId>infinispan-persistence-addon</artifactId>
      </dependency>
       
      Add required properties for infinispan in application.properties
       
      #infinspan
      quarkus.infinispan-client.server-list=localhost:11222
      quarkus.infinispan-client.use-auth=true
      quarkus.infinispan-client.auth-username=admin
      quarkus.infinispan-client.auth-password=password

       
       
       
      3) mvn clean install. you will get this error.
       
      If I switch to version 1.5.0 final it works.

      Attachments

        Issue Links

          Activity

            People

              cnicolai@redhat.com Cristiano Nicolai
              anattama Arunkumar Nattamai Hariharan (Inactive)
              Dominik Hanak Dominik Hanak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: