You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Vladimir Ivanov (JIRA)" <ji...@apache.org> on 2007/04/04 04:38:32 UTC

[jira] Created: (HARMONY-3565) [testing][eclipse] eclipse intermittently failed to compile "Hello world" class

[testing][eclipse] eclipse intermittently failed to compile "Hello world" class
-------------------------------------------------------------------------------

                 Key: HARMONY-3565
                 URL: https://issues.apache.org/jira/browse/HARMONY-3565
             Project: Harmony
          Issue Type: Bug
          Components: App-Oriented Bug Reports
            Reporter: Vladimir Ivanov


eclipse 3.1 intermittently (1 time for ~100 runs) failed to compile "Hello world" class with message that java.lang.Object is missed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-3565) [testing][eclipse] eclipse intermittently failed to compile "Hello world" class

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12498248 ] 

Gregory Shimansky commented on HARMONY-3565:
--------------------------------------------

I've filed a bug on eclipse ECJ compiler requesting a change in the way how it searches for boot classes. The bug URL in eclipse bugzilla is https://bugs.eclipse.org/bugs/show_bug.cgi?id=188648

> [testing][eclipse] eclipse intermittently failed to compile "Hello world" class
> -------------------------------------------------------------------------------
>
>                 Key: HARMONY-3565
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3565
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports
>            Reporter: Vladimir Ivanov
>         Assigned To: Gregory Shimansky
>         Attachments: screenshot-1.jpg
>
>
> eclipse 3.1 intermittently (1 time for ~100 runs) failed to compile "Hello world" class with message that java.lang.Object is missed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-3565) [testing][eclipse] eclipse intermittently failed to compile "Hello world" class

Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486672 ] 

Ivan Popov commented on HARMONY-3565:
-------------------------------------

Sorry, I mean the problem was with Eclipse 3.1.1. It was resolved by using Eclipse 3.1.2.


> [testing][eclipse] eclipse intermittently failed to compile "Hello world" class
> -------------------------------------------------------------------------------
>
>                 Key: HARMONY-3565
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3565
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports
>            Reporter: Vladimir Ivanov
>         Attachments: screenshot-1.jpg
>
>
> eclipse 3.1 intermittently (1 time for ~100 runs) failed to compile "Hello world" class with message that java.lang.Object is missed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-3565) [testing][eclipse] eclipse intermittently failed to compile "Hello world" class

Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486671 ] 

Ivan Popov commented on HARMONY-3565:
-------------------------------------

I noticed sometimes similar problem with Eclipse 3.2.1 on Linux. It seems that in this case Eclipse does not see jre/bin/default/kernel.jar library and include it into list of system libraries and this leads to a compilation problem.

> [testing][eclipse] eclipse intermittently failed to compile "Hello world" class
> -------------------------------------------------------------------------------
>
>                 Key: HARMONY-3565
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3565
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports
>            Reporter: Vladimir Ivanov
>         Attachments: screenshot-1.jpg
>
>
> eclipse 3.1 intermittently (1 time for ~100 runs) failed to compile "Hello world" class with message that java.lang.Object is missed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-3565) [testing][eclipse] eclipse intermittently failed to compile "Hello world" class

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12497437 ] 

Gregory Shimansky commented on HARMONY-3565:
--------------------------------------------

Confirmed. The build for classlib specifies -classpath for all harmony jar files. Build for jdktools doesn't. So I think the failure to find j.l.Object is somewhere in finding necessary jar files from bootclasspath property. The bug is not intermittent.

> [testing][eclipse] eclipse intermittently failed to compile "Hello world" class
> -------------------------------------------------------------------------------
>
>                 Key: HARMONY-3565
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3565
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports
>            Reporter: Vladimir Ivanov
>         Assigned To: Gregory Shimansky
>         Attachments: screenshot-1.jpg
>
>
> eclipse 3.1 intermittently (1 time for ~100 runs) failed to compile "Hello world" class with message that java.lang.Object is missed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-3565) [testing][eclipse] eclipse intermittently failed to compile "Hello world" class

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky updated HARMONY-3565:
---------------------------------------

    Assignee: Gregory Shimansky

Trying to reproduce the problem I found out that running ecj as java -jar ecj.jar <some class> always gives an error that j.l.Object cannot be resolved. Specifying harmony boot classes explicitly with -bootclasspath for compiler makes it successfully compile the class.

Looking at CC reports I see that all self hosting errors come from building working_jdktools classes. For me the failure to find j.l.Object class is not intermittent. It is either an error in 100% cases or it doesn't exist. I suspect that ecj just doesn't correctly understand harmony java.boot.class.path property to find necessary jar files.

