Object lock in freemarker

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Object lock in freemarker

sreenath579
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)


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Object lock in freemarker

Attila Szegedi-3
Does your dump show another thread holding the lock?

Also, note this list is retired (I’m surprised I still get mail from it, especially since I no longer am active in the project…) See <http://freemarker.org/mailing-lists.html> for the current lists, or any of the other options in the “Community” sidebar on the website.

Attila.

On 01 Aug 2016, at 12:02, sreenath579 <[hidden email]> 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/freemarker-devel


------------------------------------------------------------------------------

_______________________________________________
FreeMarker-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/freemarker-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Object lock in freemarker

Daniel Dekany
In reply to this post by sreenath579
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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/freemarker-devel
>


------------------------------------------------------------------------------
_______________________________________________
FreeMarker-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/freemarker-devel
Loading...