iSourceyou opened a new issue, #300:
URL: https://github.com/apache/rocketmq-dashboard/issues/300

   1、clone项目到本地windows本地后,按照Readme.md中的介绍执行mvn spring-boot:run启动起来后
   2、报错如下:
   `[2025-05-12 16:43:25.008] ERROR scheduling-1 - Unexpected error occurred in 
scheduled task
   com.alibaba.fastjson.JSONException: not close json text, token : int
           at 
com.alibaba.fastjson.parser.DefaultJSONParser.close(DefaultJSONParser.java:1556)
           at com.alibaba.fastjson.JSON.parse(JSON.java:185)
           at com.alibaba.fastjson.JSON.parse(JSON.java:191)
           at com.alibaba.fastjson.JSON.parse(JSON.java:147)
           at 
org.apache.rocketmq.dashboard.service.impl.DashboardCollectServiceImpl.jsonDataFile2map(DashboardCollectServiceImpl.java:117)
           at 
org.apache.rocketmq.dashboard.task.DashboardCollectTask.saveData(DashboardCollectTask.java:190)
           at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
           at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:498)
           at 
org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
           at 
org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
           at 
org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:95)
           at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
           at java.util.concurrent.FutureTask.run(FutureTask.java:266)
           at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
           at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
           at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
           at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
           at java.lang.Thread.run(Thread.java:748)`
   3、rockermq版本5.3.2,jdk1.8,maven 3.2.5,系统win10
   4、从自动生成的文件中json格式来看,用各种工具格式化都显示没问题
   5、自己解决是加了trim()尝试解决的,希望能看下具体是怎么回事


-- 
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]

Reply via email to