views:

232

answers:

2

hi, please take a look at this error, how can i fix it?

An internal error occurred during: "Building workspace". java.lang.StackOverflowError

+3  A: 

Take a look at the .meatadata/.log file in your workspace directory. It should contain the full stack trace for the exception which may give you a better idea what is happening. If not, add it to your question.

Michael Borgwardt
A: 

You first need to understand when a StackOverflowError will occur. It will occur when, uhm, the memory stack overflows.

Here's a simple example which reproduces this:

public static void main(String... args) {
    overflowStack();
}

public static void overflowStack() {
    overflowStack();
}

You see? That's often just caused by an infinite loop. As long as you don't post the stacktrace, we can't help you much further in detail.

If it is actually caused by Eclipse, then you might try to restart it with -clean argument, or to delete the entire .metadata folder of the workspace in question (make backup though) and restart.

Good luck.

BalusC
I think his confusion is that he gets just this from compilation - not at runtime
matt b
perhaps he thinks that since it is a `StackOverflowError`, the SO community is responsible for it.
Here Be Wolves