grails & gorm-redis

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

grails & gorm-redis

cazacugmihai
Hi, 

I'm trying to use redis as my datastore but I have some problems:


1. When starting the project, I've got this error: 

 
| Running Grails application
Configuring Spring Security Core ...
... finished configuring Spring Security Core
| Error 2011-12-05 21:26:16,287 [Thread-9] ERROR context.GrailsContextLoader  -
Error executing bootstraps: Error creating bean with name 'asyncApplicationEvent
Multicaster': Cannot resolve reference to bean 'persistenceInterceptor' while se
tting bean property 'persistenceInterceptor'; nested exception is org.springfram
ework.beans.factory.NoSuchBeanDefinitionException: No bean named 'persistenceInt
erceptor' is defined
Message: Error creating bean with name 'asyncApplicationEventMulticaster': Canno
t resolve reference to bean 'persistenceInterceptor' while setting bean property
 'persistenceInterceptor'; nested exception is org.springframework.beans.factory
.NoSuchBeanDefinitionException: No bean named 'persistenceInterceptor' is define
d
   Line | Method
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|   138 | run      in java.util.concurrent.FutureTask
|   886 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker
|   908 | run      in     ''
^   662 | run . .  in java.lang.Thread
Caused by NoSuchBeanDefinitionException: No bean named 'persistenceInterceptor'
is defined
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|   138 | run      in java.util.concurrent.FutureTask
|   886 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker
|   908 | run      in     ''
^   662 | run . .  in java.lang.Thread


2. If I create a dummy persistenceInterceptor and re-run the project, I've got:


| Running Grails application
Configuring Spring Security Core ...
... finished configuring Spring Security Core
| Error 2011-12-05 21:29:22,224 [Thread-10] ERROR context.GrailsContextLoader  -
 Error executing bootstraps: No transactionManager bean configured
Message: No transactionManager bean configured
   Line | Method
->> 567 | withTransaction                  in org.grails.datastore.gorm.GormStat
icApi
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|   275 | call                             in org.grails.datastore.gorm.StaticMe
thodInvokingClosure
|     7 | doCall . . . . . . . . . . . . . in BootStrap$_closure1
|   290 | evaluateEnvironmentSpecificBlock in grails.util.Environment
|   283 | executeForEnvironment . . . . .  in     ''
|   259 | executeForCurrentEnvironment     in     ''
|   303 | innerRun . . . . . . . . . . . . in java.util.concurrent.FutureTask$Sy
nc
|   138 | run                              in java.util.concurrent.FutureTask
|   886 | runTask . . . . . . . . . . . .  in java.util.concurrent.ThreadPoolExe
cutor$Worker
|   908 | run                              in     ''
^   662 | run . . . . . . . . . . . . . .  in java.lang.Thread


I've attached the project to this mail.

Environment:

- jdk 1.6
- grails 2.0.0.RC3
- redis plugin 1.0.0.M9
- redis-gorm plugin 1.0.0.M7

Thanks for your help!
Mihai


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

