[
https://issues.apache.org/jira/browse/UIMA-3972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Burn Lewis updated UIMA-3972:
-----------------------------
Fix Version/s: (was: future-DUCC)
1.1.0-Ducc
Assignee: Burn Lewis
Throw descriptive exception instead of NPE
> Specifying an invalid scheduling_class causes a NPE
> ---------------------------------------------------
>
> Key: UIMA-3972
> URL: https://issues.apache.org/jira/browse/UIMA-3972
> Project: UIMA
> Issue Type: Bug
> Components: DUCC
> Reporter: Burn Lewis
> Assignee: Burn Lewis
> Priority: Minor
> Fix For: 1.1.0-Ducc
>
>
> When registering a service or submitting a debug job an invalid scheduling
> class will produce a NPE with no stacktrace if using the cli scripts.
> Adding --debug to a service registration produces:
> Service call failed: java.lang.NullPointerException
> java.lang.NullPointerException
> at
> org.apache.uima.ducc.common.utils.DuccSchedulerClasses.isPreemptable(DuccSchedulerClasses.java:109)
> at
> org.apache.uima.ducc.cli.DuccServiceApi.register(DuccServiceApi.java:414)
> at
> org.apache.uima.ducc.cli.DuccServiceApi.Register(DuccServiceApi.java:729)
> at org.apache.uima.ducc.cli.DuccServiceApi.main(DuccServiceApi.java:856)
> For a debug job the exception is from the same place.
--
This message was sent by Atlassian JIRA
(v6.2#6252)