[ https://issues.apache.org/jira/browse/CONNECTORS-287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158868#comment-13158868 ]
Karl Wright edited comment on CONNECTORS-287 at 11/28/11 10:35 PM: ------------------------------------------------------------------- I built it and tried to run, w/o a repository to connect to, and got this: {code} org.alfresco.webservice.util.WebServiceException: Error creating authentication service: java.net.MalformedURLException: no protocol: balh/AuthenticationService at org.alfresco.webservice.util.WebServiceFactory.getAuthenticationService(WebServiceFactory.java:167) at org.alfresco.webservice.util.AuthenticationUtils.startSession(AuthenticationUtils.java:73) at org.apache.manifoldcf.crawler.connectors.alfresco.AlfrescoRepositoryConnector.getSession(AlfrescoRepositoryConnector.java:147) at org.apache.manifoldcf.crawler.connectors.alfresco.AlfrescoRepositoryConnector.checkConnection(AlfrescoRepositoryConnector.java:179) at org.apache.manifoldcf.crawler.connectors.alfresco.AlfrescoRepositoryConnector.check(AlfrescoRepositoryConnector.java:115) at org.apache.jsp.viewconnection_jsp._jspService(viewconnection_jsp.java:326) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126) at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:706) at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:677) ... {code} This caused a blank screen to come back from the view connection page. So I recommend the following: (1) Since it seems like you need to enter a URL for the "endpoint" field, you might want to consider requesting a protocol, server, port, and path instead of a free-form URL. Pick the protocol from a drop-down, and use javascript to check that the server has no "/" characters and the port is either blank or a number. This will guarantee that the URL you construct will be valid. (2) You should be catching any exceptions thrown by the API methods. I'm not quite sure how you are getting something thrown that is not being caught, unless the exception thrown is derived from RuntimeException or Error. In any case you will need to figure out how to correctly catch and handle whatever exceptions can be thrown by the API, and convert or wrap these in ManifoldCF exceptions. was (Author: kwri...@metacarta.com): I built it and tried to run, w/o a repository to connect to, and got this: {code} org.alfresco.webservice.util.WebServiceException: Error creating authentication service: java.net.MalformedURLException: no protocol: balh/AuthenticationService at org.alfresco.webservice.util.WebServiceFactory.getAuthenticationService(WebServiceFactory.java:167) at org.alfresco.webservice.util.AuthenticationUtils.startSession(AuthenticationUtils.java:73) at org.apache.manifoldcf.crawler.connectors.alfresco.AlfrescoRepositoryConnector.getSession(AlfrescoRepositoryConnector.java:147) at org.apache.manifoldcf.crawler.connectors.alfresco.AlfrescoRepositoryConnector.checkConnection(AlfrescoRepositoryConnector.java:179) at org.apache.manifoldcf.crawler.connectors.alfresco.AlfrescoRepositoryConnector.check(AlfrescoRepositoryConnector.java:115) at org.apache.jsp.viewconnection_jsp._jspService(viewconnection_jsp.java:326) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126) at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:706) at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:677) ... {code} This caused a blank screen to come back from the view connection page. So I recommend the following: (1) Since it seems like you need to enter a URL for the "endpoint" field, you might want to consider requesting a protocol, server, port, and path instead of a free-form URL. This will guarantee that the URL you construct will be valid. (2) You should be catching any exceptions thrown by the API methods. I'm not quite sure how you are getting something thrown that is not being caught, unless the exception thrown is derived from RuntimeException or Error. In any case you will need to figure out how to correctly catch and handle whatever exceptions can be thrown by the API, and convert or wrap these in ManifoldCF exceptions. > An Alfresco connector would be helpful > -------------------------------------- > > Key: CONNECTORS-287 > URL: https://issues.apache.org/jira/browse/CONNECTORS-287 > Project: ManifoldCF > Issue Type: New Feature > Reporter: Piergiorgio Lucidi > Assignee: Piergiorgio Lucidi > Fix For: ManifoldCF 0.4 > > Original Estimate: 120h > Remaining Estimate: 120h > > The idea of this connector is based on the fact that there are many Alfresco > installations that don't yet support the CMIS protocol (2.1-2.9). > I'm starting to think about the Alfresco Repository Connector. > Alfresco doesn't expose any REST API to execute Lucene queries without adding > some custom WebScripts. I would like to implement a connector that doesn't > need to install any other custom plugin and that it can work with any > Alfresco 2.x out of the box installation. > The unique search service exposed by Alfresco via REST is a keyword search > service, but it is not useful for our connector. > I think that the right way to follow is to use the Alfresco Web Services API, > this API is based on the SOAP protocol and we have a specific Alfresco Web > Services Client provided by Alfresco. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira