File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes OutOfMemoryError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "OutOfMemoryError" Watch "OutOfMemoryError" New topic
Author

OutOfMemoryError

Rebecca Abraham
Ranch Hand

Joined: Feb 20, 2003
Posts: 37
Hi,
I have to build a screen that displays some what in the following format:
A B C Total hours
Jan'01 10 20 30 60
Feb'01 10 0 15 25
Mar'01 0 0 10 10
20 20 55 95 (total)
Jan'01 was selected from a combo box (combo1)populated with all the months from Jan 2000 to Feb 2003. Mar'01 was also selected from a similar combo box(combo2). I have a 3rd combo box populated with different categories(A, B,...).
When i select a category and also months from the 2 respective combos( say Jan'01 and Mar'01), i should get all the hours for the selcted ategory for the selected months.
If i don't select anything from the 3 combos, the time for every category must be displayed for every month populated in the combo box.
The code i wrote works perfectly upto 5 categories. But once i add a 6th category, and try a blank search i get an OutOfMemoryError. But if i reduce the number of months i want displayed, they get displayed. This goes on. As the number of categories increase, the number of months that can be displayed gets decreased.
Is there something i can do? Please help.
Thanks.
Rebecca
karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
hi
there is not to much we can do without seeing your code.
i get outofmemory errors when:
- doing recursion without proper termination
- recursion with high levels of recursion
- creating objects in an infinite loop
-
k
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: OutOfMemoryError
 
Similar Threads
display date(formatted with select boxes) from oracle DB in jsf
how to display all months of a particular year according to the following rule
setting default value for a combobox
Populate JCombo Box with different Values in each Row in JTable
Opera 10.3 problem page loading 2 times