diff --git a/java_console/io/src/main/java/com/rusefi/io/tcp/BinaryProtocolServer.java b/java_console/io/src/main/java/com/rusefi/io/tcp/BinaryProtocolServer.java index b4f5d5d0fe..a46115b42a 100644 --- a/java_console/io/src/main/java/com/rusefi/io/tcp/BinaryProtocolServer.java +++ b/java_console/io/src/main/java/com/rusefi/io/tcp/BinaryProtocolServer.java @@ -211,7 +211,7 @@ public class BinaryProtocolServer implements BinaryProtocolCommands { int crc = in.readInt(); int fromPacket = IoHelper.getCrc32(packet); if (crc != fromPacket) - throw new IllegalStateException("CRC mismatch " + crc + " vs " + fromPacket + " " + IoStream.printHexBinary(packet)); + throw new IllegalStateException("CRC mismatch crc=" + Integer.toString(crc, 16) + " vs packet=" + Integer.toString(fromPacket, 16) + " len=" + packet.length + " data: " + IoStream.printHexBinary(packet)); return new Packet(packet, crc); } diff --git a/java_console/ui/src/test/java/com/rusefi/ServerTest.java b/java_console/ui/src/test/java/com/rusefi/ServerTest.java index d163c7c899..f6652c20f4 100644 --- a/java_console/ui/src/test/java/com/rusefi/ServerTest.java +++ b/java_console/ui/src/test/java/com/rusefi/ServerTest.java @@ -121,7 +121,7 @@ public class ServerTest { int serverPortForRemoteUsers = 6800; UserDetailsResolver userDetailsResolver = authToken -> new UserDetails(authToken.substring(0, 5), authToken.charAt(6)); - int httpPort = 8001; + int httpPort = 8002; CountDownLatch disconnectedCountDownLatch = new CountDownLatch(1); @@ -158,7 +158,7 @@ public class ServerTest { CountDownLatch controllerRegistered = new CountDownLatch(1); UserDetailsResolver userDetailsResolver = authToken -> new UserDetails(authToken.substring(0, 5), userId); - int httpPort = 8001; + int httpPort = 8003; try (Backend backend = new Backend(userDetailsResolver, httpPort, logger) { @Override protected void onRegister(ControllerConnectionState controllerConnectionState) {