Clear Filters
Clear Filters

Java error when typing function

4 views (last 30 days)
David Cox
David Cox on 12 Feb 2022
Commented: David Cox on 18 Feb 2022
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 Comments
David Cox
David Cox on 17 Feb 2022
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 on 18 Feb 2022
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.

Sign in to comment.

Answers (1)

David Cox
David Cox on 13 Feb 2022
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.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Tags

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!