Scheduler problems

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Scheduler problems

Ryan Puddephatt

Hi all,

            I’m trying to create the config of the Scheduler processor using XSLT to a dynamic date, but everytime I do it gives a exception the XSLT is like so:

 

<config xsl:version="2.0"

   xsl:exclude-result-prefixes="#all">

 

   <xsl:variable name="today"

      select="current-dateTime()"/>

               

   <xsl:variable name="startDay"

      select="day-from-dateTime($today) +

         (if(hours-from-dateTime($today) > 2) then 1 else 0)"/>

               

   <xsl:variable name="startDate"

      select="concat(year-from-dateTime($today),'-',

         format-number(month-from-dateTime($today),'00'),'-',

         format-number($startDay,'00'),'T02:00:00.000')"/>

   <start-task>

      <name>EmailReport</name>

      <start-time><xsl:value-of select="$startDate"/></start-time>

      <interval>86400000</interval>

      <synchronized>true</synchronized>

      <processor-name>oxf:pipeline</processor-name>

      <input name="config" url="oxf:/pages/emailReport/sched/email.xpl"/>

   </start-task>

</config>

 

I’m trying to start the scheduler at 02:00 GMT, but get this exception

 

org.orbeon.oxf.common.ValidationException: null, line 0, column 0: Error "oxf:pipeline" does not satisfy the "QName" type(schema: http://www.orbeon.com/oxf/scheduler)

null, line 0, column 0: Error "oxf:pipeline" does not satisfy the "QName" type(schema: http://www.orbeon.com/oxf/scheduler)

     at org.orbeon.oxf.processor.validation.MSVValidationProcessor$8.error(MSVValidationProcessor.java:197)

     at com.sun.msv.verifier.Verifier.onError(Verifier.java:336)

     at com.sun.msv.verifier.Verifier.onError(Verifier.java:328)

     at com.sun.msv.verifier.Verifier.verifyText(Verifier.java:146)

     at com.sun.msv.verifier.Verifier.endElement(Verifier.java:284)

     at org.orbeon.oxf.xml.TeeContentHandler.endElement(TeeContentHandler.java:88)

     at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:170)

     at org.orbeon.oxf.processor.DebugProcessor$1.readImpl(DebugProcessor.java:76)

     at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:1012)

     at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1195)

     at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$ConcreteProcessorFilter.read(ProcessorImpl.java:990)

     at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1195)

     at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:348)

     at org.orbeon.oxf.processor.validation.MSVValidationProcessor.access$700(MSVValidationProcessor.java:44)

     at org.orbeon.oxf.processor.validation.MSVValidationProcessor$5.readImpl(MSVValidationProcessor.java:219)

     at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:1012)

     at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1195)

     at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:348)

     at org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:403)

     at org.orbeon.oxf.processor.SchedulerProcessor$1.read(SchedulerProcessor.java:52)

     at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:470)

     at org.orbeon.oxf.processor.SchedulerProcessor.start(SchedulerProcessor.java:49)

     at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProcessor.java:652)

     at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:536)

     at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:649)

     at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProcessor.java:652)

     at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:536)

     at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:649)

     at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.getInput(PipelineProcessor.java:140)

     at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.readImpl(PipelineProcessor.java:89)

     at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:1012)

     at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1195)

     at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:348)

     at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:353)

     at org.orbeon.oxf.processor.IdentityProcessor$1.readImpl(IdentityProcessor.java:33)

     at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:1012)

     at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1195)

     at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:348)

     at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$000(PipelineProcessor.java:66)

     at org.orbeon.oxf.processor.pipeline.PipelineProcessor$2.run(PipelineProcessor.java:96)

     at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:536)

     at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$100(PipelineProcessor.java:66)

     at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.readImpl(PipelineProcessor.java:94)

     at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:1012)

     at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1195)

     at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1.readImpl(ConcreteChooseProcessor.java:123)

     at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:1012)

     at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1195)

     at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:348)

Reply | Threaded
Open this post in threaded view
|

RE: Scheduler problems

Stephen Bayliss

Have you got a namespace declaration for the prefix oxf in scope?  It sounds like it is not resolving this prefix.

 

You could try putting an xmlns:oxf=”….” attribute in the processor-name node itself.

 

You could also try forming the config input in a separate xslt processor – might be easier to debug and see the transformed config input to see if there are any namespace mangling issues.

 

Steve

 


From: Ryan Puddephatt [mailto:[hidden email]]
Sent: 14 June 2006 10:49
To: [hidden email]
Subject: [ops-users] Scheduler problems

 

Hi all,

            I’m trying to create the config of the Scheduler processor using XSLT to a dynamic date, but everytime I do it gives a exception the XSLT is like so:

 

<config xsl:version="2.0"

   xsl:exclude-result-prefixes="#all">

 

   <xsl:variable name="today"

      select="current-dateTime()"/>

               

   <xsl:variable name="startDay"

      select="day-from-dateTime($today) +

         (if(hours-from-dateTime($today) > 2) then 1 else 0)"/>

               

   <xsl:variable name="startDate"

      select="concat(year-from-dateTime($today),'-',

         format-number(month-from-dateTime($today),'00'),'-',

         format-number($startDay,'00'),'T02:00:00.000')"/>

   <start-task>

      <name>EmailReport</name>

      <start-time><xsl:value-of select="$startDate"/></start-time>

      <interval>86400000</interval>

      <synchronized>true</synchronized>

      <processor-name>oxf:pipeline</processor-name>

      <input name="config" url="oxf:/pages/emailReport/sched/email.xpl"/>

   </start-task>

</config>

 

I’m trying to start the scheduler at 02:00 GMT, but get this exception

 

org.orbeon.oxf.common.ValidationException: null, line 0, column 0: Error "oxf:pipeline" does not satisfy the "QName" type(schema: http://www.orbeon.com/oxf/scheduler)

null, line 0, column 0: Error "oxf:pipeline" does not satisfy the "QName" type(schema: http://www.orbeon.com/oxf/scheduler)

     at org.orbeon.oxf.processor.validation.MSVValidationProcessor$8.error(MSVValidationProcessor.java:197)

     at com.sun.msv.verifier.Verifier.onError(Verifier.java:336)

     at com.sun.msv.verifier.Verifier.onError(Verifier.java:328)

     at com.sun.msv.verifier.Verifier.verifyText(Verifier.java:146)

     at com.sun.msv.verifier.Verifier.endElement(Verifier.java:284)

     at org.orbeon.oxf.xml.TeeContentHandler.endElement(TeeContentHandler.java:88)

     at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:170)

     at org.orbeon.oxf.processor.DebugProcessor$1.readImpl(DebugProcessor.java:76)

     at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:1012)

     at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1195)

     at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$ConcreteProcessorFilter.read(ProcessorImpl.java:990)

     at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1195)

     at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:348)

     at org.orbeon.oxf.processor.validation.MSVValidationProcessor.access$700(MSVValidationProcessor.java:44)

     at org.orbeon.oxf.processor.validation.MSVValidationProcessor$5.readImpl(MSVValidationProcessor.java:219)

     at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:1012)

     at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1195)

     at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:348)

     at org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:403)

     at org.orbeon.oxf.processor.SchedulerProcessor$1.read(SchedulerProcessor.java:52)

     at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:470)

     at org.orbeon.oxf.processor.SchedulerProcessor.start(SchedulerProcessor.java:49)

     at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProcessor.java:652)

     at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:536)

     at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:649)

     at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProcessor.java:652)

     at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:536)

     at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:649)

     at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.getInput(PipelineProcessor.java:140)

     at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.readImpl(PipelineProcessor.java:89)

     at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:1012)

     at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1195)

     at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:348)

     at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:353)

     at org.orbeon.oxf.processor.IdentityProcessor$1.readImpl(IdentityProcessor.java:33)

