Why do I receive a Java error when I debug my function in MATLAB 7.0.1 (R14SP1)?

7 次查看(过去 30 天)
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.

采纳的回答

MathWorks Support Team
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 个)

类别

Help CenterFile Exchange 中查找有关 Install Products 的更多信息

产品


版本

R14SP1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by