We have been trying to get Pipeline working on Jenkins 2.107 however it keeps coming up with an error that i have struggled to locate online. We have a Windows 2008 R2 server with Jenkins running as a service.
I have installed the pipeline plugin and set up the Hello World provided to test it. As soon s it starts to build it throws this error to the console.
Running in Durability level: MAX_SURVIVABILITY [BFA] Scanning build
for known causes... [BFA] No failure causes found [BFA] Done. 0s
java.lang.ClassNotFoundException:
org.kohsuke.groovy.sandbox.GroovyInterceptor at
jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1374)
at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1327)
at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1080)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) Caused:
java.lang.NoClassDefFoundError:
org/kohsuke/groovy/sandbox/GroovyInterceptor at
org.jenkinsci.plugins.workflow.cps.CpsGroovyShellFactory.makeClassLoader(CpsGroovyShellFactory.java:113)
at
org.jenkinsci.plugins.workflow.cps.CpsGroovyShellFactory.build(CpsGroovyShellFactory.java:119)
at
org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:556)
at
org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:520)
at
org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:319)
at
hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429) Finished: FAILURE
We are running Java 8 and i have set Jenkins to use Java 8 in the config file. I have researched this error but can't seem to find something similar.
We have another server which runs pipeline fine however the differences are that this is windows 2012 server and it is running an older version of Jenkins and Java. Other than the two differences all plugins and config match.
I had this error and resolved it by upgrading the Script Security plugin to version 1.44 (had 1.41).
Related
I came accross this issue when running a maven command from Jenkins. The application to be executed used WebView2. When I execute the command from the project location where Jenkins agent downloads my project, it runs successfully. However, when running from Jenkins I get the following error:
org.openqa.selenium.WebDriverException: unknown error: Microsoft Edge failed to start: crashed.
(chrome not reachable) The process started from msedge location C:\Users\xxx\xyz.exe is no longer running, so msedgedriver is assuming that msedge has crashed.). We use edge webdriver. I have tried all possible solutions without luck.
Tried creating a batch file and run the maven file from it using Jenkins but I am getting the same result.
I'm trying to build my automation framework using playwright with java, however I'm running into below issue when running the tests. Please advice!
Failed to install browsers
Error: Failed to download chromium v1000, caused by
Error: unable to get local issuer certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1530:34)
at TLSSocket.emit (node:events:390:28)
at TLSSocket._finishInit (node:_tls_wrap:944:8)
at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:725:12)
Exception in thread "main" java.lang.RuntimeException: Failed to create driver
at com.microsoft.playwright.impl.Driver.ensureDriverInstalled(Driver.java:61)
at com.microsoft.playwright.impl.PlaywrightImpl.create(PlaywrightImpl.java:40)
at com.microsoft.playwright.Playwright.create(Playwright.java:96)
at com.microsoft.playwright.Playwright.create(Playwright.java:100)
at Example.main(Example.java:5)
Caused by: java.lang.RuntimeException: Failed to install browsers, exit code: 1
at com.microsoft.playwright.impl.DriverJar.installBrowsers(DriverJar.java:76)
at com.microsoft.playwright.impl.DriverJar.initialize(DriverJar.java:48)
at com.microsoft.playwright.impl.Driver.ensureDriverInstalled(Driver.java:57)
... 4 more
I could solve it by disabling the download (as it was already installed with npx playwright install) by setting the env
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
IntelliJ IDE Run Configuration
It's not a Playwright or Maven problem. You can fix it yourself. If you want just to avoid the problem, not fixing it, you can follow this recommendation: https://community.claris.com/en/s/question/0D53w00005GuQXxCAN/nodejs-fmsapiclient-unable-to-verify-the-first-certificate-local-server
namely by setting the system variable to zero
I'm using Play framework with Java 1.7.
Last time deploy:
-----> Play! app detected
-----> Installing OpenJDK 1.7... done
-----> Building Play! application...
This time deploy:
-----> Play! app detected
/app/tmp/buildpacks/85dfc1d8f48aec0b42f03a59461dc516a918eb099c9e908767a7f42ddf326e12e48c6030ff4891e5c63f08e3b760ea09dee5bbfa4ca293b152d266406bfa29b3/bin/compile:
line 31: detect_java_version: command not found
-----> Installing OpenJDK .../app/tmp/buildpacks/85dfc1d8f48aec0b42f03a59461dc516a918eb099c9e908767a7f42ddf326e12e48c6030ff4891e5c63f08e3b760ea09dee5bbfa4ca293b152d266406bfa29b3/bin/compile:
line 34: jdk_overlay: command not found
-----> Building Play! application...
So after error log
OpenJDK 64-Bit Server VM warning: ignoring option UseSplitVerifier;
support was removed in 8.0
CompilerOracle: exclude jregex/Pretokenizer.next
Listening for transport dt_socket at address: 8000
08:52:08,455 INFO ~ Starting /tmp/build_bedf10ee7c8222565973235fe2454700
08:52:10,049 INFO ~ Precompiling ...
08:53:02,606 ERROR ~
#7e83895fc
Cannot start in PROD mode with errors
Oops: UnexpectedException
An unexpected error occured caused by exception UnexpectedException: While applying class
play.classloading.enhancers.LocalvariablesNamesEnhancer on
controllers.Application
play.exceptions.UnexpectedException: While applying play.CorePlugin#aecb35a on controllers.Application
at play.plugins.PluginCollection.enhance(PluginCollection.java:556)
at play.classloading.ApplicationClasses$ApplicationClass.enhance(ApplicationClasses.java:235)
at play.classloading.ApplicationClassloader.loadApplicationClass(ApplicationClassloader.java:167)
at play.classloading.ApplicationClassloader.getAllClasses(ApplicationClassloader.java:431)
at play.Play.preCompile(Play.java:600)
at play.Play.init(Play.java:304)
at play.server.Server.main(Server.java:162)
Caused by: play.exceptions.UnexpectedException: While applying class play.classloading.enhancers.LocalvariablesNamesEnhancer
on controllers.Application
at play.CorePlugin.enhance(CorePlugin.java:302)
at play.plugins.PluginCollection.enhance(PluginCollection.java:551)
... 6 more
Caused by: java.lang.RuntimeException: java.io.IOException: invalid constant type: 18
at javassist.CtClassType.getClassFile2(CtClassType.java:203)
at javassist.CtClassType.subtypeOf(CtClassType.java:303)
at javassist.bytecode.stackmap.TypeData$TypeName.update(TypeData.java:274)
at javassist.bytecode.stackmap.TypeData$TypeName.setType(TypeData.java:203)
at javassist.bytecode.stackmap.TypeData.setType(TypeData.java:46)
at javassist.bytecode.stackmap.Tracer.doInvokeIntfMethod(Tracer.java:828)
at ja
-----> Play! app detected
How to fix it?
First of all, please note that Heroku no longer supports Play 1.x. If you can, please consider upgrading your application to Play 2.x, which is still supported.
However, the issue you describe has now been fixed. A dependency of the now deprecated Play 1.x buildpack broke backwards compatibility. Redeploying your application should work without any work from your side.
I am using Postman alongside a JAR file that runs a REST service that holds some contacts. However when I try to run the JAR file by using: java -jar ContactListRESTService.jar in Powershell, I am seeing a bunch of errors that Apache Tomcat could not run. Postman also doesn't recognize the localhost.
Caused by: java.lang.IllegalStateException: Tomcat connector in failed state
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer.java:159)
Caused by: java.lang.IllegalStateException: Tomcat connector in failed state
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletCntainer.java:159) ~[spring-boot 1.3.7.RELEASE.jar!/:1.3.7.RELEASE]
I have tried uninstalling and reinstalling JAVA SE per some guidance from a mentor with no results.
If anyone can point me in the right direction please.
We are using Hudson to continuously build few projects, which executes sql files in database using a groovy script (Execute Groovy system script) as a post build action. The script (which uses enum) works fine most of the time, but throws following error on random basis:
FATAL: java/lang$Enum
java.lang.NoClassDefFoundError: java/lang$Enum
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getDeclaredMethods(Unknown Source)
at org.codehaus.groovy.reflection.CachedClass$3$1.run(CachedClass.java:84)
at java.security.AccessController.doPrivileged(Native Method)
at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:81)
at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:79)
at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46)
at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33)
at org.codehaus.groovy.reflection.CachedClass.getMethods(CachedClass.java:250)
at groovy.lang.MetaClassImpl.populateMethods(MetaClassImpl.java:334)
at groovy.lang.MetaClassImpl.fillMethodIndex(MetaClassImpl.java:284)
at groovy.lang.MetaClassImpl.initialize(MetaClassImpl.java:2904)
at org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:166)
at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:182)
at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.getMetaClass(MetaClassRegistryImpl.java:227)
at org.codehaus.groovy.runtime.InvokerHelper.getMetaClass(InvokerHelper.java:751)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallStaticSite(CallSiteArray.java:59)
...
...
All subsequent build fails with same error once we get this error. We fixed this once by defining JAVA_HOME environment variable (which got erased somehow). It worked for few days only to re-appear again. This time, we defined JAVA_HOME in Hudson configuration and it worked temporarily as the issue re-appeared after few days. We haven't set Groovy path in hudson configuration as we haven't installed groovy separately. Version details are:
Hudson = 3.3.3
Hudson Subversion Plug-in = 2.3.11
Hudson Groovy builder = 1.13-h-3
Groovy Support Plugin = 3.0.3
Windows = 2012
JRE = 1.8.0_111
What other options can we try to resolve the issue?
PS: We have tried Jenkins, but fall back to Hudson due to one issue/feature in Subversion plugin in Jenkins, which checkout the repository when workspace is locked, which we cannot afford.