mirror of
https://github.com/qi4L/JYso.git
synced 2026-09-21 22:40:43 +08:00
fix: RMI重构修复,已经可用
This commit is contained in:
@@ -132,7 +132,6 @@ public class RMIServer implements Runnable {
|
|||||||
doMessage(s, in, out);
|
doMessage(s, in, out);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
case TransportConstants.MultiplexProtocol:
|
|
||||||
System.err.println("Unsupported protocol");
|
System.err.println("Unsupported protocol");
|
||||||
s.close();
|
s.close();
|
||||||
continue;
|
continue;
|
||||||
@@ -148,11 +147,9 @@ public class RMIServer implements Runnable {
|
|||||||
e.printStackTrace(System.err);
|
e.printStackTrace(System.err);
|
||||||
} finally {
|
} finally {
|
||||||
System.out.println(Ansi.ansi().fgRgb(255, 165, 0).a(" Closing connection").reset());
|
System.out.println(Ansi.ansi().fgRgb(255, 165, 0).a(" Closing connection").reset());
|
||||||
if (s != null) {
|
|
||||||
s.close();
|
s.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} finally {
|
} finally {
|
||||||
if (s != null) {
|
if (s != null) {
|
||||||
s.close();
|
s.close();
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ public class Basic {
|
|||||||
return new Reference("Foo", className, Config.codeBase);
|
return new Reference("Foo", className, Config.codeBase);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void parse(String base) throws Exception {
|
private static void parse(String base) {
|
||||||
System.out.println("- JNDI RMI Remote Reference Links ");
|
System.out.println("- JNDI RMI Remote Reference Links ");
|
||||||
try {
|
try {
|
||||||
String normalized = base.replace('\\', '/');
|
String normalized = base.replace('\\', '/');
|
||||||
|
|||||||
Reference in New Issue
Block a user