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

Bug Report: CDI deployment failure for 6.2025.2 #7201

Open
RInverid opened this issue Feb 19, 2025 · 6 comments · May be fixed by #7211
Open

Bug Report: CDI deployment failure for 6.2025.2 #7201

RInverid opened this issue Feb 19, 2025 · 6 comments · May be fixed by #7211
Assignees
Labels
Status: Open Issue has been triaged by the front-line engineers and is being worked on verification Type: Bug Label issue as a bug defect

Comments

@RInverid
Copy link

Brief Summary

deployment failure because some internal string is unexpectedly null:

org.glassfish.deployment.common.DeploymentException: CDI deployment failure:Cannot invoke "String.contains(java.lang.CharSequence)" because "beanArchiveId" is null -- Cannot invoke "String.contains(java.lang.CharSequence)" because "beanArchiveId" is null at org.jboss.weld.bootstrap.BeanDeployments.getFinalId(BeanDeployments.java:39) at org.jboss.weld.bootstrap.WeldStartup.startContainer(WeldStartup.java:189) at org.jboss.weld.bootstrap.WeldBootstrap.startContainer(WeldBootstrap.java:73) at org.glassfish.weld.WeldDeployer.startWeldBootstrap(WeldDeployer.java:578) at org.glassfish.weld.WeldDeployer.processApplicationLoaded(WeldDeployer.java:533) at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:422) at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:135) at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:344) at com.sun.enterprise.v3.server.ApplicationLifecycle.prepare(ApplicationLifecycle.java:580) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:570) at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:556) at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:552) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/javax.security.auth.Subject.doAs(Subject.java:376) at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:551) at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:582) at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:574) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/javax.security.auth.Subject.doAs(Subject.java:376) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:573) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1497) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1879) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1755) at com.sun.enterprise.admin.cli.embeddable.CommandExecutorImpl.executeCommand(CommandExecutorImpl.java:183) at com.sun.enterprise.admin.cli.embeddable.CommandExecutorImpl.run(CommandExecutorImpl.java:96) at fish.payara.boot.runtime.BootCommand.execute(BootCommand.java:69) at fish.payara.boot.runtime.BootCommands.executeCommands(BootCommands.java:166) at fish.payara.boot.runtime.BootCommands.executeCommands(BootCommands.java:160) at com.sun.enterprise.v3.bootstrap.BootCommandService.doBootCommands(BootCommandService.java:81) at com.sun.enterprise.v3.bootstrap.BootCommandService.postConstruct(BootCommandService.java:91) at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:303) at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:351) at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:466) at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:281) at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:65) at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2103) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:93) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:67) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1213) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1144) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$UpOneLevel.run(CurrentTaskFuture.java:762) 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:840)

Looks like this might've been introduced by #7032 @lprimak

Expected Outcome

My app deploying normally, as it would on 6.2025.1

Current Outcome

Deployment failure

Reproducer

TBD, will work on creating one

Operating System

Debian Linux 12

JDK Version

OpenJDK 17

Payara Distribution

Payara Server Full Profile

@RInverid RInverid added Status: Open Issue has been triaged by the front-line engineers and is being worked on verification Type: Bug Label issue as a bug defect labels Feb 19, 2025
@lprimak
Copy link
Contributor

lprimak commented Feb 19, 2025

Do you have a reproducer?
Waiting for a reproducer...

@RInverid
Copy link
Author

RInverid commented Feb 20, 2025

No I am not able to build a small reproducer, I tried recreating the structure of my project but I have no idea what the issue could be, so not really able to produce any results

@lprimak
Copy link
Contributor

lprimak commented Feb 20, 2025

I can try running your app if that's at all possible. Is it using containers at all?

@lprimak
Copy link
Contributor

lprimak commented Feb 20, 2025

Is your app a WAR or EAR? Can you post a "file tree" from the WAR file?

@RInverid
Copy link
Author

Hi, sorry for forgetting to respond. Yeah, sharing the ear isn't an option sadly, but I can share the file tree for the ear. I'll be anonymising some stuff, is there anything specifically you're looking for?

@lprimak lprimak linked a pull request Feb 22, 2025 that will close this issue
@lprimak
Copy link
Contributor

lprimak commented Feb 22, 2025

Can you try the fix in #7211 please?
I am just guessing here since there is no reproducer, but hoping for the best

You can try either building the branch / PR or get the pre-built here:
https://nexus.hope.nyc.ny.us/repository/maven-releases/fish/payara/distributions/payara/6.2025.2-1/payara-6.2025.2-1.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Open Issue has been triaged by the front-line engineers and is being worked on verification Type: Bug Label issue as a bug defect
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants