Git Product home page Git Product logo

yu-auto-reply's Issues

Unexpected error occurred in scheduled task

2023-04-19 16:51:00.000 INFO 1 --- [pool-1-thread-1] com.yupi.autoreply.monitor.ZsxqMonitor : 任务 task1 监控开始
2023-04-19 16:51:06.692 ERROR 1 --- [pool-1-thread-1] o.s.s.s.TaskUtils$LoggingErrorHandler : Unexpected error occurred in scheduled task
cn.hutool.json.JSONException: Mismatched meta and head at 107 [character 6 line 7]
at cn.hutool.json.JSONTokener.syntaxError(JSONTokener.java:396) ~[hutool-all-5.8.8.jar!/:na]
at cn.hutool.json.xml.JSONXMLParser.parse(JSONXMLParser.java:99) ~[hutool-all-5.8.8.jar!/:na]
at cn.hutool.json.xml.JSONXMLParser.parse(JSONXMLParser.java:164) ~[hutool-all-5.8.8.jar!/:na]
at cn.hutool.json.xml.JSONXMLParser.parse(JSONXMLParser.java:164) ~[hutool-all-5.8.8.jar!/:na]
at cn.hutool.json.xml.JSONXMLParser.parse(JSONXMLParser.java:164) ~[hutool-all-5.8.8.jar!/:na]
at cn.hutool.json.xml.JSONXMLParser.parseJSONObject(JSONXMLParser.java:29) ~[hutool-all-5.8.8.jar!/:na]
at cn.hutool.json.XML.toJSONObject(XML.java:101) ~[hutool-all-5.8.8.jar!/:na]
at cn.hutool.json.ObjectMapper.mapFromStr(ObjectMapper.java:212) ~[hutool-all-5.8.8.jar!/:na]
at cn.hutool.json.ObjectMapper.map(ObjectMapper.java:98) ~[hutool-all-5.8.8.jar!/:na]
at cn.hutool.json.JSONObject.(JSONObject.java:210) ~[hutool-all-5.8.8.jar!/:na]
at cn.hutool.json.JSONObject.(JSONObject.java:187) ~[hutool-all-5.8.8.jar!/:na]
at cn.hutool.json.JSONObject.(JSONObject.java:142) ~[hutool-all-5.8.8.jar!/:na]
at cn.hutool.json.JSONObject.(JSONObject.java:125) ~[hutool-all-5.8.8.jar!/:na]
at cn.hutool.json.JSONUtil.parseObj(JSONUtil.java:87) ~[hutool-all-5.8.8.jar!/:na]
at cn.hutool.json.JSONUtil.toBean(JSONUtil.java:419) ~[hutool-all-5.8.8.jar!/:na]
at com.yupi.autoreply.api.zsxq.ZsxqApi.listTopics(ZsxqApi.java:54) ~[classes!/:0.0.1-SNAPSHOT]
at com.yupi.autoreply.monitor.ZsxqMonitor.onMonitor(ZsxqMonitor.java:48) ~[classes!/:0.0.1-SNAPSHOT]
at com.yupi.autoreply.job.JobMediator.run(JobMediator.java:29) ~[classes!/:0.0.1-SNAPSHOT]
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) ~[spring-context-5.3.22.jar!/:5.3.22]
at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:95) [spring-context-5.3.22.jar!/:5.3.22]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_302]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_302]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_302]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_302]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_302]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_302]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_302]

鱼皮,遇到一个bug

问题:使用Java编写冒泡排序
2023-03-25 15:23:31.057 ERROR 1 --- [pool-1-thread-1] o.s.s.s.TaskUtils$LoggingErrorHandler : Unexpected error occurred in scheduled task
java.lang.NullPointerException: null
at com.yupi.autoreply.answerer.OpenAiAnswerer.doAnswer(OpenAiAnswerer.java:37) ~[classes!/:0.0.1-SNAPSHOT]
at com.yupi.autoreply.monitor.ZsxqMonitor.onMonitor(ZsxqMonitor.java:58) ~[classes!/:0.0.1-SNAPSHOT]
at com.yupi.autoreply.job.JobMediator.run(JobMediator.java:29) ~[classes!/:0.0.1-SNAPSHOT]
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) ~[spring-context-5.3.22.jar!/:5.3.22]
at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:95) [spring-context-5.3.22.jar!/:5.3.22]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_302]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_302]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_302]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_302]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_302]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_302]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_302]

调用 ZsxqApi 出现错误

配置好了 自己的知识星球后, 调试到ZsxqApi .listTopics 发送 http 请求, 返回值为 Misdirected Request , 然后因为不是JSON数据就报错了

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.