Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception thrown when calling "/state" endpoint for a grouped task #5

Open
matthewrfellows opened this issue Nov 30, 2017 · 1 comment

Comments

@matthewrfellows
Copy link

For [org.onyxplatform/onyx-peer-http-query "0.12.0.0-beta3"]

When I call the GET /state endpoint for a grouped task (without specifying the "groups" param), I get the following (partial) error response back. The endpoint works fine for a non-grouped task.

#error {
 :cause clj-http: status 500
 :data {:request-time 167, :repeatable? false, :protocol-version {:name HTTP, :major 1, :minor 1}, :streaming? true, :chunked? false, :type :clj-http.client/unexceptional-status, :reason-phrase Server Error, :headers {Date Thu, 30 Nov 2017 23:29:28 GMT, Connection close, Server Jetty(9.2.z-SNAPSHOT)}, :orig-content-encoding nil, :status 500, :length -1, :body #error {
 :cause nil
 :via
 [{:type java.lang.NullPointerException
   :message nil
   :at [clojure.core$swap_BANG_ invokeStatic "core.clj" 2344]}]
 :trace
 [[clojure.core$swap_BANG_ invokeStatic "core.clj" 2344]
  [clojure.core$swap_BANG_ invoke "core.clj" 2337]
  [onyx.state.memory.StateBackend group_id "memory.cljc" 147]
  [onyx.http_query$fn__29327$fn__29331 invoke "http_query.clj" 294]
  [clojure.core.protocols$fn__7852 invokeStatic "protocols.clj" 168]
  [clojure.core.protocols$fn__7852 invoke "protocols.clj" 124]
  [clojure.core.protocols$fn__7807$G__7802__7816 invoke "protocols.clj" 19]
  [clojure.core.protocols$seq_reduce invokeStatic "protocols.clj" 31]
  [clojure.core.protocols$fn__7835 invokeStatic "protocols.clj" 75]
  [clojure.core.protocols$fn__7835 invoke "protocols.clj" 75]
  [clojure.core.protocols$fn__7781$G__7776__7794 invoke "protocols.clj" 13]
  [clojure.core$reduce invokeStatic "core.clj" 6748]
  [clojure.core$reduce invoke "core.clj" 6730]
  [onyx.http_query$fn__29327 invokeStatic "http_query.clj" 293]
  [onyx.http_query$fn__29327 invoke "http_query.clj" 263]
  [onyx.http_query$handler invokeStatic "http_query.clj" 439]
  [onyx.http_query$handler invoke "http_query.clj" 431]
  [onyx.http_query$app$fn__29401 invoke "http_query.clj" 459]
  [ring.middleware.params$wrap_params$fn__28210 invoke "params.clj" 67]
  [ring.component.jetty.JettyServer$fn__28034 invoke "jetty.clj" 14]
  [ring.adapter.jetty$proxy_handler$fn__28002 invoke "jetty.clj" 24]
  [ring.adapter.jetty.proxy$org.eclipse.jetty.server.handler.AbstractHandler$ff19274a handle nil -1]
  [org.eclipse.jetty.server.handler.HandlerWrapper handle "HandlerWrapper.java" 97]
  [org.eclipse.jetty.server.Server handle "Server.java" 497]
  [org.eclipse.jetty.server.HttpChannel handle "HttpChannel.java" 310]
  [org.eclipse.jetty.server.HttpConnection onFillable "HttpConnection.java" 257]
  [org.eclipse.jetty.io.AbstractConnection$2 run "AbstractConnection.java" 540]
  [org.eclipse.jetty.util.thread.QueuedThreadPool runJob "QueuedThreadPool.java" 635]
  [org.eclipse.jetty.util.thread.QueuedThreadPool$3 run "QueuedThreadPool.java" 555]
  [java.lang.Thread run "Thread.java" 745]]}, :trace-redirects []}
@lbradstreet
Copy link
Member

lbradstreet commented Dec 1, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants