Symptoms
Runner throws error "Failed to stream (Unexpected exception)" when selecting a Definition
Cause
In case of non-Display Parameters which are also Part of Key the lookup for UserSettings is performed at a wrong stage.
Workaround
Do not combine Parameter property 'non-Display' with 'Part of Key' (or CUS_Runner_ColumnParameters)
note: the workaround is limited in the sense that it only works for Jobs of newly submitted Definitions
Affected version
RunMyFinance 9.2.10.x
Resolution
This issue will be fixed in a future version
Reference
ROSO-11682
Error
java.lang.NullPointerException: Cannot invoke "com.redwood.scheduler.solution.ui.library.model.rt.apps_runner.settings.UserSettings.isShowNoDisplayParameters()" because the return value of "com.redwood.scheduler.solution.ui.library.model.rt.apps_runner.ClientContext.getUserSettings()" is null
at com.redwood.scheduler.custom.app.apps_runner.model.TaskParameter.shouldIncludeParameterInViewMode(TaskParameter.java:106)
at java.base/java.util.function.Predicate.lambda$and$0(Predicate.java:69)
at com.redwood.scheduler.custom.app.apps_runner.model.TaskParameter.getParameters(TaskParameter.java:141)
at com.redwood.scheduler.custom.app.apps_runner.model.TaskParameter.getPartialViewParameters(TaskParameter.java:93)
at com.redwood.scheduler.custom.app.apps_runner.model.Task.getBaseViewTask(Task.java:96)
at com.redwood.scheduler.custom.app.apps_runner.model.RunnerModel.lambda$getTaskStream$8(RunnerModel.java:510)
at com.redwood.scheduler.solution.ui.library.model.rt.apps_runner.types.data.DataStreamAPIResultSet$CustomAPIResultSetCallback.callback(DataStreamAPIResultSet.java:109)
at com.redwood.scheduler.model.APIResultSetCallbackWrapper.callback(APIResultSetCallbackWrapper.java:58)
at com.redwood.scheduler.persistence.spi.DatabaseHelper.executePreparedStatement(DatabaseHelper.java:166)
at com.redwood.scheduler.persistence.spi.DatabaseHelper.executeQuery(DatabaseHelper.java:106)
at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl.executeQueryRetry(LowLevelPersistenceImpl.java:585)
at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl$1.execute(LowLevelPersistenceImpl.java:561)
at com.redwood.scheduler.persistence.impl.InnerPersistenceUnitOfWorkManager.execute(InnerPersistenceUnitOfWorkManager.java:33)
at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl.executeQuery(LowLevelPersistenceImpl.java:555)
at com.redwood.scheduler.cluster.persistence.ClusteredLowLevelPersistence.executeQuery(ClusteredLowLevelPersistence.java:143)
at com.redwood.scheduler.model.SchedulerSessionImpl.executeQuery(SchedulerSessionImpl.java:809)
at com.redwood.scheduler.solution.ui.library.model.rt.apps_runner.types.data.DataStreamAPIResultSet.start(DataStreamAPIResultSet.java:79)
at com.redwood.scheduler.solution.ui.library.model.rt.apps_runner.util.StreamUtil$DataStreamerImpl.start(StreamUtil.java:257)
at com.redwood.scheduler.solution.ui.library.model.rt.apps_runner.util.StreamUtil.stream(StreamUtil.java:69)
at com.redwood.scheduler.solution.ui.library.model.rt.apps_runner.request.ModelResponseDelegateExtensionPoint.lambda$stream$0(ModelResponseDelegateExtensionPoint.java:98)
at com.redwood.scheduler.custom.extensionpoint.library.controllers.RequestContext.createResponseNonSynchronized(RequestContext.java:319)
at com.redwood.scheduler.custom.extensionpoint.library.controllers.SessionController.handleRequest(SessionController.java:199)
at com.redwood.scheduler.custom.Extensionpoint_Redwood_Runner.handleRequest(Extensionpoint_Redwood_Runner.java:30)
at com.redwood.scheduler.custom.Extensionpoint_Redwood_Runner.execute(Extensionpoint_Redwood_Runner.java:18)
at com.redwood.scheduler.custom.Extensionpoint_Redwood_RunnerStub.jcsExecute(Extensionpoint_Redwood_RunnerStub.java:30)
at jdk.internal.reflect.GeneratedMethodAccessor1841.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.redwood.scheduler.script.java.impl.Java.evaluateJava(Java.java:215)
at com.redwood.scheduler.script.java.impl.Java.lambda$evaluate$1(Java.java:107)
at com.redwood.scheduler.script.java.impl.classloader.ThreadContextRunnable.call(ThreadContextRunnable.java:48)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
Comments
0 comments
Please sign in to leave a comment.