Projects onedev server Issues #971
#971  Unexpected exception adding Trigger to buildspec in editor
Released
Jerome St-Louis opened 1 month ago

Selecting any Job Trigger in Params & Triggers causes an "OOPS! There Is An Error" :

Jerome St-Louis commented 1 month ago

org.apache.wicket.WicketRuntimeException: Method onRequest of interface org.apache.wicket.behavior.IBehaviorListener targeted at io.onedev.server.web.editable.polymorphic.PolymorphicPropertyEditor$4@23d3c1fd on component [DropDownChoice [Component id = typeSelector]] threw an exception
at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:268)
at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)
at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:248)
at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234)
at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:917)
at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:274)
at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:231)
at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:302)
at org.apache.wicket.protocol.ws.AbstractUpgradeFilter.processRequestCycle(AbstractUpgradeFilter.java:70)
at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:203)
at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at io.onedev.server.web.DefaultWicketServlet.service(DefaultWicketServlet.java:43)
at io.onedev.server.web.DefaultWicketServlet$$EnhancerByGuice$$156928217.GUICE$TRAMPOLINE()
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:74)
at io.onedev.server.persistence.SessionInterceptor$1.call(SessionInterceptor.java:23)
at io.onedev.server.persistence.DefaultSessionManager.call(DefaultSessionManager.java:85)
at io.onedev.server.persistence.SessionInterceptor.invoke(SessionInterceptor.java:18)
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75)
at com.google.inject.internal.InterceptorStackCallback.invoke(InterceptorStackCallback.java:55)
at io.onedev.server.web.DefaultWicketServlet$$EnhancerByGuice$$156928217.service()
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1626)
at com.google.inject.servlet.DefaultFilterPipeline.dispatch(DefaultFilterPipeline.java:47)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:133)
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
at io.onedev.server.git.GoGetFilter.doFilter(GoGetFilter.java:87)
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
at io.onedev.server.git.GitLfsFilter.doFilter(GitLfsFilter.java:431)
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
at io.onedev.server.git.GitFilter.doFilter(GitFilter.java:336)
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:154)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:154)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:458)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:373)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:370)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:154)
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
at io.onedev.server.util.jetty.DisableTraceFilter.doFilter(DisableTraceFilter.java:28)
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:763)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.Server.handle(Server.java:516)
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:386)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
at java.base/java.lang.Thread.run(Thread.java:1589)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:119)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
... 87 more
Caused by: BUG! exception in phase 'semantic analysis' in source unit 'Script_4e2e6f9ae64a7cc728a5d0663f81488e.groovy' Unsupported class file major version 63
at org.codehaus.groovy.control.CompilationUnit$ISourceUnitOperation.doPhaseOperation(CompilationUnit.java:905)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:627)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:389)
at groovy.lang.GroovyClassLoader.lambda$parseClass$3(GroovyClassLoader.java:332)
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:330)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:314)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:257)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
at io.onedev.server.util.GroovyUtils.compile(GroovyUtils.java:35)
at io.onedev.server.util.GroovyUtils.evalScript(GroovyUtils.java:106)
at io.onedev.server.model.support.inputspec.InputSpec.defineClass(InputSpec.java:259)
at io.onedev.server.buildspec.param.ParamUtils.defineBeanClass(ParamUtils.java:164)
at io.onedev.server.web.editable.buildspec.param.supply.ParamListEditPanel.getDefaultParamBean(ParamListEditPanel.java:122)
at io.onedev.server.web.editable.buildspec.param.supply.ParamListEditPanel.onInitialize(ParamListEditPanel.java:248)
at org.apache.wicket.Component.fireInitialize(Component.java:878)
at org.apache.wicket.MarkupContainer.internalInitialize(MarkupContainer.java:1071)
at org.apache.wicket.MarkupContainer.addedComponent(MarkupContainer.java:1048)
at org.apache.wicket.MarkupContainer.add(MarkupContainer.java:242)
at io.onedev.server.web.editable.BeanEditor$1.onInitialize(BeanEditor.java:165)
at org.apache.wicket.Component.fireInitialize(Component.java:878)
at org.apache.wicket.MarkupContainer$3.component(MarkupContainer.java:1077)
at org.apache.wicket.MarkupContainer$3.component(MarkupContainer.java:1073)
at org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:144)
at org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:162)
at org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:123)
at org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:192)
at org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:984)
at org.apache.wicket.MarkupContainer.internalInitialize(MarkupContainer.java:1072)
at org.apache.wicket.MarkupContainer.addedComponent(MarkupContainer.java:1048)
at org.apache.wicket.MarkupContainer.add(MarkupContainer.java:242)
at io.onedev.server.web.editable.BeanEditor.onInitialize(BeanEditor.java:257)
at org.apache.wicket.Component.fireInitialize(Component.java:878)
at org.apache.wicket.MarkupContainer.internalInitialize(MarkupContainer.java:1071)
at org.apache.wicket.MarkupContainer.addedComponent(MarkupContainer.java:1048)
at org.apache.wicket.MarkupContainer.replace(MarkupContainer.java:856)
at io.onedev.server.web.editable.polymorphic.PolymorphicPropertyEditor$2.setObject(PolymorphicPropertyEditor.java:145)
at io.onedev.server.web.editable.polymorphic.PolymorphicPropertyEditor$2.setObject(PolymorphicPropertyEditor.java:103)
at org.apache.wicket.Component.setDefaultModelObject(Component.java:3127)
at org.apache.wicket.markup.html.form.FormComponent.setModelObject(FormComponent.java:1629)
at org.apache.wicket.markup.html.form.FormComponent.updateModel(FormComponent.java:1147)
at org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior.onEvent(AjaxFormComponentUpdatingBehavior.java:153)
at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:155)
at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:601)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
... 89 more
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 63
at groovyjarjarasm.asm.ClassReader.(ClassReader.java:199)
at groovyjarjarasm.asm.ClassReader.(ClassReader.java:180)
at groovyjarjarasm.asm.ClassReader.(ClassReader.java:166)
at groovyjarjarasm.asm.ClassReader.(ClassReader.java:287)
at org.codehaus.groovy.ast.decompiled.AsmDecompiler.parseClass(AsmDecompiler.java:81)
at org.codehaus.groovy.control.ClassNodeResolver.findDecompiled(ClassNodeResolver.java:251)
at org.codehaus.groovy.control.ClassNodeResolver.tryAsLoaderClassOrScript(ClassNodeResolver.java:189)
at org.codehaus.groovy.control.ClassNodeResolver.findClassNode(ClassNodeResolver.java:169)
at org.codehaus.groovy.control.ClassNodeResolver.resolveName(ClassNodeResolver.java:125)
at org.codehaus.groovy.control.ResolveVisitor.resolveToOuter(ResolveVisitor.java:869)
at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:506)
at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:468)
at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:338)
at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1466)
at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:262)
at org.codehaus.groovy.control.CompilationUnit.lambda$new$16(CompilationUnit.java:738)
at org.codehaus.groovy.control.CompilationUnit$ISourceUnitOperation.doPhaseOperation(CompilationUnit.java:901)
... 134 more

