Jump to content
Software FX Community

ChartServer using same generated image file in 2 different threads


Recommended Posts

I've been using chartfx 6.2 in a jboss servlet/jsp app for a couple months and just had an issue during QA testing.

Basically I have a page that makes a couple ajax calls simultaneously to jsps that generate graphs as PNGs (calling chart.getHtmlTag(wt, ht, "PNG")).  Now this only seems to happen right after the server has started up, but each call tries to use the same generated filename for the PNG in /chartfx62/temp/.  And so whichever jsp winds up being the second call overwrites the file from the first call and the page will show the same chart as the result of both ajax calls.  This certainly doesn't always happen and subsequent calls back to these pages always seem to work fine.  But I'm worried how often this will happen in a production environment with multiple users logged in at once.

Has anyone experienced a problem like this?  I appreciate any and all responses, thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...