There's a workaround for the JDK bug in Tapestry 5.0.10. On Fri, Feb 29, 2008 at 8:40 AM, Baofeng Yu <[EMAIL PROTECTED]> wrote: > Looks like the NPE problem is due to a JDK 5 bug. After I upgrade JDK to > 1.6, the problem is fixed. > > Baofeng > > > > > Baofeng Yu wrote: > > Yes, it happens consistently when I restart jboss and access the page > > the first time after the restart. Afterwards, it's all OK. I am using > > 5.0.9. > > > > Baofeng > > > > > > Robert Zeigler wrote: > >> Does this happen consistently? > >> I see the same stack trace on occasion. Also using mod_jk, tomcat > >> 4.x, but no jboss, and I can't reliably reproduce this issue. It > >> just pops up on occasion. > >> So I'd be interested in knowing if you can consistently reproduce > >> this problem. Btw, what version of T5 is this? > >> > >> Robert > >> > >> On Feb 28, 2008, at 2/2810:02 AM , Baofeng Yu wrote: > >> > >>> Hi All, > >>> > >>> I deployed a tapestry application into Jboss and am having the > >>> following problem: > >>> > >>> If I call a page directly with the url: > >>> http://localhost:8080/test/start, all works OK. But when I access > >>> the page with the url: http://localhost/test/start , it first > >>> returns a NullPointerException. If I refresh the page, it then loads > >>> OK. By the way, I use jboss 4.0.5.GA and I configured apache httpd > >>> and the built-in tomcat in jboss with mod_jk. I don't have problem > >>> with the connector with jsf and jsp pages. Also even if I just > >>> deploy a clean test tapestry application with the default start > >>> page, I get the same error. So it doesn't look like the problem is > >>> with my application. Is there additional configuration to do for > >>> tapestry to work with jk connector? Any help would be appreciated. > >>> Thanks. > >>> > >>> The following is the stack trace: > >>> > >>> > >>> An unexpected application exception has occurred. > >>> > >>> * java.lang.NullPointerException > >>> > >>> Stack trace > >>> o > >>> > org.apache.tapestry.services.TapestryModule$30.getCookies(TapestryModule.java:1834) > >>> > >>> o > >>> > org.apache.tapestry.internal.services.CookiesImpl.readCookieValue(CookiesImpl.java:61) > >>> > >>> o > >>> > org.apache.tapestry.internal.services.PersistentLocaleImpl.getCookieValue(PersistentLocaleImpl.java:50) > >>> > >>> o > >>> > org.apache.tapestry.internal.services.PersistentLocaleImpl.get(PersistentLocaleImpl.java:43) > >>> > >>> o > >>> > org.apache.tapestry.internal.services.LocalizationSetterImpl.setThreadLocale(LocalizationSetterImpl.java:97) > >>> > >>> o > >>> > org.apache.tapestry.internal.services.LocalizationFilter.service(LocalizationFilter.java:41) > >>> > >>> o > >>> > org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java:529) > >>> > >>> o > >>> > org.apache.tapestry.services.TapestryModule$2.service(TapestryModule.java:504) > >>> > >>> o > >>> > org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:79) > >>> > >>> o > >>> > org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:93) > >>> > >>> o > >>> > org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:84) > >>> > >>> o > >>> > org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77) > >>> > >>> o > >>> > org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:106) > >>> > >>> o > >>> > org.apache.tapestry.services.TapestryModule$12.service(TapestryModule.java:891) > >>> > >>> o > >>> > org.apache.tapestry.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62) > >>> > >>> o > >>> org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:164) > >>> o > >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) > >>> > >>> o > >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > >>> > >>> o > >>> > org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) > >>> > >>> o > >>> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) > >>> > >>> o > >>> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > >>> > >>> o > >>> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > >>> > >>> o > >>> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) > >>> > >>> o > >>> > org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) > >>> > >>> o > >>> > org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) > >>> > >>> o > >>> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) > >>> > >>> o > >>> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > >>> > >>> o > >>> > org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) > >>> > >>> o > >>> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) > >>> > >>> o > >>> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > >>> > >>> o > >>> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199) > >>> o > >>> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) > >>> o > >>> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) > >>> o > >>> > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697) > >>> > >>> o > >>> > org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889) > >>> > >>> o > >>> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > >>> > >>> o java.lang.Thread.run(Thread.java:595) > >>> > >>> > >>> > >>> > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: [EMAIL PROTECTED] > >>> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
-- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]