Reply | Threaded
Open this post in threaded view
|

RE: Scheduler problems

Ryan Puddephatt

Steve,

            That was the problem! All fixed now, thanks

 

Ryan

 

Ryan Puddephatt

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* [hidden email]

( 01506 407 110

7  01506 407 108

 


From: Stephen Bayliss [mailto:[hidden email]]
Sent: 14 June 2006 12:29
To: [hidden email]
Subject: RE: [ops-users] Scheduler problems

 

Have you got a namespace declaration for the prefix oxf in scope?  It sounds like it is not resolving this prefix.

 

You could try putting an xmlns:oxf=”….” attribute in the processor-name node itself.

 

You could also try forming the config input in a separate xslt processor – might be easier to debug and see the transformed config input to see if there are any namespace mangling issues.

 

Steve

 


From: Ryan Puddephatt [mailto:[hidden email]]
Sent: 14 June 2006 10:49
To: [hidden email]
Subject: [ops-users] Scheduler problems

 

Hi all,

            I’m trying to create the config of the Scheduler processor using XSLT to a dynamic date, but everytime I do it gives a exception the XSLT is like so:

 

<config xsl:version="2.0"

   xsl:exclude-result-prefixes="#all">

 

   <xsl:variable name="today"

      select="current-dateTime()"/>

               

   <xsl:variable name="startDay"

      select="day-from-dateTime($today) +

         (if(hours-from-dateTime($today) > 2) then 1 else 0)"/>

               

   <xsl:variable name="startDate"

      select="concat(year-from-dateTime($today),'-',

         format-number(month-from-dateTime($today),'00'),'-',

         format-number($startDay,'00'),'T02:00:00.000')"/>

   <start-task>

      <name>EmailReport</name>

      <start-time><xsl:value-of select="$startDate"/></start-time>

      <interval>86400000</interval>

      <synchronized>true</synchronized>

      <processor-name>oxf:pipeline</processor-name>

      <input name="config" url="oxf:/pages/emailReport/sched/email.xpl"/>

   </start-task>

</config>

 

I’m trying to start the scheduler at 02:00 GMT, but get this exception

 

org.orbeon.oxf.common.ValidationException: null, line 0, column 0: Error "oxf:pipeline" does not satisfy the "QName" type(schema: http://www.orbeon.com/oxf/scheduler)

null, line 0, column 0: Error "oxf:pipeline" does not satisfy the "QName" type(schema: http://www.orbeon.com/oxf/scheduler)

     at org.orbeon.oxf.processor.validation.MSVValidationProcessor$8.error(MSVValidationProcessor.java:197)

     at com.sun.msv.verifier.Verifier.onError(Verifier.java:336)

     at com.sun.msv.verifier.Verifier.onError(Verifier.java:328)

     at com.sun.msv.verifier.Verifier.verifyText(Verifier.java:146)

     at com.sun.msv.verifier.Verifier.endElement(Verifier.java:284)

     at org.orbeon.oxf.xml.TeeContentHandler.endElement(TeeContentHandler.java:88)

     at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:170)

     at org.orbeon.oxf.processor.DebugProcessor$1.readImpl(DebugProcessor.java:76)

     at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:1012)

     at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1195)

     at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$ConcreteProcessorFilter.read(ProcessorImpl.java:990)

     at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1195)

     at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:348)

     at org.orbeon.oxf.processor.validation.MSVValidationProcessor.access$700(MSVValidationProcessor.java:44)

     at org.orbeon.oxf.processor.validation.MSVValidationProcessor$5.readImpl(MSVValidationProcessor.java:219)

     at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:1012)

     at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1195)

     at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:348)

     at org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:403)

     at org.orbeon.oxf.processor.SchedulerProcessor$1.read(SchedulerProcessor.java:52)

     at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:470)

     at org.orbeon.oxf.processor.SchedulerProcessor.start(SchedulerProcessor.java:49)

     at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProcessor.java:652)

     at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:536)

     at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:649)