rabbit plugin stack traces.

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

rabbit plugin stack traces.

a.shneyderman
when I declare services section in rabbtimq config I get the following
stack below. Looking at the code I am not really sure how it would
ever work and RSC has no log declared on and it is not a class that
gets anything injected into it by Grails (unless, I am wrong about
this of course). Is there anything I can do besides submitting a
patch?

2012-10-08 21:55:34,342 ERROR
org.codehaus.groovy.grails.web.context.GrailsContextLoader - Error
executing bootstraps: No such property: log for class:
org.grails.rabbitmq.RabbitServiceConfigurer
groovy.lang.MissingPropertyException: No such property: log for class:
org.grails.rabbitmq.RabbitServiceConfigurer
        at org.grails.rabbitmq.RabbitServiceConfigurer.configureListener(RabbitServiceConfigurer.groovy:167)
        at org.grails.rabbitmq.RabbitServiceConfigurer.configure(RabbitServiceConfigurer.groovy:83)
        at org.grails.rabbitmq.RabbitServiceConfigurer$configure.call(Unknown Source)
        at RabbitmqGrailsPlugin$_closure1.doCall(RabbitmqGrailsPlugin.groovy:120)
        at RabbitmqGrailsPlugin$_closure1.doCall(RabbitmqGrailsPlugin.groovy)
        at grails.spring.BeanBuilder.invokeBeanDefiningClosure(BeanBuilder.java:723)
        at grails.spring.BeanBuilder.beans(BeanBuilder.java:573)
        at grails.spring.BeanBuilder.invokeMethod(BeanBuilder.java:519)
        at org.grails.tomcat.InlineExplodedTomcatServer.doStart(InlineExplodedTomcatServer.groovy:112)
        at org.grails.tomcat.InlineExplodedTomcatServer$doStart.callCurrent(Unknown
Source)
        at org.grails.tomcat.TomcatServer.start(TomcatServer.groovy:97)
        at grails.web.container.EmbeddableServer$start.call(Unknown Source)
        at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy:158)
        at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy)
        at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:280)
        at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
        at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:149)
        at _GrailsRun_groovy$_run_closure5.call(_GrailsRun_groovy)
        at _GrailsRun_groovy.runInline(_GrailsRun_groovy:116)
        at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
        at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:59)
        at RunApp$_run_closure1.doCall(RunApp.groovy:33)
        at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)

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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: rabbit plugin stack traces.

Jeff Brown-4

On Oct 8, 2012, at 3:01 PM, Alex Shneyderman wrote:

> when I declare services section in rabbtimq config I get the following
> stack below. Looking at the code I am not really sure how it would
> ever work and RSC has no log declared on and it is not a class that
> gets anything injected into it by Grails (unless, I am wrong about
> this of course). Is there anything I can do besides submitting a
> patch?
>
> 2012-10-08 21:55:34,342 ERROR
> org.codehaus.groovy.grails.web.context.GrailsContextLoader - Error
> executing bootstraps: No such property: log for class:
> org.grails.rabbitmq.RabbitServiceConfigurer
> groovy.lang.MissingPropertyException: No such property: log for class:
> org.grails.rabbitmq.RabbitServiceConfigurer
> at org.grails.rabbitmq.RabbitServiceConfigurer.configureListener(RabbitServiceConfigurer.groovy:167)
> at org.grails.rabbitmq.RabbitServiceConfigurer.configure(RabbitServiceConfigurer.groovy:83)
> at org.grails.rabbitmq.RabbitServiceConfigurer$configure.call(Unknown Source)
> at RabbitmqGrailsPlugin$_closure1.doCall(RabbitmqGrailsPlugin.groovy:120)
> at RabbitmqGrailsPlugin$_closure1.doCall(RabbitmqGrailsPlugin.groovy)
> at grails.spring.BeanBuilder.invokeBeanDefiningClosure(BeanBuilder.java:723)
> at grails.spring.BeanBuilder.beans(BeanBuilder.java:573)
> at grails.spring.BeanBuilder.invokeMethod(BeanBuilder.java:519)
> at org.grails.tomcat.InlineExplodedTomcatServer.doStart(InlineExplodedTomcatServer.groovy:112)
> at org.grails.tomcat.InlineExplodedTomcatServer$doStart.callCurrent(Unknown
> Source)
> at org.grails.tomcat.TomcatServer.start(TomcatServer.groovy:97)
> at grails.web.container.EmbeddableServer$start.call(Unknown Source)
> at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy:158)
> at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy)
> at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:280)
> at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
> at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:149)
> at _GrailsRun_groovy$_run_closure5.call(_GrailsRun_groovy)
> at _GrailsRun_groovy.runInline(_GrailsRun_groovy:116)
> at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
> at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:59)
> at RunApp$_run_closure1.doCall(RunApp.groovy:33)
> at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
> at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>


Which version of Grails are you using and which version of the rabbitmq plugin are you using?



JSB
--
Jeff Brown
SpringSource
http://www.springsource.com/

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
http://www.autismspeaks.org/


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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: rabbit plugin stack traces.

a.shneyderman
> Which version of Grails are you using and which version of the rabbitmq plugin are you using?

grails 1.3.9. I am using sources from github and 1.0.0.RC2. Both give
the same error.

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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: rabbit plugin stack traces.

Jeff Brown-4

On Oct 8, 2012, at 4:01 PM, Alex Shneyderman wrote:

>> Which version of Grails are you using and which version of the rabbitmq plugin are you using?
>
> grails 1.3.9. I am using sources from github and 1.0.0.RC2. Both give
> the same error.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>

There is already a JIRA for this.  See http://jira.grails.org/browse/GPRABBITMQ-37.

