Can't register an Android device on AEM Screens

Avatar

Avatar

anuj_khanna_77

Avatar

anuj_khanna_77

anuj_khanna_77

15-02-2017

Hi,

I am trying to setup and register an Android device with AEM screens but can't get it done. I am using OOTB geometrixx screens project setup and have my Tablet running Android. I have pointed AEM player to my AEM instance running AEM screens. I can see my device listed under pending devices, i click Validate button and goto metadata step. Here i provide a name "My Test Name" in Title filed and click on Register, i get an error and device fails to register. On the UI, i see an error "ParseError: Unexpected end of Input JSON". I check the error in developer console, there is a request to content/screens/svc/registration resource but the response is an empty JSON. I then checked AEM logs and can see the following exception

 

15.02.2017 05:57:57.650 *ERROR* [202.166.132.190 [1487167077627] POST /content/screens/svc/registration HTTP/1.1] com.adobe.cq.screens.device.registration.impl.RegistrationServlet Error during device registration javax.jcr.nodetype.ConstraintViolationException: Password violates password constraint (^(?=.*\d).{7,9}$). at org.apache.jackrabbit.oak.spi.security.user.action.PasswordValidationAction.validatePassword(PasswordValidationAction.java:105) at org.apache.jackrabbit.oak.spi.security.user.action.PasswordValidationAction.onPasswordChange(PasswordValidationAction.java:76) at org.apache.jackrabbit.oak.security.user.UserManagerImpl.onPasswordChange(UserManagerImpl.java:312) at org.apache.jackrabbit.oak.security.user.UserImpl.changePassword(UserImpl.java:111) at org.apache.jackrabbit.oak.jcr.delegate.UserDelegator$5.performVoid(UserDelegator.java:114) at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.performVoid(SessionDelegate.java:274) at org.apache.jackrabbit.oak.jcr.delegate.UserDelegator.changePassword(UserDelegator.java:111) at com.adobe.cq.screens.device.impl.DeviceService.setPassword(DeviceService.java:312) at com.adobe.cq.screens.device.impl.DeviceManagerImpl.updatePassword(DeviceManagerImpl.java:66) at com.adobe.cq.screens.device.registration.impl.RegistrationServlet.doPost(RegistrationServlet.java:118) at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(SlingAllMethodsServlet.java:149) at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:345) at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:376)

 

Can somebody let me know what is going on here and what password is being referred here.

Thanks

View Entire Topic

Avatar

Avatar

Pawan_Mittal

Avatar

Pawan_Mittal

Pawan_Mittal

11-03-2018

Thanks, awesome. Very helpful suggestion.