Best I can tell, doesn't point to a solution?!?
I see the same problem when attempting to use JPAKnowledgeService.newStatefulKnowledgeSession()
11:35:06,175 ERROR [STDERR] java.lang.IllegalStateException: java.lang.reflect.InvocationTargetException
11:35:06,175 ERROR [STDERR] at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:130)
11:35:06,175 ERROR [STDERR] at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.newStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:54)
11:35:06,175 ERROR [STDERR] at org.drools.persistence.jpa.JPAKnowledgeService.newStatefulKnowledgeSession(JPAKnowledgeService.java:109)
Source code in drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/KnowledgeStoreServiceImpl.java
private CommandExecutor buildCommanService(KnowledgeBase kbase,
KnowledgeSessionConfiguration conf,
Environment env) {
Class< ? extends CommandExecutor> serviceClass = getCommandServiceClass();
try {
Constructor< ? extends CommandExecutor> constructor = serviceClass.getConstructor( KnowledgeBase.class,
KnowledgeSessionConfiguration.class,
Environment.class );
return constructor.newInstance( kbase,
conf,
env );
} catch ( SecurityException e ) {
throw new IllegalStateException( e );
} catch ( NoSuchMethodException e ) {
throw new IllegalStateException( e );
} catch ( IllegalArgumentException e ) {
throw new IllegalStateException( e );
} catch ( InstantiationException e ) {
throw new IllegalStateException( e );
} catch ( IllegalAccessException e ) {
throw new IllegalStateException( e );
} catch ( InvocationTargetException e ) {
throw new IllegalStateException( e );
}
}
I assume JPAKnowledgeService.newStatefulKnowledgeSession() works for some people? Anyone have some hints on I'm doing wrong?