You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by Matteo Interlandi <m....@gmail.com> on 2017/11/05 22:11:52 UTC

Exception when initializing the bridge

Hello REEF community,

I am lately receiving this exception when running REEF. It is probably
something related to my machine configuration. I have tried several things
but I am currently out of options. Do anyone have any clue on what is going
on?

Thanks.

--Matteo



Nov 05, 2017 1:57:30 PM org.apache.reef.javabridge.generic.JobDriver
setupBridge
INFO: Initializing CLRBufferedLogHandler...
Nov 05, 2017 1:57:30 PM org.apache.reef.javabridge.generic.JobDriver
setupBridge
WARNING: CLRBufferedLogHandler could not be initialized
Nov 05, 2017 1:57:31 PM org.apache.reef.javabridge.NativeBridge onError
SEVERE: Bridge received error from CLR: Exception in
Call_ClrSystemHttpServer_OnNext
Handle is not initialized.
   at System.Runtime.InteropServices.GCHandle.FromIntPtr(IntPtr value)
   at
Org.Apache.REEF.Driver.Bridge.ClrSystemHandlerWrapper.Call_ClrSystemHttpServer_OnNext(UInt64
handle, IHttpServerBridgeClr2Java clr2Java)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at
Org.Apache.REEF.Utilities.Diagnostics.Exceptions.CaughtAndThrow(Exception
exception, Level level, String message, Logger logger)
   at
Org.Apache.REEF.Utilities.Diagnostics.Exceptions.CaughtAndThrow(Exception
exception, Level level, Logger logger)
   at
Org.Apache.REEF.Driver.Bridge.ClrSystemHandlerWrapper.Call_ClrSystemHttpServer_OnNext(UInt64
handle, IHttpServerBridgeClr2Java clr2Java)
   at
Java_org_apache_reef_javabridge_NativeInterop_clrSystemHttpServerHandlerOnNext(JNIEnv_*
env, _jclass* cls, Int64 handler, _jobject* jhttpServerEventBridge,
_jobject* jlogger)
Inner Exception: null
Nov 05, 2017 1:57:31 PM org.apache.reef.wake.time.runtime.RuntimeClock run
SEVERE: Error in runtime clock
java.lang.RuntimeException: Bridge received error from CLR: Exception in
Call_ClrSystemHttpServer_OnNext
Handle is not initialized.
   at System.Runtime.InteropServices.GCHandle.FromIntPtr(IntPtr value)
   at
Org.Apache.REEF.Driver.Bridge.ClrSystemHandlerWrapper.Call_ClrSystemHttpServer_OnNext(UInt64
handle, IHttpServerBridgeClr2Java clr2Java)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at
Org.Apache.REEF.Utilities.Diagnostics.Exceptions.CaughtAndThrow(Exception
exception, Level level, String message, Logger logger)
   at
Org.Apache.REEF.Utilities.Diagnostics.Exceptions.CaughtAndThrow(Exception
exception, Level level, Logger logger)
   at
Org.Apache.REEF.Driver.Bridge.ClrSystemHandlerWrapper.Call_ClrSystemHttpServer_OnNext(UInt64
handle, IHttpServerBridgeClr2Java clr2Java)
   at
Java_org_apache_reef_javabridge_NativeInterop_clrSystemHttpServerHandlerOnNext(JNIEnv_*
env, _jclass* cls, Int64 handler, _jobject* jhttpServerEventBridge,
_jobject* jlogger)
Inner Exception: null
        at
org.apache.reef.javabridge.NativeBridge.onError(NativeBridge.java:36)
        at
org.apache.reef.javabridge.NativeInterop.clrSystemHttpServerHandlerOnNext(Native
Method)
        at
org.apache.reef.javabridge.generic.JobDriver.setupBridge(JobDriver.java:206)
        at
org.apache.reef.javabridge.generic.JobDriver.access$1500(JobDriver.java:65)
        at
org.apache.reef.javabridge.generic.JobDriver$StartHandler.onNext(JobDriver.java:589)
        at
org.apache.reef.javabridge.generic.JobDriver$StartHandler.onNext(JobDriver.java:582)
        at
org.apache.reef.runtime.common.driver.DriverStartHandler.onStart(DriverStartHandler.java:98)
        at
org.apache.reef.runtime.common.driver.DriverStartHandler.onNext(DriverStartHandler.java:75)
        at
org.apache.reef.runtime.common.driver.DriverStartHandler.onNext(DriverStartHandler.java:40)
        at
org.apache.reef.wake.impl.PubSubEventHandler.onNext(PubSubEventHandler.java:98)
        at
org.apache.reef.wake.time.runtime.RuntimeClock.run(RuntimeClock.java:295)
        at
org.apache.reef.runtime.common.REEFEnvironment.run(REEFEnvironment.java:191)
        at
org.apache.reef.runtime.common.REEFLauncher.main(REEFLauncher.java:181)

Nov 05, 2017 1:57:31 PM
org.apache.reef.runtime.common.driver.DriverStatusManager
sendJobEndingMessageToClient
SEVERE: Sending message in a state different that SHUTTING_DOWN or FAILING.
This is likely a illegal call to clock.close() at play. Current state:
RUNNING