Hi Asela, Shameera,
Yes, and this issue is fixed.. But still the service-mgt and module-mgt
tests fail which is related to caching+registry. We should take a full
update and build to make sure that issue is really there.
org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to add
the root collection to the coreRegistry.
at
org.wso2.carbon.registry.core.session.UserRegistry.addRootCollection(UserRegistry.java:399)
at
org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:299)
at
org.wso2.carbon.registry.core.session.UserRegistry.<init>(UserRegistry.java:226)
at
org.wso2.carbon.registry.core.session.UserRegistry.<init>(UserRegistry.java:205)
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getUserRegistry(EmbeddedRegistryService.java:427)
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getSystemRegistry(EmbeddedRegistryService.java:292)
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getSystemRegistry(EmbeddedRegistryService.java:276)
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getSystemRegistry(EmbeddedRegistryService.java:262)
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.configure(EmbeddedRegistryService.java:219)
at
org.wso2.carbon.registry.core.jdbc.InMemoryEmbeddedRegistryService.<init>(InMemoryEmbeddedRegistryService.java:61)
at
org.wso2.carbon.service.mgt.BaseTestCase.setUp(BaseTestCase.java:56)
at
org.wso2.carbon.service.mgt.TestServiceGroupAdmin.setUp(TestServiceGroupAdmin.java:46)
at junit.framework.TestCase.runBare(TestCase.java:128)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:95)
at
org.apache.maven.surefire.junit.JUnit3Provider.executeTestSet(JUnit3Provider.java:121)
at
org.apache.maven.surefire.junit.JUnit3Provider.invoke(JUnit3Provider.java:98)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
Caused by: java.lang.NullPointerException
at
java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
at
org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(CacheManagerFactoryImpl.java:78)
at
org.wso2.carbon.registry.core.utils.RegistryUtils.getCacheManager(RegistryUtils.java:289)
at
org.wso2.carbon.registry.core.utils.RegistryUtils.getResourcePathCache(RegistryUtils.java:283)
at
org.wso2.carbon.registry.core.caching.PathCache.getCache(PathCache.java:35)
at
org.wso2.carbon.registry.core.jdbc.dao.JDBCPathCache.getPathID(JDBCPathCache.java:298)
at
org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.getResourceID(JDBCResourceDAO.java:67)
at
org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.resourceExists(JDBCResourceDAO.java:151)
at
org.wso2.carbon.registry.core.utils.RegistryUtils.systemResourceShouldBeAdded(RegistryUtils.java:630)
at
org.wso2.carbon.registry.core.session.UserRegistry.addRootCollection(UserRegistry.java:357)
... 34 more
Caused by: java.lang.NullPointerException
at
java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
at
org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(CacheManagerFactoryImpl.java:78)
at
org.wso2.carbon.registry.core.utils.RegistryUtils.getCacheManager(RegistryUtils.java:289)
at
org.wso2.carbon.registry.core.utils.RegistryUtils.getResourcePathCache(RegistryUtils.java:283)
at
org.wso2.carbon.registry.core.caching.PathCache.getCache(PathCache.java:35)
at
org.wso2.carbon.registry.core.jdbc.dao.JDBCPathCache.getPathID(JDBCPathCache.java:298)
at
org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.getResourceID(JDBCResourceDAO.java:67)
at
org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.resourceExists(JDBCResourceDAO.java:151)
at
org.wso2.carbon.registry.core.utils.RegistryUtils.systemResourceShouldBeAdded(RegistryUtils.java:630)
at
org.wso2.carbon.registry.core.session.UserRegistry.addRootCollection(UserRegistry.java:357)
... 34 more
On Fri, Jul 19, 2013 at 2:30 PM, Asela Pathberiya <[email protected]> wrote:
> Yes... this error is due, svn externals are not properly updated in
> these components and they were still pointed to 4.0.0 branch... However
> when you see the "user manager" name in an error, Please do not think, it
> is always an issue with our user kernel :D... It is always great, if you
> could investigate more. :)
>
> Thanks,
> Asela.
>
>
> On Fri, Jul 19, 2013 at 2:18 PM, Kasun Gajasinghe <[email protected]> wrote:
>
>> Hi,
>>
>> This particular issue is fixed..
>>
>>
>> On Fri, Jul 19, 2013 at 2:05 PM, Prabath Siriwardena <[email protected]>wrote:
>>
>>> Shameera please talk directly to Darshana or IS team..
>>>
>>> Thanks...
>>>
>>> Sent from my mobile device
>>>
>>> On Jul 19, 2013, at 1:13 PM, Shameera Rathnayaka <[email protected]>
>>> wrote:
>>>
>>> Hi,
>>>
>>> Module mgt component test also effect this. Is it possible to know who
>>> is looking this issue in IS team?
>>>
>>> -------------------------------------------------------
>>> T E S T S
>>> -------------------------------------------------------
>>> Running org.wso2.carbon.module.mgt.service.TestModuleAdminService
>>> log4j:WARN No appenders could be found for logger
>>> (org.wso2.carbon.context.internal.CarbonContextDataHolder).
>>> log4j:WARN Please initialize the log4j system properly.
>>> Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 1.544
>>> sec <<< FAILURE!
>>>
>>> Results :
>>>
>>> Tests in error:
>>>
>>> testTotalModules(org.wso2.carbon.module.mgt.service.TestModuleAdminService):
>>> Failed to initialize the user manager. Error while reading realm
>>> configuration from file
>>>
>>> testAxisMethodStuff(org.wso2.carbon.module.mgt.service.TestModuleAdminService):
>>> Failed to initialize the user manager. Error while reading realm
>>> configuration from file
>>>
>>> testEngageModules(org.wso2.carbon.module.mgt.service.TestModuleAdminService):
>>> Failed to initialize the user manager. Error while reading realm
>>> configuration from file
>>>
>>> testModuleStuff(org.wso2.carbon.module.mgt.service.TestModuleAdminService):
>>> Failed to initialize the user manager. Error while reading realm
>>> configuration from file
>>>
>>> Tests run: 4, Failures: 0, Errors: 4, Skipped: 0
>>>
>>>
>>>
>>> On Fri, Jul 19, 2013 at 11:30 AM, Shameera Rathnayaka <[email protected]
>>> > wrote:
>>>
>>>> Please note $Subject, If this has been fixed please mention in which
>>>> components.
>>>>
>>>> -------------------------------------------------------
>>>> T E S T S
>>>> -------------------------------------------------------
>>>> Running org.wso2.carbon.service.mgt.TestServiceAdmin
>>>> log4j:WARN No appenders could be found for logger
>>>> (org.wso2.carbon.context.internal.CarbonContextDataHolder).
>>>> log4j:WARN Please initialize the log4j system properly.
>>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.528
>>>> sec <<< FAILURE!
>>>> Running org.wso2.carbon.service.mgt.TestPolicyUtil
>>>> log4j:WARN No appenders could be found for logger
>>>> (org.wso2.carbon.context.internal.CarbonContextDataHolder).
>>>> log4j:WARN Please initialize the log4j system properly.
>>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.267
>>>> sec <<< FAILURE!
>>>> Running org.wso2.carbon.service.mgt.TestServiceGroupAdmin
>>>> log4j:WARN No appenders could be found for logger
>>>> (org.wso2.carbon.context.internal.CarbonContextDataHolder).
>>>> log4j:WARN Please initialize the log4j system properly.
>>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 5.013
>>>> sec <<< FAILURE!
>>>> Running org.wso2.carbon.service.mgt.util.TestServiceArchiveCreator
>>>> log4j:WARN No appenders could be found for logger
>>>> (org.wso2.carbon.context.internal.CarbonContextDataHolder).
>>>> log4j:WARN Please initialize the log4j system properly.
>>>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.352
>>>> sec <<< FAILURE!
>>>>
>>>> Results :
>>>>
>>>> Failed tests:
>>>> testSteps(org.wso2.carbon.service.mgt.TestServiceAdmin): Failed to
>>>> initialize the registry. Caused by: Failed to initialize the user manager.
>>>> Error while reading realm configuration from file
>>>> testSteps(org.wso2.carbon.service.mgt.TestPolicyUtil): Failed to
>>>> initialize the registry. Caused by: Failed to initialize the user manager.
>>>> Error while reading realm configuration from file
>>>> testSteps(org.wso2.carbon.service.mgt.TestServiceGroupAdmin): Failed
>>>> to initialize the registry. Caused by: Failed to initialize the user
>>>> manager. Error while reading realm configuration from file
>>>>
>>>> testSteps(org.wso2.carbon.service.mgt.util.TestServiceArchiveCreator):
>>>> Failed to initialize the registry. Caused by: Failed to initialize the user
>>>> manager. Error while reading realm configuration from file
>>>>
>>>> Tests run: 4, Failures: 4, Errors: 0, Skipped: 0
>>>>
>>>>
>>>> --
>>>> *Software Engineer - WSO2 Inc.*
>>>> *email: shameera AT wso2.com <[email protected]> , shameera AT
>>>> apache.org <[email protected]>*
>>>> *phone: +9471 922 1454*
>>>> *
>>>> *
>>>> *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
>>>> *Twitter : *https://twitter.com/Shameera_R
>>>>
>>>
>>>
>>>
>>> --
>>> *Software Engineer - WSO2 Inc.*
>>> *email: shameera AT wso2.com <[email protected]> , shameera AT
>>> apache.org <[email protected]>*
>>> *phone: +9471 922 1454*
>>> *
>>> *
>>> *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
>>> *Twitter : *https://twitter.com/Shameera_R
>>>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Kasun Gajasinghe*
>> Software Engineer;
>> Development Technologies Team, WSO2 Inc.; http://wso2.com
>>
>>
>> ,
>> *email: **kasung AT spamfree wso2.com
>>
>>
>> ** cell: **+94 (77) 678-0813*
>> *linked-in: *http://lk.linkedin.com/in/gajasinghe
>>
>>
>> *
>> *
>> *blog: **http://kasunbg.org* <http://kasunbg.org>
>>
>>
>> *
>> twitter: **http://twitter.com/kasunbg* <http://twitter.com/kasunbg>
>>
>>
>> *
>> *
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks & Regards,
> Asela
>
> Mobile : +94 777 625 933
>
--
*Kasun Gajasinghe*
Software Engineer;
Development Technologies Team, WSO2 Inc.; http://wso2.com
,
*email: **kasung AT spamfree wso2.com
** cell: **+94 (77) 678-0813*
*linked-in: *http://lk.linkedin.com/in/gajasinghe
*
*
*blog: **http://kasunbg.org* <http://kasunbg.org>
*
twitter: **http://twitter.com/kasunbg* <http://twitter.com/kasunbg>
*
*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev