History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RHQ-873
Type: Bug Bug
Status: Accepted Accepted
Priority: Critical Critical
Assignee: Ian Springer
Reporter: Joseph Marques
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
RHQ Project

agent-side resource component not created/recreated correctly

Created: 22/Sep/08 01:56 PM   Updated: 13/Oct/08 03:37 PM
Component/s: Agent, Core Server
Affects Version/s: 1.1pre
Fix Version/s: None

Time Tracking:
Not Specified

Date of First Response: 06/Oct/08 04:38 PM


 Description  « Hide
i saw this once before, and i'm seeing it again today. steps to reproduce:

* start server
* start agent
* stop server
* start server
* import the rhq-agent resource
* execute the "Update All Plugins" operation

and you'll get...

org.quartz.JobExecutionException: Failed to execute scheduled operation [ResourceOperationSchedule: resource=[Resource[i
d=500051, type=RHQ Agent, key=marques-custom RHQ Agent, name=marques-custom RHQ Agent, version=1.1.0-SNAPSHOT]],job-name
=[rhq-resource-500051--1971580265-1222109638218], job-group=[rhq-resource-500051], operation-name=[updatePlugins], subje
ct=[org.rhq.core.domain.auth.Subject[id=2,name=rhqadmin]], description=[]] [See nested exception: org.rhq.core.clientapi
.agent.PluginContainerException: Failed to submit invocation request. resource=[500051], operation=[updatePlugins], jobI
d=[rhq-resource-500051--1971580265-1222109638218_=_rhq-resource-500051_=_1222109638421]]
        at org.rhq.enterprise.server.operation.ResourceOperationJob.execute(ResourceOperationJob.java:88)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
* Nested Exception (Underlying Cause) ---------------
org.rhq.core.clientapi.agent.PluginContainerException: Failed to submit invocation request. resource=[500051], operation
=[updatePlugins], jobId=[rhq-resource-500051--1971580265-1222109638218_=_rhq-resource-500051_=_1222109638421]
        at org.rhq.core.pc.operation.OperationManager.invokeOperation(OperationManager.java:150)
        at org.rhq.core.pc.operation.OperationManager.invokeOperation(OperationManager.java:106)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.rhq.enterprise.communications.command.impl.remotepojo.server.RemotePojoInvocationCommandService.execute(R
emotePojoInvocationCommandService.java:184)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27)
        at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)
        at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120)
        at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
        at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:288)
        at $Proxy1.execute(Unknown Source)
        at org.rhq.enterprise.communications.command.server.CommandProcessor.handleIncomingInvocationRequest(CommandProc
essor.java:358)
        at org.rhq.enterprise.communications.command.server.CommandProcessor.invoke(CommandProcessor.java:253)
        at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:734)
        at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:560)
        at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:383)
        at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:165)
Caused by: org.rhq.core.clientapi.agent.PluginContainerException: [Warning] Component does not exist for resource: Resou
rce[id=500051, type=RHQ Agent, key=marques-custom RHQ Agent, name=marques-custom RHQ Agent, version=1.1.0-SNAPSHOT]

        ... 26 more

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Joseph Marques - 22/Sep/08 01:59 PM
actually, the first time i executed the op it worked, but it failed the second time. the reproduction steps might not be completely consistent, but i have seen this over several days now.

Greg Hinkle - 06/Oct/08 04:38 PM
This involves debug oriented and plugin hot-deployment features so its not critical as those features are not commonly used and the workaround is a basic agent restart. Will review for 1.2.