mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 01:46:10 +08:00
[Java Worker] Support raylet on Java (#2479)
This commit is contained in:
committed by
Robert Nishihara
parent
9a479b3a63
commit
e4f68ff8cf
@@ -85,8 +85,8 @@ public final class Ray extends Rpc {
|
||||
if (cls.getConstructor() == null) {
|
||||
System.err.println("class " + cls.getName()
|
||||
+ " does not (actors must) have a constructor with no arguments");
|
||||
RayLog.core.error("class " + cls.getName()
|
||||
+ " does not (actors must) have a constructor with no arguments");
|
||||
RayLog.core.error("class {} does not (actors must) have a constructor with no arguments",
|
||||
cls.getName());
|
||||
}
|
||||
} catch (Exception e) {
|
||||
System.exit(1);
|
||||
|
||||
@@ -19,7 +19,7 @@ public class RayConnector {
|
||||
m.setAccessible(false);
|
||||
return api;
|
||||
} catch (ReflectiveOperationException | IllegalArgumentException | SecurityException e) {
|
||||
RayLog.core.error("Load " + className + " class failed.", e);
|
||||
RayLog.core.error("Load {} class failed.", className, e);
|
||||
throw new Error("RayApi is not successfully initiated.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user