Uploaded image for project: 'ManifoldCF'
  1. ManifoldCF
  2. CONNECTORS-1222

Getting list of activities fails when there's an unregistered connector

    XMLWordPrintableJSON

Details

    Description

      The following exception gets thrown under some conditions:

      Caused by: java.lang.NullPointerException
              at org.apache.manifoldcf.agents.interfaces.OutputConnectionManagerFactor
      y.getAllOutputActivities(OutputConnectionManagerFactory.java:74)
              at org.apache.manifoldcf.crawler.system.ManifoldCF.getActivitiesList(Man
      ifoldCF.java:1161)
              at org.apache.jsp.simplereport_jsp._jspService(simplereport_jsp.java:468
      )
              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)
              ... 44 more
      

      This turns out to be related to difficulty getting a list of activities for a connector:

            String[] activities = OutputConnectorFactory.getActivitiesList(tc,connection.getClassName());
            for (String activityName : activities)
            {
              String activity = ManifoldCF.qualifyOutputActivityName(activityName,connectionName);
              map.add(activity);
            }
      

      This probably occurs when there's a referenced but unregistered connector around.

      Attachments

        Activity

          People

            kwright@metacarta.com Karl Wright
            kwright@metacarta.com Karl Wright
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: