Running Tutorial Example In "Seperate Deployment"

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

Running Tutorial Example In "Seperate Deployment"

BitByter
Hi folks,

when I try to run the "bookcast" example from the tutorial within a
"seperate deployment" as described at
http://www.orbeon.com/ops/doc/reference-xforms-java, I receive the following
exception:


Type    class org.orbeon.oxf.common.ValidationException
Message null, line -1, column -1: Cannot parse value as text/html for value: ' ' null, line -1, column -1: Cannot parse value as text/html for value: ' '
Location        null
Line    -1
Column  -1
Stack Trace     org.orbeon.oxf.common.ValidationException: null, line -1, column -1: Cannot parse value as text/html for value: '
               '
null, line -1, column -1: Cannot parse value as text/html for value: '
               '
        at org.orbeon.oxf.xforms.XFormsUtils.htmlStringToDocument(XFormsUtils.java:510)
        at org.orbeon.oxf.xforms.XFormsUtils.streamHTMLFragment(XFormsUtils.java:520)
        at org.orbeon.oxf.xforms.processor.handlers.XFormsTriggerHandler.end(XFormsTriggerHandler.java:105)
        at org.orbeon.oxf.xml.ElementHandlerController.endElement(ElementHandlerController.java:184)
        at org.orbeon.oxf.xml.ForwardingContentHandler.endElement(ForwardingContentHandler.java:52)
        at org.orbeon.oxf.xml.ElementFilterContentHandler.endElement(ElementFilterContentHandler.java:54)
        at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:173)
        at org.orbeon.oxf.xforms.processor.XFormsToXHTML.outputResponseDocument(XFormsToXHTML.java:369)
        at org.orbeon.oxf.xforms.processor.XFormsToXHTML.doIt(XFormsToXHTML.java:222)
        at org.orbeon.oxf.xforms.processor.XFormsToXHTML.access$000(XFormsToXHTML.java:46)
        at org.orbeon.oxf.xforms.processor.XFormsToXHTML$1.readImpl(XFormsToXHTML.java:74)
        at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:1012)


This exception does not really help me. What I'm wondering is that Orbeon
seems to expect text/html to be parsed, although the content type is set to
application/xhtml+xml. I also verfied in the debugger, that in the response
which is received by the OPSXFormsFilter the content type has been set to
application/xhtml+xml.

I hope there is somebody who can help me with this, because I'm totally
stuck with this. For better reproduction I've attached the JSP/XForms file
on which I receive that exception.

Many thanks in advance.

- bitbyter


--
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

view.jsp (10K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Running Tutorial Example In "Seperate Deployment"

Alessandro Vernet
Administrator
Hi BitByter,

This one is due to a trigger appearance="minimal" with an empty label.
Just add something in that label and it will work fine. This is an
Orbeon Forms bug, but I guess we've never hit it because it does not
make much sense to have a trigger appearance="minimal" with a
completely empty label: you wouldn't be able to click on that trigger.

Here the corresponding bug for tracking:
http://forge.objectweb.org/tracker/index.php?func=detail&aid=306927&group_id=168&atid=350207

BugBiter (aka Alex)

On 4/11/07, BitByter <[hidden email]> wrote:

> Hi folks,
>
> when I try to run the "bookcast" example from the tutorial within a
> "seperate deployment" as described at
> http://www.orbeon.com/ops/doc/reference-xforms-java, I receive the following
> exception:
>
>
> Type    class org.orbeon.oxf.common.ValidationException
> Message null, line -1, column -1: Cannot parse value as text/html for value: ' ' null, line -1, column -1: Cannot parse value as text/html for value: ' '
> Location        null
> Line    -1
> Column  -1
> Stack Trace     org.orbeon.oxf.common.ValidationException: null, line -1, column -1: Cannot parse value as text/html for value: '
>                '
> null, line -1, column -1: Cannot parse value as text/html for value: '
>                '
>         at org.orbeon.oxf.xforms.XFormsUtils.htmlStringToDocument(XFormsUtils.java:510)
>         at org.orbeon.oxf.xforms.XFormsUtils.streamHTMLFragment(XFormsUtils.java:520)
>         at org.orbeon.oxf.xforms.processor.handlers.XFormsTriggerHandler.end(XFormsTriggerHandler.java:105)
>         at org.orbeon.oxf.xml.ElementHandlerController.endElement(ElementHandlerController.java:184)
>         at org.orbeon.oxf.xml.ForwardingContentHandler.endElement(ForwardingContentHandler.java:52)
>         at org.orbeon.oxf.xml.ElementFilterContentHandler.endElement(ElementFilterContentHandler.java:54)
>         at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:173)
>         at org.orbeon.oxf.xforms.processor.XFormsToXHTML.outputResponseDocument(XFormsToXHTML.java:369)
>         at org.orbeon.oxf.xforms.processor.XFormsToXHTML.doIt(XFormsToXHTML.java:222)
>         at org.orbeon.oxf.xforms.processor.XFormsToXHTML.access$000(XFormsToXHTML.java:46)
>         at org.orbeon.oxf.xforms.processor.XFormsToXHTML$1.readImpl(XFormsToXHTML.java:74)
>         at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:1012)
>
>
> This exception does not really help me. What I'm wondering is that Orbeon
> seems to expect text/html to be parsed, although the content type is set to
> application/xhtml+xml. I also verfied in the debugger, that in the response
> which is received by the OPSXFormsFilter the content type has been set to
> application/xhtml+xml.
>
> I hope there is somebody who can help me with this, because I'm totally
> stuck with this. For better reproduction I've attached the JSP/XForms file
> on which I receive that exception.
>
> Many thanks in advance.
>
> - bitbyter
>
>
> --
> 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
>
>
>

--
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.com/



--
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[2]: Running Tutorial Example In "Seperate Deployment"

BitByter
Hi BugBiter,   :)

thanks for the help. That solved the problem. Could you tell me how you
found the reason for the exception? Because that mentioned exception does
not really tell me anything that might help me to find the problem.

Regards,
bitbyter



Thursday, April 12, 2007, 4:13:22 AM, you wrote:

> Hi BitByter,

> This one is due to a trigger appearance="minimal" with an empty label.
> Just add something in that label and it will work fine. This is an
> Orbeon Forms bug, but I guess we've never hit it because it does not
> make much sense to have a trigger appearance="minimal" with a
> completely empty label: you wouldn't be able to click on that trigger.

> Here the corresponding bug for tracking:
> http://forge.objectweb.org/tracker/index.php?func=detail&aid=306927&group_id=168&atid=350207

> BugBiter (aka Alex)

> On 4/11/07, BitByter <[hidden email]> wrote:
>> Hi folks,
>>
>> when I try to run the "bookcast" example from the tutorial within a
>> "seperate deployment" as described at
>> http://www.orbeon.com/ops/doc/reference-xforms-java, I receive the following
>> exception:
>>
>>
>> Type    class org.orbeon.oxf.common.ValidationException
>> Message null, line -1, column -1: Cannot parse value as text/html for value: ' ' null, line -1, column -1: Cannot parse value as text/html for value: ' '
>> Location        null
>> Line    -1
>> Column  -1
>> Stack Trace     org.orbeon.oxf.common.ValidationException: null, line -1, column -1: Cannot parse value as text/html for value: '
>>                '
>> null, line -1, column -1: Cannot parse value as text/html for value: '
>>                '
>>         at org.orbeon.oxf.xforms.XFormsUtils.htmlStringToDocument(XFormsUtils.java:510)
>>         at org.orbeon.oxf.xforms.XFormsUtils.streamHTMLFragment(XFormsUtils.java:520)
>>         at org.orbeon.oxf.xforms.processor.handlers.XFormsTriggerHandler.end(XFormsTriggerHandler.java:105)
>>         at org.orbeon.oxf.xml.ElementHandlerController.endElement(ElementHandlerController.java:184)
>>         at org.orbeon.oxf.xml.ForwardingContentHandler.endElement(ForwardingContentHandler.java:52)
>>         at org.orbeon.oxf.xml.ElementFilterContentHandler.endElement(ElementFilterContentHandler.java:54)
>>         at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:173)
>>         at org.orbeon.oxf.xforms.processor.XFormsToXHTML.outputResponseDocument(XFormsToXHTML.java:369)
>>         at org.orbeon.oxf.xforms.processor.XFormsToXHTML.doIt(XFormsToXHTML.java:222)
>>         at org.orbeon.oxf.xforms.processor.XFormsToXHTML.access$000(XFormsToXHTML.java:46)
>>         at org.orbeon.oxf.xforms.processor.XFormsToXHTML$1.readImpl(XFormsToXHTML.java:74)
>>         at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:1012)
>>
>>
>> This exception does not really help me. What I'm wondering is that Orbeon
>> seems to expect text/html to be parsed, although the content type is set to
>> application/xhtml+xml. I also verfied in the debugger, that in the response
>> which is received by the OPSXFormsFilter the content type has been set to
>> application/xhtml+xml.
>>
>> I hope there is somebody who can help me with this, because I'm totally
>> stuck with this. For better reproduction I've attached the JSP/XForms file
>> on which I receive that exception.
>>
>> Many thanks in advance.
>>
>> - bitbyter