> [testing][eclipse] eclipse intermittently failed to compile "Hello world" class
> -------------------------------------------------------------------------------
>
>                 Key: HARMONY-3565
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3565
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports
>            Reporter: Vladimir Ivanov
>         Assigned To: Gregory Shimansky
>         Attachments: screenshot-1.jpg
>
>
> eclipse 3.1 intermittently (1 time for ~100 runs) failed to compile "Hello world" class with message that java.lang.Object is missed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-3565) [testing][eclipse] eclipse intermittently failed to compile "Hello world" class

Posted by "Vladimir Ivanov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vladimir Ivanov updated HARMONY-3565:
-------------------------------------

    Attachment: screenshot-1.jpg

WindowsXP, all options set up by default

> [testing][eclipse] eclipse intermittently failed to compile "Hello world" class
> -------------------------------------------------------------------------------
>
>                 Key: HARMONY-3565
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3565
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports
>            Reporter: Vladimir Ivanov
>         Attachments: screenshot-1.jpg
>
>
> eclipse 3.1 intermittently (1 time for ~100 runs) failed to compile "Hello world" class with message that java.lang.Object is missed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-3565) [testing][eclipse] eclipse intermittently failed to compile "Hello world" class

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12515277 ] 

Gregory Shimansky commented on HARMONY-3565:
--------------------------------------------

Since the bug in eclipse is fixed and self-hosting jdktools build scripts were updated to supply bootclasspath explicitly I am inclined to close this bug. What do you think?

> [testing][eclipse] eclipse intermittently failed to compile "Hello world" class
> -------------------------------------------------------------------------------
>
>                 Key: HARMONY-3565
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3565
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports
>            Reporter: Vladimir Ivanov
>            Assignee: Gregory Shimansky
>         Attachments: screenshot-1.jpg
>
>
> eclipse 3.1 intermittently (1 time for ~100 runs) failed to compile "Hello world" class with message that java.lang.Object is missed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-3565) [testing][eclipse] eclipse intermittently failed to compile "Hello world" class

Posted by "Wayne Beaton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12490223 ] 

Wayne Beaton commented on HARMONY-3565:
---------------------------------------

I'm seeing the same problem on Ubuntu Linux. I'm running Harmony (April 18) on Eclipse 3.2.2.

The environment starts up, but the JRE is missing all but one of the "JRE System Libraries" (on the "Installed JREs" preference page). The one JAR that does appear is bcprov.jar.

I'll see if the stack trace is at all helpful sometime tomorrow.

Here's what's in the log.

!ENTRY org.eclipse.debug.core 4 120 2007-04-11 08:02:59.205
!MESSAGE Error logged from Debug Core: 
!STACK 0
java.io.IOException: Bad file descriptor
	at java.lang.Runtime$SubProcess$SubInputStream.readInputByte0(Runtime.java)
	at java.lang.Runtime$SubProcess$SubInputStream.read(Runtime.java:89)
	at java.lang.Runtime$SubProcess$SubInputStream.read(Runtime.java:122)
	at java.io.BufferedInputStream.read(Unknown Source)
	at java.io.BufferedInputStream.read(Unknown Source)
	at java.io.FilterInputStream.read(Unknown Source)
	at org.eclipse.debug.internal.core.OutputStreamMonitor.read(OutputStreamMonitor.java:138)
	at org.eclipse.debug.internal.core.OutputStreamMonitor.access$1(OutputStreamMonitor.java:128)
	at org.eclipse.debug.internal.core.OutputStreamMonitor$1.run(OutputStreamMonitor.java:194)
	at java.lang.Thread.run(Thread.java:661)

!ENTRY org.eclipse.jdt.launching 4 4 2007-04-11 08:02:59.205
!MESSAGE Failed to retrieve default libraries for /home/wayne/harmony-jdk-r529300/jre

> [testing][eclipse] eclipse intermittently failed to compile "Hello world" class
> -------------------------------------------------------------------------------
>
>                 Key: HARMONY-3565
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3565
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports
>            Reporter: Vladimir Ivanov
>         Attachments: screenshot-1.jpg
>
>
> eclipse 3.1 intermittently (1 time for ~100 runs) failed to compile "Hello world" class with message that java.lang.Object is missed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-3565) [testing][eclipse] eclipse intermittently failed to compile "Hello world" class

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486664 ] 

Gregory Shimansky commented on HARMONY-3565:
--------------------------------------------

Does eclipse produce any exception with stack trace in the workspace or configuration directories when this error happens?

