cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Mobile v. 2.0.1 - FAILURE TO AUTHENTICATE.

hso
Champ in-the-making
Champ in-the-making
Hi

I've upgraded to the new iOS Alfresco app (v. 2.0.1) and am now unable to connect to my Alfresco server (this worked fine with the old app).
I'm connecting to an Alfresco 5.0.a community edition server (recently upgraded from 4.2.f) running on Ubuntu 14.04.

When I try to set up the profile on my iPhone I get following error message: "Save Account. Failure to authenticate. Check your account settings with your system administrator." I have tried from a couple of iPhones and have the same issue across all of them.

My server works fine and I can connect from the safari browser on my iPhone.

I am NOT using HTTPS and connect via port 8080. I have read other posts relating to similar issues and have tried different settings for the Service Document - both /alfresco and /alfresco/service/cmis.

I have also tested to ensure the CMIS location is correct by browsing to http://localserver:8080/alfresco/service/cmis - loading this downloads a cmis configuration file, so I'm assuming the location is correct.

Any ideas??

Many thanks!
11 REPLIES 11

it_guy_autox
Champ in-the-making
Champ in-the-making
I'm experiencing the same issue after updating to 5.0.a, I opened a ticket: https://issues.alfresco.com/jira/browse/MOBILE-2964  You might want to take a look.

hso
Champ in-the-making
Champ in-the-making
Thanks for your response - I'll keep an eye on that ticket.

I tried to tailf my alfresco.log to see what happens on my server when I click the 'save' button on the mobile app setup screen.

This is what I get. Does that help anyone to identify the issue?

<blockquote>
17:00:26,264 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-10] Exception from executeScript - redirecting to status template error: 07120029 Wrapped Exception (with status template): Namespace prefix wswf is not mapped to a namespace URI
org.springframework.extensions.webscripts.WebScriptException: 07120029 Wrapped Exception (with status template): Namespace prefix wswf is not mapped to a namespace URI
   at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1126)
   at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
   at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:426)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:454)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:495)
   at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:563)
   at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:343)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)
   at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
   at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
   at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2441)
   at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2430)
   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)
Caused by: org.alfresco.service.namespace.NamespaceException: Namespace prefix wswf is not mapped to a namespace URI
   at org.alfresco.service.namespace.QName.createQName(QName.java:102)
   at org.alfresco.service.namespace.QName.createQName(QName.java:124)
   at org.alfresco.repo.workflow.WorkflowQNameConverter.convertNameToQName(WorkflowQNameConverter.java:103)
   at org.alfresco.repo.workflow.WorkflowQNameConverter.convertNameToQName(WorkflowQNameConverter.java:85)
   at org.alfresco.repo.workflow.WorkflowQNameConverter.mapNameToQName(WorkflowQNameConverter.java:71)
   at org.alfresco.repo.workflow.WorkflowObjectFactory.getTaskTypeDefinition(WorkflowObjectFactory.java:448)
   at org.alfresco.repo.workflow.WorkflowObjectFactory.createTaskDefinition(WorkflowObjectFactory.java:211)
   at org.alfresco.repo.workflow.activiti.ActivitiTypeConverter.getTaskDefinition(ActivitiTypeConverter.java:190)
   at org.alfresco.repo.workflow.activiti.ActivitiTypeConverter.convert(ActivitiTypeConverter.java:174)
   at org.alfresco.repo.workflow.activiti.ActivitiTypeConverter.convert(ActivitiTypeConverter.java:404)
   at org.alfresco.repo.workflow.activiti.ActivitiTypeConverter.convert(ActivitiTypeConverter.java:370)
   at org.alfresco.repo.workflow.activiti.ActivitiTypeConverter.convert(ActivitiTypeConverter.java:358)
   at org.alfresco.repo.workflow.activiti.ActivitiTypeConverter.filterByDomainAndConvert(ActivitiTypeConverter.java:108)
   at org.alfresco.repo.workflow.activiti.ActivitiWorkflowEngine.getValidWorkflowDefinitions(ActivitiWorkflowEngine.java:1108)
   at org.alfresco.repo.workflow.activiti.ActivitiWorkflowEngine.getDefinitions(ActivitiWorkflowEngine.java:583)
   at org.alfresco.repo.workflow.WorkflowServiceImpl.getDefinitions(WorkflowServiceImpl.java:332)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at org.alfresco.service.cmr.workflow.WorkflowPermissionInterceptor.invoke(WorkflowPermissionInterceptor.java:54)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:158)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at com.sun.proxy.$Proxy61.getDefinitions(Unknown Source)
   at org.alfresco.repo.web.scripts.workflow.WorkflowDefinitionsGet.buildModel(WorkflowDefinitionsGet.java:52)
   at org.alfresco.repo.web.scripts.workflow.AbstractWorkflowWebscript.executeImpl(AbstractWorkflowWebscript.java:81)
   at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)
   … 32 more

