Error: Cannot convert NaN to java.lang.Integer

727 views
Skip to first unread message

Chad

unread,
Feb 8, 2010, 6:46:43 PM2/8/10
to JsDoc Toolkit Users
I'm receiving the following error when attempting to use the JsDoc
tool:
Cannot convert NaN to java.lang.Integer

I am attempting to run this on OS X 10.6.2, Apple's Sun Java Build
1.6.0_17, JsDoc Toolkit 2.3.2. I am using the jsrun script to run the
jsdoc command. Using the -v option does not print out any additional
information. Here is the full command being executed by jsrun:

java -Djsdoc.dir=/Users/lajoie/Downloads/jsdoc_toolkit-2.3.2/jsdoc-
toolkit -Djsdoc.template.dir=/Users/lajoie/Downloads/
jsdoc_toolkit-2.3.2/jsdoc-toolkit/templates/jsdoc/ -jar /Users/lajoie/
Downloads/jsdoc_toolkit-2.3.2/jsdoc-toolkit/jsrun.jar /Users/lajoie/
Downloads/jsdoc_toolkit-2.3.2/jsdoc-toolkit/app/run.js -v <my js file>

ast

unread,
Feb 22, 2010, 9:00:55 AM2/22/10
to JsDoc Toolkit Users
I had this same problem. Try the version from SVN head (which works
fine for me).

I even hacked the JsRun.java source file to try and pass the -opt -1
arguments in to the Rhino runtime so I could get a stack trace, but I
didn't get much more information before I gave up and checked out the
project.

HTH,

ast

Michael Mathews

unread,
Feb 22, 2010, 9:29:38 AM2/22/10
to jsd...@googlegroups.com
You can use jsdebug.jar instead of jsrun.jar, if you need more information about where an error is being raised. It's a GUI and you'll need to select the menu option "stop on all exceptions" (not sure of the exact wording). Let me know if you have any trouble with that.

Regards,
Michael

--
You received this message because you are subscribed to the Google Groups "JsDoc Toolkit Users" group.
To post to this group, send email to jsd...@googlegroups.com.
To unsubscribe from this group, send email to jsdoc-2+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jsdoc-2?hl=en.


Reply all
Reply to author
Forward
0 new messages