Robin Shen commented 1 month ago

Looks like you are using JDK 19. Please switch to use a LTS version (11, 17 etc) instead

Jerome St-Louis commented 1 month ago

Thank you. The bare metal instructions only say "Java 11 or higher", perhaps that should be clarified?

It is rather difficult and tricky to install older versions of packages on rolling releases distros like Arch Linux.

Confirming that the problem (and other more severe problems like a 500 creating a new issue) is gone with JDK 11 instead of JDK 19.

Unfortunately it seems that Artix Linux is missing an option to install version 17, 19 is what installs with 'jdk-openjdk', but https://packages.artixlinux.org/details/jdk-openjdk says it should be 17... and jdk17-openjdk is not found).

Robin Shen commented 1 month ago

Hmm... Will investigate to see if Java 19 support can be added.

OneDev changed state to 'Closed' 1 month ago
Previous Value Current Value
Open
Closed
OneDev commented 1 month ago

State changed as code fixing the issue is committed

OneDev changed state to 'Released' 1 month ago
Previous Value Current Value
Closed
Released
OneDev commented 1 month ago

State changed as build #3088 (7.7.9) is successful

Robin Shen commented 1 month ago

Build #3088 (7.7.9) supports Java 19 now.

Jerome St-Louis commented 1 month ago

@robin Awesome, thank you very much. The OneDev support response is just as fast and impressive as the software performance ;)

issue 1 of 1
Type
Bug
Priority
Major
Assignee
Seen Builds
Issue Votes (0)
Watchers (3)
Reference
issue onedev/server#971
Please wait...
Page is in error, reload to recover