izayoiyurin opened a new issue, #9931: URL: https://github.com/apache/seatunnel/issues/9931
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues. ### What happened **Environment** - OS: Microsoft Windows [版本 10.0.26100.6584] - SeaTunnel Version: 2.3.12 - Java Version: Java(TM) SE Runtime Environment (build 1.8.0_131-b11) - Shell: CMD **Date/Time Output** %date% -> 2025/10/10 周五 %time% -> 9:41:40.48 **Error Msg** CMD: D:\company\etl-tools\apache-seatunnel-2.3.12>.\bin\seatunnel.cmd --config "./job/postgres_to_mysql.conf" -m local Msg: java -Dhazelcast.client.config=D:\company\etl-tools\apache-seatunnel-2.3.12\config\hazelcast-client.yaml -Dseatunnel.config=D:\company\etl-tools\apache-seatunnel-2.3.12\config\seatunnel.yaml -Dhazelcast.config=D:\company\etl-tools\apache-seatunnel-2.3.12\config\hazelcast.yaml -Dlog4j2.isThreadContextMapInheritable=true -Dhazelcast.logging.type=log4j2 -Dlog4j2.configurationFile=D:\company\etl-tools\apache-seatunnel-2.3.12\config\log4j2_client.properties -Dseatunnel.logs.path=D:\company\etl-tools\apache-seatunnel-2.3.12\logs -Dseatunnel.logs.file_name=seatunnel-starter-client-20251010- 9500995009. -Xms256m -Xmx512m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/seatunnel/dump/zeta-client -cp D:\company\etl-tools\apache-seatunnel-2.3.12\lib\*;D:\company\etl-tools\apache-seatunnel-2.3.12\starter\seatunnel-starter.jar org.apache.seatunnel.core.starter.seatunnel.SeaTunnelClient --config "./job/postgres_to_mysql.conf" -m local 错误: 找不到或无法加载主类 9500995009. **Problem** In the seatunnel.cmd script, the log filename is generated with: set "JAVA_OPTS=!JAVA_OPTS! -Dseatunnel.logs.file_name=seatunnel-starter-client-!ndate!-!time:~0,2!!time:~3,2!!time:~6,2!!ntime:~0,6!" When the system time is a single-digit hour (e.g., 9 AM), %time% starts with a leading space (" 9"), and the script logic for ntime fails to correctly exclude the fractional seconds, producing this value: seatunnel-starter-client-20251010- 9500995009. This inserts an unintended space in the Java argument: -Dseatunnel.logs.file_name=seatunnel-starter-client-20251010- 9500995009. As a result, the JVM interprets `9500995009.` as the main class name, leading to the error: Error: Could not find or load main class 9500995009. ### SeaTunnel Version 2.3.12 ### SeaTunnel Config ```conf null ``` ### Running Command ```shell .\bin\seatunnel.cmd --config "./job/postgres_to_mysql.conf" -m local ``` ### Error Exception ```log 错误: 找不到或无法加载主类 9500995009. ``` ### Zeta or Flink or Spark Version _No response_ ### Java or Scala Version _No response_ ### Screenshots _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
