jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
groovy
  • groovy
  • GROOVY-2947

issue with IBM jvm

  • Log In
  • Views
    • XML
    • Word
    • Printable

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

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
A added a comment - 10/Jul/08 10:16 AM

seems like I'm blocked from creating a reproducer by GROOVY-2948. No idea how the same works in our Continuous build environment...

Show
A added a comment - 10/Jul/08 10:16 AM seems like I'm blocked from creating a reproducer by GROOVY-2948 . No idea how the same works in our Continuous build environment...
Hide
Permalink
A added a comment - 11/Jul/08 2:21 AM

I figured out a workaround for GROOVY-2948 so trying to create a reproducer again.

Show
A added a comment - 11/Jul/08 2:21 AM I figured out a workaround for GROOVY-2948 so trying to create a reproducer again.
Hide
Permalink
A added a comment - 11/Jul/08 2:56 AM

Ok, I figured out the reproducer.

1. Get attachments from GROOVY-2948 (groovy_bug.groovy and groovy_bug.xml)
2. download http://anonsvn.jboss.org/repos/repository.jboss.org/maven2/jboss/jbossall-client/4.2.2.GA/jbossall-client-4.2.2.GA.jar
3. download jboss 4.2.2 (http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=16942&release_id=548923)
4. start jboss in one of the consoles (jboss-4.2.2.GA/bin/run.sh -b localhost -g GROOVY-2947)

'ant -lib . -f groovy_bug.xml' - BUILD SUCCESSFUL
'ANT_OPTS="-Djava.ext.dirs=." ant -f groovy_bug.xml' produces the above exception

The same steps everything works with Sun's 1.5.0 jvm.

Show
A added a comment - 11/Jul/08 2:56 AM Ok, I figured out the reproducer. 1. Get attachments from GROOVY-2948 (groovy_bug.groovy and groovy_bug.xml) 2. download http://anonsvn.jboss.org/repos/repository.jboss.org/maven2/jboss/jbossall-client/4.2.2.GA/jbossall-client-4.2.2.GA.jar 3. download jboss 4.2.2 ( http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=16942&release_id=548923 ) 4. start jboss in one of the consoles (jboss-4.2.2.GA/bin/run.sh -b localhost -g GROOVY-2947 ) 'ant -lib . -f groovy_bug.xml' - BUILD SUCCESSFUL 'ANT_OPTS="-Djava.ext.dirs=." ant -f groovy_bug.xml' produces the above exception The same steps everything works with Sun's 1.5.0 jvm.
Hide
Permalink
blackdrag blackdrag added a comment - 17/Jul/08 7:18 AM

since GROOVY-2948 is fixed now... wouldn't that solve your problem here as well?

Show
blackdrag blackdrag added a comment - 17/Jul/08 7:18 AM since GROOVY-2948 is fixed now... wouldn't that solve your problem here as well?
Hide
Permalink
A added a comment - 18/Jul/08 5:57 AM

Sure, as you see 'ant -lib . -f groovy_bug.xml' works even without GROOVY-2948. But 'ANT_OPTS="-Djava.ext.dirs=." ant -f groovy_bug.xml' produces the exception.
So it smells like a bug somewhere that is good to be fixed. I'm not even sure it by in groovy itself. But I don't know how to find out where it is.
If you want me to do some more tests, let me know what these should be.

Show
A added a comment - 18/Jul/08 5:57 AM Sure, as you see 'ant -lib . -f groovy_bug.xml' works even without GROOVY-2948 . But 'ANT_OPTS="-Djava.ext.dirs=." ant -f groovy_bug.xml' produces the exception. So it smells like a bug somewhere that is good to be fixed. I'm not even sure it by in groovy itself. But I don't know how to find out where it is. If you want me to do some more tests, let me know what these should be.
Hide
Permalink
Pascal Schumacher added a comment - 10/Feb/13 11:09 AM

As this issue has not been updated in over four years I'm closing it for now. If it is still relevant please reopen. Thanks!

Show
Pascal Schumacher added a comment - 10/Feb/13 11:09 AM As this issue has not been updated in over four years I'm closing it for now. If it is still relevant please reopen. Thanks!

People

  • Assignee:
    Unassigned
    Reporter:
    A
Vote (0)
Watch (1)

Dates

  • Created:
    10/Jul/08 4:51 AM
    Updated:
    10/Feb/13 11:11 AM
    Resolved:
    10/Feb/13 11:11 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.