Why do I receive a Java error when I debug my function in MATLAB 7.0.1 (R14SP1)?
3 views (last 30 days)
Show older comments
I receive the following Java exception when I am debugging my program:
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.<init>(Unknown Source)
at com.mathworks.mlservices.MatlabDebugServices.createStackInfo(MatlabDebugServices.java:747)
at com.mathworks.mlservices.MatlabDebugServices$StackDispatch.completed(MatlabDebugServices.java:1669)
at com.mathworks.jmi.Matlab$CompletionHandler.messageReceived(Matlab.java:2095)
at com.mathworks.services.message.MWLooper.dispatchMessage(MWLooper.java:422)
at com.mathworks.services.message.MWLooper.runBridge(MWLooper.java:567)
at com.mathworks.services.message.MWLooper.run(MWLooper.java:536)
at java.lang.Thread.run(Unknown Source)
I have noticed that this occurs when the file I am debugging is in the directory:
C:\mydirectory\HW after solution\
I receive the same error, irrespective of the program I am debugging, as long as the file is in the above-mentioned directory.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
There is a bug in MATLAB 7.0.1 (R14SP1) in the way that the debugger handles files in directories whose names contain certain strings.
To work around this issue, move your files to a directory whose path does not contain the following strings or characters:
“ at “
“ In “
“> In “
“ after “
0 Comments
More Answers (0)
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!