test.7z (118K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: grails & gorm-redis

Graeme Rocher
Administrator
GORM Redis doesn't yet support Grails 2.0

We'll release an update shortly to address this

Cheers

On Mon, Dec 5, 2011 at 8:34 PM, Mihai Cazacu <[hidden email]> wrote:

> Hi,
>
> I'm trying to use redis as my datastore but I have some problems:
>
>
> 1. When starting the project, I've got this error:
>
>
>>
>> | Running Grails application
>> Configuring Spring Security Core ...
>> ... finished configuring Spring Security Core
>> | Error 2011-12-05 21:26:16,287 [Thread-9] ERROR
>> context.GrailsContextLoader  -
>> Error executing bootstraps: Error creating bean with name
>> 'asyncApplicationEvent
>> Multicaster': Cannot resolve reference to bean 'persistenceInterceptor'
>> while se
>> tting bean property 'persistenceInterceptor'; nested exception is
>> org.springfram
>> ework.beans.factory.NoSuchBeanDefinitionException: No bean named
>> 'persistenceInt
>> erceptor' is defined
>> Message: Error creating bean with name 'asyncApplicationEventMulticaster':
>> Canno
>> t resolve reference to bean 'persistenceInterceptor' while setting bean
>> property
>>  'persistenceInterceptor'; nested exception is
>> org.springframework.beans.factory
>> .NoSuchBeanDefinitionException: No bean named 'persistenceInterceptor' is
>> define
>> d
>>
>>    Line | Method
>> ->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>> |   138 | run      in java.util.concurrent.FutureTask
>> |   886 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker
>> |   908 | run      in     ''
>> ^   662 | run . .  in java.lang.Thread
>> Caused by NoSuchBeanDefinitionException: No bean named
>> 'persistenceInterceptor'
>> is defined
>> ->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
>>
>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>> |   138 | run      in java.util.concurrent.FutureTask
>> |   886 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker
>> |   908 | run      in     ''
>> ^   662 | run . .  in java.lang.Thread
>
>
>
> 2. If I create a dummy persistenceInterceptor and re-run the project, I've
> got:
>
>
>> | Running Grails application
>> Configuring Spring Security Core ...
>> ... finished configuring Spring Security Core
>> | Error 2011-12-05 21:29:22,224 [Thread-10] ERROR
>> context.GrailsContextLoader  -
>>  Error executing bootstraps: No transactionManager bean configured
>> Message: No transactionManager bean configured
>>    Line | Method
>> ->> 567 | withTransaction                  in
>> org.grails.datastore.gorm.GormStat
>> icApi
>>
>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>> |   275 | call                             in
>> org.grails.datastore.gorm.StaticMe
>> thodInvokingClosure
>> |     7 | doCall . . . . . . . . . . . . . in BootStrap$_closure1
>> |   290 | evaluateEnvironmentSpecificBlock in grails.util.Environment
>> |   283 | executeForEnvironment . . . . .  in     ''
>> |   259 | executeForCurrentEnvironment     in     ''
>> |   303 | innerRun . . . . . . . . . . . . in
>> java.util.concurrent.FutureTask$Sy
>> nc
>> |   138 | run                              in
>> java.util.concurrent.FutureTask
>> |   886 | runTask . . . . . . . . . . . .  in
>> java.util.concurrent.ThreadPoolExe
>> cutor$Worker
>> |   908 | run                              in     ''
>> ^   662 | run . . . . . . . . . . . . . .  in java.lang.Thread
>
>
>
> I've attached the project to this mail.
>
> Environment:
>
> - jdk 1.6
> - grails 2.0.0.RC3
> - redis plugin 1.0.0.M9
> - redis-gorm plugin 1.0.0.M7
>
> Thanks for your help!
> Mihai
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>



--
Graeme Rocher
Grails Project Lead
SpringSource - A Division of VMware
http://www.springsource.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: grails & gorm-redis

cazacugmihai
Thanks, Graeme!

On Mon, Dec 5, 2011 at 10:35 PM, Graeme Rocher <[hidden email]> wrote:
GORM Redis doesn't yet support Grails 2.0

We'll release an update shortly to address this

Cheers

On Mon, Dec 5, 2011 at 8:34 PM, Mihai Cazacu <[hidden email]> wrote:
> Hi,
>
> I'm trying to use redis as my datastore but I have some problems:
>
>
> 1. When starting the project, I've got this error:
>
>
>>
>> | Running Grails application
>> Configuring Spring Security Core ...
>> ... finished configuring Spring Security Core
>> | Error 2011-12-05 21:26:16,287 [Thread-9] ERROR
>> context.GrailsContextLoader  -
>> Error executing bootstraps: Error creating bean with name
>> 'asyncApplicationEvent
>> Multicaster': Cannot resolve reference to bean 'persistenceInterceptor'
>> while se
>> tting bean property 'persistenceInterceptor'; nested exception is
>> org.springfram
>> ework.beans.factory.NoSuchBeanDefinitionException: No bean named
>> 'persistenceInt
>> erceptor' is defined
>> Message: Error creating bean with name 'asyncApplicationEventMulticaster':
>> Canno
>> t resolve reference to bean 'persistenceInterceptor' while setting bean
>> property
>>  'persistenceInterceptor'; nested exception is
>> org.springframework.beans.factory
>> .NoSuchBeanDefinitionException: No bean named 'persistenceInterceptor' is
>> define
>> d
>>
>>    Line | Method
>> ->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>> |   138 | run      in java.util.concurrent.FutureTask
>> |   886 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker
>> |   908 | run      in     ''
>> ^   662 | run . .  in java.lang.Thread
>> Caused by NoSuchBeanDefinitionException: No bean named
>> 'persistenceInterceptor'
>> is defined
>> ->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
>>
>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>> |   138 | run      in java.util.concurrent.FutureTask
>> |   886 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker
>> |   908 | run      in     ''
>> ^   662 | run . .  in java.lang.Thread
>
>
>
> 2. If I create a dummy persistenceInterceptor and re-run the project, I've
> got:
>
>
>> | Running Grails application
>> Configuring Spring Security Core ...
>> ... finished configuring Spring Security Core
>> | Error 2011-12-05 21:29:22,224 [Thread-10] ERROR
>> context.GrailsContextLoader  -
>>  Error executing bootstraps: No transactionManager bean configured
>> Message: No transactionManager bean configured
>>    Line | Method
>> ->> 567 | withTransaction                  in
>> org.grails.datastore.gorm.GormStat
>> icApi
>>
>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>> |   275 | call                             in
>> org.grails.datastore.gorm.StaticMe
>> thodInvokingClosure
>> |     7 | doCall . . . . . . . . . . . . . in BootStrap$_closure1
>> |   290 | evaluateEnvironmentSpecificBlock in grails.util.Environment
>> |   283 | executeForEnvironment . . . . .  in     ''
>> |   259 | executeForCurrentEnvironment     in     ''
>> |   303 | innerRun . . . . . . . . . . . . in
>> java.util.concurrent.FutureTask$Sy
>> nc
>> |   138 | run                              in
>> java.util.concurrent.FutureTask
>> |   886 | runTask . . . . . . . . . . . .  in
>> java.util.concurrent.ThreadPoolExe
>> cutor$Worker
>> |   908 | run                              in     ''
>> ^   662 | run . . . . . . . . . . . . . .  in java.lang.Thread
>
>
>
> I've attached the project to this mail.
>
> Environment:
>
> - jdk 1.6
> - grails 2.0.0.RC3
> - redis plugin 1.0.0.M9
> - redis-gorm plugin 1.0.0.M7
>
> Thanks for your help!
> Mihai
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>



--
Graeme Rocher
Grails Project Lead
SpringSource - A Division of VMware
http://www.springsource.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email





--
Mihai Cazacu
Software Engineer
E-mail: [hidden email]
Mobile: +40 745 254 657
Skype: cazacugmihai
Twitter: cazacugmihai