Re: [Freemarker-devel] Object lock in freemarker
Generates text that depends on changing data (like dynamic HTML).
Brought to you by:
revusky
From: Daniel D. <dd...@fr...> - 2016-08-01 20:16:27
|
Especially since this list is retired, see my comment on SO: http://stackoverflow.com/questions/38691722/object-block-in-freemaker If you can reproduce this deadlock reliably, upgrade to the latest stable release (2.3.25-incubating ATM), and see if it goes away. (Indeed, you should upgrade no mater what... 2.3.13 is from 2008.) -- Thanks, Daniel Dekany Monday, August 1, 2016, 12:02:10 PM, sreenath579 wrote: > Hi, > > We have a system developed in Struts2 and deployed in Weblogic 10.3.6. But > there is an object lock is appearing while analyzing the thread dump . i am > using freemarker-2.3.13.jar. > > "[ACTIVE] ExecuteThread: '276' for queue: 'weblogic.kernel.Default > (self-tuning)'" daemon prio=10 tid=0x00002b8c54e76800 nid=0x3e18 waiting for > monitor entry [0x00002b8c8ca06000] > java.lang.Thread.State: BLOCKED (on object monitor) > at > freemarker.ext.beans.BeansModelCache.create(BeansModelCache.java:31) > - waiting to lock <0x00000005243d7bf0> (a java.util.HashMap) > at freemarker.ext.util.ModelCache.getInstance(ModelCache.java:115) > at freemarker.ext.beans.BeansWrapper.wrap(BeansWrapper.java:468) > at > freemarker.template.WrappingTemplateModel.wrap(WrappingTemplateModel.java:134) > at > org.apache.struts2.views.freemarker.ScopesHashModel.get(ScopesHashModel.java:94) > at > freemarker.core.Environment.getGlobalVariable(Environment.java:1088) > at freemarker.core.Environment.getVariable(Environment.java:1074) > at freemarker.core.Identifier._getAsTemplateModel(Identifier.java:70) > at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) > at freemarker.core.Dot._getAsTemplateModel(Dot.java:74) > at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) > at > freemarker.core.BuiltIn$defaultBI._getAsTemplateModel(BuiltIn.java:907) > at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) > at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:86) > at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) > at freemarker.core.Expression.getStringValue(Expression.java:93) > > > > > > > -- > View this message in context: > http://freemarker.624813.n4.nabble.com/Object-lock-in-freemarker-tp4655639.html > Sent from the freemarker-devel mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > _______________________________________________ > FreeMarker-devel mailing list > Fre...@li... > https://lists.sourceforge.net/lists/listinfo/freemarker-devel > |