Login service should be more robust w.r.t creating initial Admin user
---------------------------------------------------------------------
Key: AMDATUAUTH-112
URL: http://jira.amdatu.org/jira/browse/AMDATUAUTH-112
Project: Amdatu Auth
Issue Type: Bug
Components: Authorization & authentication
Affects Versions: 0.2.0
Reporter: Ivo Ladage - van Doorn
Assignee: Ivo Ladage - van Doorn
When the LoginService with Cassandra storage is bootstrapped in a cluster of 3
nodes with ConsistencyLevel ONE, this error may appear:
[2011-10-31 14:53:15] WARNING: Invocation of 'start' failed.
[org.amdatu.auth.login.service]
null
java.lang.NullPointerException
at
org.amdatu.auth.login.service.service.LoginServiceImpl.start(LoginServiceImpl.java:120)
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.felix.dm.InvocationUtil.invokeMethod(InvocationUtil.java:70)
at
org.apache.felix.dm.InvocationUtil.invokeCallbackMethod(InvocationUtil.java:40)
at
org.apache.felix.dm.impl.ComponentImpl.invokeCallbackMethod(ComponentImpl.java:668)
at org.apache.felix.dm.impl.ComponentImpl.invoke(ComponentImpl.java:659)
at
org.apache.felix.dm.impl.ComponentImpl.bindService(ComponentImpl.java:604)
at
org.apache.felix.dm.impl.ComponentImpl.access$400(ComponentImpl.java:52)
at org.apache.felix.dm.impl.ComponentImpl$7.run(ComponentImpl.java:181)
at org.apache.felix.dm.impl.SerialExecutor$1.run(SerialExecutor.java:47)
This makes sense with CL ONE, as the data written by the first node is not
necessarily merged with that of node 2 before this service is started and the
admin user is created. So the LoginService should be able to deal with this
'eventual consistent' use case.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
http://jira.amdatu.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Amdatu-developers mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-developers