List Info

Thread: Time zone change after blog entries created




Time zone change after blog entries created
user name
2006-07-06 00:05:32
Hi,
It's probably known problem. Pebble sets time zone to England by default. I realized that after some time and changed time zone to pacific. Pebble started crashing after that.
Here is a fragment of stack trace. it can be problem of mine app server, because I do not use Tomcat. But maybe it happens for others too:
 
[Wed Jul 05 01:21:49 PDT 2006] Caused by
java.lang.NullPointerException
        at net.sourceforge.pebble.decorator.ContentDecoratorChain.decorate(Conte
ntDecoratorChain.java:174)
    ;    at net.sourceforge.pebble.web.view.impl.SingleBlogHomePageView.prepare (S
ingleBlogHomePageView.java:54)
     ;   at net.sourceforge.pebble.web.controller.HttpController.processRequest(H
ttpController.java:124)
        at net.sourceforge.pebble.web.controller.HttpController.doGet(HttpContro
ller.java:196)
    ;    at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at rogatkin.web.WebAppServlet$SimpleFilterChain.doFilter (WebAppServlet.j
ava:1665)
   ;     at rogatkin.web.WebAppServlet$SimpleDispatcher.forward(WebAppServlet.jav
a:1223)
        at net.sourceforge.pebble.web.filter.DispatchingFilter.doFilter(Dispatch
ingFilter.java :80)
       ; at rogatkin.web.WebAppServlet$SimpleFilterChain.doFilter(WebAppServlet.j
ava:1650)
     ;   at net.sourceforge.pebble.web.filter.LoggingFilter.doFilter(LoggingFilte
r.java:104)
 ;       at rogatkin.web.WebAppServlet$SimpleFilterChain.doFilter (WebAppServlet.j
ava:1650)

--
jAddressBook a leader system in personal records management systems. Visit http://jAddressBook.sf.net or sign on directly http://7bee.j2ee.us/addressbook/ab/Registry for a free trial.
Time zone change after blog entries created
user name
2006-07-06 09:07:51
Thanks for raising this. Pebble stores blog entries in a yyyy/mm/dd directory structure on disk that mirrors when the entry was posted in your selected timezone. Of course, if you change your timezone, Pebble gets confused because some of your entries will now appear to be in the wrong location.
 
This is all a hang up from an early version so with the 2.0.0 release we have to opportunity to change this. To fix this and prevent it happening in the future, I'm going to calculate the directory structure in GMT and use the timezone selection purely for presentation purposes. I've done most of this already and the final oustanding part is to write a utility that takes a blog directory and restructures it into GMT. I'll post a reply when this is all in SVN.
 
Thanks again.
Simon

 
On 7/6/06, jAddressBook Administrator <gmail.com">jaddressbookgmail.com> wrote:
Hi,
It's probably known problem. Pebble sets time zone to England by default. I realized that after some time and changed time zone to pacific. Pebble started crashing after that.
Here is a fragment of stack trace. it can be problem of mine app server, because I do not use Tomcat. But maybe it happens for others too:
&nbsp;
[Wed Jul 05 01:21:49 PDT 2006] Caused by
java.lang.NullPointerException
 &nbsp; &nbsp; &nbsp;  at net.sourceforge.pebble.decorator.ContentDecoratorChain.decorate(Conte
ntDecoratorChain.java:174)
&nbsp;   ; &nbsp;  at net.sourceforge.pebble.web.view.impl.SingleBlogHomePageView.prepare (S
ingleBlogHomePageView.java:54)
 &nbsp; &nbsp; &nbsp;  at net.sourceforge.pebble.web.controller.HttpController.processRequest(H
ttpController.java:124)
&nbsp; &nbsp; &nbsp; &nbsp; at net.sourceforge.pebble.web.controller.HttpController.doGet (HttpContro
ller.java:196)
 ; &nbsp; &nbsp; &nbsp; at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
&nbsp; &nbsp; &nbsp; &nbsp; at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
&nbsp; &nbsp; &nbsp; &nbsp; at rogatkin.web.WebAppServlet$SimpleFilterChain.doFilter (WebAppServlet.j
ava:1665)
 ; &nbsp; &nbsp; &nbsp; at rogatkin.web.WebAppServlet$SimpleDispatcher.forward(WebAppServlet.jav
a:1223)
 &nbsp; &nbsp; &nbsp;  at net.sourceforge.pebble.web.filter.DispatchingFilter.doFilter(Dispatch
ingFilter.java :80)
 ; &nbsp; &nbsp; &nbsp; at rogatkin.web.WebAppServlet$SimpleFilterChain.doFilter(WebAppServlet.j
ava:1650)
 &nbsp;   ; &nbsp; at net.sourceforge.pebble.web.filter.LoggingFilter.doFilter(LoggingFilte
r.java:104)
 ; &nbsp; &nbsp; &nbsp; at rogatkin.web.WebAppServlet$SimpleFilterChain.doFilter (WebAppServlet.j
ava:1650)

