I was using diffblue cover as usual when suddenly the service stopped working. Now i’m getting E020 after 3 attempts (which takes about 15 minutes). I’m using JDK 1.8 64 bits and i was able to see the TCP service created using TCPView, but no data is transmitted.
Here’s a part of the log.
12:06:47.406 [INFO] [Creating] Server started. Waiting up to 300 seconds for a connection to be established…
12:06:48.033 [INFO] [Creating] Starting new remote monitor client
12:06:48.840 [INFO] [Creating] Attempting to start remote server.
12:06:49.120 [INFO] [Creating] Server started, listening on localhost/127.0.0.1:64265
12:06:49.409 [INFO] [Creating] Expect analyzer service to be listening on port 64265.
12:11:49.851 [INFO] [Creating] Service process output:
13:06:47,860 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [C:\Users\MATHEU~1.SAN\AppData\Local\Temp\diffblue\config\logback-remote-service.xml] at [file:/C:/Users/MATHEU~1.SAN/AppData/Local/Temp/diffblue/config/logback-remote-service.xml]
13:06:47,902 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
13:06:47,902 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [com.diffblue.cover.logging.RemoteLogAppender]
13:06:47,905 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [server-logger]
13:06:47,905 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [com.diffblue.cover.logging.appender.CoverRollingFileAppender]
13:06:47,906 |-ERROR in ch.qos.logback.core.joran.action.AppenderAction - Could not create an Appender of type [com.diffblue.cover.logging.appender.CoverRollingFileAppender]. ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type com.diffblue.cover.logging.appender.CoverRollingFileAppender
at ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type com.diffblue.cover.logging.appender.CoverRollingFileAppender
at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(SourceFile:69)
at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(SourceFile:45)
at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(SourceFile:34)
at at ch.qos.logback.core.joran.action.AppenderAction.begin(SourceFile:52)
at at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(SourceFile:269)
at at ch.qos.logback.core.joran.spi.Interpreter.startElement(SourceFile:145)
at at ch.qos.logback.core.joran.spi.Interpreter.startElement(SourceFile:128)
at at ch.qos.logback.core.joran.spi.EventPlayer.play(SourceFile:50)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(SourceFile:165)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(SourceFile:152)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(SourceFile:110)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(SourceFile:53)
at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(SourceFile:65)
at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(SourceFile:140)
at at org.slf4j.impl.StaticLoggerBinder.init(SourceFile:84)
at at org.slf4j.impl.StaticLoggerBinder.(SourceFile:55)
at at org.slf4j.LoggerFactory.bind(SourceFile:150)
at at org.slf4j.LoggerFactory.performInitialization(SourceFile:124)
at at org.slf4j.LoggerFactory.getILoggerFactory(SourceFile:412)
at at org.slf4j.LoggerFactory.getLogger(SourceFile:357)
at at org.slf4j.LoggerFactory.getLogger(SourceFile:383)
at at com.diffblue.cover.logging.b.a(SourceFile:66)
at at com.diffblue.cover.service.a.a.b.(SourceFile:26)
at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at at java.lang.reflect.Method.invoke(Method.java:498)
at at com.diffblue.cover.launcher.Launcher.invokeMainMethod(Launcher.java:116)
at at com.diffblue.cover.launcher.Launcher.main(Launcher.java:72)
Caused by: java.lang.ClassNotFoundException: com.diffblue.cover.logging.appender.CoverRollingFileAppender
at at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at at com.diffblue.cover.launcher.FilteringClassLoader.findClass(FilteringClassLoader.java:53)
at at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at at com.diffblue.cover.launcher.FilteringClassLoader.loadClassBasedOnPolicy(FilteringClassLoader.java:75)
at at com.diffblue.cover.launcher.FilteringClassLoader.loadClass(FilteringClassLoader.java:61)
at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(SourceFile:56)
at … 28 common frames omitted
13:06:47,906 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@7:110 - ActionException in Action for tag [appender] ch.qos.logback.core.joran.spi.ActionException: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type com.diffblue.cover.logging.appender.CoverRollingFileAppender
at ch.qos.logback.core.joran.spi.ActionException: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type com.diffblue.cover.logging.appender.CoverRollingFileAppender
at at ch.qos.logback.core.joran.action.AppenderAction.begin(SourceFile:76)
at at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(SourceFile:269)
at at ch.qos.logback.core.joran.spi.Interpreter.startElement(SourceFile:145)
at at ch.qos.logback.core.joran.spi.Interpreter.startElement(SourceFile:128)
at at ch.qos.logback.core.joran.spi.EventPlayer.play(SourceFile:50)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(SourceFile:165)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(SourceFile:152)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(SourceFile:110)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(SourceFile:53)
at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(SourceFile:65)
at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(SourceFile:140)
at at org.slf4j.impl.StaticLoggerBinder.init(SourceFile:84)
at at org.slf4j.impl.StaticLoggerBinder.(SourceFile:55)
at at org.slf4j.LoggerFactory.bind(SourceFile:150)
at at org.slf4j.LoggerFactory.performInitialization(SourceFile:124)
at at org.slf4j.LoggerFactory.getILoggerFactory(SourceFile:412)
at at org.slf4j.LoggerFactory.getLogger(SourceFile:357)
at at org.slf4j.LoggerFactory.getLogger(SourceFile:383)
at at com.diffblue.cover.logging.b.a(SourceFile:66)
at at com.diffblue.cover.service.a.a.b.(SourceFile:26)
at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at at java.lang.reflect.Method.invoke(Method.java:498)
at at com.diffblue.cover.launcher.Launcher.invokeMainMethod(Launcher.java:116)
at at com.diffblue.cover.launcher.Launcher.main(Launcher.java:72)
Caused by: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type com.diffblue.cover.logging.appender.CoverRollingFileAppender
at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(SourceFile:69)
at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(SourceFile:45)
at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(SourceFile:34)
at at ch.qos.logback.core.joran.action.AppenderAction.begin(SourceFile:52)
at … 25 common frames omitted
Caused by: java.lang.ClassNotFoundException: com.diffblue.cover.logging.appender.CoverRollingFileAppender
at at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at at com.diffblue.cover.launcher.FilteringClassLoader.findClass(FilteringClassLoader.java:53)
at at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at at com.diffblue.cover.launcher.FilteringClassLoader.loadClassBasedOnPolicy(FilteringClassLoader.java:75)
at at com.diffblue.cover.launcher.FilteringClassLoader.loadClass(FilteringClassLoader.java:61)
at at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(SourceFile:56)
at … 28 common frames omitted
13:06:47,906 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.diffblue] to DEBUG
13:06:47,906 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [com.diffblue] to false
13:06:47,906 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [server-logger] to Logger[com.diffblue]
13:06:47,907 |-ERROR in ch.qos.logback.core.joran.action.AppenderRefAction - Could not find an appender named [support-log-appender]. Did you define it below instead of above in the configuration file?
13:06:47,907 |-ERROR in ch.qos.logback.core.joran.action.AppenderRefAction - See Logback Error Codes for more details.
13:06:47,907 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to OFF
13:06:47,907 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
13:06:47,907 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@1b701da1 - Registering current configuration as safe fallback point
12:11:49.880 [INFO] [Creating] Failed service start-up with critical error: ServiceConnectionUnresponsiveException: Failed to communicate with analyzer: No response after PT5M
12:11:49.885 [INFO] [Reporting]
12:11:49.885 [INFO] [Reporting] Summary:
12:11:49.885 [INFO] [Reporting] --------
12:11:49.885 [INFO] [Reporting] Total: 5 methods
12:11:49.885 [INFO] [Reporting]
12:11:49.885 [INFO] [Reporting] No tests created for: 5 methods
12:11:50.141 [WARN] [Messaging] Failed to start up analysis service - Diffblue Cover uses an analysis service that performs the actual test case production.
Successfully starting up this service requires Cover to be able to start a process, to
set up a TCP server on localhost and to connect to the server set up by the analysis service;
the analysis service also needs to be able to set up a TCP server on localhost and to connect
the server started by Cover.
Diffblue Cover failed to start up the analysis service despite trying 3
times. The reasons for failure are summarized below:
Service startup timeout (3 times)
Diffblue Cover did not receive the "alive message" from the analyzer service after
waiting 5 minutes. If your machine is heavily loaded or very
slow, try reducing load before running Cover.
Please try the troubleshooting suggestions given above, if any.
See also https://diff.blue/E020. If the problem persists, contact
Diffblue Support and send the user log file that can be found in
C:\Users\MATHEU~1.SAN\AppData\Local\Temp\diffblue\log\user.log.
com.diffblue.cover.exception.environment.AnalysisServiceStartupException: Unable to start up analysis service
< … hidden frames … >
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)