You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by BKumar <bi...@creditpointe.com> on 2013/02/07 12:37:31 UTC
Exception in thread "ActiveMQ VMTransport: vm://localhost#0-2"
java.lang.Interna lError: java.lang.InternalError:
Hi,
I have an EAR which contain war and jar files.In my application I am
sending message to a queue from a servlet and message is consumed by an
MDB(this envoke a session bean).This works fine but somtime(2 out of 10) it
is throwing exception. Also, I am observing if there is slight delay in MDB
finishes its job, it is throwing the exception.
I am using MDB2.1 on tomee+ with 1.5.1.
Exception in thread "ActiveMQ VMTransport: vm://localhost#0-2"
java.lang.Interna
lError: java.lang.InternalError: java.lang.reflect.InvocationTargetException
at
org.apache.openejb.util.proxy.LocalBeanProxyFactory.createProxy(Local
BeanProxyFactory.java:136)
at
org.apache.openejb.util.proxy.LocalBeanProxyFactory.createProxy(Local
BeanProxyFactory.java:142)
at
org.apache.openejb.util.proxy.LocalBeanProxyFactory.newProxyInstance(
LocalBeanProxyFactory.java:55)
at
org.apache.openejb.core.mdb.EndpointFactory.createEndpoint(EndpointFa
ctory.java:73)
at
org.apache.activemq.ra.ServerSessionPoolImpl.createEndpoint(ServerSes
sionPoolImpl.java:92)
at
org.apache.activemq.ra.ServerSessionPoolImpl.createServerSessionImpl(
ServerSessionPoolImpl.java:76)
at
org.apache.activemq.ra.ServerSessionPoolImpl.getServerSession(ServerS
essionPoolImpl.java:116)
at
org.apache.activemq.ActiveMQConnectionConsumer.dispatch(ActiveMQConne
ctionConsumer.java:129)
at
org.apache.activemq.ActiveMQConnection$3.processMessageDispatch(Activ
eMQConnection.java:1840)
at
org.apache.activemq.command.MessageDispatch.visit(MessageDispatch.jav
a:109)
at
org.apache.activemq.ActiveMQConnection.onCommand(ActiveMQConnection.j
ava:1821)
at
org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCo
rrelator.java:116)
at
org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport
.java:50)
at
org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java
:241)
at
org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.
java:129)
at
org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.ja
va:47)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
at java.lang.Thread.run(Thread.java:619)
at
org.apache.openejb.util.proxy.LocalBeanProxyFactory.newProxyInstance(
LocalBeanProxyFactory.java:58)
at
org.apache.openejb.core.mdb.EndpointFactory.createEndpoint(EndpointFa
ctory.java:73)
at
org.apache.activemq.ra.ServerSessionPoolImpl.createEndpoint(ServerSes
sionPoolImpl.java:92)
at
org.apache.activemq.ra.ServerSessionPoolImpl.createServerSessionImpl(
ServerSessionPoolImpl.java:76)
at
org.apache.activemq.ra.ServerSessionPoolImpl.getServerSession(ServerS
essionPoolImpl.java:116)
at
org.apache.activemq.ActiveMQConnectionConsumer.dispatch(ActiveMQConne
ctionConsumer.java:129)
at
org.apache.activemq.ActiveMQConnection$3.processMessageDispatch(Activ
eMQConnection.java:1840)
at
org.apache.activemq.command.MessageDispatch.visit(MessageDispatch.jav
a:109)
at
org.apache.activemq.ActiveMQConnection.onCommand(ActiveMQConnection.j
ava:1821)
at
org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCo
rrelator.java:116)
at
org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport
.java:50)
at
org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java
:241)
at
org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.
java:129)
at
org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.ja
va:47)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
at java.lang.Thread.run(Thread.java:619)
---------------------------------------------------------------------------
Tomee.xml :
<Resource id="MqAdapter" type="ActiveMQResourceAdapter">
BrokerXmlConfig = broker:(tcp://localhost:61616)?persistent=false
ServerUrl = vm://localhost:61616
</Resource>
<Resource id="RageJmsConnectionFactory" type="javax.jms.ConnectionFactory">
ResourceAdapter = MqAdapter
PoolMaxSize=10
</Resource>
<Container id="MyJmsMdbContainer" ctype="MESSAGE">
ResourceAdapter = MqAdapter
InstanceLimit = 15
</Container>
<Resource id="RequestQueue" type="javax.jms.Queue">
</Resource>
EJB jar xml:
<message-driven>
<ejb-name>AsynchEngineBean</ejb-name>
<ejb-class>com.rage.engine.ejb.AsynchEngineBean</ejb-class>
<transaction-type>Container</transaction-type>
<acknowledge-mode>Auto-acknowledge</acknowledge-mode>
<message-driven-destination>
<destination-type>javax.jms.Queue</destination-type>
</message-driven-destination>
<resource-ref>
<description>RageDataSource</description>
<res-ref-name>RageDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<resource-ref>
<description>RageNoTxDataSource</description>
<res-ref-name>RageNoTxDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</message-driven>
Thanks,
BKumar
--
View this message in context: http://openejb.979440.n4.nabble.com/Exception-in-thread-ActiveMQ-VMTransport-vm-localhost-0-2-java-lang-Interna-lError-java-lang-Interna-tp4660632.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: Exception in thread "ActiveMQ VMTransport: vm://localhost#0-2"
java.lang.Interna lError: java.lang.InternalError:
Posted by BKumar <bi...@creditpointe.com>.
It seems "maxSessions" is not working as expected in tomee 1.5.1 as it is
not starting executing the message concurrently.
Ejb-jar.xml:
</activation-config-property>
<activation-config-property>
<activation-config-property-name>maxMessagesPerSessions
</activation-config-property-name>
<activation-config-property-value>2</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>maxSessions</activation-config-property-name>
<activation-config-property-value>12</activation-config-property-value>
</activation-config-property>
tomee.xml:
<Resource id="MqAdapter" type="ActiveMQResourceAdapter">
BrokerXmlConfig = broker:(tcp://localhost:61616)
ServerUrl = vm://localhost?async=false
ThreadPoolSize 30
</Resource>
<Resource id="RageJmsConnectionFactory" type="javax.jms.ConnectionFactory">
ResourceAdapter = MqAdapter
PoolMaxSize 20
TransactionSupport none
</Resource>
<Container id="MyJmsMdbContainer" ctype="MESSAGE">
resourceAdapter = MqAdapter
activationSpecClass = org.apache.activemq.ra.ActiveMQActivationSpec
InstanceLimit 2
messageListenerInterface = javax.jms.MessageListener
</Container>
<Resource id="RequestQueue" type="javax.jms.Queue">
</Resource>
--
View this message in context: http://openejb.979440.n4.nabble.com/Exception-in-thread-ActiveMQ-VMTransport-vm-localhost-0-2-java-lang-Interna-lError-java-lang-Interna-tp4660632p4660681.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: Exception in thread "ActiveMQ VMTransport: vm://localhost#0-2"
java.lang.Interna lError: java.lang.InternalError:
Posted by BKumar <bi...@creditpointe.com>.
Hi,
It seems I have found something for this. I googled it found that My MDB(A
queue Listener) is not processing message concurrently. So I made some
configuration change in ejb-jar.xml.
I made maxSessions = 1 and maxMessagesPerSessions =1 then it is working
correctly but it processes only one message at time. I google and increased
the maxSessions=4 but didn't work. At this point my problem is I cannot
processes the message concurrently(with multiple instance of MDB). I will
appreciate a quick response.
Thanks,
Bibhuti
--
View this message in context: http://openejb.979440.n4.nabble.com/Exception-in-thread-ActiveMQ-VMTransport-vm-localhost-0-2-java-lang-Interna-lError-java-lang-Interna-tp4660632p4660679.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: Exception in thread "ActiveMQ VMTransport: vm://localhost#0-2"
java.lang.Interna lError: java.lang.InternalError:
Posted by PrashantThorat <pr...@creditpointe.com>.
it seems to there is some broker configuration issue. May be your broker is
getting closed.Check broker configuration.
--
View this message in context: http://openejb.979440.n4.nabble.com/Exception-in-thread-ActiveMQ-VMTransport-vm-localhost-0-2-java-lang-Interna-lError-java-lang-Interna-tp4660632p4660634.html
Sent from the OpenEJB User mailing list archive at Nabble.com.