Server error: java.lang.NumberFormatException: For input string

139 views
Skip to first unread message

Jordan Reiter

unread,
Dec 8, 2010, 12:02:52 PM12/8/10
to wise...@googlegroups.com
I'm getting a weird error where one server makes a request back to the
server; that request throws an error [Error A], and the function
processing the response therefore throws an error [Error B].

Here's an example of an Error B:

java.lang.NumberFormatException: For input string: "<!-- * Copyright
(c) 2006 Encore Research Group, University of Toronto * [SNIP]
--><html xml:lang="en" lang="en"<head><meta http-equiv="Content-Type"
content="text/html;charset=utf-8" /><link
href="./themes/tels/default/styles/globalstyles.css" media="screen"
rel="stylesheet" type="text/css" /><link
href="./themes/tels/default/styles/styles.css" media="screen"
rel="stylesheet" type="text/css" /><title>WISE 4.0 Home
Page</title></head><body><div id="banner"><h1>TELS
Portal</h1></div><div style="position:relative;left:350px;">The server
has encountered an error.<br /><br />The staff has been informed about
this problem.<br /> <br />Please return to your previous
page.</div></body></html>"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Long.parseLong(Long.java:438)
at java.lang.Long.parseLong(Long.java:478)
at org.telscenter.sail.webapp.presentation.web.controllers.author.project.AuthorProjectController.handleRequestInternal(AuthorProjectController.java:119)

Assuming Error A that caused Error B immediately preceded, here's its
stacktrace:

java.lang.NumberFormatException: For input string: "NaN"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Long.parseLong(Long.java:438)
at java.lang.Long.parseLong(Long.java:478)
at org.telscenter.sail.webapp.presentation.web.controllers.ProjectMetadataController.handleRequestInternal(ProjectMetadataController.java:40)

Any ideas? I am able to create projects, but one of my users cannot.

Thanks,
Jordan

--
Jordan Reiter
AACE - Association for the Advancement of Computing in Education
Email: jor...@aace.org | Website: www.aace.org | +1.215.948.2428

Hiroki Terashima

unread,
Dec 8, 2010, 3:24:02 PM12/8/10
to wise...@googlegroups.com
Hi Jordan,

    We were able to create a project on your server from here using Firefox 3.5.15 on a mac.  We tried reproducing the problem here on our local machines but we could not.  We got a similar error trace when we removed crossContext="true" from CATALINA_HOME/conf/context.xml, but this seems not to be the case with your problem since it's only happening to one user.

    I wonder if it's a user-specific issue, and whether she can reproduce it?  What is her setup (os, browser)? Can she create a project with a different computer?  What exact steps did she take to trigger the error?

Thanks,
Hiroki
Reply all
Reply to author
Forward
0 new messages