Results 1 to 7 of 7
Thread: java.lang.StackoverflowError
- 06-17-2008, 07:51 AM #1
Member
- Join Date
- Jun 2008
- Posts
- 3
- Rep Power
- 0
java.lang.StackoverflowError
Hi,
I created a Java class which runs perfectly fine when I run it in eclipse. However when I specify it as an ant task in my build.xml, it throws up java.lang.StackOverflow Error :confused:
My class structure is :
My build.xml ant target file goes like this:Java Code:public class X extends Task{ public void sendMail(String server,string from,string to, string subject){ /* Procedure to implement sending a mail. PS: This perfectly works when I build this java class separately and run */ } public void execute throws BuildException(){ sendMail(server,from,to,subject); } }
Could anyone pl. help me out with this ?Java Code:<taskdef name="coverageMail" classname="X" > <classpath path = "${build.classpath}" /> </taskdef> <target name="sendMail" > <antcall target = "coverageMail /> </target>
- 06-19-2008, 12:23 PM #2
Stack overflowing
Hello ravisankarvivek
Normally when I get a stack overflow error, it means that some recursive method call can't be stored in a stack in the CPU's registers. (Someone, please correct me if I'm wrong) This can be because the method is calling itself infinitely many times. Maybe this will give you an idea or hint.
Good luck. ;)Eyes dwelling into the past are blind to what lies in the future. Step carefully.
- 06-19-2008, 12:28 PM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
I hope so tim. It can be caused because of infinite recursion too. It can be happened according to the original code in this thread.
- 06-21-2008, 07:43 PM #4
Member
- Join Date
- Jun 2008
- Posts
- 3
- Rep Power
- 0
Hey...thanks a lot.. It was a bug in my ant task [:(]...The ant targets kept calling recursively...Thank u once again for spending time on my bug..
- 06-23-2008, 04:48 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Fine, so you've solved this. Please mark the thread as solved now. It's really helpful to all other members here in our community.
- 06-23-2008, 08:44 AM #6
Member
- Join Date
- Jun 2008
- Posts
- 3
- Rep Power
- 0
Cud you tell me how to do that ? I guess, u should put in the FAQ section also..
- 06-23-2008, 09:05 AM #7
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
On top of the first post of this thread, you can find a menu bar. There is a menu called 'Thread Tools'. Click on it and see.
Similar Threads
-
java.lang.StackOverflowError Exception
By Marcus in forum Web FrameworksReplies: 4Last Post: 08-24-2012, 10:02 PM -
java.lang.UnsatisfiedLinkError: no parport in java.library.path
By Heather in forum NetBeansReplies: 3Last Post: 09-07-2009, 01:28 PM -
Error: cannot resolve symbol' on Person (java.lang.String, java.lang.String)
By baltimore in forum New To JavaReplies: 2Last Post: 09-18-2008, 07:30 AM -
java.lang.StackOverFlowError exception
By jayaj in forum NetBeansReplies: 1Last Post: 06-08-2008, 11:17 AM -
java.lang.StackOverflowError
By eva in forum New To JavaReplies: 3Last Post: 12-24-2007, 09:54 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks