[
https://issues.apache.org/jira/browse/SMX4NMR-214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gert Vanthienen resolved SMX4NMR-214.
-------------------------------------
Resolution: Fixed
Assignee: Gert Vanthienen
Fixed in http://svn.apache.org/viewvc?view=revision&revision=1210845
> 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
> Assignee: Gert Vanthienen
> Fix For: 1.5.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.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira