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 use the scheduler processor, but I keep getting a stack trace when it tries to run. The scheduler is like so

 

    <p:processor name="oxf:scheduler">

        <p:input name="config">

            <config>

                <start-task>

                    <name>EmailReport</name>

                    <start-time>now</start-time>

                    <interval>20000</interval>

                    <synchronised>true</synchronised>

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

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

                </start-task>

            </config>

        </p:input>

    </p:processor>

 

and the stack trace looks like

 

Exception in thread "Thread-13" java.lang.NullPointerException

     at org.apache.coyote.tomcat4.CoyoteRequestFacade.getServletPath(CoyoteRequestFacade.java:356)

     at org.orbeon.oxf.util.NetUtils.getRequestPathInfo(NetUtils.java:117)

     at org.orbeon.oxf.servlet.ServletExternalContext$Request.getRequestPath(ServletExternalContext.java:251)

     at org.orbeon.oxf.servlet.ServletExternalContext.getStartLoggerString(ServletExternalContext.java:752)

     at org.orbeon.oxf.webapp.ServletContextExternalContext.getStartLoggerString(ServletContextExternalContext.java:108)

     at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:69)

     at org.orbeon.oxf.processor.SchedulerProcessor$ProcessorTask.run(SchedulerProcessor.java:198)

     at java.lang.Thread.run(Thread.java:595)

Exception in thread "Thread-14" java.lang.NullPointerException

     at org.apache.coyote.tomcat4.CoyoteRequestFacade.getServletPath(CoyoteRequestFacade.java:356)

     at org.orbeon.oxf.util.NetUtils.getRequestPathInfo(NetUtils.java:117)

     at org.orbeon.oxf.servlet.ServletExternalContext$Request.getRequestPath(ServletExternalContext.java:251)

     at org.orbeon.oxf.servlet.ServletExternalContext.getStartLoggerString(ServletExternalContext.java:752)

     at org.orbeon.oxf.webapp.ServletContextExternalContext.getStartLoggerString(ServletContextExternalContext.java:108)

     at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:69)

     at org.orbeon.oxf.processor.SchedulerProcessor$ProcessorTask.run(SchedulerProcessor.java:198)

     at java.lang.Thread.run(Thread.java:595)

Exception in thread "Thread-15" java.lang.NullPointerException

     at org.apache.coyote.tomcat4.CoyoteRequestFacade.getServletPath(CoyoteRequestFacade.java:356)

     at org.orbeon.oxf.util.NetUtils.getRequestPathInfo(NetUtils.java:117)

     at org.orbeon.oxf.servlet.ServletExternalContext$Request.getRequestPath(ServletExternalContext.java:251)

     at org.orbeon.oxf.servlet.ServletExternalContext.getStartLoggerString(ServletExternalContext.java:752)

     at org.orbeon.oxf.webapp.ServletContextExternalContext.getStartLoggerString(ServletContextExternalContext.java:108)

     at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:69)

     at org.orbeon.oxf.processor.SchedulerProcessor$ProcessorTask.run(SchedulerProcessor.java:198)

     at java.lang.Thread.run(Thread.java:595)

 

any ideas

 

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

 

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

binding datatypes

Zdeněk Hřib
hello,

i am trying to restrict the the xml element to allow only valid email to be
entered. I am using the schema mentioned in XForms Essentials on
http://xformsinstitute.com/essentials/browse/book.php

therefore I have the xform code

<xforms:model id="main-model"
schema="http://dubinko.info/writing/xforms/email.xsd">
.
.
<xforms:bind nodeset="something/namespace:sometingElse" required="true()"
type="email" />
.
.

but the ops says: Invalid type 'email'

I will get same result if I add schema definition directly into the
<xforms:model> tag
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:simpleType name="email">
    <xs:restriction base="xs:string">
      <xs:pattern
value="[A-Za-z0-9!#-'\*\+\-/=\?\^_`\{-~]+(\.[A-Za-z0-9!#-'\*\+\-/=\?\^_`\{-~
]+)*@[A-Za-z0-9!#-'\*\+\-/=\?\^_`\{-~]+(\.[A-Za-z0-9!#-'\*\+\-/=\?\^_`\{-~]+
)*"/>
    </xs:restriction>
  </xs:simpleType>
</xs:schema>the email type is simply not recognized. Does anyone have any
idea what is wrong ?




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: binding datatypes

Alessandro  Vernet
Administrator
Hi Zdenek,

At this point we do not support custom types in <xforms:bind
type="...">. You can only use simple types there.

http://www.w3.org/TR/xmlschema-0/#CreatDt

You can use a full schema to validate your instance. That is
supported. Since you have a regular expression, you can also use the
matches() function in a calculate, as in:

<xforms:bind nodeset="/instance/email" constraint="matches(., 'your pattern')"/>

Alex

On 6/13/06, Zdenek Hrib <[hidden email]> wrote:

> hello,
>
> i am trying to restrict the the xml element to allow only valid email to be
> entered. I am using the schema mentioned in XForms Essentials on
> http://xformsinstitute.com/essentials/browse/book.php
>
> therefore I have the xform code
>
> <xforms:model id="main-model"
> schema="http://dubinko.info/writing/xforms/email.xsd">
> .
> .
> <xforms:bind nodeset="something/namespace:sometingElse" required="true()"
> type="email" />
> .
> .
>
> but the ops says: Invalid type 'email'
>
> I will get same result if I add schema definition directly into the
> <xforms:model> tag
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
>   <xs:simpleType name="email">
>     <xs:restriction base="xs:string">
>       <xs:pattern
> value="[A-Za-z0-9!#-'\*\+\-/=\?\^_`\{-~]+(\.[A-Za-z0-9!#-'\*\+\-/=\?\^_`\{-~
> ]+)*@[A-Za-z0-9!#-'\*\+\-/=\?\^_`\{-~]+(\.[A-Za-z0-9!#-'\*\+\-/=\?\^_`\{-~]+
> )*"/>
>     </xs:restriction>
>   </xs:simpleType>
> </xs:schema>the email type is simply not recognized. Does anyone have any
> idea what is wrong ?
>
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet