Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-479

mockit.internal.startup.Startup.instrumentation causes test failures on Solaris and HP-UX

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Minor Minor
    • None
    • 1.1.0.Beta4
    • None
    • None

      Some test cases fail on Solaris and HP-UX with following exception:

      java.lang.AssertionError
      	at mockit.internal.startup.Startup.instrumentation(Startup.java:128)
      	at mockit.internal.startup.Startup.retransformClass(Startup.java:231)
      	at mockit.internal.state.CachedClassfiles.getClassfile(CachedClassfiles.java:95)
      	at mockit.internal.ClassFile.createReaderOrGetFromCache(ClassFile.java:60)
      	at mockit.internal.mockups.MockMethodCollector.collectMockMethods(MockMethodCollector.java:39)
      	at mockit.internal.mockups.MockClassSetup.<init>(MockClassSetup.java:38)
      	at mockit.MockUp.redefineMethods(MockUp.java:228)
      	at mockit.MockUp.<init>(MockUp.java:262)
          ...
      

      Full stack trace for e.g. org.wildfly.security.sasl.digest.CompatibilityClientTest.testBlankServerNonce:

      java.lang.AssertionError
      	at mockit.internal.startup.Startup.instrumentation(Startup.java:128)
      	at mockit.internal.startup.Startup.retransformClass(Startup.java:231)
      	at mockit.internal.state.CachedClassfiles.getClassfile(CachedClassfiles.java:95)
      	at mockit.internal.ClassFile.createReaderOrGetFromCache(ClassFile.java:60)
      	at mockit.internal.mockups.MockMethodCollector.collectMockMethods(MockMethodCollector.java:39)
      	at mockit.internal.mockups.MockClassSetup.<init>(MockClassSetup.java:38)
      	at mockit.MockUp.redefineMethods(MockUp.java:228)
      	at mockit.MockUp.redefineClassOrImplementInterface(MockUp.java:211)
      	at mockit.MockUp.<init>(MockUp.java:128)
      	at org.wildfly.security.sasl.digest.CompatibilityClientTest$1.<init>(CompatibilityClientTest.java:68)
      	at org.wildfly.security.sasl.digest.CompatibilityClientTest.mockNonce(CompatibilityClientTest.java:68)
      	at org.wildfly.security.sasl.digest.CompatibilityClientTest.testBlankServerNonce(CompatibilityClientTest.java:578)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
      

      This is probably only test issue. It can be similar issue as ELY-478

      Affected tests on both Solaris and HP-UX:
      org.wildfly.security.sasl.digest.CompatibilityClientTest
      org.wildfly.security.sasl.digest.CompatibilityServerTest
      org.wildfly.security.sasl.entity.EntityTest
      org.wildfly.security.sasl.gssapi.compatibility.BasicAuthTest
      org.wildfly.security.sasl.gssapi.compatibility.BasicConfidenceTest
      org.wildfly.security.sasl.gssapi.compatibility.BasicIntegrityTest
      org.wildfly.security.sasl.gssapi.compatibility.NoServerAuthTest
      org.wildfly.security.sasl.otp.OTPTest
      org.wildfly.security.sasl.scram.ScramClientCompatibilityTest
      org.wildfly.security.sasl.scram.ScramServerCompatibilityTest

      Affected test only on Solaris:
      org.wildfly.security.auth.realm.oauth2.OAuth2SecurityRealmTest

              Unassigned Unassigned
              olukas Ondrej Lukas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: