[JBossCache] - Jboss Portal Exception org.jboss.cache.lock.TimeoutException
by moj_sham
Hi,
We are using Jboss-4.0.5GA Server installed on Linux AdvServer OS. Also deployed jboss-portal-ha.sar on the Jboss AS to use the jboss portal framework features.
After start of the server on access of one of the portal page we get the following error.
org.hibernate.cache.CacheException: org.jboss.cache.lock.TimeoutException: failure acquiring lock: fqn=/org/hibernate/cache/StandardQueryCache/sql: select userinstan0_.PK as PK26_, userinstan0_.INSTANCE_PK as INSTANCE2_26_, userinstan0_.SER_STATE as SER3_26_, userinstan0_.USER_ID as USER4_26_, userinstan0_.PORTLET_REF as PORTLET5_26_ from JBP_INSTANCE_PER_USER userinstan0_ where userinstan0_.INSTANCE_PK=? and userinstan0_.USER_ID=?; parameters: ; named parameters: {userId=, instanceKey=24}, caller=GlobalTransaction::728, lock=write owner=GlobalTransaction::727 (activeReaders=0, activeWriter=Thread[TP-Processor11,5,jboss], waitingReaders=0, waitingWriters=0, waitingUpgrader=0)
at org.hibernate.cache.TreeCache.read(TreeCache.java:57)
at org.hibernate.cache.TreeCache.get(TreeCache.java:45)
at org.hibernate.cache.StandardQueryCache.get(StandardQueryCache.java:105)
at org.hibernate.loader.Loader.getResultFromQueryCache(Loader.java:2085)
at org.hibernate.loader.Loader.listUsingQueryCache(Loader.java:2050)
at org.hibernate.loader.Loader.list(Loader.java:2020)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:393)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
This looks like a problem with the hibernate and jboss cache usage in jboss portal.
Does anybody know if this is a known issue and is there any solution to resolve this, Please respond.
Regards
Manoj
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092248#4092248
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092248
18Â years, 6Â months
[JBoss Portal] - Re: Got it y'all. Here's a working Struts bridge example (2.
by arunprasathav
but i get the following error after deploying it...
2007-10-06 12:17:51,778 ERROR [STDERR] org.jboss.portal.portlet.container.PortletInitializationException: The portlet TestStrutsPortlet threw a runtime exception during init
2007-10-06 12:17:51,778 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:264)
2007-10-06 12:17:51,778 ERROR [STDERR] at org.jboss.portal.portlet.impl.container.PortletApplicationContextImpl.startPortletApplication(PortletApplicationContextImpl.java:130)
2007-10-06 12:17:51,794 ERROR [STDERR] at org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:150)
2007-10-06 12:17:51,794 ERROR [STDERR] at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:95)
2007-10-06 12:17:51,794 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.DeploymentContext.start(DeploymentContext.java:99)
2007-10-06 12:17:51,794 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfoContext.start(PortalDeploymentInfoContext.java:211)
2007-10-06 12:17:51,809 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDeployer.java:217)
2007-10-06 12:17:51,809 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
2007-10-06 12:17:51,809 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
2007-10-06 12:17:51,809 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor268.invoke(Unknown Source)
2007-10-06 12:17:51,809 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2007-10-06 12:17:51,809 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
2007-10-06 12:17:51,809 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
2007-10-06 12:17:51,809 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
2007-10-06 12:17:51,809 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
2007-10-06 12:17:51,809 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
2007-10-06 12:17:51,809 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
2007-10-06 12:17:51,825 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
2007-10-06 12:17:51,825 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
2007-10-06 12:17:51,825 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092246#4092246
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092246
18Â years, 6Â months
[Tomcat, HTTPD, Servlets & JSP] - Re: Cookies lost when included JSP file used
by Raist_Majere
You should use a page directive specifying a greater buffer size. Take a look at the spec:
anonymous wrote :
| buffer
| Specifies the buffering model for the initial out JspWriter to
| handle content output from the page.
| If none, then there is no buffering and all output is written
| directly through to the ServletResponse PrintWriter.
| The size can only be specified in kilobytes. The suffix kb is
| mandatory or a translation error must occur.
| If a buffer size is specified then output is buffered with a
| buffer size not less than that specified.
| Depending upon the value of the autoFlush attribute, the
| contents of this buffer is either automatically flushed, or an
| exception is raised, when overflow would occur.
| The default is buffered with an implementation buffer size of
| not less than 8kb.
|
| autoFlush
| Specifies whether the buffered output should be flushed
| automatically (true value) when the buffer is filled, or
| whether an exception should be raised (false value) to
| indicate buffer overflow. It is illegal, resulting in a translation
| error, to set autoFlush to false when buffer=none. The default
| value is true
|
addCookie sets a header, which cannot be done once the page is flushed.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092240#4092240
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092240
18Â years, 6Â months