Bug 1178936 - Incorrect path handling results in "Duplicate path element ..." OperationFailedRuntimeException
Summary: Incorrect path handling results in "Duplicate path element ..." OperationFail...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: JMX
Version: 6.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ER1
: EAP 6.4.0
Assignee: Stuart Douglas
QA Contact:
URL:
Whiteboard:
: 1179387 (view as bug list)
Depends On: 1179387
Blocks: 1113908
TreeView+ depends on / blocked
 
Reported: 2015-01-05 17:01 UTC by Josef Cacek
Modified: 2019-08-19 12:40 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-19 12:40:42 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Josef Cacek 2015-01-05 17:01:43 UTC
When using jconsole I can see many throws of OperationFailedRuntimeException with message "Duplicate path element". 

Many of MBean operations is not possible because of this issue.

EAP call stack (6.4.0.DR13):

Daemon System Thread [RMI TCP Connection(1)-127.0.0.1] (Suspended (exception OperationFailedRuntimeException))	
	owns: RMIJRMPServerImpl  (id=223)	
	owns: RMIConnectionImpl  (id=224)	
	PathAddress.pathAddress(List<PathElement>) line: 125	
	PathAddress.append(List<PathElement>) line: 219	
	PathAddress.append(PathAddress) line: 239	
	ConcreteResourceRegistration(AbstractResourceRegistration).getSubRegistration(PathAddress) line: 420	
	ConcreteResourceRegistration(AbstractResourceRegistration).getSubModel(PathAddress) line: 412	
	ConcreteResourceRegistration(AbstractResourceRegistration).getSubModel(PathAddress) line: 56	
	ObjectNameAddressUtil.searchPathAddress(PathAddress, ImmutableManagementResourceRegistration, Map<String,String>) line: 152	
	ObjectNameAddressUtil.searchPathAddress(PathAddress, ImmutableManagementResourceRegistration, Map<String,String>) line: 156	
	ObjectNameAddressUtil.searchPathAddress(PathAddress, ImmutableManagementResourceRegistration, Map<String,String>) line: 156	
	ObjectNameAddressUtil.toPathAddress(String, ImmutableManagementResourceRegistration, ObjectName) line: 141	
	ModelControllerMBeanHelper.toPathAddress(ObjectName) line: 192	
	ModelControllerMBeanServerPlugin.addNotificationListener(ObjectName, NotificationListener, NotificationFilter, Object) line: 230	
	PluggableMBeanServerImpl.addNotificationListener(ObjectName, NotificationListener, NotificationFilter, Object) line: 159	
	ArrayNotificationBuffer$1.run() line: 668	
	ArrayNotificationBuffer$1.run() line: 666	
	AccessController.doPrivileged(PrivilegedExceptionAction<T>) line: not available [native method]	
	ArrayNotificationBuffer.addNotificationListener(ObjectName, NotificationListener, NotificationFilter, Object) line: 666	
	ArrayNotificationBuffer.addBufferListener(ObjectName) line: 640	
	ArrayNotificationBuffer.createListeners() line: 631	
	ArrayNotificationBuffer.getNotificationBuffer(MBeanServer, Map<String,?>) line: 153	
	RMIJRMPServerImpl(RMIServerImpl).getNotifBuffer() line: 525	
	RMIConnectionImpl.getServerNotifFwd() line: 201	
	RMIConnectionImpl.doOperation(int, Object[]) line: 1523	
	RMIConnectionImpl.access$300(RMIConnectionImpl, int, Object[]) line: 97	
	RMIConnectionImpl$PrivilegedOperation.run() line: 1328	
	RMIConnectionImpl.doPrivilegedOperation(int, Object[], Subject) line: 1420	
	RMIConnectionImpl.addNotificationListeners(ObjectName[], MarshalledObject[], Subject[]) line: 1023	
	NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]	
	NativeMethodAccessorImpl.invoke(Object, Object[]) line: 57	
	DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 43	
	Method.invoke(Object, Object...) line: 606	
	UnicastServerRef2(UnicastServerRef).dispatch(Remote, RemoteCall) line: 322	
	Transport$1.run() line: 177	
	Transport$1.run() line: 174	
	AccessController.doPrivileged(PrivilegedExceptionAction<T>, AccessControlContext) line: not available [native method]	
	TCPTransport(Transport).serviceCall(RemoteCall) line: 173	
	TCPTransport.handleMessages(Connection, boolean) line: 556	
	TCPTransport$ConnectionHandler.run0() line: 811	
	TCPTransport$ConnectionHandler.run() line: 670	
	ThreadPoolExecutor.runWorker(ThreadPoolExecutor$Worker) line: 1145	
	ThreadPoolExecutor$Worker.run() line: 615	
	Thread.run() line: 745	

Steps to Reproduce:
Use steps from bug 1113908 comment 0.
The exception class is not on client classpath, so you will only see message "ClassNotFoundException: org.jboss.as.controller.OperationFailedRuntimeException (no security manager: RMI class loader disabled)"

A better way to see what's happening is to start the EAP with debug enabled and add Exception breakpoint for org.jboss.as.controller.OperationFailedRuntimeException. Then attach to the EAP with jconsole.

Comment 3 Kabir Khan 2015-01-06 17:10:09 UTC
*** Bug 1179387 has been marked as a duplicate of this bug. ***

Comment 4 Kabir Khan 2015-01-06 22:18:33 UTC
Good news, Jeff did it while we were talking earlier :-)

Comment 5 Ondřej Kalman 2015-01-12 13:33:06 UTC
VERIFIED with 6.4.0.ER1


Note You need to log in before you can comment on or make changes to this bug.