Re: More migration issues, 5.0.18 - 5.1.0.2

2009-04-09 Thread Peter Stavrinides
 This only seems to affect some people ... I suspect it may only occur
 when an Apache server is between the browser and the servlet
 container. Can you confirm?
FYI, if it helps you at all I am running 5.1.0.0 in production Apache 2 - AJP 
connector - Tomcat 6, I get only the occasional Gzip error in the logs, I am 
holding off upgrading to 5.1.0.2.

Peter

- Original Message -
From: Andy Blower andy.blo...@proquest.co.uk
To: Tapestry users users@tapestry.apache.org
Sent: Wednesday, 8 April, 2009 20:55:33 GMT +02:00 Athens, Beirut, Bucharest, 
Istanbul
Subject: RE: More migration issues, 5.0.18 - 5.1.0.2

 On Wed, Apr 8, 2009 at 4:21 AM, Blower, Andy
 andy.blo...@proquest.co.uk wrote:
  Another day, another couple of stumbling blocks for our applications
 migration to T5.1 - I can't believe this has taken a solid week of
 effort so far. I'm starting to wonder if we jumped the gun on moving to
 T5.1 so soon? I do seem to be having more problems than most people on
 the list, so maybe it's just me / our app or something.
 
 I'm sorry and surprised you are having so much trouble.

I'm rather surprised too, the 5.0.x migrations (post .10) were always pretty 
easy. I think I must have gotten complacent about Tapestry alpha status because 
T5.0.11+ never really felt like alpha software to me. ;-)  (oh, and some of the 
new features in 5.1 are very appealing which is probably why migrating now was 
so tempting!)
 
  Anyway, the first issue is with our checkbox components that do an
 Ajax call when checked or unchecked. They work fine if Gzip compression
 is switched off, but if it's enabled the Ajax.Request hits the
 onException block with this error message TypeError: response is
 null. The server event handler is being called correctly and returning
 the correct JSONObject, but the responseText is empty and responseXML,
 responseJSON, and headerJSON are all null even though the status code
 is 200. My guess that the JSONObject is being compressed and it
 shouldn't be. Should I raise a JIRA for this, or am I mistaken here?
 
 There's an existing JIRA issue, with a workaround.
 
 https://issues.apache.org/jira/browse/TAP5-469
 
 This only seems to affect some people ... I suspect it may only occur
 when an Apache server is between the browser and the servlet
 container. Can you confirm?

Currently I've only been testing in Jetty on my PC with no apache server in 
sight. The workaround is probably okay until you want to release 5.1 so there's 
some time for gathering more data. I know it sounds unlikely but could it be 
OSX/XP even with the same browsers? I can ask someone to test this on OSX 
tomorrow if that would help.

 
  I also have a page that works fine with T5.0.18 but breaks in
 T5.1.0.2 and I have no idea why - curiously, if I have gzip compression
 I don't see the stacktrace in the browser, but I get Content Encoding
 Error, The page you are trying to view cannot be shown because it
 uses an invalid or unsupported form of compression. From Firefox.
 
  Here is the stack trace, in case anyone can make any sense of it:
 
  An unexpected application exception has occurred.
 
 Someone else has seen this as well.
 
 
 void render(MarkupModel model, StringBuilder builder, MapString,
 String namespaceURIToPrefix)
 {
 builder.append( );
 builder.append(element.toPrefixedName(namespaceURIToPrefix,
 namespace, name));
 builder.append(=);
 builder.append(model.getAttributeQuote());
 model.encodeQuoted(value, builder);  // line 69
 builder.append(model.getAttributeQuote());
 }
 
 I think this I can chase down; something is wrong, the value should
 never be null (it can be the empty string).

Did you see TAP5-635? It demonstrates a pretty bad consequence of this problem 
and it took time to investigate so I hope it proves useful.

I think 636 might be a duplicate.

Thanks,

Andy.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



More migration issues, 5.0.18 - 5.1.0.2

2009-04-08 Thread Blower, Andy
Another day, another couple of stumbling blocks for our applications migration 
to T5.1 - I can't believe this has taken a solid week of effort so far. I'm 
starting to wonder if we jumped the gun on moving to T5.1 so soon? I do seem to 
be having more problems than most people on the list, so maybe it's just me / 
our app or something.

Anyway, the first issue is with our checkbox components that do an Ajax call 
when checked or unchecked. They work fine if Gzip compression is switched off, 
but if it's enabled the Ajax.Request hits the onException block with this error 
message TypeError: response is null. The server event handler is being called 
correctly and returning the correct JSONObject, but the responseText is empty 
and responseXML, responseJSON, and headerJSON are all null even though the 
status code is 200. My guess that the JSONObject is being compressed and it 
shouldn't be. Should I raise a JIRA for this, or am I mistaken here?

I also have a page that works fine with T5.0.18 but breaks in T5.1.0.2 and I 
have no idea why - curiously, if I have gzip compression I don't see the 
stacktrace in the browser, but I get Content Encoding Error, The page you 
are trying to view cannot be shown because it uses an invalid or unsupported 
form of compression. From Firefox.

Here is the stack trace, in case anyone can make any sense of it:

An unexpected application exception has occurred.

 *   java.lang.NullPointerException
*   
org.apache.tapestry5.dom.AbstractMarkupModel.encodeQuoted(AbstractMarkupModel.java:94)
*   org.apache.tapestry5.dom.Attribute.render(Attribute.java:69)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:313)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Document.toMarkup(Document.java:163)
*   org.apache.tapestry5.dom.Node.toMarkup(Node.java:80)
*   
org.apache.tapestry5.internal.services.MarkupWriterImpl.toMarkup(MarkupWriterImpl.java:57)
*   
org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:67)
*   
$PageResponseRenderer_12085541484.renderPageResponse($PageResponseRenderer_12085541484.java)
*   
org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:63)
*   
org.apache.tapestry5.services.TapestryModule$33.handle(TapestryModule.java:1952)
*   
$PageRenderRequestHandler_12085541485.handle($PageRenderRequestHandler_12085541485.java)
*   
$PageRenderRequestHandler_12085541478.handle($PageRenderRequestHandler_12085541478.java)
*   
org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48)
*   
$ComponentRequestHandler_1208554147e.handlePageRender($ComponentRequestHandler_1208554147e.java)
*   
org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45)
*   $Dispatcher_12085541480.dispatch($Dispatcher_12085541480.java)
*   $Dispatcher_12085541472.dispatch($Dispatcher_12085541472.java)
*   

Re: More migration issues, 5.0.18 - 5.1.0.2

2009-04-08 Thread Ulrich Stärk
Someone else already stumbled upon this but it's not yet confirmed 
what's causing it. I believe Howard posted a workaround in the issue 
comments. https://issues.apache.org/jira/browse/TAP5-469


Cheers,

Uli

Am 08.04.2009 13:21 schrieb Blower, Andy:

Another day, another couple of stumbling blocks for our applications migration 
to T5.1 - I can't believe this has taken a solid week of effort so far. I'm 
starting to wonder if we jumped the gun on moving to T5.1 so soon? I do seem to 
be having more problems than most people on the list, so maybe it's just me / 
our app or something.

Anyway, the first issue is with our checkbox components that do an Ajax call when checked 
or unchecked. They work fine if Gzip compression is switched off, but if it's enabled the 
Ajax.Request hits the onException block with this error message TypeError: response 
is null. The server event handler is being called correctly and returning the 
correct JSONObject, but the responseText is empty and responseXML, responseJSON, and 
headerJSON are all null even though the status code is 200. My guess that the JSONObject 
is being compressed and it shouldn't be. Should I raise a JIRA for this, or am I mistaken 
here?

I also have a page that works fine with T5.0.18 but breaks in T5.1.0.2 and I have no idea why - 
curiously, if I have gzip compression I don't see the stacktrace in the browser, but I get 
Content Encoding Error, The page you are trying to view cannot be shown because 
it uses an invalid or unsupported form of compression. From Firefox.

Here is the stack trace, in case anyone can make any sense of it:

An unexpected application exception has occurred.

 *   java.lang.NullPointerException
*   
org.apache.tapestry5.dom.AbstractMarkupModel.encodeQuoted(AbstractMarkupModel.java:94)
*   org.apache.tapestry5.dom.Attribute.render(Attribute.java:69)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:313)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Document.toMarkup(Document.java:163)
*   org.apache.tapestry5.dom.Node.toMarkup(Node.java:80)
*   
org.apache.tapestry5.internal.services.MarkupWriterImpl.toMarkup(MarkupWriterImpl.java:57)
*   
org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:67)
*   
$PageResponseRenderer_12085541484.renderPageResponse($PageResponseRenderer_12085541484.java)
*   
org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:63)
*   
org.apache.tapestry5.services.TapestryModule$33.handle(TapestryModule.java:1952)
*   
$PageRenderRequestHandler_12085541485.handle($PageRenderRequestHandler_12085541485.java)
*   
$PageRenderRequestHandler_12085541478.handle($PageRenderRequestHandler_12085541478.java)
*   
org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48)
*   
$ComponentRequestHandler_1208554147e.handlePageRender($ComponentRequestHandler_1208554147e.java)
*   

