Re: Possible threading issues with xsltc + BCEL ???
Hi Guys, Xalan guys have updated the xsltc code to resolve this issue. Will update the xsltc jar in Cocoon head if there are no objections. Regards, Michael On Fri, Feb 07, 2003 at 12:43:42PM +0100, Michael Melhem wrote: On Thu, Feb 06, 2003 at 04:18:55PM -0500, Vadim Gritsenko wrote: Michael Melhem wrote: Hi Cocooners, Are their any other Cocoon users having Threading Issues with xsltc? Its seems that if you have a translat being compiled at the same time by two or more threads (instances of TraxTransformer) you will get issues because BCEL is not (by design) threadsafe as it users static methods and variables which seem to be overwriting each other??? Once the Translets get compiled however, such threading issues disappear. Does anyone have expirence with this? Regards, Michael Melhem Ps After locally patching org.apache.xalan.xsltc.trax.TemplatesHandlerImpl.java with some synch code around the compile block, all seems OK. Hi Vadim, Can you notify Xalan guys about this issue? Or may be sent'em a patch? Yep, im chasing this up will talk with the Xalan guys. Cheers, Michael Vadim - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Possible threading issues with xsltc + BCEL ???
On Thu, Feb 06, 2003 at 04:18:55PM -0500, Vadim Gritsenko wrote: Michael Melhem wrote: Hi Cocooners, Are their any other Cocoon users having Threading Issues with xsltc? Its seems that if you have a translat being compiled at the same time by two or more threads (instances of TraxTransformer) you will get issues because BCEL is not (by design) threadsafe as it users static methods and variables which seem to be overwriting each other??? Once the Translets get compiled however, such threading issues disappear. Does anyone have expirence with this? Regards, Michael Melhem Ps After locally patching org.apache.xalan.xsltc.trax.TemplatesHandlerImpl.java with some synch code around the compile block, all seems OK. Hi Vadim, Can you notify Xalan guys about this issue? Or may be sent'em a patch? Yep, im chasing this up will talk with the Xalan guys. Cheers, Michael Vadim - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Possible threading issues with xsltc + BCEL ???
Michael Melhem wrote: Hi Cocooners, Are their any other Cocoon users having Threading Issues with xsltc? Its seems that if you have a translat being compiled at the same time by two or more threads (instances of TraxTransformer) you will get issues because BCEL is not (by design) threadsafe as it users static methods and variables which seem to be overwriting each other??? Once the Translets get compiled however, such threading issues disappear. Does anyone have expirence with this? Regards, Michael Melhem Ps After locally patching org.apache.xalan.xsltc.trax.TemplatesHandlerImpl.java with some synch code around the compile block, all seems OK. Can you notify Xalan guys about this issue? Or may be sent'em a patch? Vadim - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Possible threading issues with xsltc + BCEL ???
Hi Cocooners, Are their any other Cocoon users having Threading Issues with xsltc? Its seems that if you have a translat being compiled at the same time by two or more threads (instances of TraxTransformer) you will get issues because BCEL is not (by design) threadsafe as it users static methods and variables which seem to be overwriting each other??? Once the Translets get compiled however, such threading issues disappear. Does anyone have expirence with this? Regards, Michael Melhem Ps After locally patching org.apache.xalan.xsltc.trax.TemplatesHandlerImpl.java with some synch code around the compile block, all seems OK. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Possible threading issues with xsltc + BCEL ???
I've hit this - it only happens when compiling the stylesheet though. Concurrent requests right at startup do not do wel...I had no workaround...but that would be a GOOD THING to have fixed... Hi Cocooners, Are their any other Cocoon users having Threading Issues with xsltc? Its seems that if you have a translat being compiled at the same time by two or more threads (instances of TraxTransformer) you will get issues because BCEL is not (by design) threadsafe as it users static methods and variables which seem to be overwriting each other??? Once the Translets get compiled however, such threading issues disappear. Does anyone have expirence with this? Regards, Michael Melhem Ps After locally patching org.apache.xalan.xsltc.trax.TemplatesHandlerImpl.java with some synch code around the compile block, all seems OK. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- The heights of genius are only measurable by the depths of stupidity. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]