2022-03-09 14:34:58 ERROR [Crawler.221.crawlWithRetry] crawl not finish, return with exception
2022-03-09 14:34:58 ERROR [Crawler.222.crawlWithRetry] javax.xml.transform.TransformerException: Found ‘,’ but no preceding argument!
2022-03-09 14:34:58 ERROR [Crawler.223.crawlWithRetry] TransformerException: Found ‘,’ but no preceding argument!
2022-03-09 14:34:58 ERROR [Crawler.224.crawlWithRetry] javax.xml.transform.TransformerException: Found ‘,’ but no preceding argument!
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] javax.xml.transform.TransformerException: Found ‘,’ but no preceding argument!
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] [wrapped] javax.xml.xpath.XPathExpressionException: javax.xml.transform.TransformerException: Found ‘,’ but no preceding argument!
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.error(XPathParser.java:610)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.FunctionCall(XPathParser.java:1534)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.PrimaryExpr(XPathParser.java:1446)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.FilterExpr(XPathParser.java:1345)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.PathExpr(XPathParser.java:1278)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.UnionExpr(XPathParser.java:1236)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.UnaryExpr(XPathParser.java:1142)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.MultiplicativeExpr(XPathParser.java:1063)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.AdditiveExpr(XPathParser.java:1005)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.RelationalExpr(XPathParser.java:930)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.EqualityExpr(XPathParser.java:870)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.AndExpr(XPathParser.java:834)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.OrExpr(XPathParser.java:807)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.Expr(XPathParser.java:790)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.PredicateExpr(XPathParser.java:1954)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.Predicate(XPathParser.java:1936)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.Step(XPathParser.java:1726)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.RelativeLocationPath(XPathParser.java:1626)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.LocationPath(XPathParser.java:1597)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.PathExpr(XPathParser.java:1317)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.UnionExpr(XPathParser.java:1236)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.UnaryExpr(XPathParser.java:1142)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.MultiplicativeExpr(XPathParser.java:1063)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.AdditiveExpr(XPathParser.java:1005)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.RelationalExpr(XPathParser.java:930)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.EqualityExpr(XPathParser.java:870)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.AndExpr(XPathParser.java:834)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.OrExpr(XPathParser.java:807)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.Expr(XPathParser.java:790)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.compiler.XPathParser.initXPath(XPathParser.java:129)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.XPath.(XPath.java:178)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.XPath.(XPath.java:266)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at org.apache.xpath.jaxp.XPathImpl.compile(XPathImpl.java:400)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at com.ceshiren.appcrawler.utils.XPathUtil$.getNodeListFromXML(XPathUtil.scala:211)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at com.ceshiren.appcrawler.utils.XPathUtil$.getNodeListByXPath(XPathUtil.scala:229)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at com.ceshiren.appcrawler.utils.XPathUtil.getNodeListByXPath(XPathUtil.scala)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at com.ceshiren.appcrawler.model.PageSource.getNodeListByKey(PageSource.java:63)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at com.ceshiren.appcrawler.driver.ReactWebDriver.getNodeListByKey(ReactWebDriver.scala:262)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at com.ceshiren.appcrawler.core.Crawler.$anonfun$crawl$2(Crawler.scala:999)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at com.ceshiren.appcrawler.core.Crawler.$anonfun$crawl$2$adapted(Crawler.scala:999)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at scala.collection.immutable.List.forall(List.scala:386)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at com.ceshiren.appcrawler.core.Crawler.$anonfun$crawl$1(Crawler.scala:999)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at com.ceshiren.appcrawler.core.Crawler.$anonfun$crawl$1$adapted(Crawler.scala:999)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at scala.collection.IterableOnceOps.exists(IterableOnce.scala:591)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at scala.collection.IterableOnceOps.exists$(IterableOnce.scala:588)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at scala.collection.AbstractIterable.exists(Iterable.scala:919)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at com.ceshiren.appcrawler.core.Crawler.crawl(Crawler.scala:999)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at com.ceshiren.appcrawler.core.Crawler.$anonfun$crawlWithRetry$1(Crawler.scala:214)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at scala.util.Try$.apply(Try.scala:210)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at com.ceshiren.appcrawler.core.Crawler.crawlWithRetry(Crawler.scala:214)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at com.ceshiren.appcrawler.core.Crawler.start(Crawler.scala:171)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at com.ceshiren.appcrawler.AppCrawler$.startCrawl(AppCrawler.scala:319)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at com.ceshiren.appcrawler.AppCrawler$.parseParams(AppCrawler.scala:286)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at com.ceshiren.appcrawler.AppCrawler$.main(AppCrawler.scala:73)
2022-03-09 14:34:58 ERROR [Crawler.225.$anonfun$crawlWithRetry$2] at com.ceshiren.appcrawler.AppCrawler.main(AppCrawler.scala)
2022-03-09 14:34:58 ERROR [Crawler.226.crawlWithRetry] create new session
Exception in thread “main” javax.xml.transform.TransformerException: Found ‘,’ but no preceding argument!
at org.apache.xpath.compiler.XPathParser.error(XPathParser.java:610)
at org.apache.xpath.compiler.XPathParser.FunctionCall(XPathParser.java:1534)
at org.apache.xpath.compiler.XPathParser.PrimaryExpr(XPathParser.java:1446)
at org.apache.xpath.compiler.XPathParser.FilterExpr(XPathParser.java:1345)
at org.apache.xpath.compiler.XPathParser.PathExpr(XPathParser.java:1278)
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.PredicateExpr(XPathParser.java:1954)
at org.apache.xpath.compiler.XPathParser.Predicate(XPathParser.java:1936)
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)
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.$anonfun$crawl$2(Crawler.scala:999)
at com.ceshiren.appcrawler.core.Crawler.$anonfun$crawl$2$adapted(Crawler.scala:999)
at scala.collection.immutable.List.forall(List.scala:386)
at com.ceshiren.appcrawler.core.Crawler.$anonfun$crawl$1(Crawler.scala:999)
at com.ceshiren.appcrawler.core.Crawler.$anonfun$crawl$1$adapted(Crawler.scala:999)
at scala.collection.IterableOnceOps.exists(IterableOnce.scala:591)
at scala.collection.IterableOnceOps.exists$(IterableOnce.scala:588)
at scala.collection.AbstractIterable.exists(Iterable.scala:919)
at com.ceshiren.appcrawler.core.Crawler.crawl(Crawler.scala:999)
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)
--------------- linked to ------------------
javax.xml.xpath.XPathExpressionException: javax.xml.transform.TransformerException: Found ‘,’ but no preceding argument!
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.$anonfun$crawl$2(Crawler.scala:999)
at com.ceshiren.appcrawler.core.Crawler.$anonfun$crawl$2$adapted(Crawler.scala:999)
at scala.collection.immutable.List.forall(List.scala:386)
at com.ceshiren.appcrawler.core.Crawler.$anonfun$crawl$1(Crawler.scala:999)
at com.ceshiren.appcrawler.core.Crawler.$anonfun$crawl$1$adapted(Crawler.scala:999)
at scala.collection.IterableOnceOps.exists(IterableOnce.scala:591)
at scala.collection.IterableOnceOps.exists$(IterableOnce.scala:588)
at scala.collection.AbstractIterable.exists(Iterable.scala:919)
at com.ceshiren.appcrawler.core.Crawler.crawl(Crawler.scala:999)
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: Found ‘,’ but no preceding argument!
at org.apache.xpath.compiler.XPathParser.error(XPathParser.java:610)
at org.apache.xpath.compiler.XPathParser.FunctionCall(XPathParser.java:1534)
at org.apache.xpath.compiler.XPathParser.PrimaryExpr(XPathParser.java:1446)
at org.apache.xpath.compiler.XPathParser.FilterExpr(XPathParser.java:1345)
at org.apache.xpath.compiler.XPathParser.PathExpr(XPathParser.java:1278)
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.PredicateExpr(XPathParser.java:1954)
at org.apache.xpath.compiler.XPathParser.Predicate(XPathParser.java:1936)
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)
xpath写错了,检查下吧
嗯 修改的时候多了,感谢