Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: UNRESOLVED
    • Affects Version/s: 1.5.6
    • Fix Version/s: None
    • Component/s: Ant integration
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Hallo, I see the following exception trying to connect a jboss server using IBM JVM (see exception below). Sun's is working fine. I verified SHA algorithm is present in the IBM's jvm with the following groovy code:

      import java.security.MessageDigest;
      import java.security.NoSuchAlgorithmException;

      MessageDigest md = null;
      try
      {
      md = MessageDigest.getInstance( "SHA" );
      }
      catch( NoSuchAlgorithmException nsae )
      {
      nsae.printStackTrace();
      }

      I believe the issue is ant integration and classpath because I managed to connect the server with IBM's jvm using groovy -cp "<needed jars>" test.groovy, but still couldn't make a simple ant build file do the same. Will attach reproducer if I manage to create one.

      [groovy] java.lang.InternalError: java.security.NoSuchAlgorithmException: SHA MessageDigest not available
      [groovy] at java.rmi.dgc.VMID.computeAddressHash(VMID.java:168)
      [groovy] at java.rmi.dgc.VMID.<clinit>(VMID.java:39)
      [groovy] at java.lang.J9VMInternals.initializeImpl(Native Method)
      [groovy] at java.lang.J9VMInternals.initialize(J9VMInternals.java:192)
      [groovy] at sun.rmi.transport.DGCClient.<clinit>(DGCClient.java:73)
      [groovy] at java.lang.J9VMInternals.initializeImpl(Native Method)
      [groovy] at java.lang.J9VMInternals.initialize(J9VMInternals.java:192)
      [groovy] at sun.rmi.transport.LiveRef.read(LiveRef.java:292)
      [groovy] at sun.rmi.server.UnicastRef2.readExternal(UnicastRef2.java:69)
      [groovy] at java.rmi.server.RemoteObject.readObject(RemoteObject.java:450)
      [groovy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [groovy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      [groovy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [groovy] at java.lang.reflect.Method.invoke(Method.java:615)
      [groovy] at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1001)
      [groovy] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1828)
      [groovy] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1738)
      [groovy] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1324)
      [groovy] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:362)
      [groovy] at java.rmi.MarshalledObject.get(MarshalledObject.java:163)
      [groovy] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:257)
      [groovy] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1533)
      [groovy] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:634)
      [groovy] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
      [groovy] at javax.naming.InitialContext.lookup(InitialContext.java:363)
      [groovy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [groovy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      [groovy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [groovy] at java.lang.reflect.Method.invoke(Method.java:615)
      [groovy] at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
      [groovy] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
      [groovy] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
      [groovy] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
      [groovy] at org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:766)
      [groovy] at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:754)
      [groovy] at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
      [groovy] at scripts_bootstrapping_service_test.testAvailableServices(scripts_bootstrapping_service_test.groovy:87)
      [groovy] at scripts_bootstrapping_service_test.this$4$testAvailableServices(scripts_bootstrapping_service_test.groovy)
      [groovy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [groovy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      [groovy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [groovy] at java.lang.reflect.Method.invoke(Method.java:615)
      [groovy] at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
      [groovy] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
      [groovy] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
      [groovy] at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:78)
      [groovy] at scripts_bootstrapping_service_test.run(scripts_bootstrapping_service_test.groovy:143)
      [groovy] at org.codehaus.groovy.ant.Groovy.execGroovy(Groovy.java:350)
      [groovy] at org.codehaus.groovy.ant.Groovy.execute(Groovy.java:230)
      [groovy] at org.apache.tools.ant.Task.perform(Task.java:364)
      [groovy] at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:199)
      [groovy] at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:153)
      [groovy] at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:149)
      [groovy] at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:64)
      [groovy] at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:784)
      [groovy] at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:758)
      [groovy] at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
      [groovy] at scripts_bootstrapping_test.checkServices(scripts_bootstrapping_test.groovy:184)
      [groovy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [groovy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      [groovy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [groovy] at java.lang.reflect.Method.invoke(Method.java:615)
      [groovy] at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
      [groovy] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
      [groovy] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
      [groovy] at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:78)
      [groovy] at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrent0(ScriptBytecodeAdapter.java:112)
      [groovy] at scripts_bootstrapping_test.scriptTest(scripts_bootstrapping_test.groovy:126)
      [groovy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [groovy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      [groovy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [groovy] at java.lang.reflect.Method.invoke(Method.java:615)
      [groovy] at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
      [groovy] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
      [groovy] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
      [groovy] at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:78)
      [groovy] at scripts_bootstrapping_test.run(scripts_bootstrapping_test.groovy:49)
      [groovy] at groovy.lang.GroovyShell.evaluate(GroovyShell.java:473)
      [groovy] at groovy.lang.GroovyShell.evaluate(GroovyShell.java:508)
      [groovy] at groovy.lang.Script.evaluate(Script.java:181)
      [groovy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [groovy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      [groovy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [groovy] at java.lang.reflect.Method.invoke(Method.java:615)
      [groovy] at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
      [groovy] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
      [groovy] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
      [groovy] at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:78)
      [groovy] at embedded_script_in_services_hudson_hudson_workspace_workspace_soa_unix_scripts_common_common_groovy.run(embedded_script_in_services_hudson_hudson_workspace_workspace_soa_unix_scripts_common_common_groovy.xml:17)
      [groovy] at org.codehaus.groovy.ant.Groovy.execGroovy(Groovy.java:350)
      [groovy] at org.codehaus.groovy.ant.Groovy.execute(Groovy.java:230)
      [groovy] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      [groovy] at org.apache.tools.ant.Task.perform(Task.java:364)
      [groovy] at org.apache.tools.ant.Target.execute(Target.java:341)
      [groovy] at org.apache.tools.ant.Target.performTasks(Target.java:369)
      [groovy] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      [groovy] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
      [groovy] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      [groovy] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      [groovy] at org.apache.tools.ant.Main.runBuild(Main.java:668)
      [groovy] at org.apache.tools.ant.Main.startAnt(Main.java:187)
      [groovy] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
      [groovy] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            A
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: