Tim\'s picture      Blogging Ottinger (tim)

2007-January-24

Eclipse all messed up

Filed under: Angst, Programming

Wooot! The problem was entirely in the mount options in my fstab. For some inexplicable reason I had “defaults,users” even though there is no desire that users have the ability to mount and unmount /home! That caused some ripples, and I couldn’t run bash scripts normally, and mmap failed on objects in the /home partition. It was ugly, and confusing. When I changed the /etc/fstab, to use “defaults” instead and remounted, all problems vanished. Live is good, eclipse works, bash works. All is well. I bet that error is unique to me.

I can’t run Eclipse. I’m not sure how this happened, but it was in the course of redoing partitions, oddly enough.
I got rid of my windows partition, and moved /home there in order to get about double the space for my files, then I got rid of my /data by moving it to the much larger part where /home used to live. I also made a single swap part (oddly enough there were two).

As a result, it seems that hibernate doesn’t work (a Linux problem I don’t yet know how to fix) so I just use the suspend, and also eclipse wont load. Every other app works just fine. I install eclipse via APT tools using XUbuntu’s repositories.

As a brute-force remediation, I marked all the eclipse tools for reinstall, and nothing got better. I was frustrated.

I figured that a fresh install of eclipse would probably install correctly, so I need my system to be free. I removed all the packages for eclipse via the APT system. Then I found all vestiges of eclipse and wiped them out, including /usr/{share,lib,bin}/eclipse* and ~/.eclipse stuff. I made sure it was gone. As far as I could tell, there was no sign that eclipse had ever been on my machine. Now for that fresh install — I went to apt and had it install eclipse. Strangely enough, i didn’t get a startup.jar and it looks like other things were missing. I removed, cleaned, autocleaned, and reinstalled a few times and then I got my startup. Looks like some part of the solver was confused about what I had and didn’t have. I don’t know why.

I now have a different set of error messages. They start like this:

!SESSION 2007-01-23 20:28:57.180 ———————————————–
eclipse.buildId=M20060921-0945
java.version=1.5.0_08
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments: –initialize
Command-line arguments: -os linux -ws gtk -arch x86 –initialize

!ENTRY org.eclipse.osgi 2 1 2007-01-23 20:29:00.346
!MESSAGE NLS missing message: initializer_error in: org.eclipse.core.internal.runtime.messages

!ENTRY org.eclipse.osgi 2 1 2007-01-23 20:29:00.346
!MESSAGE NLS missing message: fileInitializer_fileNotFound in: org.eclipse.core.internal.runtime.messages

!ENTRY org.eclipse.osgi 2 1 2007-01-23 20:29:00.346
!MESSAGE NLS missing message: fileInitializer_IOError in: org.eclipse.core.internal.runtime.messages

!ENTRY org.eclipse.osgi 2 1 2007-01-23 20:29:00.346
!MESSAGE NLS missing message: fileInitializer_missingFileName in: org.eclipse.core.internal.runtime.messages

!ENTRY org.eclipse.osgi 4 0 2007-01-23 20:29:00.374
!MESSAGE An error occurred while automatically activating bundle org.eclipse.ui.workbench (103).
!STACK 0
org.osgi.framework.BundleException: The activator org.eclipse.ui.internal.WorkbenchPlugin for bundle org.eclipse.ui.workbench is invalid
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:141)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:962)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:317)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:256)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.preFindLocalClass(EclipseLazyStarter.java:86)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:409)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:188)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:334)
at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:37)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:383)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
(yadda yadda yadda)

The stack trace goes on and on. Since I’m not really a java developer (yet) and not familiar with eclipse internals or structure (I’ve only used it as a pedestrian noob) I have no idea what it’s looking for. All I know is that it does not work. I suppose I’ll be back to long google searches and the wild goose chases that entails. It would help if I knew what I was doing with eclipse, but it will be more magic incantations (try this… does that work? No? Oh, then undo it and try *this*).

