2021-12-23 14:36:06 INFO [AppCrawler$.185.parseParams] Find Conf F:\demo.yaml
Exception in thread “main” java.nio.charset.MalformedInputException: Input length = 1
at java.nio.charset.CoderResult.throwException(CoderResult.java:281)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
at java.io.InputStreamReader.read(InputStreamReader.java:184)
at java.io.BufferedReader.fill(BufferedReader.java:161)
at java.io.BufferedReader.readLine(BufferedReader.java:324)
at java.io.BufferedReader.readLine(BufferedReader.java:389)
at scala.io.BufferedSource$BufferedLineIterator.hasNext(BufferedSource.scala:73)
at scala.collection.Iterator.isEmpty(Iterator.scala:459)
at scala.collection.Iterator.isEmpty$(Iterator.scala:459)
at scala.collection.AbstractIterator.isEmpty(Iterator.scala:1288)
at scala.collection.IterableOnceOps.mkString(IterableOnce.scala:1128)
at scala.collection.IterableOnceOps.mkString$(IterableOnce.scala:1127)
at scala.collection.AbstractIterator.mkString(Iterator.scala:1288)
at scala.collection.IterableOnceOps.mkString(IterableOnce.scala:1142)
at scala.collection.IterableOnceOps.mkString$(IterableOnce.scala:1142)
at scala.collection.AbstractIterator.mkString(Iterator.scala:1288)
at com.ceshiren.appcrawler.core.CrawlerConf.load(CrawlerConf.scala:247)
at com.ceshiren.appcrawler.AppCrawler$.parseParams(AppCrawler.scala:186)
at com.ceshiren.appcrawler.AppCrawler$.main(AppCrawler.scala:73)
at com.ceshiren.appcrawler.AppCrawler.main(AppCrawler.scala)
字符编码不对,charset 字符设置UTF-8重新保存