求助appcrawler执行配置文件报错

image

能markdown处理一下吗?

2022-03-16 10:32:02 INFO [ScalaTestRuntime.59.runTestCase] run -R D:\appcrawler\20220316102943_com.focustm.inner/tmp/ -oF -u D:\appcrawler\20220316102943_com.focustm.inner -h D:\appcrawler\20220316102943_com.focustm.inner
An exception or error caused a run to abort. This may have been caused by a problematic custom reporter.
java.lang.RuntimeException: Error creating extended parser class: Could not determine whether class ‘org.pegdown.Parser$$parboiled’ has already been loaded
at org.parboiled.Parboiled.createParser(Parboiled.java:58)
at org.pegdown.PegDownProcessor.(PegDownProcessor.java:94)
at org.pegdown.PegDownProcessor.(PegDownProcessor.java:73)
at org.pegdown.PegDownProcessor.(PegDownProcessor.java:54)
at org.pegdown.PegDownProcessor.(PegDownProcessor.java:47)
at org.scalatest.tools.HtmlReporter.(HtmlReporter.scala:117)
at org.scalatest.tools.ReporterFactory.createHtmlReporter(ReporterFactory.scala:192)
at org.scalatest.tools.ReporterFactory.getReporterFromConfiguration(ReporterFactory.scala:239)
at org.scalatest.tools.ReporterFactory.$anonfun$createReportersFromConfigurations$1(ReporterFactory.scala:248)
at scala.collection.Iterator$$anon$9.next(Iterator.scala:575)
at scala.collection.immutable.List.prependedAll(List.scala:156)
at scala.collection.immutable.List$.from(List.scala:651)
at scala.collection.immutable.List$.from(List.scala:648)
at scala.collection.SeqFactory$Delegate.from(Factory.scala:306)
at scala.collection.immutable.Seq$.from(Seq.scala:42)
at scala.collection.immutable.Seq$.from(Seq.scala:39)
at scala.collection.IterableOps.map(Iterable.scala:671)
at scala.collection.IterableOps.map$(Iterable.scala:671)
at org.scalatest.tools.ReporterConfigurations.map(ReporterConfiguration.scala:42)
at org.scalatest.tools.ReporterFactory.createReportersFromConfigurations(ReporterFactory.scala:247)
at org.scalatest.tools.ReporterFactory.getDispatchReporter(ReporterFactory.scala:251)
at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1507)
at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:1011)
at org.scalatest.tools.Runner$.run(Runner.scala:850)
at com.ceshiren.appcrawler.plugin.scalatest.ScalaTestRuntime.runTestCase(ScalaTestRuntime.scala:60)
at com.ceshiren.appcrawler.plugin.ReportPlugin.generateReport(ReportPlugin.scala:82)
at com.ceshiren.appcrawler.plugin.ReportPlugin.stop(ReportPlugin.scala:26)
at com.ceshiren.appcrawler.core.Crawler.$anonfun$stop$2(Crawler.scala:1290)
at com.ceshiren.appcrawler.core.Crawler.$anonfun$stop$2$adapted(Crawler.scala:1290)
at scala.collection.IterableOnceOps.foreach(IterableOnce.scala:563)
at scala.collection.IterableOnceOps.foreach$(IterableOnce.scala:561)
at scala.collection.AbstractIterable.foreach(Iterable.scala:919)
at com.ceshiren.appcrawler.core.Crawler.$anonfun$stop$1(Crawler.scala:1290)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18)
at scala.util.Try$.apply(Try.scala:210)
at com.ceshiren.appcrawler.core.Crawler.stop(Crawler.scala:1290)
at com.ceshiren.appcrawler.core.Crawler.$anonfun$handleCtrlC$1(Crawler.scala:1307)
at jdk.unsupported/sun.misc.Signal$InternalMiscHandler.handle(Signal.java:198)
at java.base/jdk.internal.misc.Signal$1.run(Signal.java:219)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.RuntimeException: Could not determine whether class ‘org.pegdown.Parser$$parboiled’ has already been loaded
at org.parboiled.transform.AsmUtils.findLoadedClass(AsmUtils.java:213)
at org.parboiled.transform.ParserTransformer.transformParser(ParserTransformer.java:35)
at org.parboiled.Parboiled.createParser(Parboiled.java:54)
… 39 more
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.findLoadedClass(java.lang.String) accessible: module java.base does not “opens java.lang” to unnamed module @36902638
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
at org.parboiled.transform.AsmUtils.findLoadedClass(AsmUtils.java:206)
… 41 more
这样可以吗

如果是java16的话,尝试更换版本试试


https://github.com/sirthias/parboiled/issues/175
https://github.com/lightbend/paradox/issues/491

关闭