我是靠谱客的博主 畅快斑马,最近开发中收集的这篇文章主要介绍Eclipse异常报错之 remote stacktrace: Backtrace,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

异常提示
020-06-03 09:58:10,295 INFO [ThreadPoolTaskExecutor-1] org.openqa.selenium.Capabilities (116)- Using new ChromeOptions() is preferred to DesiredCapabilities.chrome()
Starting ChromeDriver 81.0.4044.69 (6813546031a4bc83f717a2ef7cd4ac6ec1199132-refs/branch-heads/4044@{#776}) on port 36088
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
2020-06-03 09:58:13,790 ERROR [ThreadPoolTaskExecutor-1] com.artup.pdf.service.generator.PDFGeneratorService (1425)- 创建作品 ID = a239abb7126f463ebc6ae548917dfe18 出错了!
org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 81
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:17:03’
System info: host: ‘HAPDAY-DESKTOP’, ip: ‘192.168.126.174’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘11.0.2’
Driver info: driver.version: ChromeDriver
remote stacktrace: Backtrace:
Ordinal0 [0x00BC5F73+2449267]
Ordinal0 [0x00AF8361+1606497]
Ordinal0 [0x009EF969+522601]
Ordinal0 [0x009805F3+67059]
Ordinal0 [0x0097CD92+52626]
Ordinal0 [0x0099C127+180519]
Ordinal0 [0x0099BF2D+180013]
Ordinal0 [0x00999E5B+171611]
Ordinal0 [0x00981DD8+73176]
Ordinal0 [0x00982E50+77392]
Ordinal0 [0x00982DE9+77289]
Ordinal0 [0x00B0D8D7+1693911]
GetHandleVerifier [0x00C64036+522726]
GetHandleVerifier [0x00C63D74+522020]
GetHandleVerifier [0x00C79187+609079]
GetHandleVerifier [0x00C648A6+524886]
Ordinal0 [0x00B05CBC+1662140]
Ordinal0 [0x00B0F23B+1700411]
Ordinal0 [0x00B0F3A3+1700771]
Ordinal0 [0x00B25215+1790485]
BaseThreadInitThunk [0x754E0419+25]
RtlGetAppContainerNamedObjectPath [0x771066DD+237]
RtlGetAppContainerNamedObjectPath [0x771066AD+189]
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$errorHandler 0 ( W 3 C H a n d s h a k e R e s p o n s e . j a v a : 62 ) a t o r g . o p e n q a . s e l e n i u m . r e m o t e . H a n d s h a k e R e s p o n s e . l a m b d a 0(W3CHandshakeResponse.java:62) at org.openqa.selenium.remote.HandshakeResponse.lambda 0(W3CHandshakeResponse.java:62)atorg.openqa.selenium.remote.HandshakeResponse.lambdagetResponseFunction 0 ( H a n d s h a k e R e s p o n s e . j a v a : 30 ) a t o r g . o p e n q a . s e l e n i u m . r e m o t e . P r o t o c o l H a n d s h a k e . l a m b d a 0(HandshakeResponse.java:30) at org.openqa.selenium.remote.ProtocolHandshake.lambda 0(HandshakeResponse.java:30)atorg.openqa.selenium.remote.ProtocolHandshake.lambdacreateSession$0(ProtocolHandshake.java:126)
at java.base/java.util.stream.ReferencePipeline$3 1. a c c e p t ( R e f e r e n c e P i p e l i n e . j a v a : 195 ) a t j a v a . b a s e / j a v a . u t i l . S p l i t e r a t o r s 1.accept(ReferencePipeline.java:195) at java.base/java.util.Spliterators 1.accept(ReferencePipeline.java:195)atjava.base/java.util.SpliteratorsArraySpliterator.tryAdvance(Spliterators.java:958)
at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:127)
at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:502)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:488)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.FindOps F i n d O p . e v a l u a t e S e q u e n t i a l ( F i n d O p s . j a v a : 150 ) a t j a v a . b a s e / j a v a . u t i l . s t r e a m . A b s t r a c t P i p e l i n e . e v a l u a t e ( A b s t r a c t P i p e l i n e . j a v a : 234 ) a t j a v a . b a s e / j a v a . u t i l . s t r e a m . R e f e r e n c e P i p e l i n e . f i n d F i r s t ( R e f e r e n c e P i p e l i n e . j a v a : 543 ) a t o r g . o p e n q a . s e l e n i u m . r e m o t e . P r o t o c o l H a n d s h a k e . c r e a t e S e s s i o n ( P r o t o c o l H a n d s h a k e . j a v a : 128 ) a t o r g . o p e n q a . s e l e n i u m . r e m o t e . P r o t o c o l H a n d s h a k e . c r e a t e S e s s i o n ( P r o t o c o l H a n d s h a k e . j a v a : 74 ) a t o r g . o p e n q a . s e l e n i u m . r e m o t e . H t t p C o m m a n d E x e c u t o r . e x e c u t e ( H t t p C o m m a n d E x e c u t o r . j a v a : 136 ) a t o r g . o p e n q a . s e l e n i u m . r e m o t e . s e r v i c e . D r i v e r C o m m a n d E x e c u t o r . e x e c u t e ( D r i v e r C o m m a n d E x e c u t o r . j a v a : 83 ) a t o r g . o p e n q a . s e l e n i u m . r e m o t e . R e m o t e W e b D r i v e r . e x e c u t e ( R e m o t e W e b D r i v e r . j a v a : 552 ) a t o r g . o p e n q a . s e l e n i u m . r e m o t e . R e m o t e W e b D r i v e r . s t a r t S e s s i o n ( R e m o t e W e b D r i v e r . j a v a : 213 ) a t o r g . o p e n q a . s e l e n i u m . r e m o t e . R e m o t e W e b D r i v e r . < i n i t > ( R e m o t e W e b D r i v e r . j a v a : 131 ) a t o r g . o p e n q a . s e l e n i u m . c h r o m e . C h r o m e D r i v e r . < i n i t > ( C h r o m e D r i v e r . j a v a : 181 ) a t o r g . o p e n q a . s e l e n i u m . c h r o m e . C h r o m e D r i v e r . < i n i t > ( C h r o m e D r i v e r . j a v a : 168 ) a t o r g . o p e n q a . s e l e n i u m . c h r o m e . C h r o m e D r i v e r . < i n i t > ( C h r o m e D r i v e r . j a v a : 157 ) a t c o m . a r t u p . p d f . h a n d l e r . T e x t E d i t H a n d l e r . D O M T o I m a g e ( T e x t E d i t H a n d l e r . j a v a : 527 ) a t c o m . a r t u p . p d f . h a n d l e r . T e x t E d i t H a n d l e r . b u i l d T e x t E d i t ( T e x t E d i t H a n d l e r . j a v a : 117 ) a t c o m . a r t u p . p d f . s e r v i c e . g e n e r a t o r . P D F G e n e r a t o r S e r v i c e . c r e a t e P D F ( P D F G e n e r a t o r S e r v i c e . j a v a : 261 ) a t c o m . a r t u p . p d f . s e r v i c e . g e n e r a t o r . P D F G e n e r a t o r S e r v i c e . c r e a t e P D F ( P D F G e n e r a t o r S e r v i c e . j a v a : 1423 ) a t c o m . a r t u p . p d f . s e r v i c e . g e n e r a t o r . P D F G e n e r a t o r S e r v i c e . c r e a t e P D F P r o x y ( P D F G e n e r a t o r S e r v i c e . j a v a : 1292 ) a t c o m . a r t u p . p d f . s e r v i c e . g e n e r a t o r . P D F G e n e r a t o r S e r v i c e FindOp.evaluateSequential(FindOps.java:150) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:543) at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128) at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136) at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552) at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213) at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131) at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181) at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:168) at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:157) at com.artup.pdf.handler.TextEditHandler.DOMToImage(TextEditHandler.java:527) at com.artup.pdf.handler.TextEditHandler.buildTextEdit(TextEditHandler.java:117) at com.artup.pdf.service.generator.PDFGeneratorService.createPDF(PDFGeneratorService.java:261) at com.artup.pdf.service.generator.PDFGeneratorService.createPDF(PDFGeneratorService.java:1423) at com.artup.pdf.service.generator.PDFGeneratorService.createPDFProxy(PDFGeneratorService.java:1292) at com.artup.pdf.service.generator.PDFGeneratorService FindOp.evaluateSequential(FindOps.java:150)atjava.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)atjava.base/java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:543)atorg.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128)atorg.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74)atorg.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)atorg.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)atorg.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)atorg.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)atorg.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)atorg.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181)atorg.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:168)atorg.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:157)atcom.artup.pdf.handler.TextEditHandler.DOMToImage(TextEditHandler.java:527)atcom.artup.pdf.handler.TextEditHandler.buildTextEdit(TextEditHandler.java:117)atcom.artup.pdf.service.generator.PDFGeneratorService.createPDF(PDFGeneratorService.java:261)atcom.artup.pdf.service.generator.PDFGeneratorService.createPDF(PDFGeneratorService.java:1423)atcom.artup.pdf.service.generator.PDFGeneratorService.createPDFProxy(PDFGeneratorService.java:1292)atcom.artup.pdf.service.generator.PDFGeneratorService F a s t C l a s s B y S p r i n g C G L I B FastClassBySpringCGLIB FastClassBySpringCGLIB 93 f 4 d c 27. i n v o k e ( < g e n e r a t e d > ) a t o r g . s p r i n g f r a m e w o r k . c g l i b . p r o x y . M e t h o d P r o x y . i n v o k e ( M e t h o d P r o x y . j a v a : 218 ) a t o r g . s p r i n g f r a m e w o r k . a o p . f r a m e w o r k . C g l i b A o p P r o x y 93f4dc27.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy 93f4dc27.invoke(<generated>)atorg.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)atorg.springframework.aop.framework.CglibAopProxyCglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:771)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.framework.CglibAopProxy C g l i b M e t h o d I n v o c a t i o n . p r o c e e d ( C g l i b A o p P r o x y . j a v a : 749 ) a t o r g . s p r i n g f r a m e w o r k . a o p . i n t e r c e p t o r . A s y n c E x e c u t i o n I n t e r c e p t o r . l a m b d a CglibMethodInvocation.proceed(CglibAopProxy.java:749) at org.springframework.aop.interceptor.AsyncExecutionInterceptor.lambda CglibMethodInvocation.proceed(CglibAopProxy.java:749)atorg.springframework.aop.interceptor.AsyncExecutionInterceptor.lambdainvoke 0 ( A s y n c E x e c u t i o n I n t e r c e p t o r . j a v a : 115 ) a t j a v a . b a s e / j a v a . u t i l . c o n c u r r e n t . F u t u r e T a s k . r u n ( F u t u r e T a s k . j a v a : 264 ) a t j a v a . b a s e / j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r . r u n W o r k e r ( T h r e a d P o o l E x e c u t o r . j a v a : 1128 ) a t j a v a . b a s e / j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r 0(AsyncExecutionInterceptor.java:115) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor 0(AsyncExecutionInterceptor.java:115)atjava.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)atjava.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)atjava.base/java.util.concurrent.ThreadPoolExecutorWorker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)

出现此类错误的原因暂时总结有俩个

1、网上对此类问题解决思路是:
Chrome 浏览器的版本和 Chrome 驱动的版本不一致。
解决办法:
检查并比对 Chrome 浏览器的版本是否和 Chrome 驱动的版本一致,
我们可以从 http://npm.taobao.org/mirrors/chromedriver 这里下载需要的 Chrome 驱动。

2、当你反复确认自己的版本没有问题之后,你可以试试我的方法。就是配置一下环境变量。
首先,在cmd里输入Chrome(这取决于你要用的浏览器),
如果是下图的问题
在这里插入图片描述
那么你只要把你电脑里谷歌浏览器的路径添加到电脑环境变量的path里面去就可以了。
具体步骤和配置java时差不多。

此电脑 -->属性–>高级系统设置–>环境变量–>下面那个系统变量里找到PATH在这里插入图片描述
点击新建,粘贴上你的Chrome.exe位置就行(文件位置到exe的上层目录即可)然后确定。
之后cmd 输入chrome,这个时候回车就会跳转到谷歌浏览器了。代码也可以正常运行了(记得退出eclipse重新进入再运行)。

还有一种更简单的方法,刚刚发现,我会写在新文章里面的。
感兴趣的可以看一看。

最后

以上就是畅快斑马为你收集整理的Eclipse异常报错之 remote stacktrace: Backtrace的全部内容,希望文章能够帮你解决Eclipse异常报错之 remote stacktrace: Backtrace所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(41)

评论列表共有 0 条评论

立即
投稿
返回
顶部