Java error when typing function

조회 수: 12 (최근 30일)
David Cox
David Cox 2022년 2월 12일
댓글: David Cox 2022년 2월 18일
When i enter for instance smys( at this point a large java error message pops up. Any ideas, anyone seen it before.
Exception in thread "QueuedMatlabWorker": java.lang.NumberFormatException: For input string: "4 2"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Long.parseLong(Long.java:589)
at org.apache.lucene.index.SegmentInfos.generationFromSegmentsFileName(SegmentInfos.java:248)
at org.apache.lucene.index.SegmentInfos.getLastCommitGeneration(SegmentInfos.java:183)
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:746)
at org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:52)
at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:66)
at org.apache.lucene.search.spell.SpellChecker.createSearcher(SpellChecker.java:679)
at org.apache.lucene.search.spell.SpellChecker.swapSearcher(SpellChecker.java:656)
at org.apache.lucene.search.spell.SpellChecker.setSpellIndex(SpellChecker.java:178)
at org.apache.lucene.search.spell.SpellChecker.<init>(SpellChecker.java:153)
at org.apache.lucene.search.spell.SpellChecker.<init>(SpellChecker.java:128)
at com.mathworks.search.spell.IndexBasedSpellCheckProvider.<init>(IndexBasedSpellCheckProvider.java:25)
at com.mathworks.search.lucene.LuceneSearchEngine.<init>(LuceneSearchEngine.java:44)
at com.mathworks.search.lucene.LuceneSearchEngine.<init>(LuceneSearchEngine.java:35)
at com.mathworks.helpsearch.DocSearchEngineFactory.createSearchEngine(DocSearchEngineFactory.java:32)
at com.mathworks.helpsearch.DocSearchEngineFactory.createSearchEngine(DocSearchEngineFactory.java:23)
at com.mathworks.helpsearch.reference.SearchEngineReferenceStrategy.<init>(SearchEngineReferenceStrategy.java:23)
at com.mathworks.mlwidgets.help.DocCenterReferenceRetrievalStrategy.getInstance(DocCenterReferenceRetrievalStrategy.java:61)
at com.mathworks.mlwidgets.help.DocCenterReferenceRetrievalStrategy.getInstance(DocCenterReferenceRetrievalStrategy.java:44)
at com.mathworks.mlwidgets.help.DocCenterReferenceRetrievalStrategy.createDataRetriever(DocCenterReferenceRetrievalStrategy.java:79)
at com.mathworks.mlwidgets.help.functioncall.MFunctionCall.getReferenceData(MFunctionCall.java:580)
at com.mathworks.mlwidgets.help.functioncall.MFunctionCall.getSignatureString(MFunctionCall.java:528)
at com.mathworks.mlwidgets.help.functioncall.MFunctionCall.getSignatureString(MFunctionCall.java:514)
at com.mathworks.mlwidgets.help.functioncall.MFunctionCall.createSignatureString(MFunctionCall.java:251)
at com.mathworks.mde.functionhints.QueuedMatlabWorker$2.run(QueuedMatlabWorker.java:283)
at java.lang.Thread.run(Thread.java:748
  댓글 수: 3
David Cox
David Cox 2022년 2월 17일
I contacted support it was sugested, I enter these comands
>> restoredefaultpath
>> rehash toolboxcache
>> restoredefaultpath
if this did not work to do a clean install. I'm in the middle of a clean instal.
Thank you for your input.
David Cox
David Cox 2022년 2월 18일
Just to keep you updated I did a clean install. This did not work, as an after thought I updated Java (did not think it would do anything, i was right made no differance). The problem has been elevated.
The second time I did the installed I hunted out any refeance to Matlab on my machine even removed Data files. This weekend if I'm bored I might do a machine rebuild.

댓글을 달려면 로그인하십시오.

답변 (1개)

David Cox
David Cox 2022년 2월 13일
Yes that is miss spelled, but any function weather or not it is miss-spelled results in this error. MatLab appears to work normaly after this error is displayed. As you say it apears to be a fault in the spell checker, heaven known I need that working.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by