MATLAB Answers

以下のエラーへの対処方法は?

41 views (last 30 days)
Akihiro Nishimori
Akihiro Nishimori on 31 Jul 2018
Answered: Etsuo Maeda on 3 Aug 2018
Exception in thread "CFB Source Control Executor" java.lang.NoClassDefFoundError: Could not initialize class com.mathworks.cmlink.management.registration.SingletonCMAdapterFactoryList
at com.mathworks.cmlink.management.pool.adapter.PrefBackedAdapterFactoryProvider.provide(PrefBackedAdapterFactoryProvider.java:29)
at com.mathworks.cmlink.util.adapter.CMAdapterFactoryProviderDecorator.provide(CMAdapterFactoryProviderDecorator.java:19)
at com.mathworks.cmlink.util.adapter.transformer.TransformableCMAdapterFactoryProvider.provide(TransformableCMAdapterFactoryProvider.java:24)
at com.mathworks.cmlink.util.adapter.CMAdapterFactoryProviderDecorator.provide(CMAdapterFactoryProviderDecorator.java:19)
at com.mathworks.cmlink.util.adapter.transformer.TransformableCMAdapterFactoryProvider.provide(TransformableCMAdapterFactoryProvider.java:24)
at com.mathworks.cmlink.management.pool.PooledCmStatusCacheEntry.<init>(PooledCmStatusCacheEntry.java:70)
at com.mathworks.cmlink.management.pool.PooledCmStatusCacheProvider$1.<init>(PooledCmStatusCacheProvider.java:81)
at com.mathworks.cmlink.management.pool.PooledCmStatusCacheProvider.provideEntryFor(PooledCmStatusCacheProvider.java:75)
at com.mathworks.cmlink.management.pool.PooledCmStatusCacheProvider.provideCacheFor(PooledCmStatusCacheProvider.java:46)
at com.mathworks.cmlink.management.pool.PooledCmStatusCacheProvider.provideCacheFor(PooledCmStatusCacheProvider.java:36)
at com.mathworks.sourcecontrol.SCAdapterConnectionManager.updateCache(SCAdapterConnectionManager.java:174)
at com.mathworks.sourcecontrol.SCAdapterConnectionManager.access$500(SCAdapterConnectionManager.java:27)
at com.mathworks.sourcecontrol.SCAdapterConnectionManager$2.run(SCAdapterConnectionManager.java:76)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

  0 Comments

Sign in to comment.

Answers (1)

Etsuo Maeda
Etsuo Maeda on 3 Aug 2018
トレーニングコースで配布された関数群を他のフォルダで動作させようとしたことが原因です。
C:\class\coursefiles\mlip
のようなフォルダ構成であった場合、検索Pathにmlip以下を追加するには、C:\class\coursefiles直下で
addpath(genpath('mlip'))
を実行するとサブフォルダの全てがPathに追加されます。
動作が安定しない場合、 パスが壊れている可能性があるので
restoredefaultpath
rehash toolbox
rehash toolboxcache
savepath
の4コマンドを実行したうえで、再度、Pathの追加を実行してください。
NOTE:トレーニング用関数群はトレーニングの復習目的でお使いください。
HTH

  0 Comments

Sign in to comment.

Sign in to answer this question.