Hi,

By changing the repository to
http://product-dist.wso2.org/p2/carbon/releases/turing/
<http://product-dist.wso2.com/p2/carbon/releases/turing/> and
installing Account
Recovery and Credential Management 4.2.2 I could go one step further and
now I can create a user and update the user profile with email address.

But when  I call getCaptcha() or verifyUser() as the first service call it
gives the following response in soap UI.


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
   <soapenv:Body>
      <soapenv:Fault xmlns:axis2ns6="
http://schemas.xmlsoap.org/soap/envelope/";>
         <faultcode>axis2ns6:50978</faultcode>
         <faultstring>System failure.</faultstring>
         <detail/>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>

And the backend gives  a Null pointer Exception and an Athentication
Faliture as follows.

[2015-10-09 20:53:43,982] ERROR - AuthenticationHandler
java.lang.NullPointerException
at
org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.invalidateSession(AuthenticationHandler.java:215)
at
org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.isAuthenticated(AuthenticationHandler.java:175)
at
org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.authenticate(AuthenticationHandler.java:96)
at
org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.invoke(AuthenticationHandler.java:66)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
at
org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
at
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
[2015-10-09 20:53:43,984] ERROR - AxisEngine Authentication failure
org.apache.axis2.AxisFault: Authentication failure
at
org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.authenticate(AuthenticationHandler.java:123)
at
org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.invoke(AuthenticationHandler.java:66)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
at
org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
at
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
[2015-10-09 20:53:43,984] ERROR - ServerWorker Error processing POST
request for :
/services/UserInformationRecoveryService.UserInformationRecoveryServiceHttpsSoap11Endpoint
org.apache.axis2.AxisFault: Authentication failure
at
org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.authenticate(AuthenticationHandler.java:123)
at
org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.invoke(AuthenticationHandler.java:66)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
at
org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
at
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)


What should I do to get rid of this exception?








On Fri, Oct 9, 2015 at 3:14 PM, Tharindu Edirisinghe <[email protected]>
wrote:

> Hi Chamalee,
>
> can you enable debug logs for user.core, user.mgt, user.mgt.ui and
> identity.mgt components and share the log file for identifying the problem.
>
> You can add following to IS_HOME/repository/conf/log4j.properties file and
> then restart the server.
>
> log4j.logger.org.wso2.carbon.user.core=DEBUG
> log4j.logger.org.wso2.carbon.identity.mgt=DEBUG
> log4j.logger.org.wso2.carbon.user.mgt=DEBUG
> log4j.logger.org.wso2.carbon.user.mgt.ui=DEBUG
>
> Also it is better if you can attach a screenshot of the user's profile (in
> UI) so that we can look at the claims given as supported by default.
>
> Regards,
> Tharindu
>
> On Fri, Oct 9, 2015 at 12:16 PM, Chamalee De Silva <[email protected]>
> wrote:
>
>> hi all,
>>
>> I wanted to install the IS identity-mgt features in APIM 1.8.0 to
>> configure the IS feature Recovery with Notification [1] in APIM.
>>
>> I have added the repository *http://dist.wso2.org/p2/carbon/releases/4.2.0/
>> <http://dist.wso2.org/p2/carbon/releases/4.2.0/>  *and installed Account
>> Recovery and Credential Management 4.2.0 feature in APIM. But I haven't
>> installed the Self Registration feature.
>>
>> And then I have configured APIM to have Recover with Notification Feature
>> as mentioned in [1].
>>
>> Then  I created a user. But when I update the user profile of the user I
>> get the following error.
>>
>> Can anyone explain why this error occurs?
>>
>> I could do this successfully in IS. But for APIM I get this error.
>>
>>
>> [2015-10-09 11:59:49,874] ERROR - RPCInOnlyMessageReceiver Exception
>> occurred while trying to invoke service method setUserProfile
>> java.lang.StackOverflowError
>> at
>> org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:529)
>> at
>> javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:259)
>> at
>> org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:571)
>> at
>> javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:259)
>> at
>> org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:571)
>> at
>> org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder(CarbonContextDataHolder.java:533)
>> at
>> org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder(CarbonContextDataHolder.java:568)
>> at
>> org.wso2.carbon.context.internal.CarbonContextDataHolder.getClone(CarbonContextDataHolder.java:417)
>> at
>> org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder(CarbonContextDataHolder.java:546)
>> at
>> org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder(CarbonContextDataHolder.java:568)
>> at
>> org.wso2.carbon.context.internal.CarbonContextDataHolder.getClone(CarbonContextDataHolder.java:417)
>> at
>> org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder(CarbonContextDataHolder.java:546)
>> at
>> org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder(CarbonContextDataHolder.java:546)
>> at
>> org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder(CarbonContextDataHolder.java:568)
>> at
>> org.wso2.carbon.context.internal.CarbonContextDataHolder.getClone(CarbonContextDataHolder.java:417)
>> at
>> org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder(CarbonContextDataHolder.java:546)
>> at
>> org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder(CarbonContextDataHolder.java:568)
>> at
>> org.wso2.carbon.context.internal.CarbonContextDataHolder.getClone(CarbonContextDataHolder.java:417)
>> at
>> org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder(CarbonContextDataHolder.java:546)
>> at
>> org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder(CarbonContextDataHolder.java:568)
>> at
>> org.wso2.carbon.context.internal.CarbonContextDataHolder.getClone(CarbonContextDataHolder.java:417)
>> at
>> org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder(CarbonContextDataHolder.java:546)
>> at
>> org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder(CarbonContextDataHolder.java:568)
>> [2015-10-09 11:59:50,033] ERROR - UserProfileCient
>> org.apache.axis2.AxisFault: unknown
>>
>> [1] https://docs.wso2.com/display/IS500/Recover+with+Notification
>>
>>
>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> *Chamalee De Silva*
>> Software Engineer
>> *WS**O2* Inc. .:http://wso2.com
>>
>> Office   :- *+94 11 2145345 <%2B94%2011%202145345>*
>> mobile  :- *+94 7 <%2B94%2077%202782039>1 4315942*
>>
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Tharindu Edirisinghe
> Software Engineer | WSO2 Inc
> Identity Server Team
> Blog : tharindue.blogspot.com
> mobile : +94 775 181586
>
>
>


-- 
Thanks & Regards,

*Chamalee De Silva*
Software Engineer
*WS**O2* Inc. .:http://wso2.com

Office   :- *+94 11 2145345 <%2B94%2011%202145345>*
mobile  :- *+94 7 <%2B94%2077%202782039>1 4315942*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to