hso
Champ in-the-making
Champ in-the-making
Thanks for your response - I'll keep an eye on that ticket.

I tried to tailf my alfresco.log to see what happens on my server when I click the 'save' button on the mobile app setup screen.

This is what I get. Does that help anyone to identify the issue?

<blockquote>
17:00:26,264 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-10] Exception from executeScript - redirecting to status template error: 07120029 Wrapped Exception (with status template): Namespace prefix wswf is not mapped to a namespace URI org.springframework.extensions.webscripts.WebScriptException: 07120029 Wrapped Exception (with status template): Namespace prefix wswf is not mapped to a namespace URI at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1126) at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171) at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:426) at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:454) at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:495) at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:563) at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:343) at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378) at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209) at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2441) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2430) 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) Caused by: org.alfresco.service.namespace.NamespaceException: Namespace prefix wswf is not mapped to a namespace URI at org.alfresco.service.namespace.QName.createQName(QName.java:102) at org.alfresco.service.namespace.QName.createQName(QName.java:124) at org.alfresco.repo.workflow.WorkflowQNameConverter.convertNameToQName(WorkflowQNameConverter.java:103) at org.alfresco.repo.workflow.WorkflowQNameConverter.convertNameToQName(WorkflowQNameConverter.java:85) at org.alfresco.repo.workflow.WorkflowQNameConverter.mapNameToQName(WorkflowQNameConverter.java:71) at org.alfresco.repo.workflow.WorkflowObjectFactory.getTaskTypeDefinition(WorkflowObjectFactory.java:448) at org.alfresco.repo.workflow.WorkflowObjectFactory.createTaskDefinition(WorkflowObjectFactory.java:211) at org.alfresco.repo.workflow.activiti.ActivitiTypeConverter.getTaskDefinition(ActivitiTypeConverter.java:190) at org.alfresco.repo.workflow.activiti.ActivitiTypeConverter.convert(ActivitiTypeConverter.java:174) at org.alfresco.repo.workflow.activiti.ActivitiTypeConverter.convert(ActivitiTypeConverter.java:404) at org.alfresco.repo.workflow.activiti.ActivitiTypeConverter.convert(ActivitiTypeConverter.java:370) at org.alfresco.repo.workflow.activiti.ActivitiTypeConverter.convert(ActivitiTypeConverter.java:358) at org.alfresco.repo.workflow.activiti.ActivitiTypeConverter.filterByDomainAndConvert(ActivitiTypeConverter.java:108) at org.alfresco.repo.workflow.activiti.ActivitiWorkflowEngine.getValidWorkflowDefinitions(ActivitiWorkflowEngine.java:1108) at org.alfresco.repo.workflow.activiti.ActivitiWorkflowEngine.getDefinitions(ActivitiWorkflowEngine.java:583) at org.alfresco.repo.workflow.WorkflowServiceImpl.getDefinitions(WorkflowServiceImpl.java:332) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.alfresco.service.cmr.workflow.WorkflowPermissionInterceptor.invoke(WorkflowPermissionInterceptor.java:54) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:158) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at com.sun.proxy.$Proxy61.getDefinitions(Unknown Source) at org.alfresco.repo.web.scripts.workflow.WorkflowDefinitionsGet.buildModel(WorkflowDefinitionsGet.java:52) at org.alfresco.repo.web.scripts.workflow.AbstractWorkflowWebscript.executeImpl(AbstractWorkflowWebscript.java:81) at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64) … 32 more

mikeh
Star Contributor
Star Contributor
The log trace was useful: "Namespace prefix wswf is not mapped to a namespace URI" indicates you've had the Web Quick Start module installed on a previous version but not re-installed it after upgrading. I can't see the module for 5.0.a so instead you'll have to use the workflow console [1] to undeploy all definitions starting "wswf$".
[1] http://localhost:8080/alfresco/faces/jsp/admin/workflow-console.jsp

Thanks,
Mike

hso
Champ in-the-making
Champ in-the-making
Hi Mike,

Many thanks for your response. I have never used the Workflow Console before, so please bear with me! 🙂

I can't figure out which specific definitions I need to remove. When I do 'show definitions all' it returns: 'org.alfresco.service.namespace.NamespaceException: Namespace prefix wswf is not mapped to a namespace URI'.
I have googled extensively, but haven't found anything useful. Are you able to guide me further please?

