@rzorzorzo I am facing issue with java 22 & yajsw 13.12, groovy scripts are giving class version errors; And the applciation is working perfectly in console mode. The below error is thrown only in service/daemon mode.
Exception stacktrace:
Caused by: BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 66
at org.codehaus.groovy.control.CompilationUnit$ISourceUnitOperation.doPhaseOperation(CompilationUnit.java:901)
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:692)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:666)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:373)
at groovy.lang.GroovyClassLoader.lambda$parseClass$2(GroovyClassLoader.java:316)
at org.codehaus.groovy.runtime.memoize.StampedCommonCache.compute(StampedCommonCache.java:163)
at org.codehaus.groovy.runtime.memoize.StampedCommonCache.getAndPut(StampedCommonCache.java:154)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:314)
at groovy.lang.GroovyShell.parseClass(GroovyShell.java:572)
at groovy.lang.GroovyShell.parse(GroovyShell.java:585)
at groovy.lang.GroovyShell.parse(GroovyShell.java:597)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:459)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:495)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:469)
at org.rzo.yajsw.config.groovy.GInterpolator.evaluate(GInterpolator.java:170)
at org.rzo.yajsw.config.groovy.GInterpolator.interpolate(GInterpolator.java:82)
at org.apache.commons.configuration2.AbstractConfiguration.interpolate(AbstractConfiguration.java:625)
at org.apache.commons.configuration2.CompositeConfiguration.appendListProperty(CompositeConfiguration.java:484)
at org.apache.commons.configuration2.CompositeConfiguration.getList(CompositeConfiguration.java:322)
at org.apache.commons.configuration2.AbstractConfiguration.getList(AbstractConfiguration.java:1200)
at org.rzo.yajsw.wrapper.WrappedService.getCommand(WrappedService.java:431)
at org.rzo.yajsw.wrapper.WrappedService.init(WrappedService.java:162)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
./TEST.sh run-daemon
TEST_HOME path was not set, defaulting to current directory: /apps/TEST-1.0/TEST-server-LSBx64
/apps/TEST-1.0/TEST-server-LSBx64/config/bin/queryDaemon.sh
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment (build 22.0.2+9-70)
OpenJDK 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment (build 22.0.2+9-70)
OpenJDK 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment (build 22.0.2+9-70)
OpenJDK 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment (build 22.0.2+9-70)
OpenJDK 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.rzo.yajsw.boot.WrapperExeBooter.main(WrapperExeBooter.java:49)
Caused by: BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 66
at org.codehaus.groovy.control.CompilationUnit$ISourceUnitOperation.doPhaseOperation(CompilationUnit.java:901)
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:692)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:666)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:373)
at groovy.lang.GroovyClassLoader.lambda$parseClass$2(GroovyClassLoader.java:316)
at org.codehaus.groovy.runtime.memoize.StampedCommonCache.compute(StampedCommonCache.java:163)
at org.codehaus.groovy.runtime.memoize.StampedCommonCache.getAndPut(StampedCommonCache.java:154)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:314)
at groovy.lang.GroovyShell.parseClass(GroovyShell.java:572)
at groovy.lang.GroovyShell.parse(GroovyShell.java:585)
at groovy.lang.GroovyShell.parse(GroovyShell.java:597)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:459)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:495)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:469)
at org.rzo.yajsw.config.groovy.GInterpolator.evaluate(GInterpolator.java:170)
at org.rzo.yajsw.config.groovy.GInterpolator.interpolate(GInterpolator.java:82)
at org.apache.commons.configuration2.AbstractConfiguration.interpolate(AbstractConfiguration.java:625)
at org.apache.commons.configuration2.CompositeConfiguration.appendListProperty(CompositeConfiguration.java:484)
at org.apache.commons.configuration2.CompositeConfiguration.getList(CompositeConfiguration.java:322)
at org.apache.commons.configuration2.AbstractConfiguration.getList(AbstractConfiguration.java:1200)
at org.rzo.yajsw.wrapper.WrappedService.getCommand(WrappedService.java:431)
at org.rzo.yajsw.wrapper.WrappedService.init(WrappedService.java:162)
at org.rzo.yajsw.WrapperExe.getService(WrapperExe.java:100)
at org.rzo.yajsw.WrapperExe.doState(WrapperExe.java:594)
at org.rzo.yajsw.WrapperExe.executeCommand(WrapperExe.java:179)
at org.rzo.yajsw.WrapperExe.main(WrapperExe.java:127)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
... 2 more
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 66
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:199)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:180)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:166)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:287)
at org.codehaus.groovy.ast.decompiled.AsmDecompiler.parseClass(AsmDecompiler.java:83)
at org.codehaus.groovy.control.ClassNodeResolver.findDecompiled(ClassNodeResolver.java:255)
at org.codehaus.groovy.control.ClassNodeResolver.tryAsLoaderClassOrScript(ClassNodeResolver.java:193)
at org.codehaus.groovy.control.ClassNodeResolver.findClassNode(ClassNodeResolver.java:175)
at org.codehaus.groovy.control.ClassNodeResolver.resolveName(ClassNodeResolver.java:129)
at org.codehaus.groovy.control.ResolveVisitor.resolveToOuter(ResolveVisitor.java:772)
at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:413)
at org.codehaus.groovy.control.ResolveVisitor.resolveFromDefaultImports(ResolveVisitor.java:567)
at org.codehaus.groovy.control.ResolveVisitor.resolveFromDefaultImports(ResolveVisitor.java:531)
at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:412)
at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:374)
at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:342)
at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:333)
at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:329)
at org.codehaus.groovy.control.ResolveVisitor.transformConstructorCallExpression(ResolveVisitor.java:1125)
at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:803)
at org.codehaus.groovy.control.ResolveVisitor.transformMethodCallExpression(ResolveVisitor.java:1141)
at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:799)
at org.codehaus.groovy.ast.expr.BooleanExpression.transformExpression(BooleanExpression.java:46)
at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:808)
at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitIfElse(ClassCodeExpressionTransformer.java:140)
at org.codehaus.groovy.ast.stmt.IfStatement.visit(IfStatement.java:55)
at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:86)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:168)
at org.codehaus.groovy.control.ResolveVisitor.visitBlockStatement(ResolveVisitor.java:1388)
at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:72)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClassCodeContainer(ClassCodeVisitorSupport.java:142)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitConstructorOrMethod(ClassCodeVisitorSupport.java:115)
at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitConstructorOrMethod(ClassCodeExpressionTransformer.java:87)
at org.codehaus.groovy.control.ResolveVisitor.visitConstructorOrMethod(ResolveVisitor.java:297)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitMethod(ClassCodeVisitorSupport.java:110)
at org.codehaus.groovy.control.ResolveVisitor.visitMethod(ResolveVisitor.java:268)
at org.codehaus.groovy.ast.ClassNode.visitMethods(ClassNode.java:1129)
at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:1122)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisitorSupport.java:52)
at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1334)
at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:258)
at org.codehaus.groovy.control.CompilationUnit.lambda$addPhaseOperations$4(CompilationUnit.java:218)
at org.codehaus.groovy.control.CompilationUnit$ISourceUnitOperation.doPhaseOperation(CompilationUnit.java:897)
... 28 more
TEST Server is starting up. . .
++++++++++ YAJSW SET ENV ++++++++++
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment (build 22.0.2+9-70)
OpenJDK 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
wrapper home : /apps/TEST-1.0/TEST-server-LSBx64/config
configuration: /apps/TEST-1.0/TEST-server-LSBx64/config/conf/wrapper.conf
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment (build 22.0.2+9-70)
OpenJDK 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
---------- YAJSW SET ENV ----------
++++++++++ YAJSW SET ENV ++++++++++
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment (build 22.0.2+9-70)
OpenJDK 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
wrapper home : /apps/TEST-1.0/TEST-server-LSBx64/config
configuration: /apps/TEST-1.0/TEST-server-LSBx64/config/conf/wrapper.conf
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment (build 22.0.2+9-70)
OpenJDK 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
---------- YAJSW SET ENV ----------
YAJSW: yajsw-stable-13.12
OS : Linux/3.0.76-0.11-default/amd64
JVM : Oracle Corporation/22.0.2//apps/TEST-1.0/TEST-server-LSBx64/config/jre/64
Looking in classpath from org.rzo.yajsw.boot.WrapperClassLoader@3e3abc88 for /com/sun/jna/linux-x86-64/libjnidispatch.so
Found library resource at jar:file:/apps/TEST-1.0/TEST-server-LSBx64/config/./lib/core/jna/jna-5.12.1.jar!/com/sun/jna/linux-x86-64/libjnidispatch.so
Extracting library to /apps/TEST-1.0/TEST-server-LSBx64/config/tmp/jna11544585813650194183.tmp
Trying /apps/TEST-1.0/TEST-server-LSBx64/config/tmp/jna11544585813650194183.tmp
Found jnidispatch at /apps/TEST-1.0/TEST-server-LSBx64/config/tmp/jna11544585813650194183.tmp
setCliProperties []
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.rzo.yajsw.boot.WrapperExeBooter.main(WrapperExeBooter.java:49)
Caused by: BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 66
at org.codehaus.groovy.control.CompilationUnit$ISourceUnitOperation.doPhaseOperation(CompilationUnit.java:901)
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:692)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:666)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:373)
at groovy.lang.GroovyClassLoader.lambda$parseClass$2(GroovyClassLoader.java:316)
at org.codehaus.groovy.runtime.memoize.StampedCommonCache.compute(StampedCommonCache.java:163)
at org.codehaus.groovy.runtime.memoize.StampedCommonCache.getAndPut(StampedCommonCache.java:154)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:314)
at groovy.lang.GroovyShell.parseClass(GroovyShell.java:572)
at groovy.lang.GroovyShell.parse(GroovyShell.java:585)
at groovy.lang.GroovyShell.parse(GroovyShell.java:597)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:459)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:495)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:469)
at org.rzo.yajsw.config.groovy.GInterpolator.evaluate(GInterpolator.java:170)
at org.rzo.yajsw.config.groovy.GInterpolator.interpolate(GInterpolator.java:82)
at org.apache.commons.configuration2.AbstractConfiguration.interpolate(AbstractConfiguration.java:625)
at org.apache.commons.configuration2.CompositeConfiguration.appendListProperty(CompositeConfiguration.java:484)
at org.apache.commons.configuration2.CompositeConfiguration.getList(CompositeConfiguration.java:322)
at org.apache.commons.configuration2.AbstractConfiguration.getList(AbstractConfiguration.java:1200)
at org.rzo.yajsw.wrapper.WrappedService.getCommand(WrappedService.java:431)
at org.rzo.yajsw.wrapper.WrappedService.init(WrappedService.java:162)
at org.rzo.yajsw.WrapperExe.getService(WrapperExe.java:100)
at org.rzo.yajsw.WrapperExe.doInstall(WrapperExe.java:369)
at org.rzo.yajsw.WrapperExe.executeCommand(WrapperExe.java:169)
at org.rzo.yajsw.WrapperExe.main(WrapperExe.java:127)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
... 2 more
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 66
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:199)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:180)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:166)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:287)
at org.codehaus.groovy.ast.decompiled.AsmDecompiler.parseClass(AsmDecompiler.java:83)
at org.codehaus.groovy.control.ClassNodeResolver.findDecompiled(ClassNodeResolver.java:255)
at org.codehaus.groovy.control.ClassNodeResolver.tryAsLoaderClassOrScript(ClassNodeResolver.java:193)
at org.codehaus.groovy.control.ClassNodeResolver.findClassNode(ClassNodeResolver.java:175)
at org.codehaus.groovy.control.ClassNodeResolver.resolveName(ClassNodeResolver.java:129)
at org.codehaus.groovy.control.ResolveVisitor.resolveToOuter(ResolveVisitor.java:772)
at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:413)
at org.codehaus.groovy.control.ResolveVisitor.resolveFromDefaultImports(ResolveVisitor.java:567)
at org.codehaus.groovy.control.ResolveVisitor.resolveFromDefaultImports(ResolveVisitor.java:531)
at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:412)
at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:374)
at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:342)
at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:333)
at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:329)
at org.codehaus.groovy.control.ResolveVisitor.transformConstructorCallExpression(ResolveVisitor.java:1125)
at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:803)
at org.codehaus.groovy.control.ResolveVisitor.transformMethodCallExpression(ResolveVisitor.java:1141)
at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:799)
at org.codehaus.groovy.ast.expr.BooleanExpression.transformExpression(BooleanExpression.java:46)
at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:808)
at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitIfElse(ClassCodeExpressionTransformer.java:140)
at org.codehaus.groovy.ast.stmt.IfStatement.visit(IfStatement.java:55)
at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:86)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:168)
at org.codehaus.groovy.control.ResolveVisitor.visitBlockStatement(ResolveVisitor.java:1388)
at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:72)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClassCodeContainer(ClassCodeVisitorSupport.java:142)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitConstructorOrMethod(ClassCodeVisitorSupport.java:115)
at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitConstructorOrMethod(ClassCodeExpressionTransformer.java:87)
at org.codehaus.groovy.control.ResolveVisitor.visitConstructorOrMethod(ResolveVisitor.java:297)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitMethod(ClassCodeVisitorSupport.java:110)
at org.codehaus.groovy.control.ResolveVisitor.visitMethod(ResolveVisitor.java:268)
at org.codehaus.groovy.ast.ClassNode.visitMethods(ClassNode.java:1129)
at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:1122)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisitorSupport.java:52)
at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1334)
at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:258)
at org.codehaus.groovy.control.CompilationUnit.lambda$addPhaseOperations$4(CompilationUnit.java:218)
at org.codehaus.groovy.control.CompilationUnit$ISourceUnitOperation.doPhaseOperation(CompilationUnit.java:897)
... 28 more
++++++++++ YAJSW SET ENV ++++++++++
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment (build 22.0.2+9-70)
OpenJDK 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
wrapper home : /apps/TEST-1.0/TEST-server-LSBx64/config
configuration: /apps/TEST-1.0/TEST-server-LSBx64/config/conf/wrapper.conf
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment (build 22.0.2+9-70)
OpenJDK 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
---------- YAJSW SET ENV ----------
++++++++++ YAJSW SET ENV ++++++++++
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment (build 22.0.2+9-70)
OpenJDK 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
wrapper home : /apps/TEST-1.0/TEST-server-LSBx64/config</init></init></init></init></init></init></init></init>
thanks for the feedback.
there seems to be an issue with groovy 4 and java 22.
weird, i thought i tested the latest version with java 22.
in your case: according to your config you do not need groovy. simple interpolation is sufficient. so as a workaround go to lib/extended and just rename the folder groovy to for example groovyx. this will result in an error that groovy is missing, but the application should run as expected.
let me know if this helps.
-- Ron
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
@rzorzorzo I am facing issue with java 22 & yajsw 13.12, groovy scripts are giving class version errors; And the applciation is working perfectly in console mode. The below error is thrown only in service/daemon mode.
Exception stacktrace:
Caused by: BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 66
at org.codehaus.groovy.control.CompilationUnit$ISourceUnitOperation.doPhaseOperation(CompilationUnit.java:901)
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:692)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:666)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:373)
at groovy.lang.GroovyClassLoader.lambda$parseClass$2(GroovyClassLoader.java:316)
at org.codehaus.groovy.runtime.memoize.StampedCommonCache.compute(StampedCommonCache.java:163)
at org.codehaus.groovy.runtime.memoize.StampedCommonCache.getAndPut(StampedCommonCache.java:154)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:314)
at groovy.lang.GroovyShell.parseClass(GroovyShell.java:572)
at groovy.lang.GroovyShell.parse(GroovyShell.java:585)
at groovy.lang.GroovyShell.parse(GroovyShell.java:597)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:459)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:495)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:469)
at org.rzo.yajsw.config.groovy.GInterpolator.evaluate(GInterpolator.java:170)
at org.rzo.yajsw.config.groovy.GInterpolator.interpolate(GInterpolator.java:82)
at org.apache.commons.configuration2.AbstractConfiguration.interpolate(AbstractConfiguration.java:625)
at org.apache.commons.configuration2.CompositeConfiguration.appendListProperty(CompositeConfiguration.java:484)
at org.apache.commons.configuration2.CompositeConfiguration.getList(CompositeConfiguration.java:322)
at org.apache.commons.configuration2.AbstractConfiguration.getList(AbstractConfiguration.java:1200)
at org.rzo.yajsw.wrapper.WrappedService.getCommand(WrappedService.java:431)
at org.rzo.yajsw.wrapper.WrappedService.init(WrappedService.java:162)
hello,
pls upload your configuration and the resulting log file.
remember to remove passwords or other private data from the files before uploading.
-- Ron
@rzorzorzo Thank you for responding and here is the configuration and error log. Please let us know any workaround.
And also now netty*4-1.104 also having vulnerabilities. Can we replace those jars with latest ??
WARNING - Do not modify any of the properties when an application
using this configuration file has been installed as a service or daemon.
Please uninstall the service before modifying this file. The
service must then be reinstalled.
**********
working directory
**********
wrapper.working.dir=${wrapper_home}
wrapper.tmp.path = ${jna_tmpdir}
**********
Wrapper Logging Properties
**********
Format of output for the console.
wrapper.console.format=PM
Log Level for console output.
wrapper.console.loglevel=
Log file to use for wrapper output logging.
wrapper.logfile=${wrapper_home}/../log/server.log
Format of output for the log file.
wrapper.logfile.format=LPTM
Log Level for log file output.
wrapper.logfile.loglevel=INFO
Maximum size that the log file will be allowed to grow to before
the log is rolled. Size is specified in bytes. The default value
of 0, disables log rolling by size. May abbreviate with the 'k' (kB) or
'm' (mB) suffix. For example: 10m = 10 megabytes.
If wrapper.logfile does not contain the string ROLLNUM it will be automatically added as suffix of the file name
wrapper.logfile.maxsize=10m
Maximum number of rolled log files which will be allowed before old
files are deleted. The default value of 0 implies no limit.
wrapper.logfile.maxfiles=10
Controls the roll mode of the log file
possible values: DATE, WRAPPER, JVM
If DATE is set wrapper.logfile should contain the string YYYYMMDD
If DATE is set and wrapper.logfile.maxsize is set the log file will be rolled by size and date
If DATE is set and wrapper.logfile.maxfiles older files rolled by size or date are deleted
wrapper.logfile.rollmode=DATE
Title to use when running as a console
wrapper.console.title=test
**********
Wrapper Windows Service and Posix Daemon Properties
**********
Name of the service
wrapper.ntservice.name=test-service
Display name of the service
wrapper.ntservice.displayname=test-service
Description of the service
wrapper.ntservice.description=Test Administration
Mode in which the service is installed. AUTO_START or DEMAND_START
wrapper.ntservice.starttype=AUTO_START
**********
Wrapper Posix Daemon Properties
**********
Directory in which to create and execute daemon init scripts. Default: /etc/init.d
wrapper.daemon.dir =
Directory where to store the wrapper pid file. Default: /var/run
wrapper.daemon.pid.dir =
Directory in which to create K... and S... links.
Default: <wrapper.daemon.dir>/rcX.d</wrapper.daemon.dir>
For Ubuntu set to /etc/rcX.d
The following grooy script should set it correctly for most distros
wrapper.daemon.run_level_dir=${if (new File('/etc/rc0.d').exists()) return '/etc/rcX.d' else return '/etc/init.d/rcX.d'}
Setting the runlevels and priorities for automatic startup and stop of the daemon.
Similar syntax as the update_rc.d command
Default: equivalent to default of update_rc.d
wrapper.daemon.update_rc = start 20 2 3 4 . start 30 5 . stop 80 0 1 6
**********
Wrapper System Tray Properties
**********
enable system tray
wrapper.tray = true
TCP/IP port. If none is defined multicast discovery is used to find the port
Set the port in case multicast is not possible.
wrapper.tray.port = 15002
**********
Exit Code Properties
Restart on non zero exit code
**********
wrapper.on_exit.0=SHUTDOWN
wrapper.on_exit.default=RESTART
**********
Posix Signal Properties
Restart on non 9 signal code
**********
wrapper.on_signal.9=SHUTDOWN
wrapper.on_signal.default=SHUTDOWN
**********
Trigger actions on console output
**********
On Exception show message in system tray
wrapper.filter.trigger.0=Exception
wrapper.filter.script.0=${wrapper_home}/scripts/trayMessage.gv
wrapper.filter.script.0.args=Exception
**********
Wrapper timeouts
**********
Number of seconds to allow between the time that the Wrapper starts the application
and the application logon to the wrapper.
Default: 30 seconds
wrapper.startup.timeout = 160
Number of seconds to allow between the time that the Wrapper asks the application to shutdown and the time that the JVM shuts down.
Default: 30 seconds
wrapper.shutdown.timeout = 60
Number of seconds the wrapper waits for a ping message from the java application.
If no heart beat is received within a timeout the wrapper assumes that the application
is non responsive and will restart it.
Default: 30 seconds
wrapper.ping.timeout =
**********
Application main class or native executable
**********
wrapper.java.app.jar = ${wrapper_home}/lib/test.jar
wrapper.java.command = ${wrapper_home}//jre//bin//java
wrapper.java.classpath.1 = .
wrapper.app.parameter.1 = --spring.config.additional-location=${wrapper_home}/../test.properties
--------------------------config END----------------------
------------------------Error Log Start-----------------------------
./TEST.sh run-daemon
TEST_HOME path was not set, defaulting to current directory: /apps/TEST-1.0/TEST-server-LSBx64
/apps/TEST-1.0/TEST-server-LSBx64/config/bin/queryDaemon.sh
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment (build 22.0.2+9-70)
OpenJDK 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment (build 22.0.2+9-70)
OpenJDK 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment (build 22.0.2+9-70)
OpenJDK 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment (build 22.0.2+9-70)
OpenJDK 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.rzo.yajsw.boot.WrapperExeBooter.main(WrapperExeBooter.java:49)
Caused by: BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 66
at org.codehaus.groovy.control.CompilationUnit$ISourceUnitOperation.doPhaseOperation(CompilationUnit.java:901)
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:692)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:666)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:373)
at groovy.lang.GroovyClassLoader.lambda$parseClass$2(GroovyClassLoader.java:316)
at org.codehaus.groovy.runtime.memoize.StampedCommonCache.compute(StampedCommonCache.java:163)
at org.codehaus.groovy.runtime.memoize.StampedCommonCache.getAndPut(StampedCommonCache.java:154)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:314)
at groovy.lang.GroovyShell.parseClass(GroovyShell.java:572)
at groovy.lang.GroovyShell.parse(GroovyShell.java:585)
at groovy.lang.GroovyShell.parse(GroovyShell.java:597)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:459)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:495)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:469)
at org.rzo.yajsw.config.groovy.GInterpolator.evaluate(GInterpolator.java:170)
at org.rzo.yajsw.config.groovy.GInterpolator.interpolate(GInterpolator.java:82)
at org.apache.commons.configuration2.AbstractConfiguration.interpolate(AbstractConfiguration.java:625)
at org.apache.commons.configuration2.CompositeConfiguration.appendListProperty(CompositeConfiguration.java:484)
at org.apache.commons.configuration2.CompositeConfiguration.getList(CompositeConfiguration.java:322)
at org.apache.commons.configuration2.AbstractConfiguration.getList(AbstractConfiguration.java:1200)
at org.rzo.yajsw.wrapper.WrappedService.getCommand(WrappedService.java:431)
at org.rzo.yajsw.wrapper.WrappedService.init(WrappedService.java:162)
at org.rzo.yajsw.WrapperExe.getService(WrapperExe.java:100)
at org.rzo.yajsw.WrapperExe.doState(WrapperExe.java:594)
at org.rzo.yajsw.WrapperExe.executeCommand(WrapperExe.java:179)
at org.rzo.yajsw.WrapperExe.main(WrapperExe.java:127)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
... 2 more
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 66
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:199)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:180)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:166)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:287)
at org.codehaus.groovy.ast.decompiled.AsmDecompiler.parseClass(AsmDecompiler.java:83)
at org.codehaus.groovy.control.ClassNodeResolver.findDecompiled(ClassNodeResolver.java:255)
at org.codehaus.groovy.control.ClassNodeResolver.tryAsLoaderClassOrScript(ClassNodeResolver.java:193)
at org.codehaus.groovy.control.ClassNodeResolver.findClassNode(ClassNodeResolver.java:175)
at org.codehaus.groovy.control.ClassNodeResolver.resolveName(ClassNodeResolver.java:129)
at org.codehaus.groovy.control.ResolveVisitor.resolveToOuter(ResolveVisitor.java:772)
at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:413)
at org.codehaus.groovy.control.ResolveVisitor.resolveFromDefaultImports(ResolveVisitor.java:567)
at org.codehaus.groovy.control.ResolveVisitor.resolveFromDefaultImports(ResolveVisitor.java:531)
at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:412)
at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:374)
at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:342)
at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:333)
at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:329)
at org.codehaus.groovy.control.ResolveVisitor.transformConstructorCallExpression(ResolveVisitor.java:1125)
at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:803)
at org.codehaus.groovy.control.ResolveVisitor.transformMethodCallExpression(ResolveVisitor.java:1141)
at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:799)
at org.codehaus.groovy.ast.expr.BooleanExpression.transformExpression(BooleanExpression.java:46)
at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:808)
at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitIfElse(ClassCodeExpressionTransformer.java:140)
at org.codehaus.groovy.ast.stmt.IfStatement.visit(IfStatement.java:55)
at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:86)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:168)
at org.codehaus.groovy.control.ResolveVisitor.visitBlockStatement(ResolveVisitor.java:1388)
at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:72)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClassCodeContainer(ClassCodeVisitorSupport.java:142)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitConstructorOrMethod(ClassCodeVisitorSupport.java:115)
at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitConstructorOrMethod(ClassCodeExpressionTransformer.java:87)
at org.codehaus.groovy.control.ResolveVisitor.visitConstructorOrMethod(ResolveVisitor.java:297)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitMethod(ClassCodeVisitorSupport.java:110)
at org.codehaus.groovy.control.ResolveVisitor.visitMethod(ResolveVisitor.java:268)
at org.codehaus.groovy.ast.ClassNode.visitMethods(ClassNode.java:1129)
at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:1122)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisitorSupport.java:52)
at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1334)
at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:258)
at org.codehaus.groovy.control.CompilationUnit.lambda$addPhaseOperations$4(CompilationUnit.java:218)
at org.codehaus.groovy.control.CompilationUnit$ISourceUnitOperation.doPhaseOperation(CompilationUnit.java:897)
... 28 more
TEST Server is starting up. . .
++++++++++ YAJSW SET ENV ++++++++++
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment (build 22.0.2+9-70)
OpenJDK 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
wrapper home : /apps/TEST-1.0/TEST-server-LSBx64/config
configuration: /apps/TEST-1.0/TEST-server-LSBx64/config/conf/wrapper.conf
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment (build 22.0.2+9-70)
OpenJDK 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
---------- YAJSW SET ENV ----------
++++++++++ YAJSW SET ENV ++++++++++
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment (build 22.0.2+9-70)
OpenJDK 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
wrapper home : /apps/TEST-1.0/TEST-server-LSBx64/config
configuration: /apps/TEST-1.0/TEST-server-LSBx64/config/conf/wrapper.conf
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment (build 22.0.2+9-70)
OpenJDK 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
---------- YAJSW SET ENV ----------
YAJSW: yajsw-stable-13.12
OS : Linux/3.0.76-0.11-default/amd64
JVM : Oracle Corporation/22.0.2//apps/TEST-1.0/TEST-server-LSBx64/config/jre/64
Looking in classpath from org.rzo.yajsw.boot.WrapperClassLoader@3e3abc88 for /com/sun/jna/linux-x86-64/libjnidispatch.so
Found library resource at jar:file:/apps/TEST-1.0/TEST-server-LSBx64/config/./lib/core/jna/jna-5.12.1.jar!/com/sun/jna/linux-x86-64/libjnidispatch.so
Extracting library to /apps/TEST-1.0/TEST-server-LSBx64/config/tmp/jna11544585813650194183.tmp
Trying /apps/TEST-1.0/TEST-server-LSBx64/config/tmp/jna11544585813650194183.tmp
Found jnidispatch at /apps/TEST-1.0/TEST-server-LSBx64/config/tmp/jna11544585813650194183.tmp
setCliProperties []
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.rzo.yajsw.boot.WrapperExeBooter.main(WrapperExeBooter.java:49)
Caused by: BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 66
at org.codehaus.groovy.control.CompilationUnit$ISourceUnitOperation.doPhaseOperation(CompilationUnit.java:901)
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:692)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:666)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:373)
at groovy.lang.GroovyClassLoader.lambda$parseClass$2(GroovyClassLoader.java:316)
at org.codehaus.groovy.runtime.memoize.StampedCommonCache.compute(StampedCommonCache.java:163)
at org.codehaus.groovy.runtime.memoize.StampedCommonCache.getAndPut(StampedCommonCache.java:154)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:314)
at groovy.lang.GroovyShell.parseClass(GroovyShell.java:572)
at groovy.lang.GroovyShell.parse(GroovyShell.java:585)
at groovy.lang.GroovyShell.parse(GroovyShell.java:597)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:459)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:495)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:469)
at org.rzo.yajsw.config.groovy.GInterpolator.evaluate(GInterpolator.java:170)
at org.rzo.yajsw.config.groovy.GInterpolator.interpolate(GInterpolator.java:82)
at org.apache.commons.configuration2.AbstractConfiguration.interpolate(AbstractConfiguration.java:625)
at org.apache.commons.configuration2.CompositeConfiguration.appendListProperty(CompositeConfiguration.java:484)
at org.apache.commons.configuration2.CompositeConfiguration.getList(CompositeConfiguration.java:322)
at org.apache.commons.configuration2.AbstractConfiguration.getList(AbstractConfiguration.java:1200)
at org.rzo.yajsw.wrapper.WrappedService.getCommand(WrappedService.java:431)
at org.rzo.yajsw.wrapper.WrappedService.init(WrappedService.java:162)
at org.rzo.yajsw.WrapperExe.getService(WrapperExe.java:100)
at org.rzo.yajsw.WrapperExe.doInstall(WrapperExe.java:369)
at org.rzo.yajsw.WrapperExe.executeCommand(WrapperExe.java:169)
at org.rzo.yajsw.WrapperExe.main(WrapperExe.java:127)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
... 2 more
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 66
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:199)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:180)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:166)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:287)
at org.codehaus.groovy.ast.decompiled.AsmDecompiler.parseClass(AsmDecompiler.java:83)
at org.codehaus.groovy.control.ClassNodeResolver.findDecompiled(ClassNodeResolver.java:255)
at org.codehaus.groovy.control.ClassNodeResolver.tryAsLoaderClassOrScript(ClassNodeResolver.java:193)
at org.codehaus.groovy.control.ClassNodeResolver.findClassNode(ClassNodeResolver.java:175)
at org.codehaus.groovy.control.ClassNodeResolver.resolveName(ClassNodeResolver.java:129)
at org.codehaus.groovy.control.ResolveVisitor.resolveToOuter(ResolveVisitor.java:772)
at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:413)
at org.codehaus.groovy.control.ResolveVisitor.resolveFromDefaultImports(ResolveVisitor.java:567)
at org.codehaus.groovy.control.ResolveVisitor.resolveFromDefaultImports(ResolveVisitor.java:531)
at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:412)
at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:374)
at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:342)
at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:333)
at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:329)
at org.codehaus.groovy.control.ResolveVisitor.transformConstructorCallExpression(ResolveVisitor.java:1125)
at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:803)
at org.codehaus.groovy.control.ResolveVisitor.transformMethodCallExpression(ResolveVisitor.java:1141)
at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:799)
at org.codehaus.groovy.ast.expr.BooleanExpression.transformExpression(BooleanExpression.java:46)
at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:808)
at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitIfElse(ClassCodeExpressionTransformer.java:140)
at org.codehaus.groovy.ast.stmt.IfStatement.visit(IfStatement.java:55)
at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:86)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:168)
at org.codehaus.groovy.control.ResolveVisitor.visitBlockStatement(ResolveVisitor.java:1388)
at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:72)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClassCodeContainer(ClassCodeVisitorSupport.java:142)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitConstructorOrMethod(ClassCodeVisitorSupport.java:115)
at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitConstructorOrMethod(ClassCodeExpressionTransformer.java:87)
at org.codehaus.groovy.control.ResolveVisitor.visitConstructorOrMethod(ResolveVisitor.java:297)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitMethod(ClassCodeVisitorSupport.java:110)
at org.codehaus.groovy.control.ResolveVisitor.visitMethod(ResolveVisitor.java:268)
at org.codehaus.groovy.ast.ClassNode.visitMethods(ClassNode.java:1129)
at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:1122)
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisitorSupport.java:52)
at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1334)
at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:258)
at org.codehaus.groovy.control.CompilationUnit.lambda$addPhaseOperations$4(CompilationUnit.java:218)
at org.codehaus.groovy.control.CompilationUnit$ISourceUnitOperation.doPhaseOperation(CompilationUnit.java:897)
... 28 more
++++++++++ YAJSW SET ENV ++++++++++
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment (build 22.0.2+9-70)
OpenJDK 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
wrapper home : /apps/TEST-1.0/TEST-server-LSBx64/config
configuration: /apps/TEST-1.0/TEST-server-LSBx64/config/conf/wrapper.conf
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment (build 22.0.2+9-70)
OpenJDK 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
---------- YAJSW SET ENV ----------
++++++++++ YAJSW SET ENV ++++++++++
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment (build 22.0.2+9-70)
OpenJDK 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
wrapper home : /apps/TEST-1.0/TEST-server-LSBx64/config</init></init></init></init></init></init></init></init>
-----------------------------------Error Log end----------------------
thanks for the feedback.
there seems to be an issue with groovy 4 and java 22.
weird, i thought i tested the latest version with java 22.
in your case: according to your config you do not need groovy. simple interpolation is sufficient. so as a workaround go to lib/extended and just rename the folder groovy to for example groovyx. this will result in an error that groovy is missing, but the application should run as expected.
let me know if this helps.
-- Ron
Sure @rzorzorzo. I will try that workaround and let you know the result.
Again netty*4-1.104 has vulnerabilities. Shall i replace the jars to latest ? or it need testing altogether?
the netty vulnerabilities concern the http implementation, the jar of which is not included with yajsw.
so this is not critical.
an update will follow in the next release.
updating netty, or groovy is not that simple, as some classes are shadowed in yajsw:
https://sourceforge.net/p/yajsw/yajsw/ci/master/tree/src/yajsw/src/main/java/io/netty/
when updating jars one has to update the manifest file:
https://sourceforge.net/p/yajsw/yajsw/ci/master/tree/build/MANIFEST.MF
-- Ron
@rzorzorzo The workaroud is working and able to bring up the application as a service. Thank you