Cannot start Eclipse

Weird thing this morning, started Eclipse, like usual, using my PortableProgram frontloader and I got an error from the past, an error, I happen to know made me reinstall eclipse from a backup cause I couldnt find the real cause. The error was that eclipse cannot be started and I had a log of the error in the file:

WorkspaceLocation/.metadata/.log

Looking at this file, I found LOOOOOOOOADS of errors, all relating to not being able to find the plugin information it needs to start, which was blocking Eclipse from functioning properly. Here is a snippet if you recognise something similar, maybe this solution will help you as well as it helped me.

[chris@chris eclipse]$ cat /media/Shadows/projects/work/bluemedia/workspace/.metadata/.log
!SESSION 2007-06-21 01:00:48.101 ———————————————–
eclipse.buildId=M20070212-1330
java.version=1.6.0
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=es_ES
Command-line arguments: -os linux -ws gtk -arch x86

This is a continuation of log file /media/Shadows/projects/work/bluemedia/workspace/.metadata/.bak_0.log
Created Time: 2007-06-21 01:01:21.205

!ENTRY org.eclipse.osgi 4 0 2007-06-21 01:01:21.206
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: org/eclipse/core/resources/IContainer
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
ETC, ETC, ETC, ETC, ETC……………..

!ENTRY org.eclipse.osgi 2 0 2007-06-21 01:01:22.332
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2007-06-21 01:01:22.332
!MESSAGE Bundle update@plugins/org.eclipse.birt.report.data.oda.jdbc_2.2.0.v20070531/ was not resolved.
!SUBENTRY 2 org.eclipse.birt.report.data.oda.jdbc 2 0 2007-06-21 01:01:22.332
!MESSAGE Missing required bundle org.eclipse.datatools.connectivity.oda_[3.1.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2007-06-21 01:01:22.333
!MESSAGE Bundle update@plugins/org.eclipse.birt.report.data.oda.jdbc.ui_2.2.0.v20070531.jar was not resolved.
!SUBENTRY 2 org.eclipse.birt.report.data.oda.jdbc.ui 2 0 2007-06-21 01:01:22.333
!MESSAGE Missing required bundle org.eclipse.datatools.connectivity.oda.design.ui_[3.0.4,4.0.0).
ETC, ETC, ETC, ETC……..

So, you can imagine what I am thinking, this worked perfectly 5 hours ago, I closed Eclipse, now it doesnt work.

Well, the solution in the end was quite simple, what I did was I deleted the directory

WorkspaceLocation/configuration/.settings

and Re-ran eclipse, I was confronted with the choose a workspace dialog, I selected a workspace and it opened without any of those problems.

I am not entirely sure of why this is caused, but at least I know a way to stop and prevent it!!!

UPDATE #1:

Even though now you can run Eclipse, you still cannot open the affected workspace. I have found that there is actually a relationship between this crash and a file called a .snap file that is contained inside the workspace directory you are trying to open. If you delete the file

WorkspaceLocation/.metadata/org.eclipse.core.resources/.snap

(if it exists)and attempt to open the workspace again, it’ll work, UNFORTUNATELY, all your projects are now missing and I am sure deleting that file will erase ALL your project settings (it has to me in this instance). But if you cannot even open the workspace, it might be easier for you to recreate them than to create a brand new workspace, it’s up to you which solution you use, I’ll have to investigate this further the next time it happens.
Ciao for now!

SSH + Java + GCJ = Mac Corrupt on Input

Well, I had another GCJ problem today, here is what happened

I was running eclipse, which is my main development platform and I was trying to use the plugin I wrote, eSFTP when I was never being able to verify the connection, always getting “Connection Failed”.

On opening the OSGi console, I found that I was getting the

“Mac Corrupt on Input”

Whenever I tried to connect, I looked this up on the net and found that people described it as the network link is correct, but then the mac information gets corrupted whilst being transported from the network link level, to the operating system level.† I was a little dumbfounded, not having a clue what could be causing this problem.

I ran eclipse again and then opened the configuration information for eclipse, which is the in the

Help -> About

screen and I found that it was running GCJ as the java VM, which is not really what I wanted, because I always run with the Sun VM now, because of the problems I had with open office.† Which you can read about here.

So, ok, now I forced Eclipse to use the Sun VM and tried again, magically, everything worked and I am able to use eSFTP again without any problems.

I cannot explain _WHY_ this is the case, but it’s just something I came across recently and thought I would share with you, see if it helps you out.

The great spain Mobile Robbery

Hey!

I have some excellant advice for those who are thinking to purchase a mobile phone in Spain. Now, for all of you who have lived here a while you might have noticed a pattern, it’s quite unfortunate, but it’s a big reason why most people get ripped off whilst living here. I shall try to explain what it is.

You see, in Spain, people like to be generous, very generous. They are a great people and my girlfriend, who is Catalan (a region of spain which contains Barcelona, it’s near the french border for all those who are geographically challenged), is a great example of how generous, her parents, show again, just how generous and great these people are.

But they mostly have a curse, something which plagues them and makes them pay more than they should for things which don’t normally cost that much. It’s because they are used to paying high prices, they don’t demand the price be lower. A quick headline would be something like this

If you want a brand new Nokia N95 for about 200? and 25? a month with about 500 minutes of free calls and 500 free SMS messages, STOP PAYING 700? FOR THE BLOODY THING!!!

Now, the cleverer of you might realise what that statement is trying to say, without being insulted, you see, in Spain, paying more for less is something they do all the time. I quote a recent inquiry from Movistar, a mobile opeator in Spain

Operator: We would like you to sign up for a contract with us

Me: Ok! Tell me what I can get

Operator: We can offer you some great handsets, such as <This crappy handset>, <Just as crappy handset> or <Another crappy handset>

Me: Erm, are you serious? they are all awful handsets

Operator: No no, they are the latest handsets you can get, they have bluetooth, GPRS (LOL) and a camera

Me: I shall try to explain you something, what kind of camera?

Operator: usually 1 mega pixel or something, they are very good

Me: My Current phone has a 2 Mega pixel camera, you see my point? they are awful and worse than my current phone

Operator: Well, I guess if you are more technically minded, we can offer you another

Me: Ok! Great! I want the Nokia 6288, or the Nokia N73, cause they are great handsets

Operator:

we don’t have the N73, but we can offer you the 6288 for 129?Me: 129? !!! for a 6288??? WITH A CONTRACT??? Ok, it had better be a great contract

Operator: Well, we can offer you this for 15? a month

Me: Hmm, ok, sounds cheap, how many free minutes or SMS text messages

Operator: None

Me: <stunned silence>pardon?

Operator: They don’t come with any free minutes or text messages

Me: So what am I paying you 15? a month for? Fun?

Operator: Because the calls are cheap

Me: HAAAHHAHAHAHA (seriously, I laughed like that) Are you Serious??

Operator: It’s a really good deal, it’s cheap

Me: No, it’s not cheap, it’s expensive cause I am paying for all my own calls, look, I think you need something explained here,

I am not interested in what YOU think is a good deal, I am only interested in what *I* think is a good deal and what you think doesn’t matter at all.

I couldn’t care less, I want the following, I Want the Nokia 6288 WITH 500 minutes of calls, WITH 500 SMS text messages, PER month and I will pay you around 30? a month, plus I am only going to pay about 50 euros for the phone.

Operator: I can’t offer you that

Me: You have your priorities wrong, if you don’t offer me it, someone else will and you’ll lose a customer, forever, cause I won’t forget your attempt to enslave me(seriously)

Operator: Maybe a customer store can better help you, but I cannot offer you that phone on those terms over the phone

Me: Ok, I will goto the shop

Which pretty much concludes our trip through memory lane, I was astonished, that someone in spain would consider that a good deal, that someone might actually think, wow, it sounds great!!! Sign me up for 18 months!!! How about NO! it doesnt sound good, it sounds really awful and I am sick of it, Vodafone aint no different, although they are a huge margin ahead of Movistar, who act like the BT of old where you pay what they offer cause you don’t have a choice.

That is, my friends, where the problem comes, in Spain, there is barely any choice, therefore, companies steal your money, cause you have no choice but to either accept their terms, or to go without a phone service.

Spain needs to wake up, start DEMANDING better service and USE YOUR FEET to tell them what you think, don’t just accept the contract cause it’s “ok” accept it because you KNOW it’s a good contract and if it’s not, DEMAND BETTER!

If you didn’t do it, don’t offer to help

A couple of years ago there was a story about two girls who went missing and suspected murdered and I was having a conversation with a friend about offering to help when you have nothing to do with the crime, my friend contested that you should always help if you can and my response, which pretty much sealed the deal on the issue, I write here so others can discuss it as well

During the investigation of the Soham Murders, the police went on the television and said, we are looking for a white van which was seen in the area at the time and police would like anyone in that area at that time with a white van to come forward to be eliminated from the inquiry and narrow down the number of possibilities they had to go through.

Word to the wise, FUCK THAT! you seriously want me to say I had a white van and was driving in that area at the time these girls went missing? Are you fucking crazy????  I might as well just paint PEDOBEAR on the side of the van and drive to the police headquarters, pull my pants down and ask to be “investigated”, I mean, who in their right mind would come forward.  What exactly are the police going to do in such circumstances? register my name and address, ask me “did I murder two girls” and if I answer in the negative, let me go??

OR, do you think I’ll have my day ruined, be suspected of doing the crime, have my life turned upside down, have my face in the papers associated with the girls disappearance (which will never be forgotten by the way, innocent or not). Then I’ll just go back to my normal life, after being totally raped by the almost-becoming-to-a-cinema-near-you-police-state system we live in. Fancy working with children in the future? good luck, your face was in the papers and I recognise you, want to take another white van job, oh sorry, we don’t employ suspected pedophiles. Fancy some friends, oh sorry, nobody wants to know a pedophile.

“BUT I DIDNT DO IT!!” You will scream

“Yeah yeah, so if you’re so innocent, how come your face was in the papers?? No smoke without fire my friend”

is pretty much the response you’re about to get

So, if you didn’t do it, have nothing to do with it, don’t offer to help, assist, “eliminate yourself from inquiries” or “assist” the police, because assisting the police to you means something completely different to them, remember, they are not the same type of people as you are.

what do you think?