Karl Wright created CONNECTORS-1222:
---------------------------------------

             Summary: Getting list of activities fails when there's an 
unregistered connector
                 Key: CONNECTORS-1222
                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1222
             Project: ManifoldCF
          Issue Type: Bug
          Components: Framework agents process
    Affects Versions: ManifoldCF 2.0.1
            Reporter: Karl Wright
            Assignee: Karl Wright
             Fix For: ManifoldCF 1.10, ManifoldCF 2.2


The following exception gets thrown under some conditions:

{code}
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
{code}

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

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

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




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to