java NullPointerException with R2017b when closing simulink project
조회 수: 3 (최근 30일)
이전 댓글 표시
I need help tracking down the source of a java error that appears in R2017b, but not in R2016b.
Closing a Simulink project when a Model is open generates errors like this:
Exception in thread "Simulink Project Thread: 48" java.lang.NullPointerException
at com.mathworks.toolbox.slproject.extensions.dependency.problems.managers.ProblemManagerBase.updateProblems(ProblemManagerBase.java:130)
at com.mathworks.toolbox.slproject.extensions.dependency.problems.managers.ProblemManagerBase.access$500(ProblemManagerBase.java:41)
at com.mathworks.toolbox.slproject.extensions.dependency.problems.managers.ProblemManagerBase$UpdateRunnable.run(ProblemManagerBase.java:242)
at com.mathworks.toolbox.shared.computils.threads.CoalescingExecutor$1.run(CoalescingExecutor.java:62)
at com.mathworks.toolbox.shared.computils.threads.WrappingExecutorService$WrappedRunnable.run(WrappingExecutorService.java:74)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
My project architecture is fairly complex: I have several Simulink projects which all have a reference to a common Simulink project. Besides a block library, the common project modifies my simulink environment by:
- adding custom menus on the model editor window
- selecting a set of model advisor options
- storing a configuration set in a data dictionary, that all models reference
I've tried eliminating components of the referenced project (the error does not occur for projects which don't reference this project). But I can't narrow it down.
댓글 수: 2
Sharan Paramasivam Murugesan
2018년 1월 12일
1. It appears to be an unknown issue. Without reproduction files, it is hard to identify the root cause of this issue. Have you tried reproducing this with a sample parent project and a referenced project? This should help you narrow down the particular action that is causing this exception.
2. There should be a java log (java.log.xxxx) created when there is a java exception. It would be really useful if you could retrieve the java log file and attach it here. For info on how to retrieve this file, refer to https://www.mathworks.com/matlabcentral/answers/100816-how-do-i-locate-the-crash-dump-files-generated-by-matlab
3. If you are using GitHub for source control of these projects, can you try "https://github.com" as the remote address instead of "git@github.com"
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!