Re: More migration issues, 5.0.18 - 5.1.0.2

2009-04-08 Thread Ville Virtanen

Hi,

exatly the same problems we were having. I opened Jira issue because of
this:

https://issues.apache.org/jira/browse/TAP5-623

For us the main reason was because we had 

label for=someid /

and then

t:if test=readmode
   ${value}
   t:parameter name=else
  t:textfield t:id=someid value=value /
   /t:parameter
/t:if

Now with T5.0.18 this worked fine, but now dies in 5.1.0.2 if it is
readmode: (label gets null for parameter) - givin only some T5 internal
stacktrace or the unsupported form of compression..

 Hope this helps,

 - Ville



Andy Blower wrote:
 
 Another day, another couple of stumbling blocks for our applications
 migration to T5.1 - I can't believe this has taken a solid week of effort
 so far. I'm starting to wonder if we jumped the gun on moving to T5.1 so
 soon? I do seem to be having more problems than most people on the list,
 so maybe it's just me / our app or something.
 
 Anyway, the first issue is with our checkbox components that do an Ajax
 call when checked or unchecked. They work fine if Gzip compression is
 switched off, but if it's enabled the Ajax.Request hits the onException
 block with this error message TypeError: response is null. The server
 event handler is being called correctly and returning the correct
 JSONObject, but the responseText is empty and responseXML, responseJSON,
 and headerJSON are all null even though the status code is 200. My guess
 that the JSONObject is being compressed and it shouldn't be. Should I
 raise a JIRA for this, or am I mistaken here?
 
 I also have a page that works fine with T5.0.18 but breaks in T5.1.0.2 and
 I have no idea why - curiously, if I have gzip compression I don't see the
 stacktrace in the browser, but I get Content Encoding Error, The page
 you are trying to view cannot be shown because it uses an invalid or
 unsupported form of compression. From Firefox.
 
 Here is the stack trace, in case anyone can make any sense of it:
 
 An unexpected application exception has occurred.
 
  *   java.lang.NullPointerException
 *  
 org.apache.tapestry5.dom.AbstractMarkupModel.encodeQuoted(AbstractMarkupModel.java:94)
 *   org.apache.tapestry5.dom.Attribute.render(Attribute.java:69)
 *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:313)
 *  
 org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
 *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
 *  
 org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
 *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
 *  
 org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
 *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
 *  
 org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
 *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
 *  
 org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
 *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
 *  
 org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
 *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
 *  
 org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
 *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
 *  
 org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
 *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
 *  
 org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
 *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
 *  
 org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
 *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
 *  
 org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
 *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
 *  
 org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
 *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
 *  
 org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
 *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
 *   org.apache.tapestry5.dom.Document.toMarkup(Document.java:163)
 *   org.apache.tapestry5.dom.Node.toMarkup(Node.java:80)
 *  
 org.apache.tapestry5.internal.services.MarkupWriterImpl.toMarkup(MarkupWriterImpl.java:57)
 *  
 org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:67)
 *  
 $PageResponseRenderer_12085541484.renderPageResponse($PageResponseRenderer_12085541484.java)
 *  
 org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:63)
 *  
 org.apache.tapestry5.services.TapestryModule$33.handle(TapestryModule.java:1952)
 *  
 $PageRenderRequestHandler_12085541485.handle($PageRenderRequestHandler_12085541485.java)
 *  
 

RE: More migration issues, 5.0.18 - 5.1.0.2

2009-04-08 Thread Blower, Andy
Thanks Ulrich, I didn't see that bug when I searched even though it's plainly 
visible to me now. I appreciate the quick response!

