harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anton Luht (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-956) Classpath problems with JRE 442571 ? (discovered with ActiveMQ 4.0.1)
Date Mon, 14 Aug 2006 16:36:15 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-956?page=comments#action_12427934 ] 
            
Anton Luht commented on HARMONY-956:
------------------------------------

Another problem is that DRLVM can't load certain classes. The test :

public class Test { 
  public static void main(String[] args) throws Throwable { 
      Class.forName("edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor");
  } 
} 

compiled with javac 1.5 and run with library shipped with activeMQ:
java -cp .;<activemq home>\lib\backport-util-concurrent-2.1.jar Test

prints nothing in RI . In DRLVM + Harmony with Pavel's patch

java version "1.5.0"
pre-alpha : not complete or compatible
svn = r431366, (Aug 14 2006), Windows/ia32/msvc 1310, debug build
http://incubator.apache.org/harmony

it prints:

java.lang.IncompatibleClassChangeError: edu/emory/mathcs/backport/java/util/conc
urrent/ScheduledThreadPoolExecutor
        at java.lang.VMClassRegistry.defineClass()
        at java.lang.ClassLoader.defineClass()
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:68
)
        at java.net.URLClassLoader.findClassImpl(URLClassLoader.java:1130)
        at java.net.URLClassLoader$4.run(URLClassLoader.java:617)
        at java.net.URLClassLoader$4.run(URLClassLoader.java:616)
        at java.security.AccessController.doPrivilegedImpl()
        at java.security.AccessController.doPrivileged()
        at java.net.URLClassLoader.findClass(URLClassLoader.java:614)
        at java.lang.ClassLoader.loadClass()
        at java.net.URLClassLoader$SubURLClassLoader.loadClass(URLClassLoader.ja
va:116)
        at java.lang.ClassLoader.loadClass()
        at java.lang.Class.forName()
        at java.lang.Class.forName()
        at Test.main(Test.java:3)



> Classpath problems with JRE 442571 ? (discovered with ActiveMQ 4.0.1)
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-956
>                 URL: http://issues.apache.org/jira/browse/HARMONY-956
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM, App-Oriented Bug Reports
>         Environment: winXP SP2, Intel Pentium M (Thinkpad T43), Harmony JRE Snapshot
r424571, cygwin
>            Reporter: Geir Magnusson Jr
>         Assigned To: Geir Magnusson Jr
>         Attachments: verifier.patch, verifier.patch, verifier.patch
>
>
> When launching active MQ via "bin/activemq", I get the following error : 
> ACTIVEMQ_HOME: c:\dev\tools\activemq\incubator-activemq-4.0.1
> Loading message broker from: xbean:activemq.xml
> ERROR: Destructive unwinding: C++ objects detected on stack!
>   droping 0x05BEF584
>  setting curr 0x05BEFF68
> Failed to execute main task. Reason: java.lang.NoClassDefFoundError: edu/emory/mathcs/backport/java/util/concurrent/lock
> s/ReentrantLock$FairSync
> The backport jar is in the lib directory, so I beleive that there may be some classpath/classloader
issue here.  I don't know if the quoted error re unwinding is a cause, synptom, or something
else.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message