Retrieve list of objects over a reference gives a stacktrace

5
I have a case where I want to fill a List with the objects found over a reference. The code is: List<CharacteristicValue> chValueDependencies = chrValue.getCharacteristicValue1_CharacteristicValue2(this.getContext()); When I call this action it gives a stacktrace for the mentioned line. Is the construction of this line correct? The stacktrace is: Caused by: The given object cannot be null. programportal.proxies.CharacteristicValue.<init>(CharacteristicValue.java:60) programportal.proxies.CharacteristicValue.initialize(CharacteristicValue.java:83) programportal.proxies.CharacteristicValue.getCharacteristicValue1_CharacteristicValue2(CharacteristicValue.java:263) programportal.actions.Generate_DynamicData_Java.initCache(Generate_DynamicData_Java.java:123) programportal.actions.Generate_DynamicData_Java.executeAction(Generate_DynamicData_Java.java:61) programportal.actions.Generate_DynamicData_Java.executeAction(Generate_DynamicData_Java.java:39) com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:60) com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:378) com.mendix.core.actionmanagement.B.B(ActionManager.java:153) com.mendix.core.Core.execute(Core.java:351) com.mendix.modules.microflowengine.B.E.B.B(JavaAction.java:62) com.mendix.modules.microflowengine.microflow.C.A(MicroflowObject.java:63) com.mendix.modules.microflowengine.microflow.Microflow.executeAction(Microflow.java:95) com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:60) com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:378) com.mendix.core.actionmanagement.B.B(ActionManager.java:153) com.mendix.core.Core.executeSync(Core.java:329) com.mendix.modules.microflowengine.B.E.A.B(SubMicroflowAction.java:58) com.mendix.modules.microflowengine.microflow.C.A(MicroflowObject.java:63) com.mendix.modules.microflowengine.microflow.Microflow.executeAction(Microflow.java:95) com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:60) com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:378) java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) java.util.concurrent.FutureTask.run(FutureTask.java:138) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) java.lang.Thread.run(Thread.java:619)
asked
1 answers
5

Did you get a warning "Object for id ... could not be retrieved"? Probably the referred object CharacteristicValue either does not exist in the database anymore or security is configured in a way you don't have access to this object.

answered