Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Code works in debug but not in run mode

477087Jul 24 2008
Hi All

I am using Jdev 10.1.2 and I have some code in an app module method that I call from a button click on a struts page.

The code works everytime in debug mode but it only works once in run mode and then fails every other time i click the button.

Anyone know why this would happen. What run paramters are different in debug mode? Any help would be great

I have shortened the code

ByteArrayOutputStream baos = new ByteArrayOutputStream();
System.out.println("About to Write");
m_workbook.write(baos);
baos.flush();
baos.close();

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 21 2008
Added on Jul 24 2008
0 comments
489 views