Closed glassfishrobot closed 17 years ago
@glassfishrobot Commented cf126330 said: Users are reporting the same problem with Glassfish v2, build 20 21. I was able to reproduce it in appserv-tests/devtests/ejb/clientview/core, when turning -ea on in bin/appclient
@glassfishrobot Commented cf126330 said: More details including stacktrace are available at the forum topic: http://forums.java.net/jive/thread.jspa?threadID=19155&tstart=0
@glassfishrobot Commented robertdw said: FWIW, this happens with 9.0.1 as well.
@glassfishrobot Commented sherryshen said: Will this issue be fixed for 9.1?
In SQE test environment for 9.1pe_b25, assertions were enabled with adding
in AS domain.xml. A lot of EJB3.0 tests failed in this test environment. I checked the inherit test suite, in which has AssertionError is shown in server.log during deployment, e.g.
Any suggestion how to further look at if the AssertionError in EJB 3.0 inherit test suite? Thanks for the help!
Sherry
PS: My test ear file and source code are in /home/sherrys/public_html/tests/ejb/b25/inherit
To reproduce the issue, set jdbc resource, deploy ejb30-inheritApp.ear and then see error in server.log
[#|2006-11-20T15:31:22.950-0800|WARNING|sun-appserver-ee9.1|
javax.enterprise.system.stream.err|_ThreadID=20;_ThreadName=
httpWorkerThread-4848-2;
_RequestID=f81449b7-d017-44ee-94b9-61ea225c872a;|
java.lang.AssertionError
at
com.sun.corba.ee.impl.codegen.ASMSetupVisitor.preVariable(Unknown Source)
at
com.sun.corba.ee.impl.codegen.TreeWalker.visitVariable(Unknown Source)
at com.sun.corba.ee.impl.codegen.VariableImpl.accept(Unknown Source)
at
com.sun.corba.ee.impl.codegen.TreeWalker.visitDefinitionStatement(Unknown
Source)
at
com.sun.corba.ee.impl.codegen.DefinitionStatement.accept(Unknown Source)
at
com.sun.corba.ee.impl.codegen.TreeWalker.visitBlockStatement(Unknown Source)
at com.sun.corba.ee.impl.codegen.BlockStatement.accept(Unknown
Source)
at
com.sun.corba.ee.impl.codegen.TreeWalker.visitTryStatement(Unknown Source)
at com.sun.corba.ee.impl.codegen.TryStatement.accept(Unknown Source)
at
com.sun.corba.ee.impl.codegen.TreeWalker.visitBlockStatement(Unknown Source)
at com.sun.corba.ee.impl.codegen.BlockStatement.accept(Unknown
Source)
at
com.sun.corba.ee.impl.codegen.TreeWalker.visitMethodGenerator(Unknown
Source)
at com.sun.corba.ee.impl.codegen.MethodGenerator.accept(Unknown
Source)
at
com.sun.corba.ee.impl.codegen.TreeWalker.visitClassGenerator(Unknown Source)
at com.sun.corba.ee.impl.codegen.ClassGenerator.accept(Unknown
Source)
at com.sun.corba.ee.impl.codegen.ASMUtil.generate(Unknown Source)
at
com.sun.corba.ee.impl.codegen.CodeGenerator.generateBytecode(Unknown Source)
at com.sun.corba.ee.spi.codegen.Wrapper._generate(Unknown Source)
at com.sun.ejb.EJBUtils$2.run(EJBUtils.java:507)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.ejb.EJBUtils.generateAndLoad(EJBUtils.java:504)
at
com.sun.ejb.EJBUtils.loadGeneratedRemoteBusinessClasses(EJBUtils.java:419)
at
com.sun.ejb.containers.BaseContainer.
| #] |
[#|2006-11-20T15:31:22.977-0800|WARNING|sun-appserver-ee9.1|javax.enterprise.system.tools.admin|_ThreadID=20;_ThreadName=httpWorkerThread-4848-2;_RequestID=f81449b7-d017-44ee-94b9-61ea225c872a;|ADM5603:Event listener error [null]|#]
[#|2006-11-20T15:31:23.806-0800|INFO|sun-appserver-ee9.1|javax.enterprise.system.tools.admin|_ThreadID=18;_ThreadName=httpWorkerThread-4848-0;/data/AS91B25P/domains/domain1/generated/xml/j2ee-apps/ejb30-inheritApp/ejb30-inheritAppClient.jar;|ADM1040:Client-jar location:[/data/AS91B25P/domains/domain1/generated/xml/j2ee-apps/ejb30-inheritApp/ejb30-inheritAppClient.jar]|#]
@glassfishrobot Commented gfbugbridge said:
@glassfishrobot Commented kcavanaugh said: The fix is trivial. I thought I fixed it previously, but apparently not, so I'll try again.
@glassfishrobot Commented kcavanaugh said: Fixed in GFv2 b40.
@glassfishrobot Commented Was assigned to kcavanaugh
@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH-611
@glassfishrobot Commented Reported by kcavanaugh
@glassfishrobot Commented Marked as fixed on Thursday, March 22nd 2007, 3:26:13 am
One of the components of the ORB code in glassfish is a dynamic ByteCode generation library (codegen) that provides a java API for generating classes at runtime, using ASM to generate the actual class files. The class
com.sun.corba.ee.impl.codegen.ASMSetupVisitor
contains the method preVariable, which causes an assertion failure when assertions are enabled. This is due to a small coding error in the method: the last case in a switch statement is missing a break statement, so the last case falls through to the an
assert false ;
statement, causing the error when assertions are enabled. The fix is simple: add the missing break statement.
Environment
Operating System: All Platform: All
Affected Versions
[9.1pe]