tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BKumar <bibhuti.ku...@creditpointe.com>
Subject Exception in thread "ActiveMQ VMTransport: vm://localhost#0-2" java.lang.Interna lError: java.lang.InternalError:
Date Thu, 07 Feb 2013 11:37:31 GMT
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.

Mime
View raw message