Effective October 27, 2012, online and email support for FuseSource products will move to Red Hat support channels. For more information, please see the JIRA Migration to Red Hat FAQ.
As of October 27th, please open all new issues in the Red Hat Customer Portal .
Issue Details (XML | Word | Printable)

Key: ESB-1628
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Torsten Mielke
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
FUSE ESB

ServiceMix hangs when installing a more complex feature.

Created: 03/Feb/12 03:41 PM   Updated: 24/Feb/12 04:22 PM
Component/s: Core
Affects Version/s: 4.4.1-fuse-01-20
Fix Version/s: 4.5.0.fuse-7-xxx

File Attachments: 1. XML File features-4.4.1-fuse-01-20.xml (4 kB)
2. Text File StackTraces.txt (8 kB)



 Description  « Hide
When installing the attached feature, the ServiceMix console will hang and not return. In addition the CPU going spinning.
To reproduce:

The console will log this error:

karaf@root> features:install hangsup-smx-all-features
Refreshing bundles org.springframework.aop (79), org.springframework.context (75), org.apache.activemq.activemq-pool (53), org.springframework.transaction (92), org.apache.activemq.activemq-spring (86)
ERROR: Bundle org.springframework.osgi.extender [84] Error stopping bundle. (java.lang.NoClassDefFoundError: org/osgi/framework/ServiceRegistration)
java.lang.NoClassDefFoundError: org/osgi/framework/ServiceRegistration
	at org.springframework.osgi.util.OsgiServiceUtils.unregisterService(OsgiServiceUtils.java:41)
	at org.springframework.osgi.extender.internal.support.NamespaceManager.unregisterResolverService(NamespaceManager.java:195)
	at org.springframework.osgi.extender.internal.support.NamespaceManager.destroy(NamespaceManager.java:223)
	at org.springframework.osgi.extender.internal.activator.ContextLoaderListener.shutdown(ContextLoaderListener.java:547)
	at org.springframework.osgi.extender.internal.activator.ContextLoaderListener.stop(ContextLoaderListener.java:431)
	at org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:651)
	at org.apache.felix.framework.Felix.stopBundle(Felix.java:2225)
	at org.apache.felix.framework.Felix$RefreshHelper.stop(Felix.java:4573)
	at org.apache.felix.framework.Felix.refreshPackages(Felix.java:3590)
	at org.apache.felix.framework.PackageAdminImpl.run(PackageAdminImpl.java:365)
	at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.ClassNotFoundException: org.osgi.framework.ServiceRegistration not found by org.springframework.osgi.core [81]
	at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:812)
	at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:72)
	at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1806)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	... 11 more

Interestingly, if all of the bundles of this feature are installed manually via the console, then there is no problem.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Torsten Mielke added a comment - 03/Feb/12 03:56 PM - edited
Found the following threads showing up in a funny stated when attaching jvisualvm to the hung SMX instance (see attached file StackTraces.txt).

Thread Blueprint-Extender-2 seems to be cycling from active to blocking but does never finish its call to NamespaceHandlerRegistryImpl.getNamespaceHandlers().
The threads Blueprint-Extender-1 and -3 are blocked all the time waiting on the lock that Blueprint-Extender-2 owns.