몇 시간 동안 코드를 실행 한 후 코드가 중지되고 메시지 벨로우가 표시되었습니다."java, mathworks"- Matlab Java Exception
Exception in thread "FileDecorationCache request queue" java.lang.NullPointerException
at com.mathworks.mlwidgets.explorer.model.table.UiFileList.fireListeners(UiFileList.java:450)
at com.mathworks.mlwidgets.explorer.model.table.UiFileList.access$000(UiFileList.java:43)
at com.mathworks.mlwidgets.explorer.model.table.UiFileList$1.stateChanged(UiFileList.java:118)
at com.mathworks.util.MulticastChangeListener.stateChanged(MulticastChangeListener.java:26)
at com.mathworks.mlwidgets.explorer.model.FileDecorationCache$1.stateChanged(FileDecorationCache.java:101)
at com.mathworks.util.MulticastChangeListener.stateChanged(MulticastChangeListener.java:26)
at com.mathworks.mlwidgets.explorer.model.FileDecorationModel$2$2.run(FileDecorationModel.java:299)
at com.mathworks.mlwidgets.explorer.extensions.basic.DefaultFileInfoProvider$4.run(DefaultFileInfoProvider.java:91)
at com.mathworks.mlwidgets.explorer.model.FileDecorationModel$3$1.run(FileDecorationModel.java:342)
at com.mathworks.util.RequestQueue.execute(RequestQueue.java:105)
at com.mathworks.util.RequestQueue.access$000(RequestQueue.java:23)
at com.mathworks.util.RequestQueue$2.run(RequestQueue.java:76)
at java.lang.Thread.run(Unknown Source)
Subscripted assignment between dissimilar structures.
누구나 이것이 어떤 의미인지 알고 있습니까?
특히 무엇 다른 구조 간의 첨자 할당 mean ???
저는 월요일 이후로이 문제를 해결하기 위해 노력해 왔으며 아직도 어떤 일이 일어나고 있는지 전혀 몰라요. 나를 구해주세요
감사합니다, bruno! 코드의
부 :
나는
function Polynome(output, inputs)
output = {'a'}
inputs = {'b', 'c', 'd', 'e'}
이 각 열은 각 문자에 equivalente 인 데이터베이스를, 그래서이 코드는 열이 누구인지 검색하고 둘 것이다 y = 출력 및 x = 입력이라는 polyfitn 함수로 변환합니다.
내가 사용했던 다른 2 개의 데이터베이스는 원했던대로 잘 작동했습니다. 하지만 지금은 작동하지 않고 저에게 그 오류를 보여줍니다. 코드에서 구조 사이의 첨자 할당을하고있는
>> s.a = 1;
>> s.b = 2;
>> t.a = 1;
>> s(1) = t // For this to work, s and t must have the same fields
??? Subscripted assignment between dissimilar structures.
확인하고 구조 당신이 있다면 볼 - 당신은 다음과 같은 일을 할 때
NPE의 원인을 확인하기 위해 일부 코드 만 게시 할 수 있습니까? – Abubakkar
일부 코드를 추가했습니다. @Abu –