[jboss-user] [jBPM] - Re: jbpm hibernate persistence

Tom Gruschus do-not-reply at jboss.com
Tue Mar 22 14:52:37 EDT 2011


Tom Gruschus [http://community.jboss.org/people/afisboy] created the discussion

"Re: jbpm hibernate persistence"

To view the discussion, visit: http://community.jboss.org/message/594880#594880

--------------------------------------------------------------
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?
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/594880#594880]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110322/2ea1387d/attachment.html 


More information about the jboss-user mailing list