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

apache.org | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Apache REEF - Tang

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

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Cannot sleep for negative time!

      at org.apache.reef.tang.examples.Timer.<init>()
    2. org.apache.reef
      Timer.<init>
      1. org.apache.reef.tang.examples.Timer.<init>(Timer.java:25)
      1 frame
    3. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      4. java.lang.reflect.Constructor.newInstance(Unknown Source)
      4 frames
    4. org.apache.reef
      Timer.main
      1. org.apache.reef.tang.implementation.java.InjectorImpl.injectFromPlan(InjectorImpl.java:569)
      2. org.apache.reef.tang.implementation.java.InjectorImpl.getInstance(InjectorImpl.java:449)
      3. org.apache.reef.tang.implementation.java.InjectorImpl.getInstance(InjectorImpl.java:466)
      4. org.apache.reef.tang.examples.Timer.main(Timer.java:48)
      4 frames