It's back! Take the 2018 Developer Survey today »
0
votes
1answer
35 views

stackoverflow error using instance of class

So I'm making a payroll application and ran into a problem. Every time I go to run it, it comes up with a stackoverflow error. I can't seem to find out the error. I have been stuck on the problem for ...
0
votes
2answers
54 views

Java webapp produces StackOverflow exception on Linux

I have a Java-web application running on Tomcat 9. It works fine on a Windowns machine. But after deploying this app on a Debian Linux server I've encountered java.lang.StackOverflow exceptions on ...
0
votes
1answer
55 views

QuickSort with Many Elements causes StackOverflowError

Good day! I am getting a StackOverflowError when running my quickSort algorithm. This error occurs when elements in the array > 50 000. My code is below : public void recQuickSort(int left, int ...
0
votes
1answer
42 views

java.lang.StackOverflowError in QuickSort code

I wrote this method for QuickSort: public static void QuickSort(int f, int l, int a[]) // f, when passedfrom a method at first is equal to the first index of //the array, while l is the last. So if ...
0
votes
1answer
46 views

org.json - StackOverflowError when attempting to parse JSONArray containing html strings

I have the latest version of org.json - json-20171018. In my application, I must create a JSONArray in Java of various fields, which have been created on the front end (javascript) with the ...
0
votes
0answers
18 views

Having “AWT-EventQueue-0” java.lang.StackOverflowError with specific variable set [duplicate]

I am coding this program to solve the following equation: ax+by+cz+....+nk <= d a, b, c, ..., n and d will be input by user. Imaging that a, b, c, ..., n are the price list and x y z... k are the ...
-1
votes
3answers
63 views

Custom enum implementation Java [duplicate]

I am trying to implement some kind of custom enum - a class which would act like enum and would implement its methods. I need to pass a set of values make them final and do operations like ordinal, ...
-2
votes
1answer
26 views

Stack Overflow Error Knights Tour

I have this Knight's Tour code but am getting a java.lang.StackOverflowError on line 37. I'm not really sure where to go from here to fix it. I think the code in my main has something to do with it ...
0
votes
1answer
22 views

Calling printText method from Gui class from anoter class

I am trying to implement a singleton into my GUI class but once i return the instance it gives me a nullpointer exception, i have been looking at multiple sources but it just doesnt work right. ...
0
votes
0answers
71 views

Stack Overflow Error, m-ary tree size

What's wrong with my recursion logic? I'm trying to find the size of an m-ary tree. An MTree Node's children is represented by an ArrayList I implemented. My logic was to have a for loop as big as m ...
3
votes
2answers
66 views

Floodfill StackOverFlow, IDEA

I'm trying to programme flood fill but the is any problem with recursion. Error msg says: "Exception in thread "AWT-EventQueue-0" java.lang.StackOverflowError" Here is my code: public class ...
1
vote
2answers
52 views

Elegant way to define a huge global ImmutableList constant (beyond stack size limitation)

I'm trying to define a global constant ImmutableList that is too large for the default stack size limit, and I'm wondering if there's a way to get around it other than passing an aggressive Xss32M ...
0
votes
1answer
46 views

Spring Data Elastic and recursive document mapping

I have a Spring application where I use Spring Data Elastic for accessing Elasticsearch data. The data model requires recursion and it causes headache for Spring Data Elastic, because I got java.lang....
0
votes
0answers
38 views

After adding caching in mybatis and streams java.lang.OutOfMemoryError: GC overhead limit exceeded occurs

At begin I would like to mention that so far my app has worked well - I mean lack of java.lang.OutOfMemoryError - it was tested a long time. I have default settings of heap size of JVM. These ...
1
vote
1answer
70 views

StackOverflowError with JPA bidirectional references in Kotlin

I have data classes as following: @Entity @Table(name = "SECTIONS") data class Section( @Id @GeneratedValue @Column(name = "ID") var id: Long = 0, @Column(name = "...
-1
votes
2answers
40 views

Quick Sort Overflow

My assignment is to benchmark the different run-times of various sorting algorithms. I was able to get all of my algorithms running. However, I run into an overflow problem when dealing with large ...
7
votes
1answer
205 views

AspectJ compiler bug leads to StackOverflowError

I run into a StackOverflow error of the AspectJ compiler today and I thought I should share it on StackOverflow :-) To reproduce the error I made a toy example public abstract class Node<T,Q ...
0
votes
2answers
31 views

How can I fix my java quick sort?

The problem is, it's a neverending recursion. I don't know, how can I finish the recursion. The funny is, it works, if I print the arraylist (mergedArray), it will be sorted after some iteration, but ...
0
votes
0answers
38 views

Eclipse RCP grabs 20 GB of memory in 5 seconds

I have an intermittent memory utilization problem with my RCP app that I hesitate to call a leak because it's more like a catastrophic flood. It happens maybe one out of 50 times when I launch it, ...
0
votes
2answers
58 views

Calling a Static Singleton Class from Junit test throws StackOverflow error

When We run the DrawerOpenTest.java it throws the StackOverflow error, while we expect the test case to be passed. And when DrawerOpen class is singleton, assertThat(actualState, is(expectedState)); ...
-3
votes
3answers
42 views

Simple flood fill method causes StackOverFlow error

My flood fill method: public void fillNeighbours(int x, int y) { for(int i = -1; i < 2; i++) { for(int j = -1; j < 2; j++) { try { visible[x+i][y+j] = ...
-5
votes
1answer
46 views

Stackoverflowerror with using constructor

I just started doing some coding in Java for a school project. Right now I am really stuck with this assignment. In this assignment, I have to make a Point p and get the x and y in the way I ...
0
votes
1answer
32 views

Modifying Dijkstra to save paths with equal values - StackOverflow error

I'm trying to modify Dijkstra's algorithm to show all the paths that have the minimum value. So I decided to use a list of previous vertices. And I added an if clause that checks if the path is igual ...
0
votes
0answers
30 views

How to fix stackoverflow error apache poi creating workbook?

I am writing a java program to create an excel workbook with one sheet. The sheet has several rows and two cols, both strings which are populated from data returned from another service in the form of ...
0
votes
0answers
16 views

StackOverFlowError when using recursion on SplayTree [duplicate]

I implemented a Splay Tree class that uses nodes to store data. When data is passed into the tree and the splay method is called, I get a StackOverFlowError. I tried some tests and found out that any ...
1
vote
2answers
32 views

StackOverFlow Error when converting 1,000,000 Nodes in a Splay Tree to a SinglyLinkedList

I have implemented a Splay Tree class that uses nodes to store data. In this class I have tried to convert the data of nodes into a Singly Linked List. 1,000,000 nodes can be inserted into the splay ...
-1
votes
2answers
46 views

Catch inside while loop

I am converting string to Integer, so when I receive any character, exception is thrown and execution is getting stopped. I want to skip that character and print all the remaining numbers so I kept ...
0
votes
3answers
106 views

If controller in jMeter thread group

I'm using jp@gc's Ultimate Thread Group and inside the thread group I have a if controller making sure only every other thread/user continues with (${__threadNum}%2==0) There seems to be some ...
-3
votes
1answer
38 views

StackOverflowError when calling method of subclass object? [duplicate]

Executing the Test class gives a StackOverFlow error :( Parent class : package Pack; public class Alpha { protected void sayHi() { System.out.println("Hi...from Alpha"); } } Child class :...
0
votes
0answers
34 views

StackOverflowError in opening jrxml file with java [duplicate]

for open the jrxml file in javaee, i test all the JasperReport class. such JasperDesign,JasperReport,JasperPrint,JasperViewer, JasperExportManager but with all of them i get an special error. my code: ...
3
votes
1answer
48 views

Recursion formula keeps returning stack overflow

I've ran the below code and I think it's correct. However, it just keeps returning stack overflow. When I run it in debug mode, I noticed somehow within the function x%y returns y instead of the ...
2
votes
1answer
50 views

Stack Overflow during Recursion

I am trying to write a program that when given a function and a high and low value, it finds the zero between the high and low. I have written it recursively in a binary search style. When I run a ...
1
vote
5answers
77 views

What's wrong in this design that causes infinite loop?

I will explain myself by giving you a descriptive example. Let's say I'm programming a very simple Cloud Storage Simulation, a simple terminal program. I have two main classes, User and File coded as ...
1
vote
4answers
104 views

Stack Over Flow When computing n = ~11000 + fibonacci recursive method with memoization

I have a program to compute the nth Fibonacci number with a recursive method and while using memoization. I get up to around n = 11000 and I am getting a stackoverflow exception. Can someone help me ...
0
votes
3answers
60 views

How to avoid stackoverflow while calling methods of two classes in eachother Java

I searched the whole StackOverflow website I come across only one nearest answer but not working in my condition. How can I call methods of two classes in each other First Class is Alpha and ...
0
votes
1answer
48 views

Why this recursive function is throwing StackOverFlow error???this is my logic for binary search and Where is the exact point of error in it

This is my logic for binary search and when I try to run it it gives me error of stackoverflow....I have written base condition also. Where is the exact point of error in it. For this code, I have ...
0
votes
3answers
70 views

StackOverFlow Exception in recursion calls

Im trying out a bitwise And program for the range of number between a and b . Can have 'n' testcases for that. 0<=a,b<=2^32 1<=n<=200 EXPLANATION : 1 2 4 computation : 2&3&...
1
vote
1answer
177 views

Game loop of a turn-based game

Currently, I'm working on an AI for a simple turn-based game. The way I have the game set up is as following (in pseudo-code): players = [User, AI]; (for player : players){ player....
-3
votes
3answers
56 views

Exception in thread “main” java.lang.StackOverflowError JPanel

I'm getting this error when I try to run program that creates a Panel inside a Frame I didn't paste some parts of code like variable declaration because I didn't have much space! Exception in thread ...
-3
votes
2answers
54 views

java getting stack overflow-program is not recursive

I have been working on my "Random Trivia" program and I keep getting stack overflow with NO recursiveness, at least I cannot find any, here is the code to Gui.java, the main class(and only class) ...
-2
votes
2answers
159 views

Why item on menu drawer can't click ? Android Navigation

I have a really interesting problem with my Navigator menu. I have no idea why... But I can click on any item from my menu, I don't want to say I click and nothing happened. I really want to say I can'...
0
votes
0answers
51 views

Spring stack overflow when using setter methods

I have changed my mappers to inject via setter as spring documentation suggests to avoid a circular dependency however - I am still having the same issue. To this extent I get a stackoverflow ...
1
vote
1answer
22 views

JavaFX: Bind List<A> bidirectional to List<B> throws StackOverflowError

I am trying to bind two ListProperties bidirectional. The problem is, they have different types (A and B). Test4#test01() illustrates what I would like to do. Test4#test02() is my naive approach to ...
-1
votes
2answers
81 views

How to resolve StackOverflowError by changes in java code [closed]

I am getting java.lang.StackOverflowError while using recursive function. Actually In recursive function xml file has been parsed and if in xml file, previous xml feed url exists, then that xml again ...
1
vote
1answer
48 views

Octree StackOverflowError

Good day, I am implementing an Octree. However, I kept on receiving a StackOverflowError when having an input size greater than 2. I am clueless on why I am getting this error. Instantiation of ...
0
votes
1answer
55 views

Building and enormous tree and being bugged with a stackoverflow error

im working on a project and in my project I have to build a tree. The tree will have around 64000 leaves. Unfortunetly I keep running into a stackoverflow error and I have no idea what to do at this ...
0
votes
0answers
71 views

Apache Spark: StackOverflowError creating DataFrame in Java

I'm trying to get some tasks done with Apache Spark over two ArrayLists of my own classes. At the moment only locally for test purposes. Therefore i have a GraphBuilder class whose constructor builds ...
1
vote
2answers
48 views

StackOverFlowError Handling and Java Recovery

Can anyone please explain how StackOverFlowError work? I know endless recursion causes StackOverFlowError, but does any other method gets executed after the stack is full? I have handled the error in ...
1
vote
1answer
31 views

How to create own controller method with OutOfMemory or Stack Over Flow Error

I have Java Web Application (WAR), deployed on google app engine. I want to create some controller method, that will take some hardcode token(or user:password) and do some recursion, to kill my ...
-2
votes
3answers
44 views

I am getting a StackOverflow error in a hashfunction code but I cannot determine , can someone help me fix it/

I am creating a hash function by myself for my university assignment. My hash function works something like this ... It will take a string as input and add the ASCII values of every character into a ...