Hi Karl, Shortly; 1- I have created a job via ManifoldCF API. There is not any problem, no error, all is well. 2- Then I try to open the Edit Job page from UI and UI won't display it properly. There is the 500 error on the popup.
I didn't move my current installation. I have downloaded new ManifoldCF version and have run in a clean new environment. Then, I have sent the JSON object to my new ManifoldCF API. I agree with you on this: "The actual error you are getting is because of a JSP exception. The JSP exception is not being handled properly, possibly because of a version mismatch between the included version of Velocity and Apache Commons Collections. " Regards, Cihad Guzel Karl Wright <daddy...@gmail.com>, 26 Eyl 2019 Per, 01:31 tarihinde şunu yazdı: > The actual error you are getting is because of a JSP exception. The JSP > exception is not being handled properly, possibly because of a version > mismatch between the included version of Velocity and Apache Commons > Collections. But if that is real, it's odd because it's occurring when the > velocity context is being initialized!! That means it should be happening > on every page load in the UI, and it most certainly does not -- not for me, > not for anyone who ran the tests. So I suspect a setup problem of some > kind, especially if you're trying to move your 2.12 installation to 2.14 in > place. Lots of jars moved around and you might have a jar conflict. > > Karl > > On Wed, Sep 25, 2019 at 6:25 PM Karl Wright <daddy...@gmail.com> wrote: > >> Hi Cihad, >> Using the API should not ever invoke JSP pages, so I do not think you are >> actually communicating with the API. Unless what you are saying is that >> you create the job, and then the UI won't display it properly? >> >> Karl >> >> >> On Wed, Sep 25, 2019 at 6:11 PM Cihad Guzel <cguz...@gmail.com> wrote: >> >>> Hi, >>> >>> Firstly, Thanks @Furkan, all tests are passed with Java8 now. >>> >>> On the other hand, I test the ManifoldCF API. There are some errors. I >>> have created a job using ManifoldCF API successfully (versions: 2.12, 2.13, >>> 2.14). Then I have HTTP 500 error if I click "mcf-crawler-ui/editjob.jsp" . >>> I get this error when only I use Manifoldcf-2.13 and Manifoldcf-2.14. I >>> don't have any error when I use Manifoldcf-2.12. >>> >>> I sent following JSON object to the manifoldCF API to create new job. >>> >>> {"job":{"children":[{"type":"start_mode","value":"manual"},{"type":"hopcount_mode","value":"accurate"},{"type":"run_mode","value":"continuous"},{"type":"recrawl_interval","value":"86400000"},{"type":"reseed_interval","value":"3600000"},{"type":"description","value":"file_filecrawler2"},{"type":"repository_connection","value":"file_filecrawler2"},{"type":"priority","value":"1"},{"type":"pipelinestage","children":[{"type":"stage_id","value":"0"},{"type":"stage_isoutput","value":"false"},{"type":"stage_connectionname","value":"Allowed >>> >>> Documents"},{"type":"stage_specification","children":[{"type":"extensions","value":"xlsx\r\nrtf\r\ncsv\r\ndocx\r\npptx\r\ntxt\r\npdf\r\nppt\r\nxml\r\ndoc\r\nodp\r\nxls\r\nodt\r\nods"},{"type":"mimetypes","value":"application\/xml\r\napplication\/msword\r\napplication\/pdf\r\napplication\/vnd.ms-powerpoint\r\napplication\/vnd.openxmlformats-officedocument.wordprocessingml.document\r\napplication\/rtf\r\napplication\/vnd.oasis.opendocument.text\r\napplication\/vnd.openxmlformats-officedocument.presentationml.presentation\r\napplication\/vnd.openxmlformats-officedocument.spreadsheetml.sheet\r\ntext\/csv\r\napplication\/vnd.oasis.opendocument.presentation\r\napplication\/vnd.ms-excel\r\napplication\/vnd.oasis.opendocument.spreadsheet\r\ntext\/plain"},{"type":"mindate","value":"","attribute_value":"36593"},{"_type":"minlength","value":"","attribute_value":"1"},{"_type":"maxlength","value":"","attribute_value":"100000000"}]}]},{"_type":"pipelinestage","children":[{"type":"stage_id","value":"1"},{"type":"stage_isoutput","value":"false"},{"type":"stage_connectionname","value":"Source >>> >>> Type"},{"type":"stage_prerequisite","value":"0"},{"type":"stage_specification","children":[{"type":"expression","attribute_parameter":"source_type","_attribute_value":"Windows >>> >>> Shares"},{"_type":"expression","attribute_parameter":"crawler_id","_attribute_value":"file_filecrawler2"},{"_type":"keepAllMetadata","value":"","attribute_value":"true"},{"_type":"filterEmpty","value":"","attribute_value":"true"}]}]},{"_type":"pipelinestage","children":[{"type":"stage_id","value":"2"},{"type":"stage_isoutput","value":"true"},{"type":"stage_connectionname","value":"Solr"},{"type":"stage_prerequisite","value":"1"}]},{"type":"document_specification","children":[{"type":"security","value":"","attribute_value":"off"},{"_type":"sharesecurity","value":"","attribute_value":"off"},{"_type":"parentfoldersecurity","value":"","attribute_value":"off"},{"_type":"startpoint","include":[{"attribute_indexable":"yes","_attribute_filespec":"*","_value":"","attribute_type":"file"},{"_attribute_filespec":"*","_value":"","attribute_type":"directory"}],"_attribute_path":"SharedFiles","_value":""}]}]}} >>> >>> >>> The error message as follow: >>> HTTP ERROR 500 >>> >>> Problem accessing /mcf-crawler-ui/editjob.jsp. Reason: >>> >>> Server Error >>> >>> Caused by: >>> >>> org.apache.jasper.JasperException: An exception occurred processing JSP >>> page /editjob.jsp at line 716 >>> >>> 713: { >>> 714: try >>> 715: { >>> 716: transformationConnector.outputSpecificationHeader(new >>> org.apache.manifoldcf.ui.jsp.JspWrapper(out,adminprofile),pageContext.getRequest().getLocale(),pipelineSpecifications[j],1+j,tabsArray); >>> 717: } >>> 718: finally >>> 719: { >>> >>> >>> Stacktrace: >>> at >>> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:521) >>> at >>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412) >>> 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:790) >>> at >>> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:769) >>> at >>> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585) >>> at >>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) >>> at >>> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577) >>> at >>> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223) >>> at >>> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1125) >>> at >>> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) >>> at >>> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) >>> at >>> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1059) >>> at >>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) >>> at >>> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215) >>> at >>> org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52) >>> at >>> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) >>> at org.eclipse.jetty.server.Server.handle(Server.java:497) >>> at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311) >>> at >>> org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:248) >>> at >>> org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540) >>> at >>> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:610) >>> at >>> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:539) >>> at java.lang.Thread.run(Thread.java:748) >>> Caused by: javax.servlet.ServletException: java.lang.NoClassDefFoundError: >>> org/apache/commons/collections/ExtendedProperties >>> at >>> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:865) >>> at >>> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:794) >>> at org.apache.jsp.editjob_jsp._jspService(editjob_jsp.java:3113) >>> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) >>> at >>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388) >>> ... 23 more >>> Caused by: java.lang.NoClassDefFoundError: >>> org/apache/commons/collections/ExtendedProperties >>> at >>> org.apache.velocity.runtime.RuntimeInstance.<init>(RuntimeInstance.java:183) >>> at org.apache.velocity.app.VelocityEngine.<init>(VelocityEngine.java:60) >>> at >>> org.apache.manifoldcf.core.i18n.Messages.createVelocityEngine(Messages.java:55) >>> at >>> org.apache.manifoldcf.ui.i18n.Messages.outputResourceWithVelocity(Messages.java:132) >>> at >>> org.apache.manifoldcf.agents.transformation.documentfilter.Messages.outputResourceWithVelocity(Messages.java:136) >>> at >>> org.apache.manifoldcf.agents.transformation.documentfilter.DocumentFilter.outputSpecificationHeader(DocumentFilter.java:288) >>> at org.apache.jsp.editjob_jsp._jspService(editjob_jsp.java:953) >>> ... 26 more >>> Caused by: java.lang.ClassNotFoundException: >>> org.apache.commons.collections.ExtendedProperties >>> at java.net.URLClassLoader.findClass(URLClassLoader.java:381) >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424) >>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357) >>> ... 33 more >>> >>> >>> Regards, >>> Cihad Guzel >>> >>> >>> Furkan KAMACI <furkankam...@gmail.com>, 25 Eyl 2019 Çar, 15:14 >>> tarihinde şunu yazdı: >>> >>>> Hi Cihad, >>>> >>>> That package is removed at Java 11. It is possible that you compiled the >>>> project via Java 11 which is not supported at ManifoldCF yet. >>>> >>>> Kind Regards, >>>> Furkan KAMACI >>>> >>>> 25 Eyl 2019 Çar, saat 15:00 tarihinde Cihad Guzel <cguz...@gmail.com> >>>> şunu >>>> yazdı: >>>> >>>> > Hi Karl, >>>> > >>>> > I have following errors: >>>> > >>>> > [INFO] -------------< org.apache.manifoldcf:mcf-connector-common >>>> > >------------- >>>> > [INFO] Building ManifoldCF - Connector-Common 2.14 >>>> > [5/63] >>>> > [INFO] --------------------------------[ jar >>>> > ]--------------------------------- >>>> > [INFO] >>>> > [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ >>>> > mcf-connector-common --- >>>> > [INFO] >>>> > [INFO] --- maven-remote-resources-plugin:1.5:process (default) @ >>>> > mcf-connector-common --- >>>> > [INFO] >>>> > [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ >>>> > mcf-connector-common --- >>>> > [debug] execute contextualize >>>> > [INFO] Using 'UTF-8' encoding to copy filtered resources. >>>> > [INFO] Copying 1 resource >>>> > [INFO] Copying 3 resources >>>> > [INFO] >>>> > [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ >>>> > mcf-connector-common --- >>>> > [INFO] Compiling 59 source files to >>>> > >>>> > >>>> /Users/cguzel/Projects/apache/svn/mcf-tag-2.14-RC1/framework/connector-common/target/classes >>>> > [INFO] ------------------------------------------------------------- >>>> > [ERROR] COMPILATION ERROR : >>>> > [INFO] ------------------------------------------------------------- >>>> > [ERROR] >>>> > >>>> > >>>> /Users/cguzel/Projects/apache/svn/mcf-tag-2.14-RC1/framework/connector-common/src/main/java/org/apache/manifoldcf/connectorcommon/common/CommonsHTTPSender.java:[60,21] >>>> > error: package javax.xml.soap does not exist >>>> > [ERROR] >>>> > >>>> > >>>> /Users/cguzel/Projects/apache/svn/mcf-tag-2.14-RC1/framework/connector-common/src/main/java/org/apache/manifoldcf/connectorcommon/common/CommonsHTTPSender.java:[61,21] >>>> > error: package javax.xml.soap does not exist >>>> > [ERROR] >>>> > >>>> > >>>> /Users/cguzel/Projects/apache/svn/mcf-tag-2.14-RC1/framework/connector-common/src/main/java/org/apache/manifoldcf/connectorcommon/common/CommonsHTTPSender.java:[62,21] >>>> > error: package javax.xml.soap does not exist >>>> > [INFO] 3 errors >>>> > >>>> > Regards, >>>> > Cihad Guzel >>>> > >>>> > >>>> > Karl Wright <daddy...@gmail.com>, 25 Eyl 2019 Çar, 02:01 tarihinde >>>> şunu >>>> > yazdı: >>>> > >>>> > > Ran all tests. >>>> > > >>>> > > +1 from me. >>>> > > >>>> > > Karl >>>> > > >>>> > > >>>> > > On Tue, Sep 24, 2019 at 1:29 PM Karl Wright <daddy...@gmail.com> >>>> wrote: >>>> > > >>>> > > > Please vote on whether to release Apache ManifoldCF 2.14, RC0. >>>> > > > >>>> > > > There is a release tag at >>>> > > > https://svn.apache.org/repos/asf/manifoldcf/tags/release-2.14-RC1 >>>> . >>>> > > > There is a release artifact at >>>> > > > >>>> > >>>> https://dist.apache.org/repos/dist/dev/manifoldcf/apache-manifoldcf-2.14 >>>> > > . >>>> > > > >>>> > > > Note that this release of ManifoldCF has a new connector -- the >>>> Content >>>> > > > Services Web Services connector. In order to integrate this >>>> connector, >>>> > > > changes to the dependencies for web services had to be made, so I >>>> urge >>>> > > > those using the Alfresco and CMIS connectors to verify this >>>> release if >>>> > at >>>> > > > all possible. Integration tests pass but there's nothing like an >>>> > on-site >>>> > > > test. >>>> > > > >>>> > > > RC1 also contains a fix for CONNECTORS-1623. >>>> > > > >>>> > > > Thanks, >>>> > > > Karl >>>> > > > >>>> > > >>>> > >>>> >>>