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

Missing InputState enum constant in rest-client #919

Closed
bernd opened this Issue Jan 26, 2015 · 0 comments

Comments

Projects
None yet
2 participants
@bernd
Member

bernd commented Jan 26, 2015

Getting the following error regarding a missing enum constant.

Steps to reproduce:

  • Create Radio Kafka input with the settings below.
  • Action, Edit Input
  • Press "UpdateInput"
  • Error appears.

No messages in the server log, Input seems to be updated and restarted.

Radio Kafka Input Config

throttling_allowed: true
fetch_wait_max: 100
override_source:
fetch_min_bytes: 5
threads: 1
zookeeper: 127.0.0.1:2181

Stack Trace

[error] play - Cannot invoke the action, eventually got an error: java.lang.IllegalArgumentException: No enum constant org.graylog2.restclient.models.InputState.InputStateType.STOPPING
[error] application - 

! @6l23a7cp2 - Internal server error, for (GET) [/system/inputs] ->

play.api.Application$$anon$1: Execution exception[[IllegalArgumentException: No enum constant org.graylog2.restclient.models.InputState.InputStateType.STOPPING]]
        at play.api.Application$class.handleError(Application.scala:296) ~[com.typesafe.play.play_2.10-2.3.6.jar:2.3.6]
        at play.api.DefaultApplication.handleError(Application.scala:402) [com.typesafe.play.play_2.10-2.3.6.jar:2.3.6]
        at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$3$$anonfun$applyOrElse$4.apply(PlayDefaultUpstreamHandler.scala:320) [com.typesafe.play.play_2.10-2.3.6.jar:2.3.6]
        at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$3$$anonfun$applyOrElse$4.apply(PlayDefaultUpstreamHandler.scala:320) [com.typesafe.play.play_2.10-2.3.6.jar:2.3.6]
        at scala.Option.map(Option.scala:145) [org.scala-lang.scala-library-2.10.4.jar:na]
Caused by: java.lang.IllegalArgumentException: No enum constant org.graylog2.restclient.models.InputState.InputStateType.STOPPING
        at java.lang.Enum.valueOf(Enum.java:236) ~[na:1.7.0_76]
        at org.graylog2.restclient.models.InputState$InputStateType.valueOf(InputState.java:37) ~[org.graylog2.graylog2-rest-client-1.0.0-beta.4-SNAPSHOT.jar:na]
        at org.graylog2.restclient.models.InputState.<init>(InputState.java:78) ~[org.graylog2.graylog2-rest-client-1.0.0-beta.4-SNAPSHOT.jar:na]
        at sun.reflect.GeneratedConstructorAccessor54.newInstance(Unknown Source) ~[na:na]
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.7.0_76]

@bernd bernd added inputs bug labels Jan 26, 2015

@bernd bernd added this to the 1.0.0 milestone Jan 26, 2015

dennisoelkers added a commit that referenced this issue Jan 26, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment