[ 
http://jira.amdatu.org/jira/browse/AMDATU-574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jan Willem Janssen updated AMDATU-574:
--------------------------------------

    Priority: Blocker  (was: Major)

This causes *very* nasty side effects in the overall deployment, causing 
tenants to be triplicated upon each deployment.

It is caused by the fact that we have exported the DeploymentAdmin from the 
system bundle; which -in its turn- uses EventAdmin internally. Our 
AutoConfResourceProcessor wants to listen to EventAdmin as well. However, it is 
wired to another EventAdmin (from the compendium bundle). The reason for this 
is that we don't expose EventAdmin from our system bundle. If we would expose 
the EventAdmin we could resolve this, but *only* if the version exported by the 
system bundle and by the compendium bundle are *exactly* the same.

                
> Provisioning new tenants causes ClassCastException
> --------------------------------------------------
>
>                 Key: AMDATU-574
>                 URL: http://jira.amdatu.org/jira/browse/AMDATU-574
>             Project: Amdatu
>          Issue Type: Bug
>          Components: Amdatu Provisioning, Amdatu Tenant
>            Reporter: Jan Willem Janssen
>            Priority: Blocker
>             Fix For: 0.4.0
>
>
> When provisioning one or more tenant configurations through ACE, the MA 
> prints a ClassCastException:
>   Exception in thread "Thread-38" java.lang.ClassCastException: 
> org.apache.felix.deployment.rp.autoconf.AutoConfResourceProcessor cannot be 
> cast to   
>   org.osgi.service.event.EventHandler
>       at 
> org.apache.felix.eventadmin.impl.handler.BlacklistingHandlerTasks.getEventHandler(BlacklistingHandlerTasks.java:180)
>       at 
> org.apache.felix.eventadmin.impl.tasks.HandlerTaskImpl.execute(HandlerTaskImpl.java:82)
>       at 
> org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks$1.run(SyncDeliverTasks.java:234)
>       at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown 
> Source)
>       at java.lang.Thread.run(Thread.java:680)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
http://jira.amdatu.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
Amdatu-developers mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-developers

Reply via email to