i.e. - how do I find the name of the actual workflow I need to delete?

thanks!

it_guy_autox
Champ in-the-making
Champ in-the-making
Looks like we are having the same issue, I fount the same entries in my logs.  I hit the same issue when using the Workflow Console.  If I find out the names of those definitions, Ill post them.

it_guy_autox
Champ in-the-making
Champ in-the-making
I installed 4.2.f on my workstation with Web Quick Start, but oddly, none of the Web Quick Start id's contained wswf.

With Web Quick Start:

id: activiti$activitiAdhoc:1:4 , name: activiti$activitiAdhoc , title: New Task , version: 1
id: activiti$activitiInvitationModerated:1:23 , name: activiti$activitiInvitationModerated , title: Invitation - Moderated , version: 1
id: activiti$activitiInvitationNominated:1:26 , name: activiti$activitiInvitationNominated , title: Site Invitation - Nominated , version: 1
id: activiti$activitiParallelGroupReview:1:20 , name: activiti$activitiParallelGroupReview , title: Group Review And Approve , version: 1
id: activiti$activitiParallelReview:1:16 , name: activiti$activitiParallelReview , title: Send Document(s) For Review , version: 1
id: activiti$activitiReview:1:8 , name: activiti$activitiReview , title: Review And Approve , version: 1
id: activiti$activitiReviewPooled:1:12 , name: activiti$activitiReviewPooled , title: Pooled Review And Approve , version: 1
id: activiti$publishWebContent:1:29 , name: activiti$publishWebContent , title: Publish Web Content Activiti Process , version: 1
id: activiti$quickStartReviewPublish:1:32 , name: activiti$quickStartReviewPublish , title: Web Quick Start: Review & Publish Web Assets , version: 1
id: activiti$quickStartReviewPublishTree:1:35 , name: activiti$quickStartReviewPublishTree , title: Web Quick Start: Review & Publish Section Structure , version: 1
id: activiti$readContactProcess:1:38 , name: activiti$readContactProcess , title: Web Quick Start: Handle Contact Request , version: 1


Without Web Quick Start:


Last command: show definitions all
Duration: 6ms
—–
id: activiti$activitiAdhoc:1:4 , name: activiti$activitiAdhoc , title: New Task , version: 1
id: activiti$activitiInvitationModerated:1:23 , name: activiti$activitiInvitationModerated , title: Invitation - Moderated , version: 1
id: activiti$activitiInvitationNominated:1:26 , name: activiti$activitiInvitationNominated , title: Site Invitation - Nominated , version: 1
id: activiti$activitiParallelGroupReview:1:20 , name: activiti$activitiParallelGroupReview , title: Group Review And Approve , version: 1
id: activiti$activitiParallelReview:1:16 , name: activiti$activitiParallelReview , title: Send Document(s) For Review , version: 1
id: activiti$activitiReview:1:8 , name: activiti$activitiReview , title: Review And Approve , version: 1
id: activiti$activitiReviewPooled:1:12 , name: activiti$activitiReviewPooled , title: Pooled Review And Approve , version: 1
id: activiti$publishWebContent:1:29 , name: activiti$publishWebContent , title: Publish Web Content Activiti Process , version: 1


My thought now is that an older version may have had different id's, so I'm going to try it with 4.2.b (the first version of Alfresco I installed on the server) and look there. Failing that, the only other thing I've added to an Alfresco server were modules from Share-Extra's; Ill load those if 4.2.b yields nothing.

hso
Champ in-the-making
Champ in-the-making
I tried to install a fresh version of Alfresco (5.0) and before I do the DB restore I can log in ok from my ios app, so I must be breaking something when I restore my old database.
I then decided to just export all the data from my old instance, but can't due to the same issue!

Is there a method of restoring my database with just the essential data? All I want really is the metadata and links to all the content I've got. I would even be happy if I had to recreate user information manually.
At the moment I restore by dropping the database (Postgress), creating a new one and then importing my old db. Is there a way of exporting the required data manually from my old Alfresco instance and then importing that to the new db instance without having to drop it completely?

Many thanks in advance.

gavinc
Champ in-the-making
Champ in-the-making
I've reproduced the issue and added 2 possible solutions in the JIRA ticket here: https://issues.alfresco.com/jira/browse/MOBILE-2964

The best solution is to just re-apply the web quick start AMPs after upgrading using the apply_amps script.

We'll also ensure the next version of the iOS app protects against this scenario and doesn't prevent users from logging in.