org.apache.reef.tang.exceptions.InjectionException: Could not invoke constructor: new Timer(Integer Seconds = -1)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via apache.org by Unknown author, 1 year ago
Could not invoke constructor: new Timer(Integer Seconds = -1)
java.lang.IllegalArgumentException: Cannot sleep for negative time!
at org.apache.reef.tang.examples.Timer.(Timer.java:25)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at org.apache.reef.tang.implementation.java.InjectorImpl.injectFromPlan(InjectorImpl.java:569)
at org.apache.reef.tang.implementation.java.InjectorImpl.getInstance(InjectorImpl.java:449)
at org.apache.reef.tang.implementation.java.InjectorImpl.getInstance(InjectorImpl.java:466)
at org.apache.reef.tang.examples.Timer.main(Timer.java:48)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.