[EJB/JBoss] - Hanging JBoss - invoked while multiple threads active within
by flipmind
I got this exception and a hanging JBoss on a production site. Here is the last entries in the log: -
12:03:03,012 WARN [ValidatorResources] Form 'ProductForm' not found for locale 'en_NZ'
12:07:41,977 WARN [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.BasicAction_58] - Abort of action id -3f57fdff:12dd:466f4b3f:94029 invoked while multiple threads active within it.
12:07:41,977 WARN [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.CheckedAction_2] - CheckedAction::check - atomic action -3f57fdff:12dd:466f4b3f:94029 aborting with 1 threads active!
It did not work until I restarted it. I don't know how to replicate it as it is the first time I have seen it. It may have occured at the same time as a user triggered a call to the loadCache() method of this EJB: -
@Stateless
@TransactionManagement (TransactionManagementType.CONTAINER)
public class EStoreServerCacheManagerBean implements EStoreServerCacheManager, EStoreServerCacheManagerLocal {
/**
* Called when the cache needs to be refreshed from the database
*/
@TransactionTimeout(value=600) //10 Minutes to load all the summaries
public void loadCache() {
logger.debug("loadCache called");
Store[] stores = storeManager.getStores();
for(Store store : stores) {
EStoreObjectSpace.loadCache(store);
}
}
}
EStoreObjectSpace.loadCache() is defined as: -
public static synchronized EStoreCache loadCache(Store store) { }
Could it be that this method is synchronized ?
Does any one have any recommendations for debugging this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056291#4056291
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056291
18Â years, 10Â months
[JBoss jBPM] - Converter works with MySql but not with Oracle...
by alcltv
Here is what I found out when trying to save a String[] as a process variable:
With MySql everything works fine, I can save my array and retreive it later without any problem, the default configuration of the engine handles it very well. The converter class used by the engine for that is: "org.jbpm.context.exe.converter.SerializableToByteArrayConverter" saved with the "R" char value in the CONVERTER_ column of the JBPM_VARIABLEINSTANCE table.
The problem is when using Oracle, the same code fails to find the converter... The VariableInstance is instantiated with a null converter and then the value cannot be restored.
I found out that, in ConverterEnumType.nullSafeGet method, the call to resultSet.getString(names[0]) returns "R " instead of "R". This is what happen with Oracle (but not with MySql). Because of the extra space, the converter class cannot be found...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056279#4056279
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056279
18Â years, 10Â months