[
https://issues.apache.org/jira/browse/UIMA-3945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14063329#comment-14063329
]
Lou DeGenaro commented on UIMA-3945:
------------------------------------
Code now checks for null job and in that case returns
Id: <nnnn> State: NotFound
Code now checks for null job.getStateObject() and in that case returns
Id: <nnnn> State: Undefined
Code has been tested by hacking DuccHandler to force nulls at critical
locations and observing code path with debugger as well as the WS log file
results.
> DUCC Web Server (WS) takes NPE in DuccHandler
> ---------------------------------------------
>
> Key: UIMA-3945
> URL: https://issues.apache.org/jira/browse/UIMA-3945
> Project: UIMA
> Issue Type: Bug
> Components: DUCC
> Reporter: Lou DeGenaro
> Assignee: Lou DeGenaro
> Priority: Minor
> Fix For: 1.1.0-Ducc
>
>
> java.lang.NullPointerException
> at
> org.apache.uima.ducc.ws.server.DuccHandler.handleDuccServletJobWorkitemsCountData(DuccHandler.java:1030)
> at
> org.apache.uima.ducc.ws.server.DuccHandler.handleDuccRequest(DuccHandler.java:4060)
> at
> org.apache.uima.ducc.ws.server.DuccHandler.handle(DuccHandler.java:4272)
> at
> org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:47)
> at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
> at org.eclipse.jetty.server.Server.handle(Server.java:346)
> at
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589)
> at
> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1048)
> at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:601)
> at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
> at
> org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411)
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535)
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)
> at java.lang.Thread.run(Thread.java:780)
--
This message was sent by Atlassian JIRA
(v6.2#6252)