Re: Strange Anomaly
The addOrReplaceDocument method is NEVER called unless the thread context has been set (and not cleared). So that is not the explanation. Karl On Fri, Aug 5, 2011 at 2:25 AM, Farzad Valad wrote: > I wonder if this error is related to the fact that it seems > clearThreadContext is called before my method finished? Or is this a logger > anomaly and clearThreadContext was called after the error was tossed? > Thanks! > > DEBUG 2011-08-05 01:14:51,005 [Worker thread '25'] > (DupFinderConnector.java:474) - Releaseing connection handle > ERROR 2011-08-05 01:14:51,042 [Worker thread '25'] (WorkerThread.java:893) - > Exception tossed: txn [createtopic] failed with error > java.lang.NullPointerException > org.apache.manifoldcf.core.interfaces.ManifoldCFException: txn [createtopic] > failed with error java.lang.NullPointerException > at com.systemware.ci.sdk.CIConnector.sendTxn(CIConnector.java:277) > at com.systemware.ci.sdk.CIConnector.sendTxn(CIConnector.java:315) > at > org.apache.manifoldcf.agents.output.dupfinder.DupFinderConnector.captureUniqueDoc2CI(DupFinderConnector.java:370) > at > org.apache.manifoldcf.agents.output.dupfinder.DupFinderConnector.addOrReplaceDocument(DupFinderConnector.java:195) > at > org.apache.manifoldcf.agents.incrementalingest.IncrementalIngester.addOrReplaceDocument(IncrementalIngester.java:1433) > at > org.apache.manifoldcf.agents.incrementalingest.IncrementalIngester.performIngestion(IncrementalIngester.java:418) > at > org.apache.manifoldcf.agents.incrementalingest.IncrementalIngester.documentIngest(IncrementalIngester.java:313) > at > org.apache.manifoldcf.crawler.system.WorkerThread$ProcessActivity.ingestDocument(WorkerThread.java:1565) > at > org.apache.manifoldcf.crawler.connectors.filesystem.FileConnector.processDocuments(FileConnector.java:275) > at > org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector.processDocuments(BaseRepositoryConnector.java:423) > at > org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.java:564) >
[jira] [Updated] (CONNECTORS-236) Tests and test server needed for CMIS connector
[ https://issues.apache.org/jira/browse/CONNECTORS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Piergiorgio Lucidi updated CONNECTORS-236: -- Attachment: patch4.txt This patch must be applied on the branch and contains the unit tests and integration tests for the CMIS Repository Connector. > Tests and test server needed for CMIS connector > --- > > Key: CONNECTORS-236 > URL: https://issues.apache.org/jira/browse/CONNECTORS-236 > Project: ManifoldCF > Issue Type: Bug > Components: CMIS connector >Reporter: Piergiorgio Lucidi > Attachments: > chemistry-opencmis-server-inmemory-war-0.5.0-SNAPSHOT.war, patch.txt, > patch2.txt, patch3.txt, patch4.txt > > > The CMIS connector needs tests, and a CMIS test server to run against. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CONNECTORS-236) Tests and test server needed for CMIS connector
[ https://issues.apache.org/jira/browse/CONNECTORS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Piergiorgio Lucidi updated CONNECTORS-236: -- Attachment: (was: patch4.txt) > Tests and test server needed for CMIS connector > --- > > Key: CONNECTORS-236 > URL: https://issues.apache.org/jira/browse/CONNECTORS-236 > Project: ManifoldCF > Issue Type: Bug > Components: CMIS connector >Reporter: Piergiorgio Lucidi > Attachments: > chemistry-opencmis-server-inmemory-war-0.5.0-SNAPSHOT.war, patch.txt, > patch2.txt, patch3.txt, patch4.txt > > > The CMIS connector needs tests, and a CMIS test server to run against. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CONNECTORS-236) Tests and test server needed for CMIS connector
[ https://issues.apache.org/jira/browse/CONNECTORS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Piergiorgio Lucidi updated CONNECTORS-236: -- Attachment: patch4.txt This patch must be applied on the branch and contains the unit tests and integration tests for the CMIS Repository Connector - version fixed > Tests and test server needed for CMIS connector > --- > > Key: CONNECTORS-236 > URL: https://issues.apache.org/jira/browse/CONNECTORS-236 > Project: ManifoldCF > Issue Type: Bug > Components: CMIS connector >Reporter: Piergiorgio Lucidi > Attachments: > chemistry-opencmis-server-inmemory-war-0.5.0-SNAPSHOT.war, patch.txt, > patch2.txt, patch3.txt, patch4.txt > > > The CMIS connector needs tests, and a CMIS test server to run against. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CONNECTORS-236) Tests and test server needed for CMIS connector
[ https://issues.apache.org/jira/browse/CONNECTORS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079950#comment-13079950 ] Karl Wright commented on CONNECTORS-236: Patch 4 committed to the branch. > Tests and test server needed for CMIS connector > --- > > Key: CONNECTORS-236 > URL: https://issues.apache.org/jira/browse/CONNECTORS-236 > Project: ManifoldCF > Issue Type: Bug > Components: CMIS connector >Reporter: Piergiorgio Lucidi > Attachments: > chemistry-opencmis-server-inmemory-war-0.5.0-SNAPSHOT.war, patch.txt, > patch2.txt, patch3.txt, patch4.txt > > > The CMIS connector needs tests, and a CMIS test server to run against. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CONNECTORS-234) Add the CMIS binding parameter for the CMIS Repository Connector
[ https://issues.apache.org/jira/browse/CONNECTORS-234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Piergiorgio Lucidi updated CONNECTORS-234: -- Status: Patch Available (was: Open) This patch includes an improvement of the CMIS Repository Connector: now a new configuration parameter is available in the configuration form. Now it is possible to select all the two CMIS binding: - AtomPub - Web Services The local binding is not meaningful and I think that it is not needed. This patch must be applied on the CONNECTORS-236 branch. > Add the CMIS binding parameter for the CMIS Repository Connector > > > Key: CONNECTORS-234 > URL: https://issues.apache.org/jira/browse/CONNECTORS-234 > Project: ManifoldCF > Issue Type: Improvement > Components: CMIS connector >Reporter: Piergiorgio Lucidi > Attachments: patch5.txt > > Original Estimate: 3h > Remaining Estimate: 3h > > The CMIS Repository Connector must include a new configuration parameter to > set the CMIS binding protocol. > This is an important parameter that allows to fit Manifold on each product > vendor, this because not all the vendors have implemented all the CMIS > bindings. > This means that the configuration form should have the following > possibilities for this new binding parameter: > - LOCAL (for the JVM local process binding) > - AtomPub (the CMIS AtomPub protocol) > - Web Services - SOAP (the CMIS WS-SOAP Protocol) > This patch should involve only the configuration settings for the CMIS > session without changing any lines of code of the process of the CMIS > Repository Connector. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CONNECTORS-234) Add the CMIS binding parameter for the CMIS Repository Connector
[ https://issues.apache.org/jira/browse/CONNECTORS-234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Piergiorgio Lucidi updated CONNECTORS-234: -- Attachment: patch5.txt This is the patch5.txt to apply on the branch CONNECTORS-236 > Add the CMIS binding parameter for the CMIS Repository Connector > > > Key: CONNECTORS-234 > URL: https://issues.apache.org/jira/browse/CONNECTORS-234 > Project: ManifoldCF > Issue Type: Improvement > Components: CMIS connector >Reporter: Piergiorgio Lucidi > Attachments: patch5.txt > > Original Estimate: 3h > Remaining Estimate: 3h > > The CMIS Repository Connector must include a new configuration parameter to > set the CMIS binding protocol. > This is an important parameter that allows to fit Manifold on each product > vendor, this because not all the vendors have implemented all the CMIS > bindings. > This means that the configuration form should have the following > possibilities for this new binding parameter: > - LOCAL (for the JVM local process binding) > - AtomPub (the CMIS AtomPub protocol) > - Web Services - SOAP (the CMIS WS-SOAP Protocol) > This patch should involve only the configuration settings for the CMIS > session without changing any lines of code of the process of the CMIS > Repository Connector. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CONNECTORS-236) Tests and test server needed for CMIS connector
[ https://issues.apache.org/jira/browse/CONNECTORS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080079#comment-13080079 ] Karl Wright commented on CONNECTORS-236: Merged the CONNECTORS-236 branch into trunk. r1154315. > Tests and test server needed for CMIS connector > --- > > Key: CONNECTORS-236 > URL: https://issues.apache.org/jira/browse/CONNECTORS-236 > Project: ManifoldCF > Issue Type: Bug > Components: CMIS connector >Reporter: Piergiorgio Lucidi > Attachments: > chemistry-opencmis-server-inmemory-war-0.5.0-SNAPSHOT.war, patch.txt, > patch2.txt, patch3.txt, patch4.txt > > > The CMIS connector needs tests, and a CMIS test server to run against. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CONNECTORS-234) Add the CMIS binding parameter for the CMIS Repository Connector
[ https://issues.apache.org/jira/browse/CONNECTORS-234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080086#comment-13080086 ] Karl Wright commented on CONNECTORS-234: I merged branches/CONNECTORS-236 into trunk and applied the patch. It built fine but the cmis end-to-end tests failed. Here's the trace: [junit] java.lang.Exception: Job reports error. [junit] at org.apache.manifoldcf.cmis_tests.APISanityTest.waitJobInactive(APISanityTest.java:510) [junit] at org.apache.manifoldcf.cmis_tests.APISanityTest.sanityCheck(APISanityTest.java:350) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [junit] at java.lang.reflect.Method.invoke(Method.java:616) [junit] at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit] at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit] at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit] at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) I think the test may need to be updated to use the new code. > Add the CMIS binding parameter for the CMIS Repository Connector > > > Key: CONNECTORS-234 > URL: https://issues.apache.org/jira/browse/CONNECTORS-234 > Project: ManifoldCF > Issue Type: Improvement > Components: CMIS connector >Reporter: Piergiorgio Lucidi > Attachments: patch5.txt > > Original Estimate: 3h > Remaining Estimate: 3h > > The CMIS Repository Connector must include a new configuration parameter to > set the CMIS binding protocol. > This is an important parameter that allows to fit Manifold on each product > vendor, this because not all the vendors have implemented all the CMIS > bindings. > This means that the configuration form should have the following > possibilities for this new binding parameter: > - LOCAL (for the JVM local process binding) > - AtomPub (the CMIS AtomPub protocol) > - Web Services - SOAP (the CMIS WS-SOAP Protocol) > This patch should involve only the configuration settings for the CMIS > session without changing any lines of code of the process of the CMIS > Repository Connector. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CONNECTORS-234) Add the CMIS binding parameter for the CMIS Repository Connector
[ https://issues.apache.org/jira/browse/CONNECTORS-234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Piergiorgio Lucidi updated CONNECTORS-234: -- Attachment: patch6.txt You're right! Here the integration test code updated with the new version of the CMIS Repository Connector. Before attaching this patch, I started integration test that was executed with success. > Add the CMIS binding parameter for the CMIS Repository Connector > > > Key: CONNECTORS-234 > URL: https://issues.apache.org/jira/browse/CONNECTORS-234 > Project: ManifoldCF > Issue Type: Improvement > Components: CMIS connector >Reporter: Piergiorgio Lucidi > Attachments: patch5.txt, patch6.txt > > Original Estimate: 3h > Remaining Estimate: 3h > > The CMIS Repository Connector must include a new configuration parameter to > set the CMIS binding protocol. > This is an important parameter that allows to fit Manifold on each product > vendor, this because not all the vendors have implemented all the CMIS > bindings. > This means that the configuration form should have the following > possibilities for this new binding parameter: > - LOCAL (for the JVM local process binding) > - AtomPub (the CMIS AtomPub protocol) > - Web Services - SOAP (the CMIS WS-SOAP Protocol) > This patch should involve only the configuration settings for the CMIS > session without changing any lines of code of the process of the CMIS > Repository Connector. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CONNECTORS-234) Add the CMIS binding parameter for the CMIS Repository Connector
[ https://issues.apache.org/jira/browse/CONNECTORS-234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karl Wright updated CONNECTORS-234: --- Resolution: Fixed Fix Version/s: ManifoldCF 0.3 Status: Resolved (was: Patch Available) r1154329. > Add the CMIS binding parameter for the CMIS Repository Connector > > > Key: CONNECTORS-234 > URL: https://issues.apache.org/jira/browse/CONNECTORS-234 > Project: ManifoldCF > Issue Type: Improvement > Components: CMIS connector >Reporter: Piergiorgio Lucidi >Assignee: Karl Wright > Fix For: ManifoldCF 0.3 > > Attachments: patch5.txt, patch6.txt > > Original Estimate: 3h > Remaining Estimate: 3h > > The CMIS Repository Connector must include a new configuration parameter to > set the CMIS binding protocol. > This is an important parameter that allows to fit Manifold on each product > vendor, this because not all the vendors have implemented all the CMIS > bindings. > This means that the configuration form should have the following > possibilities for this new binding parameter: > - LOCAL (for the JVM local process binding) > - AtomPub (the CMIS AtomPub protocol) > - Web Services - SOAP (the CMIS WS-SOAP Protocol) > This patch should involve only the configuration settings for the CMIS > session without changing any lines of code of the process of the CMIS > Repository Connector. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (CONNECTORS-234) Add the CMIS binding parameter for the CMIS Repository Connector
[ https://issues.apache.org/jira/browse/CONNECTORS-234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karl Wright reassigned CONNECTORS-234: -- Assignee: Karl Wright > Add the CMIS binding parameter for the CMIS Repository Connector > > > Key: CONNECTORS-234 > URL: https://issues.apache.org/jira/browse/CONNECTORS-234 > Project: ManifoldCF > Issue Type: Improvement > Components: CMIS connector >Reporter: Piergiorgio Lucidi >Assignee: Karl Wright > Fix For: ManifoldCF 0.3 > > Attachments: patch5.txt, patch6.txt > > Original Estimate: 3h > Remaining Estimate: 3h > > The CMIS Repository Connector must include a new configuration parameter to > set the CMIS binding protocol. > This is an important parameter that allows to fit Manifold on each product > vendor, this because not all the vendors have implemented all the CMIS > bindings. > This means that the configuration form should have the following > possibilities for this new binding parameter: > - LOCAL (for the JVM local process binding) > - AtomPub (the CMIS AtomPub protocol) > - Web Services - SOAP (the CMIS WS-SOAP Protocol) > This patch should involve only the configuration settings for the CMIS > session without changing any lines of code of the process of the CMIS > Repository Connector. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira