我的环境中出现以下错误大约2.5小时,然后它自己消失了。可能是什么原因?
error occurred in scheduled task.
java.lang.NoClassDefFoundError: com/companyName/common/v1/model/MyClass
我进一步检查并发现我也遇到了错误
ERROR [com.netflix.config.AbstractPollingScheduler] [pollingConfigurationSource] - Error getting result from polling source java.util.zip.ZipException: invalid block type
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:164)
at org.springframework.boot.loader.jar.ZipInflaterInputStream.read(ZipInflaterInputStream.java:52)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
at java.io.InputStreamReader.read(InputStreamReader.java:184)
at java.io.Reader.read(Reader.java:140)
at java.util.Properties$LineReader.readLine(Properties.java:434)
at java.util.Properties.load0(Properties.java:353)
at java.util.Properties.load(Properties.java:317)
at com.netflix.config.util.ConfigurationUtils.loadPropertiesFromInputStream(ConfigurationUtils.java:261)
因此似乎某些依赖项已损坏,导致NoClassdef错误。 2.5小时后,该函数执行得很好,但没有找到该类但仍然连续得到此轮询错误。