Hi All,
I am running a docker compose using APS 2.4 and ACS 7.3, and have setup a connector to the Alfresco repository in APS using basic authentication.
However, when I go to configure an account using the admin credentials (or any other credentials) an error appears and on the backend the process container logs show:
com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (JSON String, Number, Array, Object or token 'null', 'true' or 'false') 2023-11-02 12:41:34 at [Source: (org.apache.http.conn.EofSensorInputStream); line: 1, column: 2] 2023-11-02 12:41:34 at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:2418) ~[jackson-core-2.14.1.jar:2.14.1] 2023-11-02 12:41:34 at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:749) ~[jackson-core-2.14.1.jar:2.14.1] 2023-11-02 12:41:34 at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:673) ~[jackson-core-2.14.1.jar:2.14.1] 2023-11-02 12:41:34 at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._handleUnexpectedValue(UTF8StreamJsonParser.java:2784) ~[jackson-core-2.14.1.jar:2.14.1] 2023-11-02 12:41:34 at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._nextTokenNotInObject(UTF8StreamJsonParser.java:907) ~[jackson-core-2.14.1.jar:2.14.1] 2023-11-02 12:41:34 at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.nextToken(UTF8StreamJsonParser.java:793) ~[jackson-core-2.14.1.jar:2.14.1] 2023-11-02 12:41:34 at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:4761) ~[jackson-databind-2.13.4.2.jar:2.13.4.2] 2023-11-02 12:41:34 at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4667) ~[jackson-databind-2.13.4.2.jar:2.13.4.2] 2023-11-02 12:41:34 at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3666) ~[jackson-databind-2.13.4.2.jar:2.13.4.2] 2023-11-02 12:41:34 at com.activiti.alfrescoconnector.service.AlfrescoServicesImpl.readReponse(AlfrescoServicesImpl.java:215) ~[activiti-app-alfresco-cloud-2.4.1.2.jar:2.4.1.2] 2023-11-02 12:41:34 at com.activiti.alfrescoconnector.service.AlfrescoContentService.getAllSites(AlfrescoContentService.java:93) ~[activiti-app-alfresco-cloud-2.4.1.2.jar:2.4.1.2] 2023-11-02 12:41:34 at com.activiti.service.runtime.integration.alfresco.AlfrescoOnPremService.getAllSites(AlfrescoOnPremService.java:269) ~[activiti-app-logic-2.4.1.2.jar:2.4.1.2] 2023-11-02 12:41:34 at com.activiti.rest.runtime.integration.AlfrescoOnPremResource.getAllSites(AlfrescoOnPremResource.java:82) ~[activiti-app-rest-2.4.1.2.jar:2.4.1.2] 2023-11-02 12:41:34 at com.activiti.rest.runtime.integration.AlfrescoOnPremResource$$FastClassBySpringCGLIB$$94b7eb10.invoke(<generated>) ~[activiti-app-rest-2.4.1.2.jar:2.4.1.2] 2023-11-02 12:41:34 at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.3.29.jar:5.3.29] 2023-11-02 12:41:34 at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793) ~[spring-aop-5.3.29.jar:5.3.29] 2023-11-02 12:41:34 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.3.29.jar:5.3.29] 2023-11-02 12:41:34 at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) ~[spring-aop-5.3.29.jar:5.3.29] 2023-11-02 12:41:34 at com.ryantenney.metrics.spring.TimedMethodInterceptor.invoke(TimedMethodInterceptor.java:48) ~[metrics-spring-3.1.3.jar:na] 2023-11-02 12:41:34 at com.ryantenney.metrics.spring.TimedMethodInterceptor.invoke(TimedMethodInterceptor.java:34) ~[metrics-spring-3.1.3.jar:na] 2023-11-02 12:41:34 at com.ryantenney.metrics.spring.AbstractMetricMethodInterceptor.invoke(AbstractMetricMethodInterceptor.java:59) ~[metrics-spring-3.1.3.jar:na] 2023-11-02 12:41:34 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.29.jar:5.3.29] 2023-11-02 12:41:34 at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) ~[spring-aop-5.3.29.jar:5.3.29] 2023-11-02 12:41:34 at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708) ~[spring-aop-5.3.29.jar:5.3.29] 2023-11-02 12:41:34 at com.activiti.rest.runtime.integration.AlfrescoOnPremResource$$EnhancerBySpringCGLIB$$35efe50c.getAllSites(<generated>) ~[activiti-app-rest-2.4.1.2.jar:2.4.1.2] 2023-11-02 12:41:34 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na] 2023-11-02 12:41:34 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na] 2023-11-02 12:41:34 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
Any suggestions on what could be going wrong would be great. It seems that the response back is HTML instead of the expected JSON.
Solved! Go to Solution.
Turns out I was using the wrong URLs in the Alfresco respository configuration.
I forgot that when using docker containers you can't reach other containers using localhost, instead you need a fixed address like your local IP.
So I just changed the endpoint addresses in the configuration from localhost to my local IP and worked fine after that.
Stupid, but easy mistake to make .
Turns out I was using the wrong URLs in the Alfresco respository configuration.
I forgot that when using docker containers you can't reach other containers using localhost, instead you need a fixed address like your local IP.
So I just changed the endpoint addresses in the configuration from localhost to my local IP and worked fine after that.
Stupid, but easy mistake to make .
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.