Annotations support for Kie-spring was introduced in 6.1. This was not part
of the 6.0 release.
-Vinod
--
View this message in context:
http://drools.46999.n3.nabble.com/Kie-Spring-integration-tp4030243p4030259.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
We had users report this error while using Eclipse.
I am assuming that this is an error reported by the IDE. Previously, I had
debugged this issue with another user and realized that the code works just
fine (despite the complaints by the IDE). This is due to certain IDE
settings.
If you are using kie-spring, you need a spring XML and not a kmodule.xml
https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/kie-spring/src/test/resources/org/kie/spring/beans-internal2.xml
if you are using kie-spring-annotations, please look at
if you are using a spring XML with annotations please ensure that the
following declaration is available in the XML file
bean id=kiePostProcessor
class=org.kie.spring.annotations.KModuleAnnotationPostProcessor/
Sample:
try changing your kiePostProcessor from
org.kie.spring.KModuleBeanFactoryPostProcessor to the following and then
check if the @Inject works.
bean id=kiePostProcessor
class=org.kie.spring.annotations.KModuleAnnotationPostProcessor/
--
View this message in context:
I have added this functionality and will be submitting a PR.
All attributes of kbase are now capable of understanding SpEL expressions.
--Thanks,
Vinod
--
View this message in context:
Can you take a look at this simple example, and check if this helps?
https://github.com/vinodkiran/kie-springmvc
--
View this message in context:
http://drools.46999.n3.nabble.com/No-setter-found-for-property-kBaseName-in-class-org-kie-spring-factorybeans-KBaseFactoryBean-tp4029143p4029151
Are you having both kmodule.xml and your spring configuration file? With
spring, you can configure all your kie resources without the need for a
separate kmodule.xml.
Can you provide me with the following?
1. Full stack trace
2. your spring configuration file and kmodule.xml
--
View this
Can you provide the entire path of the pom.properties files in your
application?
--
View this message in context:
http://drools.46999.n3.nabble.com/Spring-4-0-Drools-6-0-1-Integration-issue-tp4028052p4028923.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
Steve,
Interesting approach. I am looking through your code.
It seems to me that using the JavaConfig approach would miss some of the
changes introduced in Drools 6.0.
Look at this article by Mark,
http://blog.athico.com/2013/10/configuration-and-convention-based.html
-- Vinod
--
try the following
RulesServiceImpl.java
@Inject
ApplicationContext context;
StatelessKieSession kieSession;
KieBase kiebase;
@PostConstruct
public void postConstruct(){
kieSession = (StatelessKieSession) context.getBean(ksession1);
kieBase = (KieBase)
https://github.com/droolsjbpm/droolsjbpm-integration/pull/80
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-NullPointerException-with-kie-spring-6-0-1-and-Spring-4-0-tp4027854p4027877.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
Andrew,
I am able to reproduce the NPE with spring-boot and Spring 4.0. I am running
some tests locally to isolate the exact cause.
--Vinod
--
View this message in context:
://github.com/vinodkiran/kie-spring-boot)
--Vinod
PS: the reported NPE seems to be related to
https://github.com/spring-projects/spring-boot/pull/41
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-NullPointerException-with-kie-spring-6-0-1-and-Spring-4-0-tp4027854p4027859
Dwipin,
It is difficult to diagnose given the limited information. Can you take a
sample (test) and try running it locally ?
https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/kie-spring/src/test/java/org/kie/spring/tests/KieSpringBasicsTest2.java
- Vinod
--
View this message
Dwipin - Can you post the contents of the log/console ? Also, is your test
project a maven project?
-Vinod
--
View this message in context:
http://drools.46999.n3.nabble.com/DRL-file-not-getting-picked-tp4027476p4027486.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
take a look at
https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/kie-spring/src/test/java/org/kie/spring/tests/KieSpringBasicsTest2.java
-Vinod
--
View this message in context:
http://drools.46999.n3.nabble.com/help-with-drools-6-tp4027460p4027463.html
Sent from the Drools:
Did you have any luck with the Sample Spreadsheet Michael had pointed out?
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-Location-of-ScoreCard-Spreadsheet-File-tp4021435p4021492.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
18 matches
Mail list logo