Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
private methods in service
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nish  
View profile   Translate to Translated (View Original)
 More options Nov 24 2011, 6:01 pm
From: Nish <nishantpatel...@gmail.com>
Date: Thu, 24 Nov 2011 15:01:47 -0800 (PST)
Local: Thurs, Nov 24 2011 6:01 pm
Subject: private methods in service
I have a private method defined in a service. When calling it, I get
missingMethodException. Does javamelody not support private methods?

Thanks,
Nish


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Emeric Vernat  
View profile  
 More options Nov 24 2011, 6:18 pm
From: Emeric Vernat <ever...@free.fr>
Date: Fri, 25 Nov 2011 00:18:00 +0100
Subject: Re: [javamelody] private methods in service
Hi,

javamelody has nothing to do with private methods as far as I know.
So javamelody does not seem the cause of the issue at first sight.

By the way, the only missingMethodException(s) I find on the web comes
from .Net or perhaps groovy.
And so, you are perhaps the very first able to use javamelody in .Net or
perhaps you are using the grails plugin.
Is this a miracle or just the javamelody grails plugin?

Bye,
Emeric

Le 25/11/2011 00:01, Nish a crit :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nish  
View profile  
 More options Nov 24 2011, 7:49 pm
From: Nish <nishantpatel...@gmail.com>
Date: Thu, 24 Nov 2011 16:49:10 -0800 (PST)
Local: Thurs, Nov 24 2011 7:49 pm
Subject: Re: private methods in service
Yeah, I am using the grails plugin.

On Nov 24, 6:18 pm, Emeric Vernat <ever...@free.fr> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tgrip  
View profile  
 More options Nov 26 2011, 10:47 am
From: tgrip <theo.g...@googlemail.com>
Date: Sat, 26 Nov 2011 07:47:18 -0800 (PST)
Local: Sat, Nov 26 2011 10:47 am
Subject: Re: private methods in service
Hi Nish,

it is probably some error in your app code, the cause can be obscured
by JavaMelody.
What method is it, and how do you call it?
We are using the Grails plugin without any problem.

Best regards
Theo

On 24 nov, 18:49, Nish <nishantpatel...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nish  
View profile  
 More options Nov 27 2011, 4:02 pm
From: Nish <nishantpatel...@gmail.com>
Date: Sun, 27 Nov 2011 13:02:51 -0800 (PST)
Local: Sun, Nov 27 2011 4:02 pm
Subject: Re: private methods in service
Hello Theo,

Here is how I am executing the method"

class UserService {
    def doStuff(params)     {        if(isAdmin()) { //
missingMethodException because of the grailsmelody plugin         
  ....        }    }
    private def isAdmin() {        ....    }

}

Thanks,
Nish

On Nov 26, 10:47 am, tgrip <theo.g...@googlemail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tgrip  
View profile  
 More options Nov 28 2011, 10:57 am
From: tgrip <theo.g...@googlemail.com>
Date: Mon, 28 Nov 2011 07:57:47 -0800 (PST)
Local: Mon, Nov 28 2011 10:57 am
Subject: Re: private methods in service
Hi Nish,

hmm, it looks strange, it should work as you say it.
I would recommend to add some printlns in order to debug, to see if it
enters the method and what is the value of the parameter.
I was telling you this because it had happened to me too, I got
MissingMethodExceptions, but it was always something wrong with the
parameters.

Best regards
Theo

On Nov 27, 4:02 pm, Nish <nishantpatel...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nish  
View profile  
 More options Nov 28 2011, 12:00 pm
From: Nish <nishantpatel...@gmail.com>
Date: Mon, 28 Nov 2011 09:00:12 -0800 (PST)
Local: Mon, Nov 28 2011 12:00 pm
Subject: Re: private methods in service
I fixed it. It had to do with how method was declared. I am not
exactly sure as to why this fixed the problem.

Failed: private def isAdmin( name, Class c ) {     ....    }
Worked: private def isAdmin( name, c ) {     ....    }

Nish

On Nov 28, 10:57 am, tgrip <theo.g...@googlemail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tgrip  
View profile  
 More options Nov 28 2011, 2:09 pm
From: tgrip <theo.g...@googlemail.com>
Date: Mon, 28 Nov 2011 11:09:25 -0800 (PST)
Local: Mon, Nov 28 2011 2:09 pm
Subject: Re: private methods in service
Cool, this is the kind of problems I was referring to

On Nov 28, 11:00 am, Nish <nishantpatel...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
evernat  
View profile  
 More options Dec 4 2011, 8:15 am
From: evernat <ever...@free.fr>
Date: Sun, 4 Dec 2011 05:15:43 -0800 (PST)
Local: Sun, Dec 4 2011 8:15 am
Subject: Re: private methods in service
Hi,

I have created an issue to track the problem:
http://code.google.com/p/javamelody/issues/detail?id=165

Feel free to submit a patch in the issue.

bye,
Emeric

On 28 nov, 20:09, tgrip <theo.g...@googlemail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »