Announcement Announcement Module
Collapse
No announcement yet.
Running TaskExecutorLauncher Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Running TaskExecutorLauncher

    Hi,

    In JMX, the following error is seen. Can anyone help in solving the same. I am not able to receive any notification.
    Code:
    javax.management.AttributeNotFoundException: getAttribute failed: NotificationPublisher is not readable 
    	at javax.management.modelmbean.RequiredModelMBean.getAttribute(RequiredModelMBean.java:1313)
    	at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.getAttribute(DynamicMetaDataImpl.java:96)
    	at com.sun.jmx.mbeanserver.MetaDataImpl.getAttribute(MetaDataImpl.java:181)
    	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:638)
    	at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:659)
    	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1385)
    	at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
    	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1245)
    	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1341)
    	at javax.management.remote.rmi.RMIConnectionImpl.getAttribute(RMIConnectionImpl.java:597)
    	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:585)
    	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
    	at sun.rmi.transport.Transport$1.run(Transport.java:153)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
    	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
    	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
    	at java.lang.Thread.run(Thread.java:595)
    	at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
    	at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
    	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
    	at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source)
    	at javax.management.remote.rmi.RMIConnectionImpl_Stub.getAttribute(Unknown Source)
    	at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.getAttribute(RMIConnector.java:857)
    	at net.jmesnil.jmx.resources.MBeanAttributeInfoWrapper.getValue(MBeanAttributeInfoWrapper.java:38)
    	at net.jmesnil.jmx.ui.internal.editors.AttributeDetails.update(AttributeDetails.java:195)
    	at net.jmesnil.jmx.ui.internal.editors.AttributeDetails.selectionChanged(AttributeDetails.java:164)
    	at org.eclipse.ui.forms.DetailsPart$1.run(DetailsPart.java:277)
    	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
    	at org.eclipse.ui.forms.DetailsPart.showPage(DetailsPart.java:264)
    	at org.eclipse.ui.forms.DetailsPart.update(DetailsPart.java:237)
    	at org.eclipse.ui.forms.DetailsPart.selectionChanged(DetailsPart.java:222)
    	at org.eclipse.ui.forms.ManagedForm.fireSelectionChanged(ManagedForm.java:146)
    	at net.jmesnil.jmx.ui.internal.editors.AttributesSection$1.selectionChanged(AttributesSection.java:64)
    	at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
    	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    	at org.eclipse.core.runtime.Platform.run(Platform.java:843)
    	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
    	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149)
    	at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
    	at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:1976)
    	at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1577)
    	at org.eclipse.jface.viewers.TableViewer.setSelection(TableViewer.java:1114)
    	at net.jmesnil.jmx.ui.internal.editors.AttributesSection.setFormInput(AttributesSection.java:81)
    	at net.jmesnil.jmx.ui.internal.editors.AttributesPage.selectReveal(AttributesPage.java:101)
    	at org.eclipse.ui.forms.editor.FormEditor.selectReveal(FormEditor.java:564)
    	at net.jmesnil.jmx.ui.internal.EditorUtils.revealInEditor(EditorUtils.java:90)
    	at net.jmesnil.jmx.ui.internal.views.explorer.MBeanExplorer$3.doubleClick(MBeanExplorer.java:229)
    	at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:796)
    	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    	at org.eclipse.core.runtime.Platform.run(Platform.java:843)
    	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
    	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149)
    	at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:794)
    	at org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:1227)
    	at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1158)
    	at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:223)
    	at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:220)
    	at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:281)
    	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
    	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
    	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
    	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
    	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
    	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
    	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
    	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
    	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    	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:585)
    	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    	at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    	at org.eclipse.core.launcher.Main.run(Main.java:977)
    	at org.eclipse.core.launcher.Main.main(Main.java:952)

  • #2
    What do you mean "in JMX"? Where did you see this stack trace, and when? How did you configure the MBean? Are you using the jmxLauncher from the samples project?

    Comment


    • #3
      Re.

      I am using TaskExecutorLauncher and tehn connecting with Jconsole. On connecting, under Mbeans tab, I saw two classes Joblauncher and notificationPublisher. I could run and stop jobs using the operations of Joblauncher but when I see notificationPublisher's attribute called NotificationPublisher, it shows unavailable and also displays the error posted in the previous post.

      Comment

      Working...
      X