We will evaluate the situation and either make it work with Grails 1.3.x or update the version dependency to "2.0 > *".  (probably the former)

Thanks.



JSB

--
Jeff Brown
SpringSource
http://www.springsource.com/

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
http://www.autismspeaks.org/


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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: rabbit plugin stack traces.

a.shneyderman
> There is already a JIRA for this.  See http://jira.grails.org/browse/GPRABBITMQ-37.
>
> We will evaluate the situation and either make it work with Grails 1.3.x or update the version dependency to "2.0 > *".  (probably the former)

the fix is trivial. declare log on that class. that is what's done in
org.grails.rabbitmq.RabbitQueueBuilder. A class that is similar in its
lifecycle as the service configurer.

Cheers,
Alex.

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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: rabbit plugin stack traces.

Jeff Brown-4
In reply to this post by a.shneyderman

On Oct 8, 2012, at 4:01 PM, Alex Shneyderman wrote:

>> Which version of Grails are you using and which version of the rabbitmq plugin are you using?
>
> grails 1.3.9. I am using sources from github and 1.0.0.RC2. Both give
> the same error.
>

Can you confirm that the latest code from github appears to work now?

Thanks for the help.



JSB

--
Jeff Brown
SpringSource
http://www.springsource.com/

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
http://www.autismspeaks.org/


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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: rabbit plugin stack traces.

a.shneyderman
Hi, Jeff!


On Mon, Oct 8, 2012 at 11:45 PM, Jeff Brown <[hidden email]> wrote:
> Can you confirm that the latest code from github appears to work now?

No it does not work with the latest github master branch. I had to add
log declaration to the RabbitServiceConfigurer to make it work. here
is the diff that makes the problem go away:

08:21:25 grails-rabbitmq(master) > git diff
src/groovy/org/grails/rabbitmq/RabbitServiceConfigurer.groovy
diff --git a/src/groovy/org/grails/rabbitmq/RabbitServiceConfigurer.groovy
b/src/groovy/org/grails/rabbitmq/RabbitServiceConfigurer.groovy
index f1e7935..ab3791e 100644
--- a/src/groovy/org/grails/rabbitmq/RabbitServiceConfigurer.groovy
+++ b/src/groovy/org/grails/rabbitmq/RabbitServiceConfigurer.groovy
@@ -21,6 +21,7 @@ import org.springframework.amqp.core.AcknowledgeMode
 import org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer
 import org.springframework.amqp.rabbit.listener.adapter.MessageListenerAdapter
 import org.springframework.beans.InvalidPropertyException
+import org.slf4j.LoggerFactory

 /**
  * <p>Configures the Spring beans required to set up a service as an AMQP
@@ -31,6 +32,9 @@ import org.springframework.beans.InvalidPropertyException
  * associated {@link MessageListenerAdapter}.</p>
  */
 class RabbitServiceConfigurer {
+
+    private final static log = LoggerFactory.getLogger(RabbitServiceConfigurer)
+
     public static final String LISTENER_CONTAINER_SUFFIX =
"_MessageListenerContainer"
     public static final String MESSAGE_CONVERTER_OPTION =
"messageConverterBean"



Cheers,
Alex.

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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: rabbit plugin stack traces.

a.shneyderman
Sorry did not realize my local clone is pointing to the fork on
github. I see you fixed GPRABBITMQ-37 with your commit
69cb8644eaff101054c6a2fdcbe556935f4417f1.

So, it works now.

Cheers,
Alex.

On Tue, Oct 9, 2012 at 8:22 AM, Alex Shneyderman
<[hidden email]> wrote:

> Hi, Jeff!
>
>
> On Mon, Oct 8, 2012 at 11:45 PM, Jeff Brown <[hidden email]> wrote:
>> Can you confirm that the latest code from github appears to work now?
>
> No it does not work with the latest github master branch. I had to add
> log declaration to the RabbitServiceConfigurer to make it work. here
> is the diff that makes the problem go away:
>
> 08:21:25 grails-rabbitmq(master) > git diff
> src/groovy/org/grails/rabbitmq/RabbitServiceConfigurer.groovy
> diff --git a/src/groovy/org/grails/rabbitmq/RabbitServiceConfigurer.groovy
> b/src/groovy/org/grails/rabbitmq/RabbitServiceConfigurer.groovy
> index f1e7935..ab3791e 100644
> --- a/src/groovy/org/grails/rabbitmq/RabbitServiceConfigurer.groovy
> +++ b/src/groovy/org/grails/rabbitmq/RabbitServiceConfigurer.groovy
> @@ -21,6 +21,7 @@ import org.springframework.amqp.core.AcknowledgeMode
>  import org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer
>  import org.springframework.amqp.rabbit.listener.adapter.MessageListenerAdapter
>  import org.springframework.beans.InvalidPropertyException
> +import org.slf4j.LoggerFactory
>
>  /**
>   * <p>Configures the Spring beans required to set up a service as an AMQP
> @@ -31,6 +32,9 @@ import org.springframework.beans.InvalidPropertyException
>   * associated {@link MessageListenerAdapter}.</p>
>   */
>  class RabbitServiceConfigurer {
> +
> +    private final static log = LoggerFactory.getLogger(RabbitServiceConfigurer)
> +
>      public static final String LISTENER_CONTAINER_SUFFIX =
> "_MessageListenerContainer"
>      public static final String MESSAGE_CONVERTER_OPTION =
> "messageConverterBean"
>
>
>
> Cheers,
> Alex.

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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: rabbit plugin stack traces.

thekalinga
Hi,

Looks like this fix is still not part of RC1. Is there a plan to move this fix to RC1/release RC2 with all other fixes (including this fix)