--
jAddressBook a leader system in personal records management systems. Visit http://jAddressBook.sf.net or sign on directly http://7bee.j2ee.us/addressbook/ab/Registry for a free trial.

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&;kid=120709&bid=263057&dat=121642

_______________________________________________
Pebble-user mailing list
lists.sourceforge.net">Pebble-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pebble-user



Time zone change after blog entries created
user name
2006-07-06 23:14:37
Okay, so the code is in SVN and I've tested it against a
couple of
blogs. You'll be able to grab the nightly build in about 30
minutes
from http://pebble.sf.net.

Please make a backup of your Pebble data directory before
starting up
the new version just in case the upgrade doesn't work as
expected.
Upon startup, Pebble will automatically upgrade your blog(s)
to the
new structure and reindex your blog to take the new changes
into
account.

I'm confident that this will fix the problems you have
after changing
time zones, but let me know if you run into any
difficulties.

Cheers
Simon

On 7/6/06, Simon Brown <simongbrowngmail.com> wrote:
>
> Thanks for raising this. Pebble stores blog entries in
a yyyy/mm/dd
> directory structure on disk that mirrors when the entry
was posted in your
> selected timezone. Of course, if you change your
timezone, Pebble gets
> confused because some of your entries will now appear
to be in the wrong
> location.
>
> This is all a hang up from an early version so with the
2.0.0 release we
> have to opportunity to change this. To fix this and
prevent it happening in
> the future, I'm going to calculate the directory
structure in GMT and use
> the timezone selection purely for presentation
purposes. I've done most of
> this already and the final oustanding part is to write
a utility that takes
> a blog directory and restructures it into GMT. I'll
post a reply when this
> is all in SVN.
>
> Thanks again.
> Simon
>
>
> On 7/6/06, jAddressBook Administrator
<jaddressbookgmail.com> wrote:
> >
>
>
> Hi,
> It's probably known problem. Pebble sets time zone to
England by default. I
> realized that after some time and changed time zone to
pacific. Pebble
> started crashing after that.
> Here is a fragment of stack trace. it can be problem of
mine app server,
> because I do not use Tomcat. But maybe it happens for
others too:
>
> [Wed Jul 05 01:21:49 PDT 2006] Caused by
> java.lang.NullPointerException
>         at
>
net.sourceforge.pebble.decorator.ContentDecoratorChain.decor
ate(Conte
> ntDecoratorChain.java:174)
>         at
>
net.sourceforge.pebble.web.view.impl.SingleBlogHomePageView.
prepare
> (S
> ingleBlogHomePageView.java:54)
>         at
>
net.sourceforge.pebble.web.controller.HttpController.process
Request(H
> ttpController.java:124)
>         at
>
net.sourceforge.pebble.web.controller.HttpController.doGet
> (HttpContro
> ller.java:196)
>         at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>         at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at
> rogatkin.web.WebAppServlet$SimpleFilterChain.doFilter
> (WebAppServlet.j
> ava:1665)
>         at
>
rogatkin.web.WebAppServlet$SimpleDispatcher.forward(WebAppSe
rvlet.jav
> a:1223)
>         at
>
net.sourceforge.pebble.web.filter.DispatchingFilter.doFilter
(Dispatch
> ingFilter.java :80)
>         at
>
rogatkin.web.WebAppServlet$SimpleFilterChain.doFilter(WebApp
Servlet.j
> ava:1650)
>         at
>
net.sourceforge.pebble.web.filter.LoggingFilter.doFilter(Log
gingFilte
> r.java:104)
>         at
> rogatkin.web.WebAppServlet$SimpleFilterChain.doFilter
> (WebAppServlet.j
> ava:1650)
>
> --
> jAddressBook a leader system in personal records
management systems. Visit
> http://jAddressBook.sf.net
 or sign on directly
> http://7b
ee.j2ee.us/addressbook/ab/Registry for a free
> trial.
> Using Tomcat but need to do more? Need to support web
services, security?
> Get stuff done quickly with pre-integrated technology
to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based
on Apache Geronimo
> http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
> _______________________________________________
> Pebble-user mailing list
> Pebble-userlists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pebble-user

>
>
>
>

Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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 )