• 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Himai Minh

java.lang.NumberFormatException: For input string: "$%7Bforum.id%7D"

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 just downloaded and installed jForum on resin 3.0.8, JDK 1.5. I was very impressed at how simple it was to install. Except for one thing... there's a bug in it somewhere that renders it unuseable.

My installation worked. I can get the list.page. I can use the admin mostly. I created a new forum and category. When I try to actually click into a forum, I get the following error:

It appears that the code is trying to turn a string into a number, but the string it is working on is not a number: $%7Bforum.id%7D

Looks like a variable name is not getting dereferenced or something..

Problem with install or bug?

15:09:07,781 ERROR [ForumException ] java.lang.reflect.InvocationTargetExce
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
at java.lang.reflect.Method.invoke(Method.java:585)
at net.jforum.Command.process(Command.java:88)
at net.jforum.JForum.service(JForum.java:262)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterC
at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.ja
at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocatio
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:263
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:331)
at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:464)
at com.caucho.util.ThreadPool.run(ThreadPool.java:408)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NumberFormatException: For input string: "$%7Bforum.id%7D"
at java.lang.NumberFormatException.forInputString(NumberFormatException.
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.parseInt(Integer.java:497)
at net.jforum.view.forum.ForumAction.show(ForumAction.java:243)
... 16 more
[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. Do you have JDK 1.4.2 to make a test?

[originally posted on jforum.net by Rafael Steil]
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic