Hello hello, Jetty is not supporting calls on setCharacterEncoding once the stream has been opened. (Even though nothing has been read on the stream yet) Would it be possible to add variations of the two attached patches in CVS ? Those are basically the two classes where setEncoding is used. We just need to catch IllegalStateException and keep going.
Do you want me to create tasks on the objectweb forge for it ? Thanks, Niko, -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws ExternalContextToHttpServletRequestWrapper.diff (1K) Download Attachment ServletExternalContext.diff (1K) Download Attachment |
Administrator
|
Niko,
Sounds good! Now I am not sure the fix is the best one, because you will still get exceptions with Jetty. It's just that they will be caught. But throwing exceptions is a very expensive operation in Java, especially if the stack is deep. So I wish we would simply NOT get the exception at all. Now this is risky territory! Do you know that method of the request was called before getParameterNames() to cause the exception? Was it getInputStream()? I am attempting a fix, which consists in getting and setting the request encoding, if needed, before calling getInputStream(). Also, did you see an actual issue with ExternalContextToHttpServletRequestWrapper? Thanks, -Erik Nicolas Modrzyk wrote: > Hello hello, > > Jetty is not supporting calls on setCharacterEncoding once the stream > has been opened. (Even though nothing has been read on the stream yet) > > Would it be possible to add variations of the two attached patches in > CVS ? Those are basically the two classes where setEncoding is used. We > just need to catch IllegalStateException and keep going. > > Do you want me to create tasks on the objectweb forge for it ? > > Thanks, > > Niko, > -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Forgot to say that I entered a bug for this:
http://forge.objectweb.org/tracker/index.php?func=detail&aid=307736&group_id=168&atid=350207 -Erik Erik Bruchez wrote: > Niko, > > Sounds good! > > Now I am not sure the fix is the best one, because you will still get > exceptions with Jetty. It's just that they will be caught. But throwing > exceptions is a very expensive operation in Java, especially if the > stack is deep. > > So I wish we would simply NOT get the exception at all. > > Now this is risky territory! Do you know that method of the request was > called before getParameterNames() to cause the exception? Was it > getInputStream()? I am attempting a fix, which consists in getting and > setting the request encoding, if needed, before calling getInputStream(). > > Also, did you see an actual issue with > ExternalContextToHttpServletRequestWrapper? > > Thanks, > > -Erik > > Nicolas Modrzyk wrote: >> Hello hello, >> >> Jetty is not supporting calls on setCharacterEncoding once the stream >> has been opened. (Even though nothing has been read on the stream yet) >> >> Would it be possible to add variations of the two attached patches in >> CVS ? Those are basically the two classes where setEncoding is used. >> We just need to catch IllegalStateException and keep going. >> >> Do you want me to create tasks on the objectweb forge for it ? >> >> Thanks, >> >> Niko, >> > > -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
In reply to this post by Erik Bruchez
Hi Erik, It's not the best fix, but no exception is thrown. The code runs smoothly :) Yes, it is the getInputStream() that is calling the problem. I can't remember the orbeon code off hand, but it was kind of tricky to do the reverse ? .. maybe. But yes, this would be definitely better. I did have a problem in both places I sent the patches. So yes, that includes, ExternalContextToHttpServletRequestWrapper.setEncoding() Did that answers help ? :) Niko,
On 10/24/07, Erik Bruchez <[hidden email]> wrote: Niko, -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
In reply to this post by Erik Bruchez
I have now committed a tentative fix for this. Please let us know if
you have any luck with the latest code on Jetty! -Erik On Oct 24, 2007 9:31 PM, Erik Bruchez <[hidden email]> wrote: > Forgot to say that I entered a bug for this: > > http://forge.objectweb.org/tracker/index.php?func=detail&aid=307736&group_id=168&atid=350207 > > -Erik > > > Erik Bruchez wrote: > > Niko, > > > > Sounds good! > > > > Now I am not sure the fix is the best one, because you will still get > > exceptions with Jetty. It's just that they will be caught. But throwing > > exceptions is a very expensive operation in Java, especially if the > > stack is deep. > > > > So I wish we would simply NOT get the exception at all. > > > > Now this is risky territory! Do you know that method of the request was > > called before getParameterNames() to cause the exception? Was it > > getInputStream()? I am attempting a fix, which consists in getting and > > setting the request encoding, if needed, before calling getInputStream(). > > > > Also, did you see an actual issue with > > ExternalContextToHttpServletRequestWrapper? > > > > Thanks, > > > > -Erik > > > > Nicolas Modrzyk wrote: > >> Hello hello, > >> > >> Jetty is not supporting calls on setCharacterEncoding once the stream > >> has been opened. (Even though nothing has been read on the stream yet) > >> > >> Would it be possible to add variations of the two attached patches in > >> CVS ? Those are basically the two classes where setEncoding is used. > >> We just need to catch IllegalStateException and keep going. > >> > >> Do you want me to create tasks on the objectweb forge for it ? > >> > >> Thanks, > >> > >> Niko, > >> > > > > > > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
I have downloaded the nightly build and tried it with jetty-6.1.4 I used FireFox 2.0.0.9 on a Mac running 10.4.11 All of the ops examples I tried worked without error except as noted I didn't try all the parts of these examples. Government Forms XForms Controls To-Do Lists Instant Translation XForms Hello XForms Bookcast Calculator Flick Resize Google Suggests XForms HTML Area (the instance inspector and displayed text didn't reflect changes until I switched to "Evaluate XPath and then back to View Instance" Upload Control appears to work but I couldn't find any uploaded file. Wizard w/Switch Shopping Cart SQL Address Book HTML to XHTML I didn't try any of the Sandboxes I did try this with my forms which are based on XForms Controls (widget:tabs) and Bookcast With the tabs I can move from to the second tab, it displays but I get a "Unexpected response received from server" error message and no other tabs work after that. Probably something wrong with my code but it does work OK in Tomcat I'll see if I can get debugging turned on in Jetty. George Adams Educational Technology / Integration Services 651 603-4891
I have now committed a tentative fix for this. Please let us know if you have any luck with the latest code on Jetty! -Erik On Oct 24, 2007 9:31 PM, Erik Bruchez <[hidden email]> wrote: > Forgot to say that I entered a bug for this: > > http://forge.objectweb.org/tracker/index.php?func=detail&aid=307736&group_id=168&atid=350207 > > -Erik > > > Erik Bruchez wrote: > > Niko, > > > > Sounds good! > > > > Now I am not sure the fix is the best one, because you will still get > > exceptions with Jetty. It's just that they will be caught. But throwing > > exceptions is a very expensive operation in Java, especially if the > > stack is deep. > > > > So I wish we would simply NOT get the exception at all. > > > > Now this is risky territory! Do you know that method of the request was > > called before getParameterNames() to cause the exception? Was it > > getInputStream()? I am attempting a fix, which consists in getting and > > setting the request encoding, if needed, before calling getInputStream(). > > > > Also, did you see an actual issue with > > ExternalContextToHttpServletRequestWrapper? > > > > Thanks, > > > > -Erik > > > > Nicolas Modrzyk wrote: > >> Hello hello, > >> > >> Jetty is not supporting calls on setCharacterEncoding once the stream > >> has been opened. (Even though nothing has been read on the stream yet) > >> > >> Would it be possible to add variations of the two attached patches in > >> CVS ? Those are basically the two classes where setEncoding is used. > >> We just need to catch IllegalStateException and keep going. > >> > >> Do you want me to create tasks on the objectweb forge for it ? > >> > >> Thanks, > >> > >> Niko, > >> > > > > > > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > 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 OW2 mailing lists service home page: http://www.ow2.org/wws -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
George,
Thanks for trying this out! So the examples seem to fare well under Jetty, if I read your email correctly. Did any of the example apps fail previously under Jetty? -Erik On Nov 22, 2007, at 7:01 AM, [hidden email] wrote: > > I have downloaded the nightly build and tried it with jetty-6.1.4 > I used FireFox 2.0.0.9 on a Mac running 10.4.11 > All of the ops examples I tried worked without error except as noted > I didn't try all the parts of these examples. > Government Forms > XForms Controls > To-Do Lists > Instant Translation > XForms Hello > XForms Bookcast > Calculator > Flick Resize > Google Suggests > XForms HTML Area (the instance inspector and displayed text didn't > reflect changes until I switched to "Evaluate XPath and then back to > View Instance" > Upload Control appears to work but I couldn't find any uploaded file. > Wizard w/Switch > Shopping Cart > SQL Address Book > HTML to XHTML > I didn't try any of the Sandboxes > > I did try this with my forms which are based on XForms Controls > (widget:tabs) and Bookcast > With the tabs I can move from to the second tab, it displays but I > get a "Unexpected response received from server" error message and > no other tabs work after that. > Probably something wrong with my code but it does work OK in Tomcat > I'll see if I can get debugging turned on in Jetty. > > George Adams > Educational Technology / Integration Services > 651 603-4891 > > > "Erik Bruchez" <[hidden email]> > Sent by: [hidden email] > 11/21/07 09:14 PM > Please respond to > [hidden email] > > To > [hidden email] > cc > Subject > Re: [ops-users] orbeon on jetty > > > > > > I have now committed a tentative fix for this. Please let us know if > you have any luck with the latest code on Jetty! > > -Erik > > On Oct 24, 2007 9:31 PM, Erik Bruchez <[hidden email]> wrote: > > Forgot to say that I entered a bug for this: > > > > http://forge.objectweb.org/tracker/index.php?func=detail&aid=307736&group_id=168&atid=350207 > > > > -Erik > > > > > > Erik Bruchez wrote: > > > Niko, > > > > > > Sounds good! > > > > > > Now I am not sure the fix is the best one, because you will > still get > > > exceptions with Jetty. It's just that they will be caught. But > throwing > > > exceptions is a very expensive operation in Java, especially if > the > > > stack is deep. > > > > > > So I wish we would simply NOT get the exception at all. > > > > > > Now this is risky territory! Do you know that method of the > request was > > > called before getParameterNames() to cause the exception? Was it > > > getInputStream()? I am attempting a fix, which consists in > getting and > > > setting the request encoding, if needed, before calling > getInputStream(). > > > > > > Also, did you see an actual issue with > > > ExternalContextToHttpServletRequestWrapper? > > > > > > Thanks, > > > > > > -Erik > > > > > > Nicolas Modrzyk wrote: > > >> Hello hello, > > >> > > >> Jetty is not supporting calls on setCharacterEncoding once the > stream > > >> has been opened. (Even though nothing has been read on the > stream yet) > > >> > > >> Would it be possible to add variations of the two attached > patches in > > >> CVS ? Those are basically the two classes where setEncoding is > used. > > >> We just need to catch IllegalStateException and keep going. > > >> > > >> Do you want me to create tasks on the objectweb forge for it ? > > >> > > >> Thanks, > > >> > > >> Niko, > > >> > > > > > > > > > > > > -- > > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > > 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 > OW2 mailing lists service home page: http://www.ow2.org/wws > > > -- > 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 > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
I downloaded the 3.5.1 version of ops (It took 1 minute and 40 seconds) and tried it with Jetty I received the following error displayed on the web page "Unexpected response received from server" on every page I tried as soon as I entered data or tried to click a button. Part of the response is listed from Firebug is below <h1>Orbeon Forms - Page Not Found</h1 <p> We are sorry, but the resource you have requested is not available on this server. The full response is attached in notFound.html The post from Firebug was <!DOCTYPE xxforms:event-request [<!ENTITY nbsp " ">]> <xxforms:event-request xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"> <xxforms:static-state>session:11E73EAD-783D-4477-6366-A63138890E1F</xxforms:static-state> <xxforms:dynamic-state>session:ECFC6367-C843-12D4-CD6E-9FCD48777C08</xxforms:dynamic-state> <xxforms:action> <xxforms:event name="DOMFocusIn" source-control-id="xforms-element-29"></xxforms:event> <xxforms:event name="DOMActivate" source-control-id="xforms-element-29"></xxforms:event> </xxforms:action> </xxforms:event-request> George Adams Educational Technology / Integration Services 651 603-4891
George, Thanks for trying this out! So the examples seem to fare well under Jetty, if I read your email correctly. Did any of the example apps fail previously under Jetty? -Erik On Nov 22, 2007, at 7:01 AM, [hidden email] wrote: > > I have downloaded the nightly build and tried it with jetty-6.1.4 > I used FireFox 2.0.0.9 on a Mac running 10.4.11 > All of the ops examples I tried worked without error except as noted > I didn't try all the parts of these examples. > Government Forms > XForms Controls > To-Do Lists > Instant Translation > XForms Hello > XForms Bookcast > Calculator > Flick Resize > Google Suggests > XForms HTML Area (the instance inspector and displayed text didn't > reflect changes until I switched to "Evaluate XPath and then back to > View Instance" > Upload Control appears to work but I couldn't find any uploaded file. > Wizard w/Switch > Shopping Cart > SQL Address Book > HTML to XHTML > I didn't try any of the Sandboxes > > I did try this with my forms which are based on XForms Controls > (widget:tabs) and Bookcast > With the tabs I can move from to the second tab, it displays but I > get a "Unexpected response received from server" error message and > no other tabs work after that. > Probably something wrong with my code but it does work OK in Tomcat > I'll see if I can get debugging turned on in Jetty. > > George Adams > Educational Technology / Integration Services > 651 603-4891 > > > "Erik Bruchez" <[hidden email]> > Sent by: [hidden email] > 11/21/07 09:14 PM > Please respond to > [hidden email] > > To > [hidden email] > cc > Subject > Re: [ops-users] orbeon on jetty > > > > > > I have now committed a tentative fix for this. Please let us know if > you have any luck with the latest code on Jetty! > > -Erik > > On Oct 24, 2007 9:31 PM, Erik Bruchez <[hidden email]> wrote: > > Forgot to say that I entered a bug for this: > > > > http://forge.objectweb.org/tracker/index.php?func=detail&aid=307736&group_id=168&atid=350207 > > > > -Erik > > > > > > Erik Bruchez wrote: > > > Niko, > > > > > > Sounds good! > > > > > > Now I am not sure the fix is the best one, because you will > still get > > > exceptions with Jetty. It's just that they will be caught. But > throwing > > > exceptions is a very expensive operation in Java, especially if > the > > > stack is deep. > > > > > > So I wish we would simply NOT get the exception at all. > > > > > > Now this is risky territory! Do you know that method of the > request was > > > called before getParameterNames() to cause the exception? Was it > > > getInputStream()? I am attempting a fix, which consists in > getting and > > > setting the request encoding, if needed, before calling > getInputStream(). > > > > > > Also, did you see an actual issue with > > > ExternalContextToHttpServletRequestWrapper? > > > > > > Thanks, > > > > > > -Erik > > > > > > Nicolas Modrzyk wrote: > > >> Hello hello, > > >> > > >> Jetty is not supporting calls on setCharacterEncoding once the > stream > > >> has been opened. (Even though nothing has been read on the > stream yet) > > >> > > >> Would it be possible to add variations of the two attached > patches in > > >> CVS ? Those are basically the two classes where setEncoding is > used. > > >> We just need to catch IllegalStateException and keep going. > > >> > > >> Do you want me to create tasks on the objectweb forge for it ? > > >> > > >> Thanks, > > >> > > >> Niko, > > >> > > > > > > > > > > > > -- > > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > > 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 > OW2 mailing lists service home page: http://www.ow2.org/wws > > > -- > 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 > OW2 mailing lists service home page: http://www.ow2.org/wws -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way 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 OW2 mailing lists service home page: http://www.ow2.org/wws -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws notfound.html.hqx (25K) Download Attachment |
Administrator
|
Thanks, so it does look like there was some improvement!
-Erik On Nov 23, 2007, at 2:34 PM, [hidden email] wrote: > > I downloaded the 3.5.1 version of ops (It took 1 minute and 40 > seconds) and tried it with Jetty > I received the following error displayed on the web page "Unexpected > response received from server" on every page I tried as soon as I > entered data or tried to click a button. > Part of the response is listed from Firebug is below > <h1>Orbeon Forms - Page Not Found</h1 > <p> > We are sorry, but the resource you have requested is not > available on this server. > The full response is attached in notFound.html > > The post from Firebug was > <!DOCTYPE xxforms:event-request [<!ENTITY nbsp " ">]> > > <xxforms:event-request xmlns:xxforms="http://orbeon.org/oxf/xml/ > xforms"> > > <xxforms:static-state>session:11E73EAD-783D-4477-6366- > A63138890E1F</xxforms:static-state> > > <xxforms:dynamic-state>session:ECFC6367-C843-12D4- > CD6E-9FCD48777C08</xxforms:dynamic-state> > > <xxforms:action> > > <xxforms:event name="DOMFocusIn" source-control-id="xforms- > element-29"></xxforms:event> > > <xxforms:event name="DOMActivate" source-control-id="xforms- > element-29"></xxforms:event> > > </xxforms:action> > > </xxforms:event-request> > > > George Adams > Educational Technology / Integration Services > 651 603-4891 > > > Erik Bruchez <[hidden email]> > Sent by: Erik Bruchez <[hidden email]> > 11/23/07 01:13 PM > Please respond to > [hidden email] > > To > [hidden email] > cc > Subject > Re: [ops-users] orbeon on jetty > > > > > > George, > > Thanks for trying this out! > > So the examples seem to fare well under Jetty, if I read your email > correctly. Did any of the example apps fail previously under Jetty? > > -Erik > > On Nov 22, 2007, at 7:01 AM, [hidden email] wrote: > > > > > I have downloaded the nightly build and tried it with jetty-6.1.4 > > I used FireFox 2.0.0.9 on a Mac running 10.4.11 > > All of the ops examples I tried worked without error except as noted > > I didn't try all the parts of these examples. > > Government Forms > > XForms Controls > > To-Do Lists > > Instant Translation > > XForms Hello > > XForms Bookcast > > Calculator > > Flick Resize > > Google Suggests > > XForms HTML Area (the instance inspector and displayed text didn't > > reflect changes until I switched to "Evaluate XPath and then back to > > View Instance" > > Upload Control appears to work but I couldn't find any uploaded > file. > > Wizard w/Switch > > Shopping Cart > > SQL Address Book > > HTML to XHTML > > I didn't try any of the Sandboxes > > > > I did try this with my forms which are based on XForms Controls > > (widget:tabs) and Bookcast > > With the tabs I can move from to the second tab, it displays but I > > get a "Unexpected response received from server" error message and > > no other tabs work after that. > > Probably something wrong with my code but it does work OK in Tomcat > > I'll see if I can get debugging turned on in Jetty. > > > > George Adams > > Educational Technology / Integration Services > > 651 603-4891 > > > > > > "Erik Bruchez" <[hidden email]> > > Sent by: [hidden email] > > 11/21/07 09:14 PM > > Please respond to > > [hidden email] > > > > To > > [hidden email] > > cc > > Subject > > Re: [ops-users] orbeon on jetty > > > > > > > > > > > > I have now committed a tentative fix for this. Please let us know if > > you have any luck with the latest code on Jetty! > > > > -Erik > > > > On Oct 24, 2007 9:31 PM, Erik Bruchez <[hidden email]> wrote: > > > Forgot to say that I entered a bug for this: > > > > > > http://forge.objectweb.org/tracker/index.php?func=detail&aid=307736&group_id=168&atid=350207 > > > > > > -Erik > > > > > > > > > Erik Bruchez wrote: > > > > Niko, > > > > > > > > Sounds good! > > > > > > > > Now I am not sure the fix is the best one, because you will > > still get > > > > exceptions with Jetty. It's just that they will be caught. But > > throwing > > > > exceptions is a very expensive operation in Java, especially if > > the > > > > stack is deep. > > > > > > > > So I wish we would simply NOT get the exception at all. > > > > > > > > Now this is risky territory! Do you know that method of the > > request was > > > > called before getParameterNames() to cause the exception? Was it > > > > getInputStream()? I am attempting a fix, which consists in > > getting and > > > > setting the request encoding, if needed, before calling > > getInputStream(). > > > > > > > > Also, did you see an actual issue with > > > > ExternalContextToHttpServletRequestWrapper? > > > > > > > > Thanks, > > > > > > > > -Erik > > > > > > > > Nicolas Modrzyk wrote: > > > >> Hello hello, > > > >> > > > >> Jetty is not supporting calls on setCharacterEncoding once the > > stream > > > >> has been opened. (Even though nothing has been read on the > > stream yet) > > > >> > > > >> Would it be possible to add variations of the two attached > > patches in > > > >> CVS ? Those are basically the two classes where setEncoding is > > used. > > > >> We just need to catch IllegalStateException and keep going. > > > >> > > > >> Do you want me to create tasks on the objectweb forge for it ? > > > >> > > > >> Thanks, > > > >> > > > >> Niko, > > > >> > > > > > > > > > > > > > > > > > -- > > > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > > > 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 > > OW2 mailing lists service home page: http://www.ow2.org/wws > > > > > > -- > > 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 > > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > 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 > OW2 mailing lists service home page: http://www.ow2.org/wws > > <notfound.html> > -- > 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 > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Yes, the situation with Jetty is much improved. The problem I was having with my app in Jetty was because I was still using the 3.5 version. I did get logging turned on after figuring out that the log files were attempting to write to a "logs" folder just above the Jetty folder not in the Jetty/logs folder. I do get the following error when jetty starts up; ----------- 2007-11-23 20:27:11,509 INFO ProcessorService - Servlet - Servlet initialized. 2007-11-23 20:27:11,510 INFO ProcessorService - Servlet - About to run processor: [{http://www.orbeon.com/oxf/processors}pipeline, config -> oxf:/apps/context/servlet-initialized.xpl] 2007-11-23 20:27:11,583 INFO DebugProcessor - message: line 19, column 46 of oxf:/apps/context/servlet-initialized.xpl <message xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:p="http://www.orbeon.com/oxf/pipeline">Servlet initialized.</message> 2007-11-23 20:27:11,583 INFO ProcessorService - Done running processor - Timing: 71 - Cache hits for cache.main: 1, fault: 4, adds: 4, expirations: 0, success rate: 20% 2007-11-23 20:27:11,585 INFO ProcessorService - Servlet - Servlet initialized. 2007-11-23 20:27:11,616 INFO EXistServlet - EXistServlet: exist.home=/jetty-6.1.4/webapps/forXs/WEB-INF/ 2007-11-23 20:27:11,616 INFO EXistServlet - reading configuration from /jetty-6.1.4/webapps/forXs/WEB-INF/exist-conf.xml 2007-11-23 20:27:11,624 INFO Configuration - Reading configuration from file /jetty-6.1.4/webapps/forXs/WEB-INF/exist-conf.xml 2007-11-23 20:27:11,916 INFO Configuration - data directory = /jetty-6.1.4/webapps/forXs/WEB-INF/exist-data 2007-11-23 20:27:11,942 INFO EXistServlet - configuring eXist instance 2007-11-23 20:27:11,958 INFO CacheManager - Cache settings: totalPages: 12288; maxCacheSize: 11059 2007-11-23 20:27:11,961 INFO XQueryPool - QueryPool: size = 128; maxStackSize = 5; timeout = 120000; timeoutCheckInterval = 30000 2007-11-23 20:27:12,316 INFO EXistServlet - registering XMLDB driver 2007-11-23 20:27:12,349 INFO EXistServlet - Using default user guest for all unauthorized requests. 2007-11-23 20:27:12,374 WARN EXistServlet - Looking for a valid Parser... Checking for Xerces, not found! Warning: Failed find a valid Parser! Please add an appropriate Parser to the class-path, e.g. in the 'endorsed' folder of the servlet container or in the 'endorsed' folder of the JRE. 2007-11-23 20:27:12,376 WARN EXistServlet - Looking for a valid Transformer... Checking for Xalan, found version Xalan Java 2.4.1 needed version Xalan Java 2.7.0 Checking for Saxon, not found! Warning: Failed find a valid Transformer! Please add an appropriate Transformer to the class-path, e.g. in the 'endorsed' folder of the servlet container or in the 'endorsed' folder of the JRE. ---------- Is this Xalan version mismatch a problem with the nightly build or problem relating to Jetty? George Adams
Thanks, so it does look like there was some improvement! -Erik On Nov 23, 2007, at 2:34 PM, [hidden email] wrote: > > I downloaded the 3.5.1 version of ops (It took 1 minute and 40 > seconds) and tried it with Jetty > I received the following error displayed on the web page "Unexpected > response received from server" on every page I tried as soon as I > entered data or tried to click a button. > Part of the response is listed from Firebug is below > <h1>Orbeon Forms - Page Not Found</h1 > <p> > We are sorry, but the resource you have requested is not > available on this server. > The full response is attached in notFound.html > > The post from Firebug was > <!DOCTYPE xxforms:event-request [<!ENTITY nbsp " ">]> > > <xxforms:event-request xmlns:xxforms="http://orbeon.org/oxf/xml/ > xforms"> > > <xxforms:static-state>session:11E73EAD-783D-4477-6366- > A63138890E1F</xxforms:static-state> > > <xxforms:dynamic-state>session:ECFC6367-C843-12D4- > CD6E-9FCD48777C08</xxforms:dynamic-state> > > <xxforms:action> > > <xxforms:event name="DOMFocusIn" source-control-id="xforms- > element-29"></xxforms:event> > > <xxforms:event name="DOMActivate" source-control-id="xforms- > element-29"></xxforms:event> > > </xxforms:action> > > </xxforms:event-request> > > > George Adams > Educational Technology / Integration Services > 651 603-4891 > > > Erik Bruchez <[hidden email]> > Sent by: Erik Bruchez <[hidden email]> > 11/23/07 01:13 PM > Please respond to > [hidden email] > > To > [hidden email] > cc > Subject > Re: [ops-users] orbeon on jetty > > > > > > George, > > Thanks for trying this out! > > So the examples seem to fare well under Jetty, if I read your email > correctly. Did any of the example apps fail previously under Jetty? > > -Erik > > On Nov 22, 2007, at 7:01 AM, [hidden email] wrote: > > > > > I have downloaded the nightly build and tried it with jetty-6.1.4 > > I used FireFox 2.0.0.9 on a Mac running 10.4.11 > > All of the ops examples I tried worked without error except as noted > > I didn't try all the parts of these examples. > > Government Forms > > XForms Controls > > To-Do Lists > > Instant Translation > > XForms Hello > > XForms Bookcast > > Calculator > > Flick Resize > > Google Suggests > > XForms HTML Area (the instance inspector and displayed text didn't > > reflect changes until I switched to "Evaluate XPath and then back to > > View Instance" > > Upload Control appears to work but I couldn't find any uploaded > file. > > Wizard w/Switch > > Shopping Cart > > SQL Address Book > > HTML to XHTML > > I didn't try any of the Sandboxes > > > > I did try this with my forms which are based on XForms Controls > > (widget:tabs) and Bookcast > > With the tabs I can move from to the second tab, it displays but I > > get a "Unexpected response received from server" error message and > > no other tabs work after that. > > Probably something wrong with my code but it does work OK in Tomcat > > I'll see if I can get debugging turned on in Jetty. > > > > George Adams > > Educational Technology / Integration Services > > 651 603-4891 > > > > > > "Erik Bruchez" <[hidden email]> > > Sent by: [hidden email] > > 11/21/07 09:14 PM > > Please respond to > > [hidden email] > > > > To > > [hidden email] > > cc > > Subject > > Re: [ops-users] orbeon on jetty > > > > > > > > > > > > I have now committed a tentative fix for this. Please let us know if > > you have any luck with the latest code on Jetty! > > > > -Erik > > > > On Oct 24, 2007 9:31 PM, Erik Bruchez <[hidden email]> wrote: > > > Forgot to say that I entered a bug for this: > > > > > > http://forge.objectweb.org/tracker/index.php?func=detail&aid=307736&group_id=168&atid=350207 > > > > > > -Erik > > > > > > > > > Erik Bruchez wrote: > > > > Niko, > > > > > > > > Sounds good! > > > > > > > > Now I am not sure the fix is the best one, because you will > > still get > > > > exceptions with Jetty. It's just that they will be caught. But > > throwing > > > > exceptions is a very expensive operation in Java, especially if > > the > > > > stack is deep. > > > > > > > > So I wish we would simply NOT get the exception at all. > > > > > > > > Now this is risky territory! Do you know that method of the > > request was > > > > called before getParameterNames() to cause the exception? Was it > > > > getInputStream()? I am attempting a fix, which consists in > > getting and > > > > setting the request encoding, if needed, before calling > > getInputStream(). > > > > > > > > Also, did you see an actual issue with > > > > ExternalContextToHttpServletRequestWrapper? > > > > > > > > Thanks, > > > > > > > > -Erik > > > > > > > > Nicolas Modrzyk wrote: > > > >> Hello hello, > > > >> > > > >> Jetty is not supporting calls on setCharacterEncoding once the > > stream > > > >> has been opened. (Even though nothing has been read on the > > stream yet) > > > >> > > > >> Would it be possible to add variations of the two attached > > patches in > > > >> CVS ? Those are basically the two classes where setEncoding is > > used. > > > >> We just need to catch IllegalStateException and keep going. > > > >> > > > >> Do you want me to create tasks on the objectweb forge for it ? > > > >> > > > >> Thanks, > > > >> > > > >> Niko, > > > >> > > > > > > > > > > > > > > > > > -- > > > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > > > 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 > > OW2 mailing lists service home page: http://www.ow2.org/wws > > > > > > -- > > 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 > > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > 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 > OW2 mailing lists service home page: http://www.ow2.org/wws > > <notfound.html> > -- > 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 > OW2 mailing lists service home page: http://www.ow2.org/wws -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way 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 OW2 mailing lists service home page: http://www.ow2.org/wws -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
The Xalan / Saxon warning from eXist should be fixed. I think it
should not be of any consequence unless you use a feature of eXist that requires XSLT. -Erik On Nov 23, 2007, at 6:57 PM, [hidden email] wrote: > > Yes, the situation with Jetty is much improved. > The problem I was having with my app in Jetty was because I was > still using the 3.5 version. > I did get logging turned on after figuring out that the log files > were attempting to write to a "logs" folder just above the Jetty > folder not in the Jetty/logs folder. > > I do get the following error when jetty starts up; > ----------- > 2007-11-23 20:27:11,509 INFO ProcessorService - Servlet - Servlet > initialized. > 2007-11-23 20:27:11,510 INFO ProcessorService - Servlet - About to > run processor: [{http://www.orbeon.com/oxf/processors}pipeline, > config -> oxf:/apps/context/servlet-initialized.xpl] > 2007-11-23 20:27:11,583 INFO DebugProcessor - message: > line 19, column 46 of oxf:/apps/context/servlet-initialized.xpl > > <message xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:p="http://www.orbeon.com/oxf/pipeline > ">Servlet initialized.</message> > 2007-11-23 20:27:11,583 INFO ProcessorService - Done running > processor - Timing: 71 - Cache hits for cache.main: 1, fault: 4, > adds: 4, expirations: 0, success rate: 20% > 2007-11-23 20:27:11,585 INFO ProcessorService - Servlet - Servlet > initialized. > 2007-11-23 20:27:11,616 INFO EXistServlet - EXistServlet: > exist.home=/jetty-6.1.4/webapps/forXs/WEB-INF/ > 2007-11-23 20:27:11,616 INFO EXistServlet - reading configuration > from /jetty-6.1.4/webapps/forXs/WEB-INF/exist-conf.xml > 2007-11-23 20:27:11,624 INFO Configuration - Reading configuration > from file /jetty-6.1.4/webapps/forXs/WEB-INF/exist-conf.xml > 2007-11-23 20:27:11,916 INFO Configuration - data directory = / > jetty-6.1.4/webapps/forXs/WEB-INF/exist-data > 2007-11-23 20:27:11,942 INFO EXistServlet - configuring eXist > instance > 2007-11-23 20:27:11,958 INFO CacheManager - Cache settings: > totalPages: 12288; maxCacheSize: 11059 > 2007-11-23 20:27:11,961 INFO XQueryPool - QueryPool: size = 128; > maxStackSize = 5; timeout = 120000; timeoutCheckInterval = 30000 > 2007-11-23 20:27:12,316 INFO EXistServlet - registering XMLDB driver > 2007-11-23 20:27:12,349 INFO EXistServlet - Using default user > guest for all unauthorized requests. > 2007-11-23 20:27:12,374 WARN EXistServlet - Looking for a valid > Parser... > Checking for Xerces, not found! > Warning: Failed find a valid Parser! > > Please add an appropriate Parser to the class-path, e.g. in the > 'endorsed' folder of the servlet container or in the 'endorsed' > folder of the JRE. > > 2007-11-23 20:27:12,376 WARN EXistServlet - Looking for a valid > Transformer... > Checking for Xalan, found version Xalan Java 2.4.1 needed version > Xalan Java 2.7.0 > Checking for Saxon, not found! > Warning: Failed find a valid Transformer! > > Please add an appropriate Transformer to the class-path, e.g. in the > 'endorsed' folder of the servlet container or in the 'endorsed' > folder of the JRE. > ---------- > > Is this Xalan version mismatch a problem with the nightly build or > problem relating to Jetty? > > George Adams > > > > Erik Bruchez <[hidden email]> > Sent by: Erik Bruchez <[hidden email]> > 11/23/07 04:50 PM > Please respond to > [hidden email] > > To > [hidden email] > cc > Subject > Re: [ops-users] orbeon on jetty > > > > > > Thanks, so it does look like there was some improvement! > > -Erik > > On Nov 23, 2007, at 2:34 PM, [hidden email] wrote: > > > > > I downloaded the 3.5.1 version of ops (It took 1 minute and 40 > > seconds) and tried it with Jetty > > I received the following error displayed on the web page "Unexpected > > response received from server" on every page I tried as soon as I > > entered data or tried to click a button. > > Part of the response is listed from Firebug is below > > <h1>Orbeon Forms - Page Not Found</h1 > > <p> > > We are sorry, but the resource you have requested is not > > available on this server. > > The full response is attached in notFound.html > > > > The post from Firebug was > > <!DOCTYPE xxforms:event-request [<!ENTITY nbsp " ">]> > > > > <xxforms:event-request xmlns:xxforms="http://orbeon.org/oxf/xml/ > > xforms"> > > > > <xxforms:static-state>session:11E73EAD-783D-4477-6366- > > A63138890E1F</xxforms:static-state> > > > > <xxforms:dynamic-state>session:ECFC6367-C843-12D4- > > CD6E-9FCD48777C08</xxforms:dynamic-state> > > > > <xxforms:action> > > > > <xxforms:event name="DOMFocusIn" source-control-id="xforms- > > element-29"></xxforms:event> > > > > <xxforms:event name="DOMActivate" source-control-id="xforms- > > element-29"></xxforms:event> > > > > </xxforms:action> > > > > </xxforms:event-request> > > > > > > George Adams > > Educational Technology / Integration Services > > 651 603-4891 > > > > > > Erik Bruchez <[hidden email]> > > Sent by: Erik Bruchez <[hidden email]> > > 11/23/07 01:13 PM > > Please respond to > > [hidden email] > > > > To > > [hidden email] > > cc > > Subject > > Re: [ops-users] orbeon on jetty > > > > > > > > > > > > George, > > > > Thanks for trying this out! > > > > So the examples seem to fare well under Jetty, if I read your email > > correctly. Did any of the example apps fail previously under Jetty? > > > > -Erik > > > > On Nov 22, 2007, at 7:01 AM, [hidden email] wrote: > > > > > > > > I have downloaded the nightly build and tried it with jetty-6.1.4 > > > I used FireFox 2.0.0.9 on a Mac running 10.4.11 > > > All of the ops examples I tried worked without error except as > noted > > > I didn't try all the parts of these examples. > > > Government Forms > > > XForms Controls > > > To-Do Lists > > > Instant Translation > > > XForms Hello > > > XForms Bookcast > > > Calculator > > > Flick Resize > > > Google Suggests > > > XForms HTML Area (the instance inspector and displayed text didn't > > > reflect changes until I switched to "Evaluate XPath and then > back to > > > View Instance" > > > Upload Control appears to work but I couldn't find any uploaded > > file. > > > Wizard w/Switch > > > Shopping Cart > > > SQL Address Book > > > HTML to XHTML > > > I didn't try any of the Sandboxes > > > > > > I did try this with my forms which are based on XForms Controls > > > (widget:tabs) and Bookcast > > > With the tabs I can move from to the second tab, it displays but I > > > get a "Unexpected response received from server" error message and > > > no other tabs work after that. > > > Probably something wrong with my code but it does work OK in > Tomcat > > > I'll see if I can get debugging turned on in Jetty. > > > > > > George Adams > > > Educational Technology / Integration Services > > > 651 603-4891 > > > > > > > > > "Erik Bruchez" <[hidden email]> > > > Sent by: [hidden email] > > > 11/21/07 09:14 PM > > > Please respond to > > > [hidden email] > > > > > > To > > > [hidden email] > > > cc > > > Subject > > > Re: [ops-users] orbeon on jetty > > > > > > > > > > > > > > > > > > I have now committed a tentative fix for this. Please let us > know if > > > you have any luck with the latest code on Jetty! > > > > > > -Erik > > > > > > On Oct 24, 2007 9:31 PM, Erik Bruchez <[hidden email]> wrote: > > > > Forgot to say that I entered a bug for this: > > > > > > > > http://forge.objectweb.org/tracker/index.php?func=detail&aid=307736&group_id=168&atid=350207 > > > > > > > > -Erik > > > > > > > > > > > > Erik Bruchez wrote: > > > > > Niko, > > > > > > > > > > Sounds good! > > > > > > > > > > Now I am not sure the fix is the best one, because you will > > > still get > > > > > exceptions with Jetty. It's just that they will be caught. But > > > throwing > > > > > exceptions is a very expensive operation in Java, especially > if > > > the > > > > > stack is deep. > > > > > > > > > > So I wish we would simply NOT get the exception at all. > > > > > > > > > > Now this is risky territory! Do you know that method of the > > > request was > > > > > called before getParameterNames() to cause the exception? > Was it > > > > > getInputStream()? I am attempting a fix, which consists in > > > getting and > > > > > setting the request encoding, if needed, before calling > > > getInputStream(). > > > > > > > > > > Also, did you see an actual issue with > > > > > ExternalContextToHttpServletRequestWrapper? > > > > > > > > > > Thanks, > > > > > > > > > > -Erik > > > > > > > > > > Nicolas Modrzyk wrote: > > > > >> Hello hello, > > > > >> > > > > >> Jetty is not supporting calls on setCharacterEncoding once > the > > > stream > > > > >> has been opened. (Even though nothing has been read on the > > > stream yet) > > > > >> > > > > >> Would it be possible to add variations of the two attached > > > patches in > > > > >> CVS ? Those are basically the two classes where setEncoding > is > > > used. > > > > >> We just need to catch IllegalStateException and keep going. > > > > >> > > > > >> Do you want me to create tasks on the objectweb forge for > it ? > > > > >> > > > > >> Thanks, > > > > >> > > > > >> Niko, > > > > >> > > > > > > > > > > > > > > > > > > > > > > -- > > > > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > > > > 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 > > > OW2 mailing lists service home page: http://www.ow2.org/wws > > > > > > > > > -- > > > 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 > > > OW2 mailing lists service home page: http://www.ow2.org/wws > > > > -- > > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > > 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 > > OW2 mailing lists service home page: http://www.ow2.org/wws > > > > <notfound.html> > > -- > > 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 > > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > 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 > OW2 mailing lists service home page: http://www.ow2.org/wws > > > -- > 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 > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |