Hi Omidu, I tried to deactivate and reactivate the security component from OSGI console. That's when this exception occurred.
Thanks, Akalanka. On Mon, Apr 4, 2016 at 4:18 PM, Omindu Rathnaweera <[email protected]> wrote: > Hi Akalanka, > > Are you trying to register a new CallbackHandlerFactory? If so, this issue > could occur when registering a new CallbackHandlerFactory for an > existing LoginModuleType. As you pointed out, this is because we are using > Arrays.asList() to register handler factories. > > This needed to be fixed. > > Thanks, > Omindu. > > On Mon, Apr 4, 2016 at 3:29 PM, Akalanka Pagoda Arachchi < > [email protected]> wrote: > >> Getting the following issue when trying to start the Carbon-Security >> component [1] in C5 with C5 MB. >> >> osgi> >> osgi> enable 22 >> Sent request for enabling component >> org.wso2.carbon.security.internal.CarbonSecurityComponent >> osgi> [2016-04-04 15:18:10,993] ERROR {org.eclipse.equinox.ds} - [SCR] >> Exception while activating instance >> org.wso2.carbon.security.internal.CarbonSecurityComponent@2586741b of >> component org.wso2.carbon.security.internal.CarbonSecurityComponent >> java.lang.reflect.InvocationTargetException >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> at java.lang.reflect.Method.invoke(Method.java:497) >> at >> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:235) >> at >> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) >> at >> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345) >> at >> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620) >> at >> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197) >> at >> org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:473) >> at >> org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217) >> at >> org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816) >> at >> org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783) >> at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89) >> at >> org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70) >> Caused by: java.lang.UnsupportedOperationException >> at java.util.AbstractList.add(AbstractList.java:148) >> at java.util.AbstractList.add(AbstractList.java:108) >> at >> org.wso2.carbon.security.internal.CarbonSecurityDataHolder.registerCallbackHandlerFactory(CarbonSecurityDataHolder.java:57) >> at >> org.wso2.carbon.security.internal.CarbonSecurityComponent.initAuthenticationConfigs(CarbonSecurityComponent.java:175) >> at >> org.wso2.carbon.security.internal.CarbonSecurityComponent.registerCarbonSecurityProvider(CarbonSecurityComponent.java:75) >> ... 15 more >> >> According to StackOverFlow [2] this seems to be because trying to add an >> object into a fixed sized list. >> >> Can we verify this? >> >> >> [1] - https://github.com/wso2/carbon-security >> [2] - >> http://stackoverflow.com/questions/9320409/unsupportedoperationexception-at-java-util-abstractlist-add >> >> Thanks, >> Akalanka. >> -- >> *Darshana Akalanka Pagoda Arachchi,* >> *Software Engineer, WSO2* >> *+94777118016 <%2B94777118016>* >> > > > > -- > Omindu Rathnaweera > Software Engineer, WSO2 Inc. > Mobile: +94 771 197 211 > -- *Darshana Akalanka Pagoda Arachchi,* *Software Engineer, WSO2* *+94777118016*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
