Java exception error upon launch of Curve Fitting Toolbox

조회 수: 5 (최근 30일)
Daemonic
Daemonic 2019년 10월 22일
댓글: Daemonic 2021년 8월 2일
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
Oscar Andersson
Oscar Andersson 2020년 2월 29일
I also get the same error, did you find a solution?
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에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by