3
votes
3answers
73 views

Why do I get java.lang.StackOverflowError when using Flood Fill algorithm?

My program is supposed to fill in a non-regular shape with a color (black and white for the beginning) that I specify in the boundaryFill4 method. Here is the link to myImage.png: ...
1
vote
1answer
36 views

Can someone explain why I'm encountering stackoverflow?

I have a int, "count" that adds one after each recursion, but I also have an if statement that stops the recursion once the int is equal to, or greater than another integer. Somehow that if statement ...
0
votes
2answers
70 views

Why does this method cause an Infinite Recursive call?

I'm struggling to understand why this class is not functioning. It was part of an assignment for a course on Data Structures(EDIT: The deadline for the assignment has passed, I just want to figure it ...
0
votes
1answer
36 views

StackOverflowError on keyReleased, but mouseReleased works fine

Selecting with the mouse works fine, as can be seen in the below run-time logs: init: Deleting: /home/thufir/NetBeansProjects/gnumail-providers/build/built-jar.properties deps-jar: Updating property ...
-2
votes
3answers
49 views

Why Stack overflow error occurs on creating nonstatic instance within an instance? [duplicate]

Why Stack overflow error occurs on creating nonstatic instance within an instance of same class ?? public class ObjectTest { ObjectTest instanceObj = new ObjectTest("Outside"); public ...
2
votes
3answers
67 views

Why do I still burn out the stack using tail recursive Fibonacci algorithm?

Stack overflows before n=1000. Is it because of the reference to the long[] parameter, that the JVM feels the need to hold on to every stack frame (wild guess), or am I doing something else wrong? ...
1
vote
4answers
128 views

Quicksort Algorithm causing stack overflow

SOLVED: posted in the end of THIS comment. I keep getting this error and I can't find any explanation to why it occurs. Exception in thread "main" java.lang.StackOverflowError at ...
1
vote
2answers
98 views

Stack Overflow Error in Java

I'm trying to code a program that finds the kth smallest element using recursion and quick sort like partitioning so as not to have to sort the entire array. I feel like my code should work, but I get ...
0
votes
2answers
98 views

Url Shortener redirects to index.html

Yes, yet another url shortener written in java, because I wanted my own, and because why not. Currently everything works, just not they way I want to to. In short, there is only one servlet mapped ...
0
votes
2answers
53 views

recursion method Stack Overflow error

In my code i am just trying to make a simple program that tells you if one number can divide into another number evenly (in this case that number is 3). right now I am saying that if x (the number ...
23
votes
7answers
660 views

Understanding java stack

There is a code: public class Main { public static void main(final String[] args) throws Exception { System.out.print("1"); doAnything(); System.out.println("2"); } ...
0
votes
3answers
64 views

StackOverflowError when matching large input using RegEx

I got StackOverflowError when matching the result using a RegEx pattern. The pattern is (\d\*?(;(?=\d))?)+. This regex is used to validate the input: 12345;4342;234*;123*;344324 The input is a ...
0
votes
1answer
175 views

Recursive bin packing algorithm won't scale

I completed an assignment whose specs require: Recursive solution Capacity <= 100 values.length <= 25 Only parameters are capacity and index Repetition of values is allowed I've spent ...
1
vote
2answers
56 views

Is that “StackOverflowError” on Java RegularExpressions always means necessity to optimise Regex?

To read CSV files, I have the following regular expression in Java: Pattern csvline = Pattern.compile("((([^\\\"]|\\\"\\\")+|\\\"([^\\\"]|\\\"\\\")+\\\"))*", Pattern.DOTALL); This expression passes ...
-1
votes
1answer
63 views

Analyze some html pages from StackOverflow

I need to extract answers from 500 stackoverflow questions at a time, but suddenly I read this error on Eclipse console: Server returned HTTP response code: 503 for URL: ...

1 2 3 4 5 12
15 30 50 per page