> [testing][eclipse] eclipse intermittently failed to compile "Hello world" class
> -------------------------------------------------------------------------------
>
>                 Key: HARMONY-3565
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3565
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports
>            Reporter: Vladimir Ivanov
>         Attachments: screenshot-1.jpg
>
>
> eclipse 3.1 intermittently (1 time for ~100 runs) failed to compile "Hello world" class with message that java.lang.Object is missed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-3565) [testing][eclipse] eclipse intermittently failed to compile "Hello world" class

Posted by "Vladimir Ivanov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12488250 ] 

Vladimir Ivanov commented on HARMONY-3565:
------------------------------------------

Similar failure is observed on the Win x86_64 in the 'build HDK on HDK' project. This fail is intermittent and I observe it 1 time for ~5 runs.

---------------------------------execution log ----------------------------------------
<snip>
Checking for depends/libs/windows.x86_64/swing_awt_deps_win64_2007-02-08.tgz
----------
1. ERROR in C:\cruise_hdk\cc\projects\trunk\working_classlib\modules\imageio\src\main\java\javax\imageio\spi\IIOServiceProvider.java
(at line 0)
/*
^
Internal compiler error
java.lang.IllegalArgumentException: Characters number for one byte must be positive.
at java.nio.charset.CharsetDecoder.<init>(Unknown Source)
at com.ibm.icu4jni.charset.CharsetDecoderICU.<init>(Unknown Source)
at com.ibm.icu4jni.charset.CharsetICU.newDecoder(Unknown Source)
at java.io.InputStreamReader.<init>(Unknown Source)
at org.eclipse.jdt.internal.compiler.util.Util.getInputStreamAsCharArray(Util.java:193)
at org.eclipse.jdt.internal.compiler.util.Util.getFileCharContent(Util.java:70)
at org.eclipse.jdt.internal.compiler.batch.CompilationUnit.getContents(CompilationUnit.java:58)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:9047)
at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:9019)
at org.eclipse.jdt.internal.compiler.parser.Parser.dietParse(Parser.java:7707)
at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:371)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:397)
at org.eclipse.jdt.internal.compiler.batch.Main.performCompilation(Main.java:2949)
at org.eclipse.jdt.internal.compiler.batch.Main.compile(Main.java:1357)
at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
at java.lang.reflect.Method.invoke(Method.java:381)
at org.eclipse.jdt.core.JDTCompilerAdapter.execute(JDTCompilerAdapter.java:79)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
----------
Characters number for one byte must be positive.
------------------------------------------------------------------------------------

> [testing][eclipse] eclipse intermittently failed to compile "Hello world" class
> -------------------------------------------------------------------------------
>
>                 Key: HARMONY-3565
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3565
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports
>            Reporter: Vladimir Ivanov
>         Attachments: screenshot-1.jpg
>
>
> eclipse 3.1 intermittently (1 time for ~100 runs) failed to compile "Hello world" class with message that java.lang.Object is missed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-3565) [testing][eclipse] eclipse intermittently failed to compile "Hello world" class

Posted by "Vladimir Ivanov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486903 ] 

Vladimir Ivanov commented on HARMONY-3565:
------------------------------------------

it is data from the workspace/.metadate/.log file in case of this failure for Linux x86_64:

--------------- .log ---------------------------
!SESSION 2007-04-05 16:30:14.749 -----------------------------------------------
eclipse.buildId=M20050929-0840
java.version=1.5.0
java.vendor=Apache Software Foundation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  os linux
Command-line arguments:  -ws gtk os linux -arch x86_64

!ENTRY org.eclipse.osgi 2007-04-05 16:30:57.301
!MESSAGE An unexpected runtime error has occurred.
!STACK 0
java.lang.NullPointerException
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:1193)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:189)
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:141)
	at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1468)
	at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1419)
	at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.doResolveBundles(PackageAdminImpl.java:160)
	at org.eclipse.osgi.framework.internal.core.PackageAdminImpl$1.run(PackageAdminImpl.java:139)
	at java.lang.Thread.run(Thread.java:661)

!ENTRY initial@reference:file:plugins/org.eclipse.core.runtime_3.1.1.jar/ 0 0 2007-04-05 16:30:57.393
!MESSAGE FrameworkEvent.ERROR
!STACK 0
java.lang.NullPointerException
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:1193)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:189)
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:141)
	at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1468)
	at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1419)
	at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.doResolveBundles(PackageAdminImpl.java:160)
	at org.eclipse.osgi.framework.internal.core.PackageAdminImpl$1.run(PackageAdminImpl.java:139)
	at java.lang.Thread.run(Thread.java:661)

!ENTRY org.eclipse.osgi 2007-04-05 16:31:05.372
!MESSAGE An unexpected runtime error has occurred.
!STACK 0
java.lang.NullPointerException
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:1193)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:189)
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:141)
	at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1468)
	at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1419)
	at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.doResolveBundles(PackageAdminImpl.java:208)
	at org.eclipse.osgi.framework.internal.core.PackageAdminImpl$1.run(PackageAdminImpl.java:139)
	at java.lang.Thread.run(Thread.java:661)

!ENTRY initial@reference:file:plugins/org.eclipse.core.runtime_3.1.1.jar/ 0 0 2007-04-05 16:31:05.399
!MESSAGE FrameworkEvent.ERROR
!STACK 0
java.lang.NullPointerException
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:1193)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:189)
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:141)
	at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1468)
	at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1419)
	at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.doResolveBundles(PackageAdminImpl.java:208)
	at org.eclipse.osgi.framework.internal.core.PackageAdminImpl$1.run(PackageAdminImpl.java:139)
	at java.lang.Thread.run(Thread.java:661)

!ENTRY org.eclipse.jdt.launching 4 4 2007-04-05 16:34:04.743
!MESSAGE Failed to retrieve default libraries for /export/cruise/trunk/cc/projects/drlvm/trunk/build/lnx_em64t_gcc_debug/deploy/jdk

!ENTRY org.eclipse.jdt.launching 4 4 2007-04-05 16:34:21.548
!MESSAGE Failed to retrieve default libraries for /export/cruise/trunk/cc/projects/drlvm/trunk/build/lnx_em64t_gcc_debug/deploy/jdk/jre


> [testing][eclipse] eclipse intermittently failed to compile "Hello world" class
> -------------------------------------------------------------------------------
>
>                 Key: HARMONY-3565
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3565
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports
>            Reporter: Vladimir Ivanov
>         Attachments: screenshot-1.jpg
>
>
> eclipse 3.1 intermittently (1 time for ~100 runs) failed to compile "Hello world" class with message that java.lang.Object is missed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-3565) [testing][eclipse] eclipse intermittently failed to compile "Hello world" class

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12497869 ] 

Gregory Shimansky commented on HARMONY-3565:
--------------------------------------------

I found the problem why ecj.jar cannot find boot classes. It tried to create bootclasspath based on java.home/lib directory trying to find all JAR file in this directory. On Sun it works ok because all boot classes are located in java.home/lib directory.

On harmony boot classes are located in java.home/bin/default/kernel.jar and in java.home/lib/boot. Eclipse ecj doesn't try to look for such JAR files. It also doesn't try to use somewhat undocumented sun.boot.library.path property which DRLVM defines for compatibility.

The problem is reproducible both on IBM VME and DRLVM because boot classes layout is the same for both of them.

The code which does bootclasspath handling for ECJ is here: http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/Main.java?view=markup

Look at the function getLibrariesFiles, it filters the directory for any file which has *.jar name and collects them into paths array. This function is called from handleBootclasspath with an array directoriesToCheck which contains java.home/lib directory name.

I think that ECJ uses not quite correct heuristics to find boot classes. It could at least try to check sun.boot.class.path property in addition to collecting *.jar files in java.home/lib. Eclipse SDK does such thing when it tries to detect JRE properties. So I think we could ask Eclipse community to fix ECJ by filing a bug on Eclipse.

> [testing][eclipse] eclipse intermittently failed to compile "Hello world" class
> -------------------------------------------------------------------------------
>
>                 Key: HARMONY-3565
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3565
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports
>            Reporter: Vladimir Ivanov
>         Assigned To: Gregory Shimansky
>         Attachments: screenshot-1.jpg
>
>
> eclipse 3.1 intermittently (1 time for ~100 runs) failed to compile "Hello world" class with message that java.lang.Object is missed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (HARMONY-3565) [testing][eclipse] eclipse intermittently failed to compile "Hello world" class

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky closed HARMONY-3565.
--------------------------------------

    Resolution: Fixed

Closing as fixed since no one disagrees.

> [testing][eclipse] eclipse intermittently failed to compile "Hello world" class
> -------------------------------------------------------------------------------
>
>                 Key: HARMONY-3565
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3565
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports
>            Reporter: Vladimir Ivanov
>            Assignee: Gregory Shimansky
>         Attachments: screenshot-1.jpg
>
>
> eclipse 3.1 intermittently (1 time for ~100 runs) failed to compile "Hello world" class with message that java.lang.Object is missed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.