users@glassfish.java.net

How to handle AssertionError at ASMSetupVisitor.java:522

From: <glassfish_at_javadesktop.org>
Date: Mon, 09 Jul 2007 14:29:15 PDT

Hi,
    When I run my unit test from stand alone client (testng), I run into the following assertion error.

    I googled around, and found it is a bug that has fixed and closed in Jan 2007.
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6511798

    I tried to the later version v2 beta build 41, and still not be able to get around this.

Can some one provides me with some pointer on this.

Thanks

Chester


   [testng] java.lang.AssertionError
   [testng] at com.sun.corba.ee.impl.codegen.ASMSetupVisitor.preVariable(ASMSetupVisitor.java:522)
   [testng] at com.sun.corba.ee.impl.codegen.TreeWalker.visitVariable(TreeWalker.java:523)
   [testng] at com.sun.corba.ee.impl.codegen.VariableImpl.accept(VariableImpl.java:80)
   [testng] at com.sun.corba.ee.impl.codegen.TreeWalker.visitDefinitionStatement(TreeWalker.java:342)
   [testng] at com.sun.corba.ee.impl.codegen.DefinitionStatement.accept(DefinitionStatement.java:32)
   [testng] at com.sun.corba.ee.impl.codegen.TreeWalker.visitBlockStatement(TreeWalker.java:293)
   [testng] at com.sun.corba.ee.impl.codegen.BlockStatement.accept(BlockStatement.java:186)
   [testng] at com.sun.corba.ee.impl.codegen.TreeWalker.visitTryStatement(TreeWalker.java:463)
   [testng] at com.sun.corba.ee.impl.codegen.TryStatement.accept(TryStatement.java:77)
   [testng] at com.sun.corba.ee.impl.codegen.TreeWalker.visitBlockStatement(TreeWalker.java:293)
   [testng] at com.sun.corba.ee.impl.codegen.BlockStatement.accept(BlockStatement.java:186)
   [testng] at com.sun.corba.ee.impl.codegen.TreeWalker.visitMethodGenerator(TreeWalker.java:211)
   [testng] at com.sun.corba.ee.impl.codegen.MethodGenerator.accept(MethodGenerator.java:87)
   [testng] at com.sun.corba.ee.impl.codegen.TreeWalker.visitClassGenerator(TreeWalker.java:164)
   [testng] at com.sun.corba.ee.impl.codegen.ClassGenerator.accept(ClassGenerator.java:171)
   [testng] at com.sun.corba.ee.impl.codegen.ASMUtil.generate(ASMUtil.java:91)
   [testng] at com.sun.corba.ee.impl.codegen.CodeGenerator.generateBytecode(CodeGenerator.java:56)
   [testng] at com.sun.corba.ee.spi.codegen.Wrapper._generate(Wrapper.java:932)
   [testng] at com.sun.ejb.EJBUtils$2.run(EJBUtils.java:507)
   [testng] at java.security.AccessController.doPrivileged(Native Method)
   [testng] at com.sun.ejb.EJBUtils.generateAndLoad(EJBUtils.java:504)
   [testng] at com.sun.ejb.EJBUtils.loadGeneratedRemoteBusinessClasses(EJBUtils.java:419)
   [testng] at com.sun.ejb.EJBUtils.loadGeneratedRemoteBusinessClasses(EJBUtils.java:369)
   [testng] at com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:334)
   [testng] at com.sun.ejb.containers.RemoteBusinessObjectFactory.getObjectInstance(RemoteBusinessObjectFactory.java:61)
   [testng] at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
   [testng] at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:314)
   [testng] at javax.naming.InitialContext.lookup(InitialContext.java:351)
   [testng] at com.ascentmedia.ServiceLocator.getService(ServiceLocator.java:38)
   [testng] at com.ascentmedia.ServiceLocator.getService(ServiceLocator.java:47)
[Message sent by forum member 'chesterxgchen123' (chesterxgchen123)]

http://forums.java.net/jive/thread.jspa?messageID=225787