Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump weld from 6.0.0.Beta4 to 6.0.0.CR1 #25218

Draft
wants to merge 1 commit into
base: 8.0
Choose a base branch
from

Conversation

pzygielo
Copy link
Contributor

@pzygielo pzygielo commented Nov 19, 2024

@arjantijms
Copy link
Contributor

Thank you so much! :)

@pzygielo
Copy link
Contributor Author

CR1 needs IP Team assistance still (https://gitlab.eclipse.org/eclipsefdn/emo-team/iplab/-/issues/17290).
But it is newer.

@pzygielo
Copy link
Contributor Author

pzygielo commented Nov 19, 2024

#1 Failed with

  • ant-tests / cdi_all / cdi_all.client.no-interface-local-view-proxy-serializable (from cdi_all)

@pzygielo
Copy link
Contributor Author

Next run fails with the same test.

@dmatej
Copy link
Contributor

dmatej commented Nov 20, 2024

Next run fails with the same test.

[java] Unexpected return code: 500

And nothing in server.log. I can run it with full logging if you need ...?

@pzygielo
Copy link
Contributor Author

I can run it with full logging if you need ...?

Ooo, yes, that would be great! The stack trace currently present in server.log seems to be not related to 500 reported.

I have not inspected scripts how to run those tests locally. But if this is a case of series of some commands - I'd be happy to learn how to do it myself.

@dmatej
Copy link
Contributor

dmatej commented Nov 28, 2024

vim nucleus/admin/template/src/main/resources/config/logging.properties 

Delete all logger settings and leave just these set to FINEST:

.level=FINEST
systemRootLogger.level=FINEST

Then I open another shell and run tail (Kubuntu's Konsole is very good in searching):

tail -n 10000000 -F ./target/glassfish8/glassfish/domains/domain1/logs/server.log

Then I executed this (you can try to eliminate other tests in build.xml too if you need to repeat it thousand times)
Note: the rm-generated.sh is not committed, I use it to reset/checkout generated files.

mvn clean install -T4C -Pfastest && ./rm-generated.sh && ./runtests.sh cdi_all

@dmatej
Copy link
Contributor

dmatej commented Nov 28, 2024

Seems there is some breaking change in Weld - here are some stacktraces this test generates in server.log. Basically it cannot load some generated class:

[2024-11-28T13:09:56.513589+01:00] [GF 8.0.0-SNAPSHOT] [FINER] [] [org.glassfish.web.loader.WebappClassLoader] [tid: _ThreadID=57 _ThreadName=http-listener-1(2)] [levelValue: 400] [[
  Rethrowing exception for org.jboss.weld.bean.proxy.util.SerializableClientProxy
java.lang.ClassNotFoundException: org.jboss.weld.bean.proxy.util.SerializableClientProxy
        at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
        at org.glassfish.common.util.GlassfishUrlClassLoader.findClass(GlassfishUrlClassLoader.java:93)
        at org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:495)
        at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:787)
        at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:719)
        at test.beans.nonmock.TestBean$Proxy$_$$_WeldClientProxy.writeReplace(Unknown Source)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at java.base/java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:1162)
        at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1152)
        at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:358)
        at test.servlet.NoInterfaceProxySerializableEJBTestServlet.doGet(NoInterfaceProxySerializableEJBTestServlet.java:58)
        at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:633)
        at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1316)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:200)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:563)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:504)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:71)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:121)
        at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:294)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:187)
        at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:429)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:143)
        at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:174)
        at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:153)
        at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:196)
        at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:88)
        at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:246)
        at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:178)
        at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:118)
        at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:96)
        at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:51)
        at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:510)
        at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:82)
        at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:83)
        at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:101)
        at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:535)
        at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:515)
        at java.base/java.lang.Thread.run(Thread.java:1583)
]]

org.jboss.weld.bean.proxy.util.SerializableClientProxy
test.ejb.__EJB31_Generated__HelloNoInterfaceLocalViewSlessEJB__Intf____Bean__
test.ejb.__EJB31_Generated__HelloNoInterfaceLocalViewSfulEJB__Intf____Bean__
test.beans.nonmock.TestBean$Proxy$_$$_WeldClientProxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants