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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "RecursiveAction" Watch "RecursiveAction" New topic
Author

RecursiveAction

meeta gaur
Ranch Hand

Joined: Dec 05, 2012
Posts: 305


Exception in thread "main" java.lang.StackOverflowError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:536)
at java.util.concurrent.ForkJoinTask.reportResult(ForkJoinTask.java:596)
at java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:640)
at java.util.concurrent.ForkJoinPool.invoke(ForkJoinPool.java:1521)
at RecursiveActionExample.main(RecursiveActionExample.java:40)
Caused by: java.lang.StackOverflowError
at sun.misc.Unsafe.compareAndSwapInt(Native Method)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.compareAndSetState(AbstractQueuedSynchronizer.java:566)
at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:211)
at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:290)
at java.util.concurrent.ForkJoinTask.setExceptionalCompletion(ForkJoinTask.java:439)
at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:379)
at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:654)
at java.util.concurrent.ForkJoinTask.invokeAll(ForkJoinTask.java:685)
at RecursiveActionExample.compute(RecursiveActionExample.java:31)
at java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:177)
at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:377)
at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:654)
at java.util.concurrent.ForkJoinTask.invokeAll(ForkJoinTask.java:685)
at RecursiveActionExample.compute(RecursiveActionExample.java:31)
at java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:177)
at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:377)
at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:654)
at java.util.concurrent.ForkJoinTask.invokeAll(ForkJoinTask.java:685)
at RecursiveActionExample.compute(RecursiveActionExample.java:31)
at java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:177)
at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:377)
at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:654)
at java.util.concurrent.ForkJoinTask.invokeAll(ForkJoinTask.java:685)
at RecursiveActionExample.compute(RecursiveActionExample.java:31)
at java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:177)
at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:377)
at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:654)
at java.util.concurrent.ForkJoinTask.invokeAll(ForkJoinTask.java:685)
at RecursiveActionExample.compute(RecursiveActionExample.java:31)
at java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:177)
at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:377)
at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:654)
at java.util.concurrent.ForkJoinTask.invokeAll(ForkJoinTask.java:685)
at RecursiveActionExample.compute(RecursiveActionExample.java:31)
at java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:177)
at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:377)
at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:654)
at java.util.concurrent.ForkJoinTask.invokeAll(ForkJoinTask.java:685)
at RecursiveActionExample.compute(RecursiveActionExample.java:31)
at java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:177)
at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:377)
at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:654)
at java.util.concurrent.ForkJoinTask.invokeAll(ForkJoinTask.java:685)
at RecursiveActionExample.compute(RecursiveActionExample.java:31)
at java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:177)
at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:377)
at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:654)
at java.util.concurrent.ForkJoinTask.invokeAll(ForkJoinTask.java:685)
at RecursiveActionExample.compute(RecursiveActionExample.java:31)
at java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:177)
at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:377)
at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:654)
at java.util.concurrent.ForkJoinTask.invokeAll(ForkJoinTask.java:685)
at RecursiveActionExample.compute(RecursiveActionExample.java:31)
at java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:177)
at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:377)
at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:654)
at java.util.concurrent.ForkJoinTask.invokeAll(ForkJoinTask.java:685)
at RecursiveActionExample.compute(RecursiveActionExample.java:31)
at java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:177)
at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:377)
at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:654)
at java.util.concurrent.ForkJoinTask.invokeAll(ForkJoinTask.java:685)
at RecursiveActionExample.compute(RecursiveActionExample.java:31)
at java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:177)
at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:377)
at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:654)
at java.util.concurrent.ForkJoinTask.invokeAll(ForkJoinTask.java:685)
at RecursiveActionExample.compute(RecursiveActionExample.java:31)
at java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:177)
at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:377)
at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:654)
at java.util.concurrent.ForkJoinTask.invokeAll(ForkJoinTask.java:685)
at RecursiveActionExample.compute(RecursiveActionExample.java:31)
at java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:177)
at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:377)
at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:654)
at java.util.concurrent.ForkJoinTask.invokeAll(ForkJoinTask.java:685)
at RecursiveActionExample.compute(RecursiveActionExample.java:31)
at java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:177)
at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:377)
at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:654)
at java.util.concurrent.ForkJoinTask.invokeAll(ForkJoinTask.java:685)
at RecursiveActionExample.compute(RecursiveActionExample.java:31)
at java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:177)
at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:377)

Please help!!


My one regret in life is that I am not someone else.
- Woody Allen
meeta gaur
Ranch Hand

Joined: Dec 05, 2012
Posts: 305

Sorry for stupid mistake
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RecursiveAction