AnsweredAssumed Answered

Problems using Alfresco with CMDBuild

Question asked by jackburton on Mar 13, 2012
Hello everybody

I need some help because I was not able to link CMDBuild, an open source application to manage Configuration Management process (ISO20000), with Alfresco-3.4.d community, which is used by CMDBuild to link a Configuration Item with any document it needs.

The conversation between the two systems should be done using web services alfresco-webservice-2.1.jar, in bundle with CMDBuild but, when CMDBuild tries to start a session, the following error is sent back:


org.alfresco.webservice.util.WebServiceException: Error starting session.

                at org.alfresco.webservice.util.AuthenticationUtils.startSession(AuthenticationUtils.java:94)

                at org.cmdbuild.dms.alfresco.webservice.AlfrescoSession.start(AlfrescoSession.java:29)

                at org.cmdbuild.dms.alfresco.webservice.AlfrescoWebserviceClient.executeWhithinSession(AlfrescoWebserviceClient.java:53)

                at org.cmdbuild.dms.alfresco.webservice.AlfrescoWebserviceClient.search(AlfrescoWebserviceClient.java:73)

                at org.cmdbuild.dms.alfresco.webservice.AlfrescoWebserviceService.search(AlfrescoWebserviceService.java:29)

                at org.cmdbuild.dms.alfresco.AlfrescoDmsService.search(AlfrescoDmsService.java:32)

                at org.cmdbuild.logic.DmsLogic.search(DmsLogic.java:63)

                at org.cmdbuild.servlets.json.management.ModCard.getAttachmentList(ModCard.java:797)

                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.cmdbuild.servlets.JSONDispatcher.dispatch(JSONDispatcher.java:94)

                at org.cmdbuild.servlets.JSONDispatcher.doGet(JSONDispatcher.java:60)

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                at org.cmdbuild.filters.AuthFilter.doFilter(AuthFilter.java:54)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                at org.cmdbuild.filters.PatchManagerFilter.doFilter(PatchManagerFilter.java:28)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                at org.cmdbuild.filters.ConfCheckFilter.doFilter(ConfCheckFilter.java:31)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                at org.cmdbuild.filters.TranslationFilter.doFilter(TranslationFilter.java:37)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)

                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)

                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)

                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

                at java.lang.Thread.run(Thread.java:619)

Caused by: (505)HTTP Version Not Supported

                at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)

                at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)

                at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

                at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)

                at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)

                at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)

                at org.apache.axis.client.Call.invokeEngine(Call.java:2784)

                at org.apache.axis.client.Call.invoke(Call.java:2767)

                at org.apache.axis.client.Call.invoke(Call.java:2443)

                at org.apache.axis.client.Call.invoke(Call.java:2366)

                at org.apache.axis.client.Call.invoke(Call.java:1812)

                at org.alfresco.webservice.authentication.AuthenticationServiceSoapBindingStub.startSession(AuthenticationServiceSoapBindingStub.java:187)

                at org.alfresco.webservice.util.AuthenticationUtils.startSession(AuthenticationUtils.java:79)

                … 39 more


(505)HTTP Version not supported is not a good thing: according my knowledge, it is an error in the conversation between client and server, caused by a forwarded request using a protocol version not supported by the server!

The environment is the following:

-          Client-Server two level architecture

-          O.S. Linux CentOS 5.4 32bit

-          CMDBuild 1.4.0

-          Alfresco-3.4.d      community

-          Tomcat                  6.0.26

-          JVM                        1.6.0_18-b07

-          CMDBuild and Alfresco belong on two different istances of tomcat, port 8080 Alfresco and port 8088 CMDBuild

-          Axis2                     port 8088

-          Postgresql            9.0




The verify of the port state shows the following situation:

tcp        0      0 ::ffff:127.0.0.1:8080       ::ffff:127.0.0.1:51767      TIME_WAIT   -



For me this is the confirmation there are problems to connect the two applications.



What could be the cause of this error? Is it possible, for you, that there could be somenting to verify and adjust in Alfresco configuration?

Thank you in advance for your help.


Best regards
Francesco

Outcomes