org.apache.reef.tang.exceptions.InjectionException

Could not invoke constructor: new Timer(Integer Seconds = -1)

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • via apache.org by Unknown author, 11 months ago
    Could not invoke constructor: new Timer(Integer Seconds = -1)
  • Stack trace

    • 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

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.