It seems that one of the worst features of java apps is their extreme sensitivity to setup issues and their inability to help resolve them. I was a happy eclipse user one day, the next day eclipse and hibernate don’t work, but all of the other apps on my system are completely happy and sane. I lost nothing but Eclipse, but I really need that to work now.

I guess that Java is a little slice of hell, and to work there you have to learn a lot of things you don’t want to know.

6 Comments »

The URI to TrackBack this entry is: http://tottinge.blogsome.com/2007/01/24/eclipse-all-messed-up/trackback/

  1. Hi,
    I have the same problem.
    Have you found a solution?

    Andi

    Comment by Andi — 2007-February-20 @ 07:17

  2. Yeah. I have it listed at a later post. It was a mmap permission thing. I screwed up, and fixed it. Since then eclipse mostly has been behaving very well.

    Comment by Tim — 2007-February-20 @ 08:27

  3. Thanks.
    I managed to solve it too, but my problem was something else, I thnink (but I don’t know what). I reinstalled Eclipse, and for the 4th time I selected “Remove completely” not only “Remove” as the first 3 times, then install again.

    Comment by Andi — 2007-February-21 @ 12:27

  4. Now we have two solutions. :-)

    I’d tried purging and reinstalling before I found my problem, but it was still stuck. I think that of all the error messages I’ve ever seen, java applications have the worst. :-(

    In my case the problem was more general, and some of the other apps had better error messages. :-)

    Comment by Tim — 2007-February-22 @ 09:17

  5. I have latest ubuntu(fiesty main) and i also have such error. Eclipse starts with it, but then when i try to create j2ee project it crashes with error in jvm.
    The most ugly thing is that there is no exception in log, simply this:
    !SESSION 2007-05-18 22:37:20.748 ———————————————–
    eclipse.buildId=unknown
    java.version=1.4.2_14
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
    Command-line arguments: -os linux -ws gtk -arch x86

    !ENTRY org.eclipse.osgi 2 1 2007-05-18 22:37:21.975
    !MESSAGE NLS missing message: initializer_error in: org.eclipse.core.internal.runtime.messages

    !ENTRY org.eclipse.osgi 2 1 2007-05-18 22:37:21.975
    !MESSAGE NLS missing message: fileInitializer_fileNotFound in: org.eclipse.core.internal.runtime.messages

    !ENTRY org.eclipse.osgi 2 1 2007-05-18 22:37:21.976
    !MESSAGE NLS missing message: fileInitializer_IOError in: org.eclipse.core.internal.runtime.messages

    !ENTRY org.eclipse.osgi 2 1 2007-05-18 22:37:21.976
    !MESSAGE NLS missing message: fileInitializer_missingFileName in: org.eclipse.core.internal.runtime.messages

    I’ve checked fstab:
    #
    proc /proc proc defaults 0 0
    # /dev/sda3
    UUID=9ae2d28e-4e20-4c21-85c7-97058bb93e89 / ext3 defaults,errors=remount-ro 0 1
    # /dev/sda1
    UUID=38F0A171F0A135D2 /media/sda1 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
    # /dev/sda2
    UUID=6A04A39E04A36C2F /media/sda2 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
    # /dev/sda4
    UUID=a94ed6c9-e1c1-4b0c-bd90-a9636a9414a2 none swap sw 0 0
    /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0

    Does jvm have its own log? Because when it crashes nothing is written to log, error messages can be seen only on startup, when it crashes nothing!!!
    Better to solve java exceptions, really…..

    Comment by Alex — 2007-May-18 @ 09:51

  6. Hi,
    I’m using ubuntu 7.04 and I had the same problem. I reinstalled java (1.5 in my case) and it works now.
    That is, go to synoptic and select all java packages you already had and select reinstall.
    I hope this will help somebody.

    Comment by miki — 2007-June-21 @ 06:06

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.

Get free blog up and running in minutes with Blogsome | Theme designs available here