Giter VIP home page Giter VIP logo

drools-gorm's People

Contributors

bauna avatar diega avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

drools-gorm's Issues

Update to drools 5.4 and jbpm 5.3

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

Getting an error running drools-gorm on grails 2.1.0

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

Drools-Gorm error under Java 1.7

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.