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

FISH-394 Upgrade ASM Opcodes #5526

Merged
merged 3 commits into from
Jan 12, 2022
Merged

FISH-394 Upgrade ASM Opcodes #5526

merged 3 commits into from
Jan 12, 2022

Conversation

kalinchan
Copy link
Member

Description

When running an embedded EJB container via a testing framework, the EJBContainer.createEJBContainer method will fail with the following stack trace:
java.lang.UnsupportedOperationException: Module requires ASM6 at org.objectweb.asm.ClassVisitor.visitModule(ClassVisitor.java:145) at org.objectweb.asm.ClassReader.readModuleAttributes(ClassReader.java:758) at org.objectweb.asm.ClassReader.accept(ClassReader.java:557) at org.objectweb.asm.ClassReader.accept(ClassReader.java:401) at org.glassfish.deployment.common.GenericAnnotationDetector.scanArchive(GenericAnnotationDetector.java:146) at org.glassfish.deployment.common.GenericAnnotationDetector.hasAnnotationInArchive(GenericAnnotationDetector.java:96) at org.glassfish.ejb.embedded.EJBContainerProviderImpl.getRequestedEJBModuleOrLibrary(EJBContainerProviderImpl.java:338) at org.glassfish.ejb.embedded.EJBContainerProviderImpl.addModule(EJBContainerProviderImpl.java:383) at org.glassfish.ejb.embedded.EJBContainerProviderImpl.addModules(EJBContainerProviderImpl.java:286) at org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer(EJBContainerProviderImpl.java:132) at javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:103) at javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:78)

Important Info

Blockers

n/a

Testing

New tests

n/a

Testing Performed

built the reproducer with these changes in Payara.

Testing Environment

Apache Maven 3.6.3
Ubuntu 20.04
Build reproducer on openjdk version "11.0.11" 2021-04-20 LTS

Documentation

n/a

Notes for Reviewers

With this, the aforementioned error is fixed, the actual reproducer still has failures, as for whether that is an issue with the reproducer or Payara, I'm not sure. I believe it would be a separate issue if Payara is the cause.

@kalinchan
Copy link
Member Author

jenkins test please

Copy link
Member

@Pandrex247 Pandrex247 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved because these changes are fine, but...

With this, the aforementioned error is fixed, the actual reproducer still has failures, as for whether that is an issue with the reproducer or Payara, I'm not sure. I believe it would be a separate issue if Payara is the cause.

See comment on Jira - we need to confirm one way or the other if the EJBContainer is broken. At this point in time I'm against splitting this up into separate issues

Copy link
Contributor

@breakponchito breakponchito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kalinchan
Copy link
Member Author

jenkins test please

@kalinchan kalinchan merged commit 309141b into payara:master Jan 12, 2022
JamesHillyard pushed a commit to JamesHillyard/Payara that referenced this pull request Jan 24, 2022
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.

payara-embedded-all: javax.ejb.embeddable.EJBContainer.createEJBContainer() not working/FISH-394
3 participants