求助大佬们,appCrawler运行时报错:javax.xml.xpath.XPathExpressionException: javax.xml.transform.TransformerException: 应该为 ],但发现的是:

详细报错信息:
javax.xml.xpath.XPathExpressionException: javax.xml.transform.TransformerException: 应该为 ],但发现的是:,

at org.apache.xpath.jaxp.XPathImpl.compile(XPathImpl.java:408)

at com.ceshiren.appcrawler.utils.XPathUtil$.getNodeListFromXML(XPathUtil.scala:211)

at com.ceshiren.appcrawler.utils.XPathUtil$.getNodeListByXPath(XPathUtil.scala:229)

at com.ceshiren.appcrawler.utils.XPathUtil.getNodeListByXPath(XPathUtil.scala)

at com.ceshiren.appcrawler.model.PageSource.getNodeListByKey(PageSource.java:63)

at com.ceshiren.appcrawler.driver.ReactWebDriver.getNodeListByKey(ReactWebDriver.scala:262)

at com.ceshiren.appcrawler.core.Crawler.getURIElementsByStep(Crawler.scala:849)

at com.ceshiren.appcrawler.core.Crawler.$anonfun$getElementByTriggerActions$2(Crawler.scala:1267)

at com.ceshiren.appcrawler.core.Crawler.$anonfun$getElementByTriggerActions$2$adapted(Crawler.scala:1265)

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.getElementByTriggerActions(Crawler.scala:1265)

at com.ceshiren.appcrawler.core.Crawler.crawl(Crawler.scala:976)

at com.ceshiren.appcrawler.core.Crawler.$anonfun$crawlWithRetry$1(Crawler.scala:214)

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.crawlWithRetry(Crawler.scala:214)

at com.ceshiren.appcrawler.core.Crawler.start(Crawler.scala:171)

at com.ceshiren.appcrawler.AppCrawler$.startCrawl(AppCrawler.scala:319)

at com.ceshiren.appcrawler.AppCrawler$.parseParams(AppCrawler.scala:286)

at com.ceshiren.appcrawler.AppCrawler$.main(AppCrawler.scala:73)

at com.ceshiren.appcrawler.AppCrawler.main(AppCrawler.scala)

Caused by: javax.xml.transform.TransformerException: 应该为 ],但发现的是:,

at org.apache.xpath.compiler.XPathParser.error(XPathParser.java:610)

at org.apache.xpath.compiler.XPathParser.consumeExpected(XPathParser.java:528)

at org.apache.xpath.compiler.XPathParser.Predicate(XPathParser.java:1937)

at org.apache.xpath.compiler.XPathParser.Step(XPathParser.java:1726)

at org.apache.xpath.compiler.XPathParser.RelativeLocationPath(XPathParser.java:1626)

at org.apache.xpath.compiler.XPathParser.LocationPath(XPathParser.java:1597)

at org.apache.xpath.compiler.XPathParser.PathExpr(XPathParser.java:1317)

at org.apache.xpath.compiler.XPathParser.UnionExpr(XPathParser.java:1236)

at org.apache.xpath.compiler.XPathParser.UnaryExpr(XPathParser.java:1142)

at org.apache.xpath.compiler.XPathParser.MultiplicativeExpr(XPathParser.java:1063)

at org.apache.xpath.compiler.XPathParser.AdditiveExpr(XPathParser.java:1005)

at org.apache.xpath.compiler.XPathParser.RelationalExpr(XPathParser.java:930)

at org.apache.xpath.compiler.XPathParser.EqualityExpr(XPathParser.java:870)

at org.apache.xpath.compiler.XPathParser.AndExpr(XPathParser.java:834)

at org.apache.xpath.compiler.XPathParser.OrExpr(XPathParser.java:807)

at org.apache.xpath.compiler.XPathParser.Expr(XPathParser.java:790)

at org.apache.xpath.compiler.XPathParser.initXPath(XPathParser.java:129)

at org.apache.xpath.XPath.(XPath.java:178)

at org.apache.xpath.XPath.(XPath.java:266)

at org.apache.xpath.jaxp.XPathImpl.compile(XPathImpl.java:400)

… 22 more

我的配置文件是这样写的:
selectedList:

  • xpath: “//[contains(@resource-id, ‘iv_ad_bg’)//]”
    action: click
    times: -1

不知道问题在哪里?

关闭