I'll add a comment (and a vote) as well as implementing the workaround. Looks 
like Howard can't reproduce it on OSX, but I definitely get this issue in IE6, 
FF3  Chrome2 on windows XP.

 -Original Message-
 From: Ulrich Stärk [mailto:u...@spielviel.de]
 Sent: 08 April 2009 12:30
 To: Tapestry users
 Subject: Re: More migration issues, 5.0.18 - 5.1.0.2
 
 Someone else already stumbled upon this but it's not yet confirmed
 what's causing it. I believe Howard posted a workaround in the issue
 comments. https://issues.apache.org/jira/browse/TAP5-469
 
 Cheers,
 
 Uli
 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



RE: More migration issues, 5.0.18 - 5.1.0.2

2009-04-08 Thread Blower, Andy
Thanks for this Ville it really helped me investigate this, still took 3 hours 
to track it down. I've raised TAP5-635 for this because it turned out to be 
related, but different - and also IMHO a valid use case. The stacktrace not 
appearing with compression is another issue that needs resolving, but it's 
minor.

 -Original Message-
 From: Ville Virtanen [mailto:ville.virta...@cerion.fi]
 Sent: 08 April 2009 12:33
 To: users@tapestry.apache.org
 Subject: Re: More migration issues, 5.0.18 - 5.1.0.2
 
 
 Hi,
 
 exatly the same problems we were having. I opened Jira issue because of
 this:
 
 https://issues.apache.org/jira/browse/TAP5-623
 
 For us the main reason was because we had
 
 label for=someid /
 
 and then
 
 t:if test=readmode
${value}
t:parameter name=else
   t:textfield t:id=someid value=value /
/t:parameter
 /t:if
 
 Now with T5.0.18 this worked fine, but now dies in 5.1.0.2 if it is
 readmode: (label gets null for parameter) - givin only some T5 internal
 stacktrace or the unsupported form of compression..
 
  Hope this helps,
 
  - Ville
 
 
 
 Andy Blower wrote:
 
  Another day, another couple of stumbling blocks for our applications
  migration to T5.1 - I can't believe this has taken a solid week of
 effort
  so far. I'm starting to wonder if we jumped the gun on moving to T5.1
 so
  soon? I do seem to be having more problems than most people on the
 list,
  so maybe it's just me / our app or something.
 
  Anyway, the first issue is with our checkbox components that do an
 Ajax
  call when checked or unchecked. They work fine if Gzip compression is
  switched off, but if it's enabled the Ajax.Request hits the
 onException
  block with this error message TypeError: response is null. The
 server
  event handler is being called correctly and returning the correct
  JSONObject, but the responseText is empty and responseXML,
 responseJSON,
  and headerJSON are all null even though the status code is 200. My
 guess
  that the JSONObject is being compressed and it shouldn't be. Should I
  raise a JIRA for this, or am I mistaken here?
 
  I also have a page that works fine with T5.0.18 but breaks in
 T5.1.0.2 and
  I have no idea why - curiously, if I have gzip compression I don't
 see the
  stacktrace in the browser, but I get Content Encoding Error, The
 page
  you are trying to view cannot be shown because it uses an invalid or
  unsupported form of compression. From Firefox.
 
  Here is the stack trace, in case anyone can make any sense of it:
 
  An unexpected application exception has occurred.
 
   *   java.lang.NullPointerException
  *
 
 org.apache.tapestry5.dom.AbstractMarkupModel.encodeQuoted(AbstractMarku
 pModel.java:94)
  *   org.apache.tapestry5.dom.Attribute.render(Attribute.java:69)
  *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:313)
  *
  org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
  *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
  *
  org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
  *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
  *
  org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
  *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
  *
  org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
  *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
  *
  org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
  *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
  *
  org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
  *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
  *
  org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
  *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
  *
  org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
  *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
  *
  org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
  *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
  *
  org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
  *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
  *
  org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
  *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
  *
  org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
  *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
  *
  org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
  *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
  *   org.apache.tapestry5.dom.Document.toMarkup(Document.java:163)
  *   org.apache.tapestry5.dom.Node.toMarkup(Node.java:80)
  *
 
 org.apache.tapestry5.internal.services.MarkupWriterImpl.toMarkup

Re: More migration issues, 5.0.18 - 5.1.0.2

2009-04-08 Thread Howard Lewis Ship
On Wed, Apr 8, 2009 at 4:21 AM, Blower, Andy andy.blo...@proquest.co.uk wrote:
 Another day, another couple of stumbling blocks for our applications 
 migration to T5.1 - I can't believe this has taken a solid week of effort so 
 far. I'm starting to wonder if we jumped the gun on moving to T5.1 so soon? I 
 do seem to be having more problems than most people on the list, so maybe 
 it's just me / our app or something.

