[
https://issues.apache.org/jira/browse/SMX4NMR-214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jean-Baptiste Onofré updated SMX4NMR-214:
-----------------------------------------
Fix Version/s: (was: 1.2.0)
1.4.0
> Error in Bootstrap init when accessing ComponentContext logger through the
> InstallationContext
> ------------------------------------------------------------------------------------------------
>
> Key: SMX4NMR-214
> URL: https://issues.apache.org/jira/browse/SMX4NMR-214
> Project: ServiceMix NMR
> Issue Type: Bug
> Reporter: Philippe Pinheiro
> Fix For: 1.4.0
>
>
> In a JBI component working on Servicemix 3, I have this code on its Bootstrap
> class :
> public void init(InstallationContext context) throws JBIException {
> Logger mLogger =
> context.getContext().getLogger(this.getClass().getName(),null);
> mLogger.info("Bootstrap instance init");
> }
> When I install this component on Servicemix 4, I get the error :
> <loc-message>This operation is not available at installation
> time</loc-message>
> [jbi-install-component]
> <stack-trace><![CDATA[java.lang.IllegalStateException: This operation is not
> available at installation time
> [jbi-install-component]
> [jbi-install-component] at
> org.apache.servicemix.jbi.deployer.impl.InstallationContextImpl.getLogger(InstallationContextImpl.java:284)
> [jbi-install-component]
> [jbi-install-component] at
> integra.common.BootstrapTemplate.init(BootstrapTemplate.java:19)
> [jbi-install-component]
> [jbi-install-component] at
> org.apache.servicemix.jbi.deployer.impl.ComponentInstaller.initBootstrap(ComponentInstaller.java:335)
> [jbi-install-component]
> [jbi-install-component] at
> org.apache.servicemix.jbi.deployer.impl.ComponentInstaller.init(ComponentInstaller.java:121)
> [jbi-install-component]
> [jbi-install-component] at
> org.apache.servicemix.jbi.deployer.impl.InstallationService.doLoadNewInstaller(InstallationService.java:219)
> [jbi-install-component]
> [jbi-install-component] at
> org.apache.servicemix.jbi.deployer.impl.InstallationService.install(InstallationService.java:165)
> [jbi-install-component]
> [jbi-install-component] at
> org.apache.servicemix.jbi.deployer.impl.AdminCommandsImpl.installComponent(AdminCommandsImpl.java:56)
> is it a bug ? if not, what kind of Logger do we have access at the BootStrap
> level ?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.