[
https://issues.apache.org/jira/browse/CONNECTORS-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16763530#comment-16763530
]
Karl Wright commented on CONNECTORS-1581:
-----------------------------------------
Here's the code that's throwing an NPE:
{code}
// Compute the list of connector instances we will need.
// This has a side effect of fetching all job descriptions too.
Set<String> connectionNames = new HashSet<String>();
for (int i = 0; i < descs.length; i++)
{
DocumentDescription dd = descs[i];
IJobDescription job = jobDescriptionMap.get(dd.getJobID());
if (job == null)
{
job = jobManager.load(dd.getJobID(),true);
jobDescriptionMap.put(dd.getJobID(),job);
}
connectionNames.add(job.getConnectionName());
}
{code}
The problem is, apparently, that jobManager.load(<jobID>) is coming back null.
I have no idea why this would happen but clearly the problem has to do with the
database implementation, perhaps the mysql driver being used?
> [Set priority thread] Error tossed: null during startup
> -------------------------------------------------------
>
> Key: CONNECTORS-1581
> URL: https://issues.apache.org/jira/browse/CONNECTORS-1581
> Project: ManifoldCF
> Issue Type: Bug
> Environment: • ManifoldCF 2.12, running in a Docker Container
> based on Redhat Linux, OpenJDK 8
> • AWS RDS Database (Aurora MySQL -> 5.6 compatible, utf8 (collation
> utf8_bin))
> • Single Process Setup
> Reporter: Markus Schuch
> Priority: Major
>
> We see the following {{NullPointerException}} at startup:
> {code}
> [Set priority thread] FATAL org.apache.manifoldcf.crawlerthreads- Error
> tossed: null
> java.lang.NullPointerException
> at
> org.apache.manifoldcf.crawler.system.ManifoldCF.writeDocumentPriorities(ManifoldCF.java:1202)
> at
> org.apache.manifoldcf.crawler.system.SetPriorityThread.run(SetPriorityThread.java:141)
> {code}
> What could be the cause of that?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)