OpenEJB
  1. OpenEJB
  2. OPENEJB-1300

Possible Windows jvm bug results in "java.lang.ClassCastException: org.apache.xbean.recipe.ObjectRecipe cannot be cast to ...."

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1, 3.1.1, 3.1.2
    • Fix Version/s: 3.1.3
    • Component/s: container system
    • Labels:
      None

      Description

      This was only reported recently but could have potentially affected other releases and may be related to specific windows JVM versions:

      ERROR - Application could not be deployed: classpath.ear
      org.apache.openejb.OpenEJBException: Creating application failed: classpath.ear: Error deploying 'CalculatorImpl'. Exception: class java.lang.ClassCastException: org.apache.xbean.recipe.ObjectRecipe cannot be cast to org.apache.openejb.util.Pool$Builder: org.apache.xbean.recipe.ObjectRecipe cannot be cast to org.apache.openejb.util.Pool$Builder
      at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:670)
      at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:448)
      at org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:366)
      at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:278)
      at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:125)
      at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:60)
      at org.apache.openejb.OpenEJB.init(OpenEJB.java:271)
      at org.apache.openejb.OpenEJB.init(OpenEJB.java:250)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)
      at org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:71)
      at org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:53)
      at org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:42)
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
      at javax.naming.InitialContext.init(InitialContext.java:223)
      at javax.naming.InitialContext.<init>(InitialContext.java:197)
      at org.superbiz.calculator.CalculatorTest.setUp(CalculatorTest.java:35)
      at junit.framework.TestCase.runBare(TestCase.java:128)
      at junit.framework.TestResult$1.protect(TestResult.java:110)
      at junit.framework.TestResult.runProtected(TestResult.java:128)
      at junit.framework.TestResult.run(TestResult.java:113)
      at junit.framework.TestCase.run(TestCase.java:120)
      at junit.framework.TestSuite.runTest(TestSuite.java:228)
      at junit.framework.TestSuite.run(TestSuite.java:223)
      at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
      at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1005)
      Caused by: org.apache.openejb.OpenEJBException: Error deploying 'CalculatorImpl'. Exception: class java.lang.ClassCastException: org.apache.xbean.recipe.ObjectRecipe cannot be cast to org.apache.openejb.util.Pool$Builder: org.apache.xbean.recipe.ObjectRecipe cannot be cast to org.apache.openejb.util.Pool$Builder
      at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:598)
      ... 38 more
      Caused by: java.lang.ClassCastException: org.apache.xbean.recipe.ObjectRecipe cannot be cast to org.apache.openejb.util.Pool$Builder
      at org.apache.openejb.core.stateless.StatelessInstanceManager.deploy(StatelessInstanceManager.java:415)
      at org.apache.openejb.core.stateless.StatelessContainer.deploy(StatelessContainer.java:114)
      at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:595)
      ... 38 more

        Activity

          People

          • Assignee:
            David Blevins
            Reporter:
            David Blevins
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development