bauna / drools-gorm Goto Github PK
View Code? Open in Web Editor NEWIt provides persistent storage for Drools and jBPM 5 using Grails GORM
Home Page: http://grails.org/plugin/drools-gorm
License: Apache License 2.0
It provides persistent storage for Drools and jBPM 5 using Grails GORM
Home Page: http://grails.org/plugin/drools-gorm
License: Apache License 2.0
Hello,
There is actually problems with drools 5.3 and jbpm 5.2. We get errors like:
ERROR context.GrailsContextLoader - Error executing bootstraps: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.codehaus.groovy.grails.orm.hibernate.cfg.GrailsAnnotationConfiguration]: Constructor threw exception; nested exception is java.lang.NoSuchFieldError: INSTANCE
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.codehaus.groovy.grails.orm.hibernate.cfg.GrailsAnnotationConfiguration]: Constructor threw exception; nested exception is java.lang.NoSuchFieldError: INSTANCE
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.codehaus.groovy.grails.orm.hibernate.cfg.GrailsAnnotationConfiguration]: Constructor threw exception; nested exception is java.lang.NoSuchFieldError: INSTANCE
... 5 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.codehaus.groovy.grails.orm.hibernate.cfg.GrailsAnnotationConfiguration]: Constructor threw exception; nested exception is java.lang.NoSuchFieldError: INSTANCE
... 5 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.codehaus.groovy.grails.orm.hibernate.cfg.GrailsAnnotationConfiguration]: Constructor threw exception; nested exception is java.lang.NoSuchFieldError: INSTANCE
... 5 more
Caused by: java.lang.NoSuchFieldError: INSTANCE
... 5 more
I have tried to run drools-gorm example and plugin validation tests and get the same error on 2.1.0 of grails.
Note that I had to exclude hibernate-annotations to get the app to run.
Any idea why this would be happening?
The tests all successfully pass in 1.3.9 not sure why this is failing.
Full stacktrace
Around line 60 of grails-app\domain\org\drools\gorm\session\SessionInfoDomain.groovy
57:
58: def beforeInsert() {
59: this.lastModificationDate = new Date()
60: Set updates = env.get(GORM_UPDATE_SET);
61: updates.add(this)
62: }
63:
Around line 86 of grails-app\services\org\drools\gorm\GormDomainService.groovy
83:
84: // common --------------------------
85: def saveDomain(domainObject) {
86: if(!domainObject.save(flush: true)) {
87: throw new IllegalArgumentException("Object of '${domainObject.class.simpleName}' couldn't be saved because of validation errors: "+ domainObject.errors.toString())
88: }
89: }
Around line 122 of SingleSessionCommandService.java
119: try {
120: registerRollbackSync();
121:
122: GrailsIntegration.getGormDomainService().saveDomain(this.sessionInfo);
123: updateBlobs(false);
124: txManager.commit(status);
125: } catch ( Exception t1 ) {
Around line 123 of KnowledgeStoreServiceImpl.java
120: Constructor< ? extends CommandExecutor> constructor = serviceClass.getConstructor( KnowledgeBase.class,
121: KnowledgeSessionConfiguration.class,
122: Environment.class );
123: return constructor.newInstance( kbase,
124: conf,
125: env );
126: } catch ( SecurityException e ) {
Around line 63 of KnowledgeStoreServiceImpl.java
60: throw new IllegalArgumentException( "Environment cannot be null" );
61: }
62:
63: return new CommandBasedStatefulKnowledgeSession( (CommandService) buildCommanService( kbase,
64: mergeConfig( configuration ),
65: environment ) );
66: }
Around line 86 of grails-app\services\com\transatron\jbpm\JbpmService.groovy
83: def kb = createKbase()
84: def gormSessConfig = getGORMSessionConfig()
85: if(kb != null && gormSessConfig != null){
86: StatefulKnowledgeSession ksession = kstore.newStatefulKnowledgeSession(kb, gormSessConfig, env)
87:
88: ProcessInstance pi = ksession.startProcess(processId)
89:
Around line 9 of grails-app\controllers\com\transatron\bp\CallJBPMController.groovy
6:
7: def jbpmService
8: def index() {
9: jbpmService.startProcess('com.bauna.droolsjbpm.gorm.hello')
10: render text: "Kbase", contentType: "text/plain"
11:
12: }
and the trace
Trace
Line | Method
->> 60 | beforeInsert in SessionInfoDomain.groovy
| 46 | onApplicationEvent in org.grails.datastore.mapping.engine.event.AbstractPersistenceEventListener
| 86 | saveDomain . . . . . . . . in GormDomainService.groovy
| 122 | in SingleSessionCommandService.java
| 123 | buildCommanService . . . . in KnowledgeStoreServiceImpl.java
| 63 | newStatefulKnowledgeSession in ''
| 86 | startProcess . . . . . . . in JbpmService.groovy
| 9 | index in CallJBPMController.groovy
| 886 | runTask . . . . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run in ''
^ 662 | run . . . . . . . . . . . . in java.lang.Thread
I'm try to run Drools Gorm under Grails 1.3.7 + Java 1.7 64 bits and one error appears when i try to run-app :
Dialect error 1.7
I am getting some errors trying to install the plugins for grails 2.2:
Does anyone know how to resolve this in Grails 2.2
According to the 'Secure Data Binding With Grails' post http://spring.io/blog/2012/03/28/secure-data-binding-with-grails/ transients properties of Domain classes doesn't take part in constructors of class. So this plugin doesn't work in Grails> 2.0.2. What is the best way to resolve it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.