jbpm-spring-boot-starter-basic: ошибка при создании QueryService - PullRequest
0 голосов
/ 30 мая 2019

Я ввел зависимость jbpm-spring-boot-starter-basic в свой проект Spring Boot, и при попытке запустить его я получаю следующую ошибку:

Caused by: java.lang.IllegalArgumentException: No query defined for that name [getQueryDefinitions]
    at org.hibernate.internal.AbstractSharedSessionContract.buildQueryFromName (AbstractSharedSessionContract.java:822)
    at org.hibernate.internal.AbstractSharedSessionContract.createNamedQuery (AbstractSharedSessionContract.java:801)
    at org.hibernate.internal.AbstractSessionImpl.createNamedQuery (AbstractSessionImpl.java:23)
    at org.jbpm.shared.services.impl.JpaPersistenceContext.queryInTransaction (JpaPersistenceContext.java:71)
    at org.jbpm.shared.services.impl.commands.QueryNameCommand.execute (QueryNameCommand.java:48)
    at org.jbpm.shared.services.impl.TransactionalCommandService.execute (TransactionalCommandService.java:76)
    at org.kie.spring.jbpm.services.SpringTransactionalCommandService.execute (SpringTransactionalCommandService.java:74)
    at org.jbpm.kie.services.impl.query.QueryServiceImpl.init (QueryServiceImpl.java:165)
    at org.jbpm.springboot.autoconfigure.JBPMAutoConfiguration.queryService (JBPMAutoConfiguration.java:409)
    at org.jbpm.springboot.autoconfigure.JBPMAutoConfiguration$$EnhancerBySpringCGLIB$$8f7b91bc.CGLIB$queryService$21 (<generated>)
    at org.jbpm.springboot.autoconfigure.JBPMAutoConfiguration$$EnhancerBySpringCGLIB$$8f7b91bc$$FastClassBySpringCGLIB$$d09c0110.invoke (<generated>)
    at org.springframework.cglib.proxy.MethodProxy.invokeSuper (MethodProxy.java:244)
    at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept (ConfigurationClassEnhancer.java:363)
    at org.jbpm.springboot.autoconfigure.JBPMAutoConfiguration$$EnhancerBySpringCGLIB$$8f7b91bc.queryService (<generated>)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate (SimpleInstantiationStrategy.java:154)
    at org.springframework.beans.factory.support.ConstructorResolver.instantiate (ConstructorResolver.java:622)
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod (ConstructorResolver.java:607)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod (AbstractAutowireCapableBeanFactory.java:1321)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance (AbstractAutowireCapableBeanFactory.java:1160)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:555)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:515)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0 (AbstractBeanFactory.java:320)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:318)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:199)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons (DefaultListableBeanFactory.java:849)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization (AbstractApplicationContext.java:877)
    at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:549)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh (ServletWebServerApplicationContext.java:142)
    at org.springframework.boot.SpringApplication.refresh (SpringApplication.java:775)
    at org.springframework.boot.SpringApplication.refreshContext (SpringApplication.java:397)
    at org.springframework.boot.SpringApplication.run (SpringApplication.java:316)
    at org.springframework.boot.SpringApplication.run (SpringApplication.java:1260)
    at org.springframework.boot.SpringApplication.run (SpringApplication.java:1248)
    at com.mydomain.web.Application.main (Application.java:18)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run (AbstractRunMojo.java:558)
    at java.lang.Thread.run (Thread.java:748)

Я получаю, что пытается найти именованный запрос с именем 'getQueryDefinitions', но я предоставляю это или я пропускаю зависимость?Если я должен это предоставить, зачем мне это нужно?

...