[MarkLogic Dev General] Applying XSLT using CPF
Hello everyone, I am getting following error when I upload an XML document into Marklogic for XSLT transformation. I have configured a CPF domain and pipeline and it does not seem to be working. I have verified using xdmp:xslt-eval in DQ that the XSLT is converting the xml document properly. So I am guessing that I am doing something wrong with CPF configuration. Below are the details. Any help will be greatly appreciated. I hope this information is enough for debugging the problem. Here is the error that I am getting: Warning: TaskServer: pce: on-state-enter /ancillary/test.xml condition failed Here is how I am configuring the pipeline. pipeline xmlns=http://marklogic.com/cpf/pipelines; pipeline-nameTransform Ancillary to QTI on load/pipeline-name pipeline-descriptionXSLT transformation applied to new and update XML documents/pipeline-description success-action module/MarkLogic/cpf/actions/success-action.xqy/module /success-action failure-action module/MarkLogic/cpf/actions/failure-action.xqy/module /failure-action state-transition annotation When a document is FIRST INSERTED, apply the XSLT. /annotation statehttp://marklogic.com/states/initial/state on-successhttp://marklogic.com/states/done/on-success on-failurehttp://marklogic.com/states/error/on-failure execute !-- Only apply XSLT against XML documents -- condition module /MarkLogic/cpf/actions/node-type-condition.xqy/module options xmlns=/MarkLogic/cpf/actions/node-type-condition.xqy formatxml/format /options /condition !-- Apply this XSLT -- action module/pipelines/QTI2.xsl/module /action /execute /state-transition state-transition annotation When a document is UPDATED, apply the XSLT. /annotation statehttp://marklogic.com/states/updated/state on-successhttp://marklogic.com/states/done/on-success on-failurehttp://marklogic.com/states/error/on-failure execute !-- Only apply XSLT against XML documents -- condition module /MarkLogic/cpf/actions/node-type-condition.xqy/module options xmlns=/MarkLogic/cpf/actions/node-type-condition.xqy formatxml/format /options /condition !-- Apply this XSLT -- action module/pipelines/QTI2.xsl/module /action /execute /state-transition /pipeline Kashif Khan, PMI-ACP Sr. Solution Architect Publishing Technology Houghton Mifflin Harcourt 9400 South Park Center Loop Orlando, FL 32819 Office: 407.345.3420 Mobile: 407.949.4697 hmhco.com___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general
Re: [MarkLogic Dev General] Applying XSLT using CPF
Danny I do not see any error. Here is what I get. I had to add the try catch statement in the XSLT to get the error in the error ErrorLog.log file. prop:properties xmlns:prop=http://marklogic.com/xdmp/property; cpf:processing-status xmlns:cpf=http://marklogic.com/cpf;done/cpf:processing-status cpf:property-hash xmlns:cpf=http://marklogic.com/cpf;d41d8cd98f00b204e9800998ecf8427e/cpf:property-hash cpf:last-updated xmlns:cpf=http://marklogic.com/cpf;2013-06-27T15:23:02.794876-04:00/cpf:last-updated cpf:state xmlns:cpf=http://marklogic.com/cpf;http://marklogic.com/states/done/cpf:state prop:last-modified2013-06-27T15:23:02-04:00/prop:last-modified /prop:properties Kashif Khan, PMI-ACP Sr. Solution Architect Publishing Technology Houghton Mifflin Harcourt 9400 South Park Center Loop Orlando, FL 32819 Office: 407.345.3420 Mobile: 407.949.4697 hmhco.com From: Danny Sokolsky danny.sokol...@marklogic.commailto:danny.sokol...@marklogic.com Reply-To: MarkLogic Developer Discussion general@developer.marklogic.commailto:general@developer.marklogic.com Date: Thursday, June 27, 2013 4:20 PM To: MarkLogic Developer Discussion general@developer.marklogic.commailto:general@developer.marklogic.com Subject: Re: [MarkLogic Dev General] Applying XSLT using CPF Did you look at the properties for the document? It should contain any errors that occurred. For example: xdmp:document-properties(“/ancillary/test.xml”) -Danny From: general-boun...@developer.marklogic.commailto:general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Khan, Kashif Sent: Thursday, June 27, 2013 1:06 PM To: MarkLogic Developer Discussion Subject: [MarkLogic Dev General] Applying XSLT using CPF Hello everyone, I am getting following error when I upload an XML document into Marklogic for XSLT transformation. I have configured a CPF domain and pipeline and it does not seem to be working. I have verified using xdmp:xslt-eval in DQ that the XSLT is converting the xml document properly. So I am guessing that I am doing something wrong with CPF configuration. Below are the details. Any help will be greatly appreciated. I hope this information is enough for debugging the problem. Here is the error that I am getting: Warning: TaskServer: pce: on-state-enter /ancillary/test.xml condition failed Here is how I am configuring the pipeline. pipeline xmlns=http://marklogic.com/cpf/pipelines; pipeline-nameTransform Ancillary to QTI on load/pipeline-name pipeline-descriptionXSLT transformation applied to new and update XML documents/pipeline-description success-action module/MarkLogic/cpf/actions/success-action.xqy/module /success-action failure-action module/MarkLogic/cpf/actions/failure-action.xqy/module /failure-action state-transition annotation When a document is FIRST INSERTED, apply the XSLT. /annotation statehttp://marklogic.com/states/initial/statehttp://marklogic.com/states/initial%3c/state on-successhttp://marklogic.com/states/done/on-successhttp://marklogic.com/states/done%3c/on-success on-failurehttp://marklogic.com/states/error/on-failurehttp://marklogic.com/states/error%3c/on-failure execute !-- Only apply XSLT against XML documents -- condition module/MarkLogic/cpf/actions/node-type-condition.xqy/module options xmlns=/MarkLogic/cpf/actions/node-type-condition.xqy formatxml/format /options /condition !-- Apply this XSLT -- action module/pipelines/QTI2.xsl/module /action /execute /state-transition state-transition annotation When a document is UPDATED, apply the XSLT. /annotation statehttp://marklogic.com/states/updated/statehttp://marklogic.com/states/updated%3c/state on-successhttp://marklogic.com/states/done/on-successhttp://marklogic.com/states/done%3c/on-success on-failurehttp://marklogic.com/states/error/on-failurehttp://marklogic.com/states/error%3c/on-failure execute !-- Only apply XSLT against XML documents -- condition module/MarkLogic/cpf/actions/node-type-condition.xqy/module options xmlns=/MarkLogic/cpf/actions/node-type-condition.xqy formatxml/format /options /condition !-- Apply this XSLT -- action module/pipelines/QTI2.xsl/module /action /execute /state-transition /pipeline Kashif Khan, PMI-ACP Sr. Solution Architect Publishing Technology Houghton Mifflin Harcourt 9400 South Park Center Loop Orlando, FL 32819 Office: 407.345.3420 Mobile: 407.949.4697 hmhco.com___ General mailing list
Re: [MarkLogic Dev General] Applying XSLT using CPF
On Thu, 27 Jun 2013 13:05:30 -0700, Khan, Kashif kashif.k...@hmhco.com wrote: Hello everyone, I am getting following error when I upload an XML document into Marklogic for XSLT transformation. I have configured a CPF domain and pipeline and it does not seem to be working. I have verified using xdmp:xslt-eval in DQ that the XSLT is converting the xml document properly. So I am guessing that I am doing something wrong with CPF configuration. Below are the details. Any help will be greatly appreciated. I hope this information is enough for debugging the problem. Here is the error that I am getting: Warning: TaskServer: pce: on-state-enter /ancillary/test.xml condition failed This warning means that your condition module threw an error for some reason when If you enable logging to the fine level, you will get the full stack trace of the error, which might give you some clues as to what is going wrong. //Mary ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general
Re: [MarkLogic Dev General] Applying XSLT using CPF
Thanks Mary, I changed the logging to fine and here is what I get. It seems like its not able to find Module /MarkLogic/cpf/actions/node-type-condition.xqy. But I am not sure why. 2013-06-27 16:26:34.365 Fine: pce 1089571749251106047 reloading xml document /ancillary/MXENM08AAS2X_SE_080_03.xml 2013-06-27 16:26:36.411 Debug: InMemoryStand /Users/kashif/Library/Application Support/MarkLogic/Data/Forests/pce/001b, disk=5MB, memory=217MB, list=170MB, tree=42MB, rangeIndex=6MB, reverseIndex=6MB 2013-06-27 16:26:36.416 Fine: pce 1089571749251106047 updating properties for /ancillary/MXENM08AAS2X_SE_080_03.xml 2013-06-27 16:26:36.477 Fine: pce 14549107647562889484 updating properties for /ancillary/MXENM08AAS2X_SE_080_03.xml 2013-06-27 16:26:36.499 Fine: 8038-pce-dav: pce: on-any-property skipping /ancillary/MXENM08AAS2X_SE_080_03.xml 2013-06-27 16:26:36.520 Fine: pce 1089571749251106047 3 fragments replaced 3 2013-06-27 16:26:36.594 Fine: AppConnectionTask::handlePropfind() 2013-06-27 16:26:36.649 Fine: pce 9431676618782096902 updating properties for /ancillary/MXENM08AAS2X_SE_080_03.xml 2013-06-27 16:26:36.669 Fine: TaskServer: pce: on-any-property skipping /ancillary/MXENM08AAS2X_SE_080_03.xml 2013-06-27 16:26:36.880 Fine: pce 9431676618782096902 1 fragment replaced 1 2013-06-27 16:26:36.880 Fine: TaskServer: pce: on-status-enter skipping /ancillary/MXENM08AAS2X_SE_080_03.xml 2013-06-27 16:26:36.916 Warning: TaskServer: pce: on-state-enter /ancillary/MXENM08AAS2X_SE_080_03.xml condition failed 2013-06-27 16:26:36.917 Fine: TaskServer: pce: on-state-enter /ancillary/MXENM08AAS2X_SE_080_03.xml condition failed 2013-06-27 16:26:36.917 Fine: TaskServer: error:error xsi:schemaLocation=http://marklogic.com/xdmp/error error.xsd xmlns:error=http://marklogic.com/xdmp/error; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 2013-06-27 16:26:36.917 Fine: TaskServer: error:codeXDMP-MODNOTFOUND/error:code 2013-06-27 16:26:36.917 Fine: TaskServer: error:nameerr:XQST0059/error:name 2013-06-27 16:26:36.917 Fine: TaskServer: error:xquery-version1.0-ml/error:xquery-version 2013-06-27 16:26:36.917 Fine: TaskServer: error:messageModule not found/error:message 2013-06-27 16:26:36.917 Fine: TaskServer: error:format-stringXDMP-MODNOTFOUND: (err:XQST0059) Module /MarkLogic/cpf/actions/node-type-condition.xqy not found/error:format-string 2013-06-27 16:26:36.917 Fine: TaskServer: error:retryablefalse/error:retryable 2013-06-27 16:26:36.917 Fine: TaskServer: error:expr /error:expr 2013-06-27 16:26:36.917 Fine: TaskServer: error:data 2013-06-27 16:26:36.917 Fine: TaskServer: error:datum/MarkLogic/cpf/actions/node-type-condition.xqy/error:datum 2013-06-27 16:26:36.917 Fine: TaskServer: /error:data 2013-06-27 16:26:36.917 Fine: TaskServer: error:stack 2013-06-27 16:26:36.917 Fine: TaskServer: error:frame 2013-06-27 16:26:36.917 Fine: TaskServer: error:uri/MarkLogic/cpf/actions/node-type-condition.xqy/error:uri 2013-06-27 16:26:36.917 Fine: TaskServer: error:operationxdmp:invoke(/MarkLogic/cpf/actions/node-type-condition.xq y, (xs:QName(trgr:uri), /ancillary/MXENM08AAS2X_SE_080_03.xml, xs:QName(trgr:trigger), ...), lt;options xmlns=xdmp:evalgt;lt;isolationgt;different-transactionlt;/isolationg t;lt;prevent-deadlocksgt;t...lt;/optionsgt;)/error:operation 2013-06-27 16:26:36.917 Fine: TaskServer: error:xquery-version1.0-ml/error:xquery-version 2013-06-27 16:26:36.917 Fine: TaskServer: /error:frame 2013-06-27 16:26:36.917 Fine: TaskServer: error:frame 2013-06-27 16:26:36.917 Fine: TaskServer: error:uri/MarkLogic/cpf/triggers/internal-cpf.xqy/error:uri 2013-06-27 16:26:36.917 Fine: TaskServer: error:line93/error:line 2013-06-27 16:26:36.917 Fine: TaskServer: error:operationtest-condition(on-state-enter, http://marklogic.com/states/updated;, /ancillary/MXENM08AAS2X_SE_080_03.xml, (xs:QName(trgr:uri), /ancillary/MXENM08AAS2X_SE_080_03.xml, xs:QName(trgr:trigger), ...), fn:doc(http://marklogic.com/cpf/pipelines/9943759664127814414.xml;)/p:pipe line/p:state-transition[2]/p:execute, lt;options xmlns=xdmp:evalgt;lt;isolationgt;different-transactionlt;/isolationg t;lt;prevent-deadlocksgt;t...lt;/optionsgt;)/error:operation 2013-06-27 16:26:36.917 Fine: TaskServer: error:variables 2013-06-27 16:26:36.917 Fine: TaskServer: error:variable 2013-06-27 16:26:36.917 Fine: TaskServer: error:name xmlns=http://marklogic.com/cpf/internal;caller/error:name 2013-06-27 16:26:36.917 Fine: TaskServer: error:valueon-state-enter/error:value 2013-06-27 16:26:36.917 Fine: TaskServer: /error:variable 2013-06-27 16:26:36.917 Fine: TaskServer: error:variable 2013-06-27 16:26:36.917 Fine: TaskServer: error:name xmlns=http://marklogic.com/cpf/internal;state-or-status/error:name 2013-06-27 16:26:36.917 Fine: TaskServer: error:valuehttp://marklogic.com/states/updated;/error:value 2013-06-27 16:26:36.917 Fine: TaskServer: /error:variable 2013-06-27 16:26:36.917 Fine: TaskServer:
Re: [MarkLogic Dev General] Applying XSLT using CPF
On Thu, 27 Jun 2013 13:30:50 -0700, Khan, Kashif kashif.k...@hmhco.com wrote: Thanks Mary, I changed the logging to fine and here is what I get. It seems like its not able to find Module /MarkLogic/cpf/actions/node-type-condition.xqy. But I am not sure why. Hmm... That is a standard file that should be there under the Modules subdirectory. Do you have the 'root' parameter of your domain set to something strange? Try setting it to / if it isn't already. //Mary ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general
Re: [MarkLogic Dev General] Applying XSLT using CPF
I am running Marklogic 4 so it was not there. I have copied this file from Marklogic 5 to Marklogic 4 but I am still getting the same error. Kashif Khan, PMI-ACP Sr. Solution Architect Publishing Technology Houghton Mifflin Harcourt 9400 South Park Center Loop Orlando, FL 32819 Office: 407.345.3420 Mobile: 407.949.4697 hmhco.com On 6/27/13 4:49 PM, Mary Holstege mary.holst...@marklogic.com wrote: On Thu, 27 Jun 2013 13:30:50 -0700, Khan, Kashif kashif.k...@hmhco.com wrote: Thanks Mary, I changed the logging to fine and here is what I get. It seems like its not able to find Module /MarkLogic/cpf/actions/node-type-condition.xqy. But I am not sure why. Hmm... That is a standard file that should be there under the Modules subdirectory. Do you have the 'root' parameter of your domain set to something strange? Try setting it to / if it isn't already. //Mary ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general