[JBoss Messaging] - Re: Viewing message contents in a queue
by parressh
Tim, here are the details of my setup:
jboss-messaging-1.2.0.sp1
jboss-as-4.0.5.GA
MDB is configured to consume on one thread, one message at a time.
>From standardjboss.xml
| <invoker-proxy-binding>
| <name>message-driven-bean</name>
| <invoker-mbean>default</invoker-mbean>
| <proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory>
| <proxy-factory-config>
| <JMSProviderAdapterJNDI>DefaultJMSProvider</JMSProviderAdapterJNDI>
| <ServerSessionPoolFactoryJNDI>StdJMSPool</ServerSessionPoolFactoryJNDI>
| <CreateJBossMQDestination>true</CreateJBossMQDestination>
| <!-- WARN: Don't set this to zero until a bug in the pooled executor is fixed -->
| <MinimumSize>1</MinimumSize>
| <MaximumSize>1</MaximumSize>
| <KeepAliveMillis>30000</KeepAliveMillis>
| <MaxMessages>1</MaxMessages>
| <MDBConfig>
| <ReconnectIntervalSec>10</ReconnectIntervalSec>
| <DLQConfig>
| <DestinationQueue>queue/DLQ</DestinationQueue>
| <MaxTimesRedelivered>10</MaxTimesRedelivered>
| <TimeToLive>0</TimeToLive>
| </DLQConfig>
| </MDBConfig>
| </proxy-factory-config>
| </invoker-proxy-binding>
|
>From connection-factories-service.xml
| <mbean code="org.jboss.jms.server.connectionfactory.ConnectionFactory"
| name="jboss.messaging.connectionfactory:service=ConnectionFactory"
| xmbean-dd="xmdesc/ConnectionFactory-xmbean.xml">
| <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends optional-attribute-name="Connector">jboss.messaging:service=Connector,transport=bisocket</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
|
| <attribute name="JNDIBindings">
| <bindings>
| <binding>/ConnectionFactory</binding>
| <binding>/XAConnectionFactory</binding>
| <binding>java:/ConnectionFactory</binding>
| <binding>java:/XAConnectionFactory</binding>
| </bindings>
| </attribute>
| <attribute name="PrefetchSize">1</attribute>
| <attribute name="Clustered">true</attribute>
| <attribute name="LoadBalancingFactory">org.jboss.jms.client.plugin.RoundRobinLoadBalancingFactory</attribute>
| </mbean>
|
Message sender code:
Following beans set by Spring:
qcf is retrieved from JNDI name XAConnectionFactory
leadQueue is retrieved from JNDI name queue/leadQueue
| public void processLead(String leadXml, int messageAttempts) {
| QueueConnection conn = null;
| try {
| conn = qcf.createQueueConnection();
| QueueSession session = conn.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
| QueueSender sender = session.createSender(leadQueue);
| TextMessage msg = session.createTextMessage(leadXml);
| msg.setIntProperty(MESSAGE_ATTEMPTS_PROPERTY, messageAttempts);
| msg.setJMSDeliveryMode(DeliveryMode.PERSISTENT);
| sender.send(msg);
| } catch (JMSException ex) {
| LeadProcessingException lpe = new LeadProcessingException(
| "Queue down: cannot send lead to Queue", ex);
| throw lpe;
| } finally {
| if (conn != null) {
| try {
| conn.close();
| } catch (Exception ex) {
| logger.error("Error disconnecting from JMS Queue", ex);
| }
| }
| }
| }
|
Simplified MDB Code:
| public void onMessage(Message msg) {
| logger.info("Processing jms message");
| String message;
| try {
| message = ((TextMessage) msg).getText();
| Thread.sleep(2000);
| } catch (Exception e) {
| throw new RuntimeException("Unable to read message text", e);
| }
| }
|
The log file shows that only one MDB is active and consuming messages once every 2 seconds.
I really appreciate your time Tim. Let me know if you need more info.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049777#4049777
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049777
17 years, 6 months
[JBoss Seam] - Re: No active event context
by leman_1
Hello,
JBoss 4.0.5
Portal 2.4.1
Seam 1.2.1
The fix Stan suggested got rid of the
No active event context
error. But now I end up with the following classcastexception
| SEVERE: Error Rendering View[/list1.xhtml]
| java.lang.ClassCastException: org.jboss.portlet.JBossRenderResponse
| at com.sun.facelets.FaceletViewHandler.createResponseWriter(FaceletViewHandler.java:371)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:557)
| at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
| at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:397)
| at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:377)
| at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:474)
| at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:323)
| at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:167)
| at javax.portlet.GenericPortlet.render(GenericPortlet.java:407)
| at org.jboss.portal.portlet.container.PortletContainer.invokeRender(PortletContainer.java:519)
| at org.jboss.portal.portlet.container.PortletContainer.dispatch(PortletContainer.java:440)
| at org.jboss.portal.portlet.container.PortletContainerInvoker$1.dispatch(PortletContainerInvoker.java:143)
| at org.jboss.portal.portlet.invocation.PortletInvocation.dispatch(PortletInvocation.java:242)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
| at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jboss$portal$core$aspects$portlet$Transactio
| nInterceptor$invokeNotSupported$aop(TransactionInterceptor.java:85)
| at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_4827075286966232824.invokeNex
| t(TransactionInterceptor$invokeNotSupported_4827075286966232824.java)
| at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
| at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:101)
| at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_4827075286966232824.invokeNex
| t(TransactionInterceptor$invokeNotSupported_4827075286966232824.java)
| at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invokeNotSupported(TransactionInterceptor.java)
| at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.core.aspects.portlet.HeaderInterceptor.invoke(HeaderInterceptor.java:49)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.portlet.aspects.portlet.ProducerCacheInterceptor.invoke(ProducerCacheInterceptor.java:50)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.portlet.aspects.portlet.ModesInterceptor.invoke(ModesInterceptor.java:59)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:45)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.portlet.aspects.portlet.WindowStatesInterceptor.invoke(WindowStatesInterceptor.java:55)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.portlet.aspects.portlet.PortletSessionSynchronizationInterceptor.invoke(PortletSessionSynchr
| onizationInterceptor.java:76)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor$InvokeNextCommand.execute(ContextDispat
| cherInterceptor.java:124)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.portal.server.servlet.CommandServlet.doGet(CommandServlet.java:104)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
| at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:539)
| at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
| at org.jboss.portal.portlet.impl.spi.AbstractRequestContext.include(AbstractRequestContext.java:193)
| at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor$1.include(ContextDispatcherInterceptor.
| java:68)
| at org.jboss.portal.server.servlet.CommandServlet.include(CommandServlet.java:84)
| at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.jav
| a:74)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.portlet.aspects.portlet.ContextTrackerInterceptor.invoke(ContextTrackerInterceptor.java:50)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.portlet.aspects.portlet.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:65
| )
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.portlet.aspects.portlet.ValveInterceptor.invoke(ValveInterceptor.java:61)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
| at org.jboss.portal.portlet.container.PortletContainerInvoker.invoke(PortletContainerInvoker.java:114)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy39.invoke(Unknown Source)
| at org.jboss.portal.portlet.state
| 15:41:21,428 ERROR [STDERR] .producer.StatefulPortletInvoker.invoke(StatefulPortletInvoker.java:249)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy41.invoke(Unknown Source)
| at org.jboss.portal.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:13
| 9)
| at org.jboss.portal.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:
| 155)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy43.invoke(Unknown Source)
| at org.jboss.portal.portlet.test.TestPortletInvoker$1.dispatch(TestPortletInvoker.java:63)
| at org.jboss.portal.portlet.invocation.PortletInvocation.dispatch(PortletInvocation.java:242)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
| at org.jboss.portal.portlet.aspects.portlet.PortalSessionSynchronizationInterceptor.invoke(PortalSessionSynchron
| izationInterceptor.java:85)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.portlet.aspects.portlet.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:93)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.core.model.instance.InstanceSecurityInterceptor.invoke(InstanceSecurityInterceptor.java:83)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
| at org.jboss.portal.portlet.test.TestPortletInvoker.invoke(TestPortletInvoker.java:123)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy25.invoke(Unknown Source)
| at org.jboss.portal.core.impl.model.instance.InstanceImpl.invoke(InstanceImpl.java:273)
| at org.jboss.portal.core.command.RenderWindowCommand.execute(RenderWindowCommand.java:108)
| at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:91)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
| at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:
| 171)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.core.aspects.controller.PageNavigationInterceptor.invoke(PageNavigationInterceptor.java:80)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.jav
| a:79)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:59)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
| at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:102)
| at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:91)
| at org.jboss.portal.core.command.CommandContext.chain(CommandContext.java:148)
| at org.jboss.portal.core.command.MarkupCommand.renderPortletWindow(MarkupCommand.java:463)
| at org.jboss.portal.core.command.RenderPageCommand.renderFragments(RenderPageCommand.java:76)
| at org.jboss.portal.core.command.MarkupCommand.execute(MarkupCommand.java:340)
| at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:91)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
| at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:
| 171)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.core.aspects.controller.PageNavigationInterceptor.invoke(PageNavigationInterceptor.java:80)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.jav
| a:79)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:59)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.common.i
| 15:41:21,491 ERROR [STDERR] nvocation.Invocation.invoke(Invocation.java:171)
| at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:102)
| at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:91)
| at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:78)
| at org.jboss.portal.core.CoreController.handle(CoreController.java:126)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
| at $Proxy226.handle(Unknown Source)
| at org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:79)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
| at org.jboss.portal.server.aspects.server.NavigationInterceptor.invoke(NavigationInterceptor.java:64)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:65)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:74)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:174)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.jav
| a:92)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.core.aspects.server.TransactionInterceptor.org$jboss$portal$core$aspects$server$TransactionI
| nterceptor$invoke$aop(TransactionInterceptor.java:49)
| at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(Transactio
| nInterceptor$invoke_N5143606530999904530.java)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:275)
| at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(Transactio
| nInterceptor$invoke_N5143606530999904530.java)
| at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
| at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
| at org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:294)
| at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:172)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java
| :664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
Has anyone seen this before and have any suggestions how to fix it? I followed all of the suggestions mentioned in this thread and am now stuck.
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049775#4049775
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049775
17 years, 6 months
[JBoss Messaging] - Re: Piling thread count when it polls the queue.
by apk2072
Tim,
Sorry I forgot to give the JBM version, it is "jboss-messaging-1.2.0.GA" version.
Use case is simple:
Our application creates the messages (Emails, Web services and some application tasks which can be executed asynchronously) using the JBM 1.2.0 version JMS API.
Other side, I wrote a Consumer Manager wrapper which polls for every 10 seconds (for example) to look for the new messages in the JMS queue, wrapper class uses the JMS API to poll for a new message. Every time it polls the wrapper class creates a javax.jms.MessageConsumer object as I shown you in the code. This is where new threads are getting created and they are not getting recycled.
For you to reproduce the problem, call the method (which I posted) continuously and monitor the JVM for total thread counts. You would see increase in thread count.
Hope I gave you the enough information.
Thanks,
APK.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049769#4049769
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049769
17 years, 6 months