Please refer to mail @architecture [1], if we doesn't inject the service
the container won't fully start.

[1] [C5] Must Inject CarbonServerInfo when writing OSGi Test Cases

On Wed, Jun 1, 2016 at 9:20 PM, KasunG Gajasinghe <kas...@wso2.com> wrote:

> Yes, it's an osgi test. Any reason why we need to inject that service?
>
> On Wed, Jun 1, 2016 at 9:14 PM, Aruna Karunarathna <ar...@wso2.com> wrote:
>
>> Is this an OSGi test?.. If so did you inject the CarbonServerInfo
>> service?
>>
>> On Wed, Jun 1, 2016 at 9:05 PM, Afkham Azeez <az...@wso2.com> wrote:
>>
>>> What could be the reason for the following?
>>>
>>>
>>> 21:03:36.298 [Timer-0] ERROR
>>> org.wso2.carbon.kernel.internal.runtime.RuntimeServiceListenerComponent -
>>> Error while starting runtime from Runtime manager
>>>
>>> java.lang.IllegalStateException: BundleContext is no longer valid
>>>
>>> at
>>> org.eclipse.osgi.internal.framework.BundleContextImpl.checkValid(BundleContextImpl.java:983)
>>> ~[org.eclipse.osgi-3.10.2.v20150203-1939.jar:?]
>>>
>>> at
>>> org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:463)
>>> ~[org.eclipse.osgi-3.10.2.v20150203-1939.jar:?]
>>>
>>> at
>>> org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:482)
>>> ~[org.eclipse.osgi-3.10.2.v20150203-1939.jar:?]
>>>
>>> at
>>> org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:998)
>>> ~[org.eclipse.osgi-3.10.2.v20150203-1939.jar:?]
>>>
>>> at
>>> org.wso2.carbon.kernel.internal.runtime.RuntimeServiceListenerComponent.onAllRequiredCapabilitiesAvailable(RuntimeServiceListenerComponent.java:99)
>>> [bundleFile:?]
>>>
>>> at
>>> org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager.lambda$notifySatisfiableComponents$27(StartupComponentManager.java:237)
>>> [bundleFile:?]
>>>
>>> at
>>> org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager$$Lambda$51/1247632978.accept(Unknown
>>> Source) [bundleFile:?]
>>>
>>> at java.util.ArrayList.forEach(ArrayList.java:1249) [?:1.8.0_51]
>>>
>>> at
>>> org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager.notifySatisfiableComponents(StartupComponentManager.java:225)
>>> [bundleFile:?]
>>>
>>> at
>>> org.wso2.carbon.kernel.internal.startupresolver.StartupOrderResolver$1.run(StartupOrderResolver.java:186)
>>> [bundleFile:?]
>>>
>>> at java.util.TimerThread.mainLoop(Timer.java:555) [?:1.8.0_51]
>>>
>>> at java.util.TimerThread.run(Timer.java:505) [?:1.8.0_51]
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * <http://www.apache.org/>*
>>> *email: **az...@wso2.com* <az...@wso2.com>
>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>>> *http://blog.afkham.org* <http://blog.afkham.org>
>>> *twitter: **http://twitter.com/afkham_azeez*
>>> <http://twitter.com/afkham_azeez>
>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> <http://lk.linkedin.com/in/afkhamazeez>*
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Aruna Sujith Karunarathna *
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 9040362 | Work: +94 112145345
>> Email: ar...@wso2.com | Web: www.wso2.com
>>
>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
>



-- 

*Aruna Sujith Karunarathna *
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to