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)
org.apache.reef.tang.exceptions.InjectionException: Could not invoke constructor: new Timer(Integer Seconds = -1) at org.apache.reef.tang.implementation.java.InjectorImpl.injectFromPlan(InjectorImpl.java:585) 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)Caused by: java.lang.IllegalArgumentException: Cannot sleep for negative time! at org.apache.reef.tang.examples.Timer.<init>(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 java.lang.reflect.Constructor.newInstance(Unknown Source) at org.apache.reef.tang.implementation.java.InjectorImpl.injectFromPlan(InjectorImpl.java:569) ... 3 more