Hi, Edward

 You can open a bug in the JIRA database
(http://nagoya.apache.org/jira/secure/Dashboard.jspa).

Please attach the description here in the bug report. It might be difficult
to diagnose the problem without a testcase. If possible, please also
describe the types of the parameters, in case the problem is related to the
parameter types.

Thanks.

Morris Kwan
XSLT Development
IBM Toronto Lab
Tel: (905)413-3729
Email: [EMAIL PROTECTED]



                                                                           
             "Edward L. Knoll"                                             
             <[EMAIL PROTECTED]                                             
             dex.com>                                                   To 
                                       [EMAIL PROTECTED]            
             12/17/2004 10:41                                           cc 
             AM                                                            
                                                                   Subject 
                                       Concurrency problem with static     
             Please respond to         Java calls.                         
                 xalan-dev                                                 
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Context: Xalan-J, 2.6.0; SAX transformation chain.

We were having a concurrency operation associated with a call to a
static Java method we were making from an XSL stylesheet.  We
restructured the Java class, so that the operation could be performed as
a method call on an instance; the static method was changed to create an
instance of the class and make the instance method call.

When we create an object instance and make the instance method call, we
do not have a concurrency problem.  If we call the static method, we
have a concurrency problem.  I reverified that the problem is still
there with the static method call after restructuring the class.

What ever this problem is, it's tied up with how static Java method
calls are handled from the stylesheet versus instance method calls.  The
static method call is reentrant; there should not have been a problem.
The problem appears to be tied up with how the parameters are handled;
in some instances it appears as though parameters from one invocation
are mixed up with another (presumably from another thread).  If I were
to hazard a guess, on static Java method calls the parameters are being
maintained in a static structure.

I won't be researching this farther, since will be using the instance
method call.  As I've said before, company proprietary policies won't
allow me to provide source.  Our test driver is running 10 threads on a
8 CPU platform.

--
Edward L. Knoll   Phone (FedEx)     : (719)484-2717
                  e-mail (FedEx)    : [EMAIL PROTECTED]
                  e-mail (personal) : [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to