Giter Site home page Giter Site logo

arquillian-ejb-injection-bug-reproducer's Introduction

The Injection of an EJB bean into an arquillian test is not working with glassfish 7.0.4 and higher. It is working at least for glassfish 7.0.3. If the injected EJB bean contains a method with a signature of long callLong() the following Exection is thrown during test execution:

Caused by: java.lang.VerifyError: Operand stack overflow
Exception Details:
  Location:
    org/example/__EJB31_Generated__TestEjbBean__Intf____Bean__.callLong()J @4: invokeinterface
  Reason:
    Exceeded max stack size.
  Current Frame:
    bci: @4
    flags: { }
    locals: { 'org/example/__EJB31_Generated__TestEjbBean__Intf____Bean__' }
    stack: { long }
  Bytecode:
    0000000: 2ab4 0014 b900 2101 00ad               

	at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3373)
	at java.base/java.lang.Class.getConstructor0(Class.java:3578)
	at java.base/java.lang.Class.getConstructor(Class.java:2271)
	at com.sun.ejb.containers.BaseContainer.instantiateOptionalEJBLocalBusinessObjectImpl(BaseContainer.java:3347)
	at com.sun.ejb.containers.StatelessSessionContainer.initializeHome(StatelessSessionContainer.java:191)
	at com.sun.ejb.containers.StatelessContainerFactory.createContainer(StatelessContainerFactory.java:39)
	at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:192)
	... 67 more

This project is a minimal reproducer. The environment variable GLASSFISH_HOME has to be set to the glassfish installation you want to test against.

arquillian-ejb-injection-bug-reproducer's People

Watchers

Michael avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.