Isnt there anyone else who faced a similar issue 

please reply


Karthik.Gopalakrishnan wrote:
> 
> I tried sending a ByteMessage from a c# client to a java consumer(MDB
> which listens on the queue) and it works completely file . But when i send
> a TextMessage from the same c# producer to a java consumer i get the
> following exception 
> 
> 15:21:19,542 ERROR [ActiveMQSession] error dispatching message:
> javax.ejb.TransactionRolledbackLocalException: Unexpected Error
> java.lang.OutOfMemoryError: Java heap space
> 
>         at
> org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:262)
>         at
> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
>         at
> org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
>         at
> org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:109)
>         at
> org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
>         at
> org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
>         at
> org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:402)
>         at org.jboss.ejb.Container.invoke(Container.java:954)
>         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.server.Invocation.invoke(Invocation.java:86)
>         at
> org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
>         at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>         at
> org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
>         at
> org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
>         at
> org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:206)
>         at
> org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:192)
>         at
> org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
>         at
> org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.delivery(MessageEndpointInterceptor.java:252)
>         at
> org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.invoke(MessageEndpointInterceptor.java:132)
>         at
> org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
>         at
> org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
>         at $Proxy56.onMessage(Unknown Source)
>         at
> org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.onMessage(MessageEndpointProxy.java:120)
>         at
> org.apache.activemq.ra.MessageEndpointProxy.onMessage(MessageEndpointProxy.java:60)
>         at
> org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:692)
>         at
> org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:163)
>         at
> org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
>         at
> org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
>         at
> EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: javax.ejb.EJBException: Unexpected Error
> java.lang.OutOfMemoryError: Java heap space
> 
> I dont get any problem when i try to send a TextMessage from a java
> producer to the MDB. My guesses are that the OpenWire protocol being used
> on the c# side causes this issue.I tried various options like changing the
> prefetch size but i was not able to get this working.May be i didnt get
> some configuration right.
> 
> If any of you have faced a similar problem and then got it fixed please
> let me know what was done.
> 
> I am using ActiveMQ 4.0.2 integrated to JBoss
> Broker is embedded one.
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Java-Heap-Space-Exception-tf3488427s2354.html#a9770752
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to