Kogito 1.12.0.Final Postgres Persistence

285 views
Skip to first unread message

Scott Gute

unread,
Oct 27, 2021, 1:03:12 PM10/27/21
to Kogito development mailing list
I generated a project using the kogito-spring-boot-archetype. The project creates successfully, but when trying to build via command line, I get the following error:

[ERROR] Failed to execute goal org.kie.kogito:kogito-maven-plugin:1.12.0.Final:process-model-classes (default-process-model-classes) on project gsu-kogito-service: Error during processing model classes: [org/kie/kogito/persistence/KogitoProcessInstancesFactoryImpl.java (13:9) : no suitable constructor found for KogitoProcessInstancesFactory(<nulltype>)
[ERROR]     constructor org.kie.kogito.persistence.KogitoProcessInstancesFactory.KogitoProcessInstancesFactory() is not applicable
[ERROR]       (actual and formal argument lists differ in length)
[ERROR]     constructor org.kie.kogito.persistence.KogitoProcessInstancesFactory.KogitoProcessInstancesFactory(io.vertx.pgclient.PgPool,java.lang.Boolean,java.lang.Long) is not applicable
[ERROR]       (actual and formal argument lists differ in length)]

Looking for some help as to why I can't build this project. Again, I have changed nothing, after I generated the project, if I take the kogito-addons-persistence-postgresql out, it builds. So feel I am missing something. Anyone with any recommendations?

Tiago Dolphine

unread,
Oct 27, 2021, 2:45:59 PM10/27/21
to kogito-de...@googlegroups.com
Scott, can you provide more information or share a reproducer? How is your application.properties? you need to have set kogito.persistence.type=postgresql alongside with the database url like kogito.persistence.postgresql.connection.uri=postgresql://kogito-user:kogito-pass@localhost:5432/kogito.
You can take a look at this example https://github.com/kiegroup/kogito-examples/tree/stable/process-postgresql-persistence-springboot for more information.

Tiago Dolphine

Senior Software Engineer

Red Hat

tdol...@redhat.com   



--
You received this message because you are subscribed to the Google Groups "Kogito development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kogito-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kogito-development/439622fb-cf75-4f89-bf8c-c5e49dabb5e2n%40googlegroups.com.

Scott Gute

unread,
Oct 27, 2021, 2:57:03 PM10/27/21
to Kogito development mailing list
That seemed to fix my problem, had the type set to jdbc. Thank you very much. Figured it was something I was just overlooking. 
Reply all
Reply to author
Forward
0 new messages