--
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: Re[2]: Running Tutorial Example In "Seperate Deployment"

Alessandro Vernet
Administrator
Looking at the logs, I saw this was coming from the
XFormsTriggerHandler class, which is our code that handle the
triggers. Then looking at the code, I say that there was an issue when
the label is empty. When you hit something like this, the best thing
is to post it in this list, like you did. This way, even if there is
an easy workaround, we'll be aware of the bug and hopefully will get a
chance to fix it soon.

Alex

On 4/12/07, BitByter <[hidden email]> wrote:

> Hi BugBiter,   :)
>
> thanks for the help. That solved the problem. Could you tell me how you
> found the reason for the exception? Because that mentioned exception does
> not really tell me anything that might help me to find the problem.
>
> Regards,
> bitbyter
>
>
>
> Thursday, April 12, 2007, 4:13:22 AM, you wrote:
>
> > Hi BitByter,
>
> > This one is due to a trigger appearance="minimal" with an empty label.
> > Just add something in that label and it will work fine. This is an
> > Orbeon Forms bug, but I guess we've never hit it because it does not
> > make much sense to have a trigger appearance="minimal" with a
> > completely empty label: you wouldn't be able to click on that trigger.
>
> > Here the corresponding bug for tracking:
> > http://forge.objectweb.org/tracker/index.php?func=detail&aid=306927&group_id=168&atid=350207
>
> > BugBiter (aka Alex)
>
> > On 4/11/07, BitByter <[hidden email]> wrote:
> >> Hi folks,
> >>
> >> when I try to run the "bookcast" example from the tutorial within a
> >> "seperate deployment" as described at
> >> http://www.orbeon.com/ops/doc/reference-xforms-java, I receive the following
> >> exception:
> >>
> >>
> >> Type    class org.orbeon.oxf.common.ValidationException
> >> Message null, line -1, column -1: Cannot parse value as text/html for value: ' ' null, line -1, column -1: Cannot parse value as text/html for value: ' '
> >> Location        null
> >> Line    -1
> >> Column  -1
> >> Stack Trace     org.orbeon.oxf.common.ValidationException: null, line -1, column -1: Cannot parse value as text/html for value: '
> >>                '
> >> null, line -1, column -1: Cannot parse value as text/html for value: '
> >>                '
> >>         at org.orbeon.oxf.xforms.XFormsUtils.htmlStringToDocument(XFormsUtils.java:510)
> >>         at org.orbeon.oxf.xforms.XFormsUtils.streamHTMLFragment(XFormsUtils.java:520)
> >>         at org.orbeon.oxf.xforms.processor.handlers.XFormsTriggerHandler.end(XFormsTriggerHandler.java:105)
> >>         at org.orbeon.oxf.xml.ElementHandlerController.endElement(ElementHandlerController.java:184)
> >>         at org.orbeon.oxf.xml.ForwardingContentHandler.endElement(ForwardingContentHandler.java:52)
> >>         at org.orbeon.oxf.xml.ElementFilterContentHandler.endElement(ElementFilterContentHandler.java:54)
> >>         at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:173)
> >>         at org.orbeon.oxf.xforms.processor.XFormsToXHTML.outputResponseDocument(XFormsToXHTML.java:369)
> >>         at org.orbeon.oxf.xforms.processor.XFormsToXHTML.doIt(XFormsToXHTML.java:222)
> >>         at org.orbeon.oxf.xforms.processor.XFormsToXHTML.access$000(XFormsToXHTML.java:46)
> >>         at org.orbeon.oxf.xforms.processor.XFormsToXHTML$1.readImpl(XFormsToXHTML.java:74)
> >>         at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:1012)
> >>
> >>
> >> This exception does not really help me. What I'm wondering is that Orbeon
> >> seems to expect text/html to be parsed, although the content type is set to
> >> application/xhtml+xml. I also verfied in the debugger, that in the response
> >> which is received by the OPSXFormsFilter the content type has been set to
> >> application/xhtml+xml.
> >>
> >> I hope there is somebody who can help me with this, because I'm totally
> >> stuck with this. For better reproduction I've attached the JSP/XForms file
> >> on which I receive that exception.
> >>
> >> Many thanks in advance.
> >>
> >> - bitbyter
>
>
>
>
>
> --
> 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
>
>

--
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.com/



--
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: Running Tutorial Example In "Seperate Deployment"

Alessandro Vernet
Administrator
In reply to this post by Alessandro Vernet
Alessandro Vernet wrote
This bug has been just fixed by Erik. Not that it really matters much in this case, but you can test it out in a current nightly build.

Alex
--
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.com/