I'm sorry and surprised you are having so much trouble.



 Anyway, the first issue is with our checkbox components that do an Ajax call 
 when checked or unchecked. They work fine if Gzip compression is switched 
 off, but if it's enabled the Ajax.Request hits the onException block with 
 this error message TypeError: response is null. The server event handler is 
 being called correctly and returning the correct JSONObject, but the 
 responseText is empty and responseXML, responseJSON, and headerJSON are all 
 null even though the status code is 200. My guess that the JSONObject is 
 being compressed and it shouldn't be. Should I raise a JIRA for this, or am I 
 mistaken here?

There's an existing JIRA issue, with a workaround.

https://issues.apache.org/jira/browse/TAP5-469

This only seems to affect some people ... I suspect it may only occur
when an Apache server is between the browser and the servlet
container. Can you confirm?


 I also have a page that works fine with T5.0.18 but breaks in T5.1.0.2 and I 
 have no idea why - curiously, if I have gzip compression I don't see the 
 stacktrace in the browser, but I get Content Encoding Error, The page you 
 are trying to view cannot be shown because it uses an invalid or unsupported 
 form of compression. From Firefox.

 Here is the stack trace, in case anyone can make any sense of it:

 An unexpected application exception has occurred.

Someone else has seen this as well.



  *   java.lang.NullPointerException
    *   
 org.apache.tapestry5.dom.AbstractMarkupModel.encodeQuoted(AbstractMarkupModel.java:94)
    *   org.apache.tapestry5.dom.Attribute.render(Attribute.java:69)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:313)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Document.toMarkup(Document.java:163)
    *   org.apache.tapestry5.dom.Node.toMarkup(Node.java:80)
    *   
 org.apache.tapestry5.internal.services.MarkupWriterImpl.toMarkup(MarkupWriterImpl.java:57)
    *   
 org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:67)
    *   
 $PageResponseRenderer_12085541484.renderPageResponse($PageResponseRenderer_12085541484.java)
    *   
 org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:63)
    *   
 org.apache.tapestry5.services.TapestryModule$33.handle(TapestryModule.java:1952)
    *   
 $PageRenderRequestHandler_12085541485.handle($PageRenderRequestHandler_12085541485.java)
    *   
 $PageRenderRequestHandler_12085541478.handle($PageRenderRequestHandler_12085541478.java)
    *   
 

Re: More migration issues, 5.0.18 - 5.1.0.2

2009-04-08 Thread Howard Lewis Ship
On Wed, Apr 8, 2009 at 9:40 AM, Howard Lewis Ship hls...@gmail.com wrote:
 On Wed, Apr 8, 2009 at 4:21 AM, Blower, Andy andy.blo...@proquest.co.uk 
 wrote:
 Another day, another couple of stumbling blocks for our applications 
 migration to T5.1 - I can't believe this has taken a solid week of effort so 
 far. I'm starting to wonder if we jumped the gun on moving to T5.1 so soon? 
 I do seem to be having more problems than most people on the list, so maybe 
 it's just me / our app or something.

 I'm sorry and surprised you are having so much trouble.



 Anyway, the first issue is with our checkbox components that do an Ajax call 
 when checked or unchecked. They work fine if Gzip compression is switched 
 off, but if it's enabled the Ajax.Request hits the onException block with 
 this error message TypeError: response is null. The server event handler 
 is being called correctly and returning the correct JSONObject, but the 
 responseText is empty and responseXML, responseJSON, and headerJSON are all 
 null even though the status code is 200. My guess that the JSONObject is 
 being compressed and it shouldn't be. Should I raise a JIRA for this, or am 
 I mistaken here?

 There's an existing JIRA issue, with a workaround.

 https://issues.apache.org/jira/browse/TAP5-469

 This only seems to affect some people ... I suspect it may only occur
 when an Apache server is between the browser and the servlet
 container. Can you confirm?


 I also have a page that works fine with T5.0.18 but breaks in T5.1.0.2 and I 
 have no idea why - curiously, if I have gzip compression I don't see the 
 stacktrace in the browser, but I get Content Encoding Error, The page you 
 are trying to view cannot be shown because it uses an invalid or unsupported 
 form of compression. From Firefox.

 Here is the stack trace, in case anyone can make any sense of it:

 An unexpected application exception has occurred.

 Someone else has seen this as well.



  *   java.lang.NullPointerException
    *   
 org.apache.tapestry5.dom.AbstractMarkupModel.encodeQuoted(AbstractMarkupModel.java:94)
    *   org.apache.tapestry5.dom.Attribute.render(Attribute.java:69)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:313)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
    *   org.apache.tapestry5.dom.Document.toMarkup(Document.java:163)
    *   org.apache.tapestry5.dom.Node.toMarkup(Node.java:80)
    *   
 org.apache.tapestry5.internal.services.MarkupWriterImpl.toMarkup(MarkupWriterImpl.java:57)
    *   
 org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:67)
    *   
 $PageResponseRenderer_12085541484.renderPageResponse($PageResponseRenderer_12085541484.java)
    *   
 org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:63)
    *   
 org.apache.tapestry5.services.TapestryModule$33.handle(TapestryModule.java:1952)
    *   
 $PageRenderRequestHandler_12085541485.handle($PageRenderRequestHandler_12085541485.java)
    *   
 $PageRenderRequestHandler_12085541478.handle($PageRenderRequestHandler_12085541478.java)
    *   
 

RE: More migration issues, 5.0.18 - 5.1.0.2

2009-04-08 Thread Blower, Andy
 On Wed, Apr 8, 2009 at 4:21 AM, Blower, Andy
 andy.blo...@proquest.co.uk wrote:
  Another day, another couple of stumbling blocks for our applications
 migration to T5.1 - I can't believe this has taken a solid week of
 effort so far. I'm starting to wonder if we jumped the gun on moving to
 T5.1 so soon? I do seem to be having more problems than most people on
 the list, so maybe it's just me / our app or something.
 
 I'm sorry and surprised you are having so much trouble.

I'm rather surprised too, the 5.0.x migrations (post .10) were always pretty 
easy. I think I must have gotten complacent about Tapestry alpha status because 
T5.0.11+ never really felt like alpha software to me. ;-)  (oh, and some of the 
new features in 5.1 are very appealing which is probably why migrating now was 
so tempting!)
 
  Anyway, the first issue is with our checkbox components that do an
 Ajax call when checked or unchecked. They work fine if Gzip compression
 is switched off, but if it's enabled the Ajax.Request hits the
 onException block with this error message TypeError: response is
 null. The server event handler is being called correctly and returning
 the correct JSONObject, but the responseText is empty and responseXML,
 responseJSON, and headerJSON are all null even though the status code
 is 200. My guess that the JSONObject is being compressed and it
 shouldn't be. Should I raise a JIRA for this, or am I mistaken here?
 
 There's an existing JIRA issue, with a workaround.
 
 https://issues.apache.org/jira/browse/TAP5-469
 
 This only seems to affect some people ... I suspect it may only occur
 when an Apache server is between the browser and the servlet
 container. Can you confirm?

Currently I've only been testing in Jetty on my PC with no apache server in 
sight. The workaround is probably okay until you want to release 5.1 so there's 
some time for gathering more data. I know it sounds unlikely but could it be 
OSX/XP even with the same browsers? I can ask someone to test this on OSX 
tomorrow if that would help.

 
  I also have a page that works fine with T5.0.18 but breaks in
 T5.1.0.2 and I have no idea why - curiously, if I have gzip compression
 I don't see the stacktrace in the browser, but I get Content Encoding
 Error, The page you are trying to view cannot be shown because it
 uses an invalid or unsupported form of compression. From Firefox.
 
  Here is the stack trace, in case anyone can make any sense of it:
 
  An unexpected application exception has occurred.
 
 Someone else has seen this as well.
 
 
 void render(MarkupModel model, StringBuilder builder, MapString,
 String namespaceURIToPrefix)
 {
 builder.append( );
 builder.append(element.toPrefixedName(namespaceURIToPrefix,
 namespace, name));
 builder.append(=);
 builder.append(model.getAttributeQuote());
 model.encodeQuoted(value, builder);  // line 69
 builder.append(model.getAttributeQuote());
 }
 
 I think this I can chase down; something is wrong, the value should
 never be null (it can be the empty string).

Did you see TAP5-635? It demonstrates a pretty bad consequence of this problem 
and it took time to investigate so I hope it proves useful.

I think 636 might be a duplicate.

Thanks,

Andy.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org