-
1. Re: Image Manipulation, ImageIO, getDefaultToolkit
adrian.brock Apr 24, 2003 1:33 PM (in response to cmiles74)I would guess your
"Reading in the image data..."
is not completing causing a Tx timeout after the
standard 5 minutes.
Regards,
Adrian -
2. Re: Image Manipulation, ImageIO, getDefaultToolkit
cmiles74 Apr 24, 2003 1:39 PM (in response to cmiles74)Yes, it looks like that is the case. My question is, why does it time out while reading the data?
BufferedImage bufferedImageOriginal = ImageIO.read( bytearrayinputstream );
This should complete right away, it's reading from a byte array that it already has on hand. I do the same thing on the client before sending the byte array and it completes fine; the data in the array is good.
Confused,
-- Miles -
3. Re: Image Manipulation, ImageIO, getDefaultToolkit
adrian.brock Apr 24, 2003 2:28 PM (in response to cmiles74)I have no idea.
You will have to ask whoever develops
ImageIO there is no jboss code here.
Regards,
Adrian -
4. Re: Image Manipulation, ImageIO, getDefaultToolkit
cmiles74 Apr 24, 2003 3:16 PM (in response to cmiles74)I will certainly endeavor to contact someone who works on the ImageIO code by submitting a bug report to Sun, but I fully expect them to complain that this is a JBoss issue. After all, it works fine in a Swing application.
I did not post this issue expecting someone to fix it for me, on the contrary I already have a workaround in place (I generate all three images on the client and send the data to the server). While this generates more network traffic, it's better than nothing. My hope was that someone else had seen a similar issue and might have something constructive to offer.
Sincerely,
-- Miles -
5. Re: Image Manipulation, ImageIO, getDefaultToolkit
adrian.brock Apr 24, 2003 3:32 PM (in response to cmiles74)Do you know about Enterprise Media beans?
There is an implementation of this in jboss4.
Maybe one of the developers on this project
can help you? I doubt they read the EJB forum. :-)
Regards,
Adrian -
6. Re: Image Manipulation, ImageIO, getDefaultToolkit
cmiles74 Apr 25, 2003 8:09 AM (in response to cmiles74)That does sound like what I'm looking for.
I'm thinking that calling out to AWT must not be allowed from the server. This makes sense, I guess, as on UNIX platforms you aren't guaranteed to have a windowing environment runnning.
Thanks,
-- Miles