List Info

Thread: Re: New installation




Re: New installation
user name
2008-04-29 18:35:09
> Frequently the home page
> loads in such a way that it appears to have lost the
.css file.  I
> regularly get errors about the java script files not
being loaded.  I'm
> not sure if this is a pebble problem, or a problem with
my container.

This sounds just like the problems I was having with Jetty. 
I have been
meaning to post this, but haven't had the time.

All my problems generated stack traces with something to do
with
GZIPFilter and GZIPResponseWrapper.  I did lots of googling
on
GZIPFilter and Jetty, and it turns out that Jetty has it's
own
implementation of GZIPFilter.  Replacing the pebble one with
the
Jetty one fixed the disappearing .css/.js issue for me.

Index: src/web/WEB-INF/web.xml
============================================================
=======
---
src/web/WEB-INF/web.xml	(.../trunk/src/web/WEB-INF/web.xml)
(revision 49)
+++
src/web/WEB-INF/web.xml	(.../mine/src/web/WEB-INF/web.xml)
(revision 55)
 -74,7
+74,7 
 
   <filter>
     <filter-name>GZIPFilter</filter-name>
-   
<filter-class>net.sourceforge.pebble.web.filter.GZIPFi
lter</filter-class>
+   
<filter-class>org.mortbay.servlet.GzipFilter</filte
r-class>
   </filter>
 
   <filter-mapping>

Simon: Is there a particular reason you wrote your own
GZIPFilter?  It
looks pretty close (if not identical) to the reference
implementation on
OnJava.com (don't have the url right now).  But it didn't
work with
Firefox and Jetty.  Strangely (as I reported earlier),
Safari hitting my
Jetty installation had no problem.o

I'm just throwing this out, of course.

Brendan

------------------------------------------------------------
-------------
This SF.net email is sponsored by the 2008 JavaOne(SM)
Conference 
Don't miss this year's exciting event. There's still time to
save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;1987
57673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Pebble-user mailing list
Pebble-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pebble-user


Re: New installation
country flaguser name
United States
2008-04-30 01:52:21
Brendan Miller wrote:
>> Frequently the home page
>> loads in such a way that it appears to have lost
the .css file.  I
>> regularly get errors about the java script files
not being loaded.  I'm
>> not sure if this is a pebble problem, or a problem
with my container.
> 
> This sounds just like the problems I was having with
Jetty.  I have been
> meaning to post this, but haven't had the time.
> 
> All my problems generated stack traces with something
to do with
> GZIPFilter and GZIPResponseWrapper.  I did lots of
googling on
> GZIPFilter and Jetty, and it turns out that Jetty has
it's own
> implementation of GZIPFilter.  Replacing the pebble one
with the
> Jetty one fixed the disappearing .css/.js issue for
me.
> 

We might be having the same problems.  I'll certainly try
the patch, but
when I look at the Geronimo logs what I see are
NullPointerExceptions.
Here's a sample:

...
23765:  06:20:06,172 ERROR [log]
/pebble/themes/_pebble/print.css
23845:  06:20:06,309 ERROR [log] Nested in
javax.servlet.ServletException:
java.lang.NullPointerException:
23925:  06:20:06,310 ERROR [log]
/pebble/themes/_pebble/handheld.css
24005:  06:20:06,478 ERROR [log] Nested in
javax.servlet.ServletException:
java.lang.NullPointerException:
24085:  06:20:06,478 ERROR [log]
/pebble/FCKeditor/fckeditor.js
24165:  06:20:06,616 ERROR [log] Nested in
javax.servlet.ServletException:
java.lang.NullPointerException:
24245:  06:20:06,617 ERROR [log] /pebble/scripts/pebble.js
24325:  06:20:06,794 ERROR [log] Nested in
javax.servlet.ServletException:
java.lang.NullPointerException:
24405:  06:20:06,794 ERROR [log]
/pebble/scripts/prototype.js
24485:  06:20:06,938 ERROR [log] Nested in
javax.servlet.ServletException:
java.lang.NullPointerException:
24565:  06:20:06,938 ERROR [log]
/pebble/scripts/scriptaculous.js
24645:  06:20:07,078 ERROR [log] Nested in
javax.servlet.ServletException:
java.lang.NullPointerException:
24725:  06:20:07,079 ERROR [log]
/pebble/scripts/dwr-engine.js
24805:  06:20:07,703 ERROR [log] Nested in
javax.servlet.ServletException:
java.lang.NullPointerException:
...


Now maybe the Exception you're seeing is really a
NullPointerException
that bubbles up through the GZip code?

-- 
Kenneth P. Turvey <ktsqueakydolphin.com>


------------------------------------------------------------
-------------
This SF.net email is sponsored by the 2008 JavaOne(SM)
Conference 
Don't miss this year's exciting event. There's still time to
save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;1987
57673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Pebble-user mailing list
Pebble-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pebble-user


Re: New installation
country flaguser name
United States
2008-04-30 01:59:30
Brendan Miller wrote:

The patch seems to have solved my problem too.  This could
explain why
my test written in Java never failed as well.  It could be
that the Java
implementation didn't ask for the files to be compressed
before being
sent.  I wonder how Jetty and Pebble interact together to
cause this bug?

Anyway, thanks for the fix!

[Snip]
> Simon: Is there a particular reason you wrote your own
GZIPFilter?  It
> looks pretty close (if not identical) to the reference
implementation on
> OnJava.com (don't have the url right now).  But it
didn't work with
> Firefox and Jetty.  Strangely (as I reported earlier),
Safari hitting my
> Jetty installation had no problem.o
> 
> I'm just throwing this out, of course.

There must be a null getting tossed around in there
somewhere.


-- 
Kenneth P. Turvey <ktsqueakydolphin.com>


------------------------------------------------------------
-------------
This SF.net email is sponsored by the 2008 JavaOne(SM)
Conference 
Don't miss this year's exciting event. There's still time to
save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;1987
57673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Pebble-user mailing list
Pebble-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pebble-user


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )