*** GenericActivationHolder.java.orig	2007-12-06 14:09:36.000000000 -0800
--- GenericActivationHolder.java	2007-12-06 17:03:17.000000000 -0800
***************
*** 254,260 ****
  			/* Has the activation class changed? */
  			if (gc != ps.getActivationClass())
  			{
! 
  				// ensure the statement is valid by rePreparing it.
  				ps.rePrepare(getLanguageConnectionContext());
  				
--- 254,261 ----
  			/* Has the activation class changed? */
  			if (gc != ps.getActivationClass())
  			{
!               synchronized (ps) 
!               {
  				// ensure the statement is valid by rePreparing it.
  				ps.rePrepare(getLanguageConnectionContext());
  				
***************
*** 307,312 ****
--- 308,314 ----
  				ac = newAC;
  				gc = newGC;
  				paramTypes = newParamTypes;
+               }
  			}
  		}
  
