Java exception error upon launch of Curve Fitting Toolbox

1 次查看(过去 30 天)
I'm getting the following errors when attempting to launch the curve fitting toolbox.
Warning: The following error was caught while executing 'sftoolgui.EditFitPanel' class destructor:
Error using sftoolgui.EditFitPanel/delete (line 108)
Java exception occurred:
java.lang.NullPointerException
at com.mathworks.toolbox.curvefit.surfacefitting.SFEditFitPanel.cleanup(SFEditFitPanel.java:306)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.mathworks.jmi.AWTUtilities$Invoker$3$1.call(AWTUtilities.java:525)
at com.mathworks.mvm.context.ThreadContext.callWithContext(ThreadContext.java:105)
at com.mathworks.mvm.context.MvmContext.callWithContext(MvmContext.java:113)
at com.mathworks.jmi.AWTUtilities$Invoker$3.runWithOutput(AWTUtilities.java:522)
at com.mathworks.jmi.AWTUtilities$Invoker$2.watchedRun(AWTUtilities.java:475)
at com.mathworks.jmi.AWTUtilities$WatchedRunnable.run(AWTUtilities.java:436)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Error in sftoolgui.FitFigure>iCreatePanels (line 217)
this.HFittingPanel = sftoolgui.EditFitPanel(this.Handle, ...
Error in sftoolgui.FitFigure (line 79)
this = iCreatePanels(this);
Error in sftoolgui.sftool/fitAdded (line 146)
fitFigure = sftoolgui.FitFigure(h, evt.HFitdev, []);
Error in sftoolgui.sftool>@(s,e)h.fitAdded(e) (line 83)
h.createListener(fm, 'FitAdded', @(s, e) h.fitAdded( e ) );
Error in sftoolgui.FitsManager/newFit (line 35)
notify (this, 'FitAdded', sftoolgui.FitEventData( hFitdev ));
Error in sftool_v1 (line 72)
h.HFitsManager.newFit( data );
Error in cftool>iStartSFTOOL (line 51)
application = sftool_v1( varaibles, names );
Error in cftool (line 41)
theApplication = iStartSFTOOL( varargin, names );
> In sftoolgui.FitFigure>iCreatePanels (line 217)
In sftoolgui.FitFigure (line 79)
In sftoolgui.sftool/fitAdded (line 146)
In sftoolgui.sftool>@(s,e)h.fitAdded(e) (line 83)
In sftoolgui.FitsManager/newFit (line 35)
In sftool_v1 (line 72)
In cftool>iStartSFTOOL (line 51)
In cftool (line 41)
Warning: Error occurred while executing the listener callback for event FitAdded defined for class
sftoolgui.FitsManager:
Undefined function 'isnan' for input arguments of type 'string'.
Error in replace
Error in mat2str (line 101)
values = replace(values, "'", "''");
Error in sftoolgui.util.javaNameValuePairs (line 37)
args{end+1} = mat2str( optionValue ); %#ok<AGROW>
Error in sftoolgui.UpdateGUIVisitor>iSetFittype (line 171)
sftoolgui.util.javaNameValuePairs(type, options), ...
Error in sftoolgui.UpdateGUIVisitor/visitLibrarySpecification (line 32)
iSetFittype(...
Error in sftoolgui.fittypespec.LibraryCurveSpecification/accept (line 27)
fittypeSpecificationVisitor.visitLibrarySpecification(this);
Error in sftoolgui.EditFitPanel (line 62)
curveSpecification.accept(updateGUIVisitor);
Error in sftoolgui.FitFigure>iCreatePanels (line 217)
this.HFittingPanel = sftoolgui.EditFitPanel(this.Handle, ...
Error in sftoolgui.FitFigure (line 79)
this = iCreatePanels(this);
Error in sftoolgui.sftool/fitAdded (line 146)
fitFigure = sftoolgui.FitFigure(h, evt.HFitdev, []);
Error in sftoolgui.sftool>@(s,e)h.fitAdded(e) (line 83)
h.createListener(fm, 'FitAdded', @(s, e) h.fitAdded( e ) );
Error in sftoolgui.FitsManager/newFit (line 35)
notify (this, 'FitAdded', sftoolgui.FitEventData( hFitdev ));
Error in sftool_v1 (line 72)
h.HFitsManager.newFit( data );
Error in cftool>iStartSFTOOL (line 51)
application = sftool_v1( varaibles, names );
Error in cftool (line 41)
theApplication = iStartSFTOOL( varargin, names );
> In sftoolgui.FitsManager/newFit (line 35)
In sftool_v1 (line 72)
In cftool>iStartSFTOOL (line 51)
In cftool (line 41)
  2 个评论
Daemonic
Daemonic 2020-3-2
Not exactly. We recently switched to an institutional licencse and the issue went away after a fresh install of the toobox with ver 2019a.

请先登录,再进行评论。

采纳的回答

Adrián Gómez
Adrián Gómez 2021-7-27
Restore the path to default. I had the same problem and it was solved in this way.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Curve Fitting Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by