• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

exception when reloading

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi

i get the following error.

i am running jforum-2.1.4 with jetty-5.1.3. on java version "1.4.2_03"
on ubuntu linux.

i am logged in then everything works great. i close my browser and immediately open a new browser.

i then get the following exception on the jforum page in the browser

An error has ocurred. For detailed stack trace, please see the page's source code.

java.lang.NullPointerException

the jetty logs shows the following

11:42:09,815 ERROR [ExceptionWriter ] java.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java:333)
at java.util.Properties.getProperty(Properties.java:563)
at net.jforum.repository.ModulesRepository.getModuleClass(ModulesRepository.java:95)
at net.jforum.JForum.service(JForum.java:287)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:475)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:556)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1563)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:623)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1515)
at org.mortbay.http.HttpServer.service(HttpServer.java:956)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:814)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

if i wait a short while and press the page reload button it works again.

any ideas?

bye
bobnob
[originally posted on jforum.net by bobnob]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's a bug of JForum that occurs when using Jetty. It is already fixed in the development version. If you dont' want to wait for the next release, you can download the fixed class and recompile it by hand. The file is

https://jforum.dev.java.net/source/browse/*checkout*/jforum/src/net/jforum/ActionServletRequest.java

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using 2.1.4 so I checked out version 1.18.2 but I still got same error and at last it is fixed by

changing

(superRequest.getQueryString() == null)

to

(superRequest.getQueryString() == null||superRequest.getQueryString().length()==0)
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hm, right.

Could you please register this as bug, at http://www.jforum.net/jira ?

Thanks a lot

Rafael
[originally posted on jforum.net by Rafael Steil]
 
reply
    Bookmark Topic Watch Topic
  • New Topic