philipmeadows / alfresco-webscript-manifold-connector

Alfresco Solr API Repository Connector for Apache ManifoldCF
11 stars 11 forks source link

IllegalAccessError #10

Open cetra3 opened 10 years ago

cetra3 commented 10 years ago

When running ManifoldCF in Tomcat, with the Alfresco Webscripts connector as a repository connector, the following exception repeats within the log upon job execution:

java.lang.IllegalAccessError: tried to access field org.apache.manifoldcf.crawler.system.SeedingActivity.jobID from class org.apache.manifoldcf.crawler.system.JobIdStealer
at org.apache.manifoldcf.crawler.system.JobIdStealer.stealId(JobIdStealer.java:18)
at org.apache.manifoldcf.crawler.system.JobIdStealer.stealId(JobIdStealer.java:14)
at org.alfresco.consulting.manifold.AlfrescoConnector.addSeedDocuments(AlfrescoConnector.java:120)
at org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector.addSeedDocuments(BaseRepositoryConnector.java:156)
at org.apache.manifoldcf.crawler.system.StartupThread.run(StartupThread.java:153)
maoo commented 10 years ago

Sharing a work-around from @cetra3

To work around it, I’ve copied the JobIdStealer.class file into WEB-INF/lib/mcf-pull-agent.jar and it seems like the error has gone away.

The JobIdStealer class should be removed and jobId should be retrieved via Manifold internal APIs.