Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-55303

[PCT] check script-security latest (jenkins-test-harness - Using JDK internal classes )

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      script-security 1.55

      Description

      When trying to validate script-security plugin with PCT for Java 11, I got test failures with the following output

      java.lang.reflect.InaccessibleObjectException: Unable to make field private static final java.lang.module.Configuration java.lang.module.Configuration.EMPTY_CONFIGURATION accessible: module java.base does not "opens java.lang.module" to unnamed module @5ebd56e9 
          at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:340) 
          at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:280) 
          at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:176) 
          at java.base/java.lang.reflect.Field.setAccessible(Field.java:170) 
          at org.netbeans.insane.impl.InsaneEngine.processClass(InsaneEngine.java:238) 
          at org.netbeans.insane.impl.InsaneEngine.process(InsaneEngine.java:199) 
          at org.netbeans.insane.impl.InsaneEngine.traverse(InsaneEngine.java:97) 
          at org.netbeans.insane.impl.LiveEngine.traceImpl(LiveEngine.java:188) 
          at org.netbeans.insane.impl.LiveEngine.trace(LiveEngine.java:166) 
          at org.jvnet.hudson.test.MemoryAssert.fromRoots(MemoryAssert.java:292) 
          at org.jvnet.hudson.test.MemoryAssert.assertGC(MemoryAssert.java:178) 
          at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovyMemoryLeakTest.loaderReleased(GroovyMemoryLeakTest.java:62) 
          at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
          at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
          at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
          at java.base/java.lang.reflect.Method.invoke(Method.java:566) 
          at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
          at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) 
          at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
          at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
          at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
          at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
          at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:548)
          at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
          at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
          at java.base/java.lang.Thread.run(Thread.java:834)
      

      Acceptance criteria

      • re-run PCT to see if still current
      • if not, \o/. If still an issue, either fix it if very simple, or file a clearer JIRA with what needs fixing

        Attachments

          Issue Links

            Activity

            alecharp Adrien Lecharpentier created issue -
            alecharp Adrien Lecharpentier made changes -
            Field Original Value New Value
            Epic Link JENKINS-51805 [ 191255 ]
            dnusbaum Devin Nusbaum made changes -
            Description When trying to validate {{script-security}} plugin with PCT for Java 11, I got test failures with the following output
            {noformat}
            java.lang.reflect.InaccessibleObjectException: Unable to make field private static final java.lang.module.Configuration java.lang.module.Configuration.EMPTY_CONFIGURATION accessible: module java.base does not "opens java.lang.module" to unnamed module @5ebd56e9java.lang.reflect.InaccessibleObjectException: Unable to make field private static final java.lang.module.Configuration java.lang.module.Configuration.EMPTY_CONFIGURATION accessible: module java.base does not "opens java.lang.module" to unnamed module @5ebd56e9 at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:340) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:280) at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:176) at java.base/java.lang.reflect.Field.setAccessible(Field.java:170) at org.netbeans.insane.impl.InsaneEngine.processClass(InsaneEngine.java:238) at org.netbeans.insane.impl.InsaneEngine.process(InsaneEngine.java:199) at org.netbeans.insane.impl.InsaneEngine.traverse(InsaneEngine.java:97) at org.netbeans.insane.impl.LiveEngine.traceImpl(LiveEngine.java:188) at org.netbeans.insane.impl.LiveEngine.trace(LiveEngine.java:166) at org.jvnet.hudson.test.MemoryAssert.fromRoots(MemoryAssert.java:292) at org.jvnet.hudson.test.MemoryAssert.assertGC(MemoryAssert.java:178) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovyMemoryLeakTest.loaderReleased(GroovyMemoryLeakTest.java:62) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48) at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:548) at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298) at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.lang.Thread.run(Thread.java:834) {noformat}
            When trying to validate {{script-security}} plugin with PCT for Java 11, I got test failures with the following output
            When trying to validate {{script-security}} plugin with PCT for Java 11, I got test failures with the following output
            {noformat}
            java.lang.reflect.InaccessibleObjectException: Unable to make field private static final java.lang.module.Configuration java.lang.module.Configuration.EMPTY_CONFIGURATION accessible: module java.base does not "opens java.lang.module" to unnamed module @5ebd56e9
                at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:340)
                at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:280)
                at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:176)
                at java.base/java.lang.reflect.Field.setAccessible(Field.java:170)
                at org.netbeans.insane.impl.InsaneEngine.processClass(InsaneEngine.java:238)
                at org.netbeans.insane.impl.InsaneEngine.process(InsaneEngine.java:199)
                at org.netbeans.insane.impl.InsaneEngine.traverse(InsaneEngine.java:97)
                at org.netbeans.insane.impl.LiveEngine.traceImpl(LiveEngine.java:188)
                at org.netbeans.insane.impl.LiveEngine.trace(LiveEngine.java:166)
                at org.jvnet.hudson.test.MemoryAssert.fromRoots(MemoryAssert.java:292)
                at org.jvnet.hudson.test.MemoryAssert.assertGC(MemoryAssert.java:178)
                at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovyMemoryLeakTest.loaderReleased(GroovyMemoryLeakTest.java:62)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.base/java.lang.reflect.Method.invoke(Method.java:566)
                at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
                at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
                at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
                at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
                at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
                at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
                at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:548)
                at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
                at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
                at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
                at java.base/java.lang.Thread.run(Thread.java:834)
            {noformat}
            alecharp Adrien Lecharpentier made changes -
            Component/s jenkins-test-harness [ 21462 ]
            Component/s script-security-plugin [ 18520 ]
            dnusbaum Devin Nusbaum made changes -
            Description When trying to validate {{script-security}} plugin with PCT for Java 11, I got test failures with the following output
            When trying to validate {{script-security}} plugin with PCT for Java 11, I got test failures with the following output
            {noformat}
            java.lang.reflect.InaccessibleObjectException: Unable to make field private static final java.lang.module.Configuration java.lang.module.Configuration.EMPTY_CONFIGURATION accessible: module java.base does not "opens java.lang.module" to unnamed module @5ebd56e9
                at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:340)
                at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:280)
                at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:176)
                at java.base/java.lang.reflect.Field.setAccessible(Field.java:170)
                at org.netbeans.insane.impl.InsaneEngine.processClass(InsaneEngine.java:238)
                at org.netbeans.insane.impl.InsaneEngine.process(InsaneEngine.java:199)
                at org.netbeans.insane.impl.InsaneEngine.traverse(InsaneEngine.java:97)
                at org.netbeans.insane.impl.LiveEngine.traceImpl(LiveEngine.java:188)
                at org.netbeans.insane.impl.LiveEngine.trace(LiveEngine.java:166)
                at org.jvnet.hudson.test.MemoryAssert.fromRoots(MemoryAssert.java:292)
                at org.jvnet.hudson.test.MemoryAssert.assertGC(MemoryAssert.java:178)
                at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovyMemoryLeakTest.loaderReleased(GroovyMemoryLeakTest.java:62)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.base/java.lang.reflect.Method.invoke(Method.java:566)
                at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
                at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
                at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
                at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
                at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
                at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
                at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:548)
                at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
                at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
                at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
                at java.base/java.lang.Thread.run(Thread.java:834)
            {noformat}
            When trying to validate {{script-security}} plugin with PCT for Java 11, I got test failures with the following output
            {noformat}
            java.lang.reflect.InaccessibleObjectException: Unable to make field private static final java.lang.module.Configuration java.lang.module.Configuration.EMPTY_CONFIGURATION accessible: module java.base does not "opens java.lang.module" to unnamed module @5ebd56e9
                at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:340)
                at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:280)
                at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:176)
                at java.base/java.lang.reflect.Field.setAccessible(Field.java:170)
                at org.netbeans.insane.impl.InsaneEngine.processClass(InsaneEngine.java:238)
                at org.netbeans.insane.impl.InsaneEngine.process(InsaneEngine.java:199)
                at org.netbeans.insane.impl.InsaneEngine.traverse(InsaneEngine.java:97)
                at org.netbeans.insane.impl.LiveEngine.traceImpl(LiveEngine.java:188)
                at org.netbeans.insane.impl.LiveEngine.trace(LiveEngine.java:166)
                at org.jvnet.hudson.test.MemoryAssert.fromRoots(MemoryAssert.java:292)
                at org.jvnet.hudson.test.MemoryAssert.assertGC(MemoryAssert.java:178)
                at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovyMemoryLeakTest.loaderReleased(GroovyMemoryLeakTest.java:62)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.base/java.lang.reflect.Method.invoke(Method.java:566)
                at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
                at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
                at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
                at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
                at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
                at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
                at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:548)
                at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
                at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
                at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
                at java.base/java.lang.Thread.run(Thread.java:834)
            {noformat}
            oleg_nenashev Oleg Nenashev made changes -
            Labels java11
            dnusbaum Devin Nusbaum made changes -
            Summary script-security - Using JDK internal classes jenkins-test-harness - Using JDK internal classes
            batmat Baptiste Mathus made changes -
            Summary jenkins-test-harness - Using JDK internal classes [PCT] jenkins-test-harness - Using JDK internal classes
            mramonleon Ramon Leon made changes -
            Labels java11 java11 triaged
            batmat Baptiste Mathus made changes -
            Description When trying to validate {{script-security}} plugin with PCT for Java 11, I got test failures with the following output
            {noformat}
            java.lang.reflect.InaccessibleObjectException: Unable to make field private static final java.lang.module.Configuration java.lang.module.Configuration.EMPTY_CONFIGURATION accessible: module java.base does not "opens java.lang.module" to unnamed module @5ebd56e9
                at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:340)
                at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:280)
                at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:176)
                at java.base/java.lang.reflect.Field.setAccessible(Field.java:170)
                at org.netbeans.insane.impl.InsaneEngine.processClass(InsaneEngine.java:238)
                at org.netbeans.insane.impl.InsaneEngine.process(InsaneEngine.java:199)
                at org.netbeans.insane.impl.InsaneEngine.traverse(InsaneEngine.java:97)
                at org.netbeans.insane.impl.LiveEngine.traceImpl(LiveEngine.java:188)
                at org.netbeans.insane.impl.LiveEngine.trace(LiveEngine.java:166)
                at org.jvnet.hudson.test.MemoryAssert.fromRoots(MemoryAssert.java:292)
                at org.jvnet.hudson.test.MemoryAssert.assertGC(MemoryAssert.java:178)
                at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovyMemoryLeakTest.loaderReleased(GroovyMemoryLeakTest.java:62)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.base/java.lang.reflect.Method.invoke(Method.java:566)
                at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
                at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
                at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
                at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
                at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
                at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
                at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:548)
                at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
                at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
                at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
                at java.base/java.lang.Thread.run(Thread.java:834)
            {noformat}
            When trying to validate {{script-security}} plugin with PCT for Java 11, I got test failures with the following output
            {noformat}
            java.lang.reflect.InaccessibleObjectException: Unable to make field private static final java.lang.module.Configuration java.lang.module.Configuration.EMPTY_CONFIGURATION accessible: module java.base does not "opens java.lang.module" to unnamed module @5ebd56e9
                at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:340)
                at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:280)
                at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:176)
                at java.base/java.lang.reflect.Field.setAccessible(Field.java:170)
                at org.netbeans.insane.impl.InsaneEngine.processClass(InsaneEngine.java:238)
                at org.netbeans.insane.impl.InsaneEngine.process(InsaneEngine.java:199)
                at org.netbeans.insane.impl.InsaneEngine.traverse(InsaneEngine.java:97)
                at org.netbeans.insane.impl.LiveEngine.traceImpl(LiveEngine.java:188)
                at org.netbeans.insane.impl.LiveEngine.trace(LiveEngine.java:166)
                at org.jvnet.hudson.test.MemoryAssert.fromRoots(MemoryAssert.java:292)
                at org.jvnet.hudson.test.MemoryAssert.assertGC(MemoryAssert.java:178)
                at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovyMemoryLeakTest.loaderReleased(GroovyMemoryLeakTest.java:62)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.base/java.lang.reflect.Method.invoke(Method.java:566)
                at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
                at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
                at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
                at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
                at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
                at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
                at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:548)
                at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
                at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
                at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
                at java.base/java.lang.Thread.run(Thread.java:834)
            {noformat}

            h3. Acceptance criteria

            * re-run PCT to see if still current
            * if not, \o/. If still an issue, either
            batmat Baptiste Mathus made changes -
            Summary [PCT] jenkins-test-harness - Using JDK internal classes [PCT] check script-security latest (jenkins-test-harness - Using JDK internal classes )
            batmat Baptiste Mathus made changes -
            Assignee Andrew Bayer [ abayer ]
            batmat Baptiste Mathus made changes -
            Description When trying to validate {{script-security}} plugin with PCT for Java 11, I got test failures with the following output
            {noformat}
            java.lang.reflect.InaccessibleObjectException: Unable to make field private static final java.lang.module.Configuration java.lang.module.Configuration.EMPTY_CONFIGURATION accessible: module java.base does not "opens java.lang.module" to unnamed module @5ebd56e9
                at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:340)
                at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:280)
                at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:176)
                at java.base/java.lang.reflect.Field.setAccessible(Field.java:170)
                at org.netbeans.insane.impl.InsaneEngine.processClass(InsaneEngine.java:238)
                at org.netbeans.insane.impl.InsaneEngine.process(InsaneEngine.java:199)
                at org.netbeans.insane.impl.InsaneEngine.traverse(InsaneEngine.java:97)
                at org.netbeans.insane.impl.LiveEngine.traceImpl(LiveEngine.java:188)
                at org.netbeans.insane.impl.LiveEngine.trace(LiveEngine.java:166)
                at org.jvnet.hudson.test.MemoryAssert.fromRoots(MemoryAssert.java:292)
                at org.jvnet.hudson.test.MemoryAssert.assertGC(MemoryAssert.java:178)
                at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovyMemoryLeakTest.loaderReleased(GroovyMemoryLeakTest.java:62)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.base/java.lang.reflect.Method.invoke(Method.java:566)
                at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
                at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
                at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
                at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
                at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
                at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
                at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:548)
                at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
                at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
                at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
                at java.base/java.lang.Thread.run(Thread.java:834)
            {noformat}

            h3. Acceptance criteria

            * re-run PCT to see if still current
            * if not, \o/. If still an issue, either
            When trying to validate {{script-security}} plugin with PCT for Java 11, I got test failures with the following output
            {noformat}
            java.lang.reflect.InaccessibleObjectException: Unable to make field private static final java.lang.module.Configuration java.lang.module.Configuration.EMPTY_CONFIGURATION accessible: module java.base does not "opens java.lang.module" to unnamed module @5ebd56e9
                at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:340)
                at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:280)
                at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:176)
                at java.base/java.lang.reflect.Field.setAccessible(Field.java:170)
                at org.netbeans.insane.impl.InsaneEngine.processClass(InsaneEngine.java:238)
                at org.netbeans.insane.impl.InsaneEngine.process(InsaneEngine.java:199)
                at org.netbeans.insane.impl.InsaneEngine.traverse(InsaneEngine.java:97)
                at org.netbeans.insane.impl.LiveEngine.traceImpl(LiveEngine.java:188)
                at org.netbeans.insane.impl.LiveEngine.trace(LiveEngine.java:166)
                at org.jvnet.hudson.test.MemoryAssert.fromRoots(MemoryAssert.java:292)
                at org.jvnet.hudson.test.MemoryAssert.assertGC(MemoryAssert.java:178)
                at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovyMemoryLeakTest.loaderReleased(GroovyMemoryLeakTest.java:62)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.base/java.lang.reflect.Method.invoke(Method.java:566)
                at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
                at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
                at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
                at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
                at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
                at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
                at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:548)
                at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
                at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
                at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
                at java.base/java.lang.Thread.run(Thread.java:834)
            {noformat}

            h3. Acceptance criteria

            * re-run PCT to see if still current
            * if not, \o/. If still an issue, either fix it if very simple, or file a clearer JIRA with what needs fixing
            alecharp Adrien Lecharpentier made changes -
            Assignee Adrien Lecharpentier [ alecharp ]
            alecharp Adrien Lecharpentier made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            alecharp Adrien Lecharpentier made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            alecharp Adrien Lecharpentier made changes -
            Remote Link Cette demande est liée à "script-security#PR-238 (Lien Web)" [ 22413 ]
            oleg_nenashev Oleg Nenashev made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]
            dnusbaum Devin Nusbaum made changes -
            Status Resolved [ 5 ] Fixed but Unreleased [ 10203 ]
            dnusbaum Devin Nusbaum made changes -
            Released As script-security 1.55
            Status Fixed but Unreleased [ 10203 ] Resolved [ 5 ]

              People

              Assignee:
              alecharp Adrien Lecharpentier
              Reporter:
              alecharp Adrien Lecharpentier
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: