aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hannah Ramlee (JIRA)" <>
Subject [jira] Updated: (ARIES-412) FinalModifierExceptions as a result of Quiesce changes to add proxies for services
Date Tue, 21 Sep 2010 12:03:32 GMT


Hannah Ramlee updated ARIES-412:

    Attachment: quiesce-blueprint-fix.txt

I've attached a fix which should get rid of the FinalModifierExceptions. The fix makes sure
we are just proxying the interfaces, so no longer hit these exceptions. 

The fix should also alleviate the intermittent blueprint quiesce failures people might be
seeing. I managed to reproduce these failures a couple of times, but since applying this change,
I have not seen them fail at all. However, it still seems to be something to do with different
environments - so if other people still see failures, please shout!

The patch also fixes the benign use-package exceptions that people might have seen when debugging
failed blueprint quiesce tests. 

> FinalModifierExceptions as a result of Quiesce changes to add proxies for services
> ----------------------------------------------------------------------------------
>                 Key: ARIES-412
>                 URL:
>             Project: Aries
>          Issue Type: Bug
>    Affects Versions: 0.3
>            Reporter: Joe Bohn
>         Attachments: quiesce-blueprint-fix.txt
> I've noticed that we are now receiving FinalModifierExceptions when running the samples
(Blog and AriesTrader).  It seems to me that these are the result of some changes for quiesce
support for JPA.   I'm not quite sure of the reason or purpose for the changes - but the function
seems to be creating proxies for services using the AsmInterceptorWrapper for items that we
did not previously create Asm proxies.  Not all of these objects work well as proxies and
hence these exceptions.   This can be easily seen running either the Blog or AriesTrader samples
after change rev. 995797 for ARIES-383 ( )
> org.apache.aries.blueprint.proxy.FinalModifierException
> 	at org.apache.aries.blueprint.proxy.ProxySubclassGenerator.scanForFinalModifiers(
> 	at org.apache.aries.blueprint.proxy.ProxySubclassGenerator.getProxySubclass(
> 	at org.apache.aries.blueprint.proxy.ProxySubclassGenerator.newProxySubclassInstance(
> 	at org.apache.aries.blueprint.proxy.AsmInterceptorWrapper.createSubclassProxy(
> 	at org.apache.aries.blueprint.proxy.AsmInterceptorWrapper.createProxyObject(
> 	at org.apache.aries.blueprint.container.ServiceRecipe$TriggerServiceFactory.getService(
> 	at org.eclipse.osgi.internal.serviceregistry.ServiceUse$
> 	at Method)
> 	at org.eclipse.osgi.internal.serviceregistry.ServiceUse.getService(
> 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(
> 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(
> 	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.getService(
> 	at org.apache.aries.blueprint.namespace.NamespaceHandlerRegistryImpl.addingService(
> 	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(
> 	at org.osgi.util.tracker.AbstractTracked.trackAdding(
> 	at org.osgi.util.tracker.AbstractTracked.track(
> 	at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(
> 	at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(
> 	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(
> 	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(
> 	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(
> 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(
> 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(
> 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(
> 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(
> 	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(
> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(
> 	at org.apache.aries.blueprint.container.ServiceRecipe.register(
> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerServices(
> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(
> 	at
> 	at java.util.concurrent.Executors$
> 	at java.util.concurrent.FutureTask$Sync.innerRun(
> 	at
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
> 	at java.util.concurrent.ThreadPoolExecutor$
> 	at

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message