Community
Participate
Working Groups
I have 2 bugs in my eclipse 64 bit (even re-installed and freshly created projects) that do not appear on a now freshly installed 32 bit eclipse. (I had others, but I don't remember.) 1. Ant not working (PDT) - AntJRETab error - Help plz - http://www.eclipse.org/forums/index.php/t/369266/ 2. Wherever I do "Properties" of a project (on no matter which project, in no matter which environment, in at least 3 explorer views) I get an error dialog reading "The currently displayed page contains invalid values." and I am sure not all projects really have invalid values. Note: I am just giving this to help debugging. I am willing to give more info, just tell me what anyone need to pinpoint / fix this. (I am not an eclipse, nor java developer) I don't know it both problems are related or not, but put them both here. Divide them if needed.
Can you please post any and all VM errors and Eclipse error logs. thanks, JD
As JD mentioned, please attach your workspace/.metadata/.log file. Also, which eclipse did you install (what was the filename)? PW
Created attachment 219841 [details] Log file (64b and 32 bit) workspace
Created attachment 219842 [details] Log file (64b) fresh install
Regarding the logs, I attached the current one in case that's enough, but: - Can you guys found both mentioned VM ánd eclipse errors in the same workspace/.metadata/.log file ? - Should I clean the log and then reproduce the errors? - And is it a problem that I have been using this workspace in the working 32 bit eclipse too? 1. The first log attached is from the Eclipse 64b that was installed on my system, also used by the 32 bit fresh and working eclipse. 2. The second log is from the fresh Eclipse 64b I installed (eclipse-SDK-4.2-win32-x86_64.zip) ,not working either. 3. The Eclipse 32 bit I installed is working (and uses same workspace as 1.) All of the eclipses above are: Version: 4.2.0 - Build id: I20120608-1400
The bug happens inside your JRE when it tries to read the time zone infos (java.util.TimeZone.getAvailableIDs()). Often this happens because the The NPE <your JRE location>/jre/lib/zi/ZoneInfoMappings is not there or not readable.
(In reply to comment #6) > The bug happens inside your JRE when it tries to read the time zone infos > (java.util.TimeZone.getAvailableIDs()). Often this happens because the The > NPE <your JRE location>/jre/lib/zi/ZoneInfoMappings is not there or not > readable. That file is there and readable in both versions of java (jre7 32 & 64 bit). Any other reasons? Or is there a simple java-source file that uses the above functions that I can try and Run to be sure? I was also wondering about a general idea of mine: Can it be that eclipse 64 is not calling the right java 64 methods or classes (or from the right places) because java 64 is a bit different or because not all eclipse classes are using the right java? On youre certainty it's not eclipse related: I have a standard jdk installation without any special changes, so how can this be? And, if you or anyone is still sure it's not eclipse related, is there a java support forum or such? I want to make sure they don't say, it's eclipse or at least fix it.
Created attachment 219857 [details] Log 64b cleaned
For the record, I attached a log file from the 64b where I cleaned everything and forced 2 bugs "Run as > Ant build" and "Run the selected target" from Ant-View. In there no mentioning of "getAvailableIDs".
(In reply to comment #7) > (In reply to comment #6) > > The bug happens inside your JRE when it tries to read the time zone infos > > (java.util.TimeZone.getAvailableIDs()). Often this happens because the The > > NPE <your JRE location>/jre/lib/zi/ZoneInfoMappings is not there or not > > readable. > > That file is there and readable in both versions of java (jre7 32 & 64 bit). > Any other reasons? Yes, there are some other known reasons for the failure you see. Try Google to find out more. > Or is there a simple java-source file that uses the above > functions that I can try and Run to be sure? public class Snippet { public static void main(String[] args) { java.util.TimeZone.getAvailableIDs(); } } > I was also wondering about a general idea of mine: Can it be that eclipse 64 > is not calling the right java 64 methods or classes (or from the right > places) because java 64 is a bit different or because not all eclipse > classes are using the right java? All possible, but would still be a JRE problem and not Eclipse. Sorry. > On youre certainty it's not eclipse related: I have a standard jdk > installation without any special changes, so how can this be? No ideas. Maybe you have more than one JRE installed and the one used to run Eclipse is not the same as you might think. To be sure specify the VM when launching Eclipse. For details see: http://help.eclipse.org/helios/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Frunning_eclipse.htm > And, if you or anyone is still sure it's not eclipse related, is there a > java support forum or such? I want to make sure they don't say, it's eclipse > or at least fix it. Oracle has a bug reporting system.
Created attachment 219858 [details] Log 64b cleaned (Project properties) And this one is about the bug 2. in my inital post (Project > Properties)
(In reply to comment #9) > For the record, I attached a log file from the 64b where I cleaned > everything and forced 2 bugs "Run as > Ant build" and "Run the selected > target" from Ant-View. > In there no mentioning of "getAvailableIDs". You can't just clip out relevant errors. Those errors (time zone ones) prevented some bundles from loading and hence its classes won't be available. I suggest you try the snippet from comment 10 with one of the VMs then make sure that this VM is used to launch Eclipse. Plus, make sure that you use 32-bit JRE together with 32-bit Eclipse (or make sure both are 64-bit).
Created attachment 219859 [details] Log 64b cleaned, just starting eclipse
I didn't clip it out. I just started eclipse, then deleted everything in log and then left it as is, after which I repeated reproduced bugs, which pinpoints the bug in question. When I do it with cleaning the log files just before I start eclipse, the getAvailableIDs error already occurs before I do anything at all. (See attachment) I can't run the source code you provided, another error! Actually, meanwhile I have got more errors even. My point: there is something more at hand here than just the getAvailableIDs. Attached: log file before even touching eclipse after starting it up (after choosing workspace).
(In reply to comment #14) > I didn't clip it out. I just started eclipse, then deleted everything in log Right. But I assume that the time zone errors are logged when you start. They then cause follow-up errors, because some bundles are not able to be activated. > I can't run the source code you provided, another error! Actually, meanwhile > I have got more errors even. If you can't even compile and run that snippet with the Oracle SDK (no Eclipse), then that proofs it all.
(In reply to comment #15) > (In reply to comment #14) > > I didn't clip it out. I just started eclipse, then deleted everything in log > > Right. But I assume that the time zone errors are logged when you start. > They then cause follow-up errors, because some bundles are not able to be > activated. It's true, the errors getAvailableIDs occurs the first at start, like I said, but I doubted that error stopped some bundles. I'll trust you on that. > > > I can't run the source code you provided, another error! Actually, meanwhile > > I have got more errors even. > > If you can't even compile and run that snippet with the Oracle SDK (no > Eclipse), then that proofs it all. No, I tried it with Eclipse. I have no clue how to do that with Oracle SDK. >Plus, make sure that you use 32-bit JRE together with 32-bit Eclipse (or make sure both are 64-bit). In my first eclipse 64b installation that was the case. Now, in the freshest eclipse (a new one, from right before this post) I tried that too now, but I cannot even access the preferences panel "Installed JREs", another error! Also here getAvailableIDs() error at start. I am gonna restart now and try some things myself. If you could link me a way to test it with Oracle SDK, I'll appreciate it. (Thanks for all for now!! Really, even if I felt like a PITA. :-p)
(In reply to comment #16) > > If you can't even compile and run that snippet with the Oracle SDK (no > > Eclipse), then that proofs it all. > No, I tried it with Eclipse. I have no clue how to do that with Oracle SDK. First, you need to make sure you downloaded the SDK not the JRE. Then, you create a simple file called Snippet.java (name does not matter) with this content: public class Snippet { public static void main(String[] args) { java.util.TimeZone.getAvailableIDs(); } } Next, is to compile this via <JavaInstall>/bin/javac and then you can launch the compiled class file using <JavaInstall>/jre/bin/java
> I am gonna restart now and try some things myself. If you could link me a > way to test it with Oracle SDK, I'll appreciate it. (Thanks for all for > now!! Really, even if I felt like a PITA. :-p) I completely uninstalled all java's on my computer (jdk's, se's) and that took me like 2 hours because some didn't want to be uninstalled. After downloading and installing the latest sdk 7u6 (64 bit too), everything works fine. I guess Dani was right from the start. For future potential people having this problem: I think a certain java setup might have damaged some things. Dunno what exactly, but I gather something like not uninstalling previous java versions (when installing jdk over jre or when updating from previous versions) or sepcific 7u5 setup version that I had itself was faulty. Thank you to everyone for helping me (getting over the reluctance to overhaul java installations)!!!!
P.S. For anyone bumping into this: I managed to uninstall the "wanting to stay" java's, by reinstalling them with the original install files (oracle archive didn't have my version 7u5 which is strange, but other sites had) and then uninstall them again. Might want to try several times and it depends on the order you do it and some restarts between are adviced.
*** Bug 389470 has been marked as a duplicate of this bug. ***
Reinstalling tzdata-java was the fix for me: sudo apt-get --reinstall install tzdata-java Ubuntu 12.04.1 Eclipse 4.2 OpenJDK 1.7.0-07