You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by iamactivemquser <an...@consol.de> on 2013/02/18 14:22:37 UTC

ActiveMQ 5.8: Failed to execute purge task

Hi all,

In our project we have upgraded from ActiveMQ 5.5.1 to 5.8, and now with
this new version, we cannot purge the queues.

The problem is:

ERROR: java.lang.RuntimeException: Failed to execute purge task. Reason:
javax.management.ReflectionException: No such operation: purge
java.lang.RuntimeException: Failed to execute purge task. Reason:
javax.management.ReflectionException: No such operation: purge
	at
org.apache.activemq.console.command.PurgeCommand.runTask(PurgeCommand.java:140)
	at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
	at
org.apache.activemq.console.command.AbstractJmxCommand.execute(AbstractJmxCommand.java:387)
	at
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:150)
	at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
	at
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
....
Caused by: java.lang.NoSuchMethodException: purge()
	at com.sun.jmx.mbeanserver.PerInterface.noSuchMethod(PerInterface.java:150)
	at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:94)
.....


Has anyone had this problem? Any help would be great :)

Thanks.




--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-5-8-Failed-to-execute-purge-task-tp4663610.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: ActiveMQ 5.8: Failed to execute purge task

Posted by iamactivemquser <an...@consol.de>.
We are waiting for the 5.8.1 release. They have fixed here this problem. But
i don´t know when they are going to release the new version.




--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-5-8-Failed-to-execute-purge-task-tp4663610p4668145.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: ActiveMQ 5.8: Failed to execute purge task

Posted by Jamel ESSOUSSI <ja...@gmail.com>.
Hi,

I have the same problem as you.

Is there a workaround for that.

Regards

-- Jamel ESSOUSSI



--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-5-8-Failed-to-execute-purge-task-tp4663610p4668144.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: ActiveMQ 5.8: Failed to execute purge task

Posted by James Green <ja...@gmail.com>.
This problem will almost certainly prevent us upgrading to 5.8.0.



On 25 February 2013 11:55, Gary Tully <ga...@gmail.com> wrote:

> 5.9.0 is typically a few months away, but we have a few osgi related issues
> with 5.8.0 so I think we will need to do a 5.8.1 towards the end of march
> or early may when all of the osgi related issues are resolved. We don't
> have any solid date at this time.
>
>
> On 25 February 2013 08:56, iamactivemquser <an...@consol.de> wrote:
>
> > Hi gtully,
> >
> > I´ve already seen you have fixed this bug in the trunk :) I´ve built
> > ActiveMQ from this repository, and everything works fine now.
> >
> > Do you know when is planned to release ActiveMQ 5.9.0?
> >
> > Thanks,
> > Ana
> >
> >
> >
> > --
> > View this message in context:
> >
> http://activemq.2283324.n4.nabble.com/ActiveMQ-5-8-Failed-to-execute-purge-task-tp4663610p4664009.html
> > Sent from the ActiveMQ - User mailing list archive at Nabble.com.
> >
>
>
>
> --
> http://redhat.com
> http://blog.garytully.com
>

Re: ActiveMQ 5.8: Failed to execute purge task

Posted by Gary Tully <ga...@gmail.com>.
5.9.0 is typically a few months away, but we have a few osgi related issues
with 5.8.0 so I think we will need to do a 5.8.1 towards the end of march
or early may when all of the osgi related issues are resolved. We don't
have any solid date at this time.


On 25 February 2013 08:56, iamactivemquser <an...@consol.de> wrote:

> Hi gtully,
>
> I´ve already seen you have fixed this bug in the trunk :) I´ve built
> ActiveMQ from this repository, and everything works fine now.
>
> Do you know when is planned to release ActiveMQ 5.9.0?
>
> Thanks,
> Ana
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-5-8-Failed-to-execute-purge-task-tp4663610p4664009.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
http://redhat.com
http://blog.garytully.com

Re: ActiveMQ 5.8: Failed to execute purge task

Posted by iamactivemquser <an...@consol.de>.
Hi gtully,

I´ve already seen you have fixed this bug in the trunk :) I´ve built
ActiveMQ from this repository, and everything works fine now. 

Do you know when is planned to release ActiveMQ 5.9.0?

Thanks,
Ana



--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-5-8-Failed-to-execute-purge-task-tp4663610p4664009.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: ActiveMQ 5.8: Failed to execute purge task

Posted by iamactivemquser <an...@consol.de>.
Where is this fix going to be included: in the next release, in the trunk of
the repository, ...? It´s to know more or less the time is going to last. We
need to decide about doing the upgrade to 5.8 or continue with the old
version.

Thanks.

> ok, that makes sense, thanks for the follow up. this is a regression. can 
> you raise a jira to track this and we will try and resolve asap. 




--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-5-8-Failed-to-execute-purge-task-tp4663610p4663765.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: ActiveMQ 5.8: Failed to execute purge task

Posted by iamactivemquser <an...@consol.de>.
thanks for your quick answer. I´ve already created the JIRA ticket:
https://issues.apache.org/jira/browse/AMQ-4333



--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-5-8-Failed-to-execute-purge-task-tp4663610p4663697.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: ActiveMQ 5.8: Failed to execute purge task

Posted by Gary Tully <ga...@gmail.com>.
ok, that makes sense, thanks for the follow up. this is a regression. can
you raise a jira to track this and we will try and resolve asap.


On 19 February 2013 08:09, iamactivemquser <an...@consol.de> wrote:

> I downloaded the ActiveMQ distro from the website
> (http://activemq.apache.org/activemq-580-release.html).
>
> With then "clean" ActiveMQ (without any queues), i can purge without any
> problem. But when i deploy my Camel application in the normal way (then
> ActiveMQ has now the queues of my application), i cannot purge anymore. I
> receive this "Failed to execute purge task" problem.
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-5-8-Failed-to-execute-purge-task-tp4663610p4663679.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
http://redhat.com
http://blog.garytully.com

Re: ActiveMQ 5.8: Failed to execute purge task

Posted by iamactivemquser <an...@consol.de>.
I downloaded the ActiveMQ distro from the website
(http://activemq.apache.org/activemq-580-release.html).

With then "clean" ActiveMQ (without any queues), i can purge without any
problem. But when i deploy my Camel application in the normal way (then
ActiveMQ has now the queues of my application), i cannot purge anymore. I
receive this "Failed to execute purge task" problem.




--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-5-8-Failed-to-execute-purge-task-tp4663610p4663679.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: ActiveMQ 5.8: Failed to execute purge task

Posted by Gary Tully <ga...@gmail.com>.
i tried this on trunk and it works ok: /bin/activemq purge
so may be there has beeb a fix.
can u verify that you are using ./bin/activemq from the 5.8.0 distro?


On 18 February 2013 15:08, iamactivemquser <an...@consol.de> wrote:

> Hi gtully,
>
> to purge the queues, i´m using the basic command: ./activemq purge. Then I
> don´t understand why this JMX Mbean change could be my problem.
>
> Thanks.
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-5-8-Failed-to-execute-purge-task-tp4663610p4663615.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
http://redhat.com
http://blog.garytully.com

Re: ActiveMQ 5.8: Failed to execute purge task

Posted by iamactivemquser <an...@consol.de>.
Hi gtully,

to purge the queues, i´m using the basic command: ./activemq purge. Then I
don´t understand why this JMX Mbean change could be my problem. 

Thanks.



--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-5-8-Failed-to-execute-purge-task-tp4663610p4663615.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: ActiveMQ 5.8: Failed to execute purge task

Posted by Gary Tully <ga...@gmail.com>.
note that the jmx mbean objectnames have changed in 5.8.0
http://activemq.apache.org/58-migration-guide.html



On 18 February 2013 13:22, iamactivemquser <an...@consol.de> wrote:

> Hi all,
>
> In our project we have upgraded from ActiveMQ 5.5.1 to 5.8, and now with
> this new version, we cannot purge the queues.
>
> The problem is:
>
> ERROR: java.lang.RuntimeException: Failed to execute purge task. Reason:
> javax.management.ReflectionException: No such operation: purge
> java.lang.RuntimeException: Failed to execute purge task. Reason:
> javax.management.ReflectionException: No such operation: purge
>         at
>
> org.apache.activemq.console.command.PurgeCommand.runTask(PurgeCommand.java:140)
>         at
>
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
>         at
>
> org.apache.activemq.console.command.AbstractJmxCommand.execute(AbstractJmxCommand.java:387)
>         at
>
> org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:150)
>         at
>
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
>         at
>
> org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ....
> Caused by: java.lang.NoSuchMethodException: purge()
>         at
> com.sun.jmx.mbeanserver.PerInterface.noSuchMethod(PerInterface.java:150)
>         at
> com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:94)
> .....
>
>
> Has anyone had this problem? Any help would be great :)
>
> Thanks.
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-5-8-Failed-to-execute-purge-task-tp4663610.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
http://redhat.com
http://blog.garytully.com

Re: ActiveMQ 5.8: Failed to execute purge task

Posted by Christian Posta <ch...@gmail.com>.
Try it out on the latest snapshot to verify it works.


On Tue, Jun 25, 2013 at 6:54 AM, Francisco <ci...@iti.upv.es> wrote:

> I'm having the same problem.
>
> In addition, if you use a message selector (like the one to select by
> priority) you will have an error like this one:
>
>
>
> Waiting for 5.8.1...
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-5-8-Failed-to-execute-purge-task-tp4663610p4668558.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Re: ActiveMQ 5.8: Failed to execute purge task

Posted by Francisco <ci...@iti.upv.es>.
I'm having the same problem. 

In addition, if you use a message selector (like the one to select by
priority) you will have an error like this one:



Waiting for 5.8.1... 



--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-5-8-Failed-to-execute-purge-task-tp4663610p4668558.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.