Hi James,

Thanks for the quick reply. To complicate things a little, I've
rewritten JmsTemplate to behave a little more like how I believe
ActiveMQ would prefer a JmsTemplate to behave, along with a whole
bunch of utility methods that JmsTemplate is missing. This could be
what's causing the issue and I wouldn't expect you guys to solve it.

I didn't see any broker errors but I'll keep a look out for next time
it happens. It seems to go away if I get rid of my activemq-data
directory.

Once it's stuck, it always freezes trying to make an initial
connection to the broker, i.e. it hasn't had time to do anything too
smart (but it could be some kind of unclean shutdown that causes the
issue).

cheers,
j.

On 6/1/06, James Strachan <[EMAIL PROTECTED]> wrote:
Is there any errors occurring on the broker?

BTW please read this page...
http://incubator.apache.org/activemq/spring-support.html

in particular you should always use the PooledConnectionFactory if you
want to use Spring's JmsTemplate - unless you are using JCA

On 6/1/06, Jamie McCrindle <[EMAIL PROTECTED]> wrote:
> hi,
>
> every now and again my client hangs while connecting to the broker.
> I'm using the incubating-activemq 4.0 release on windows XP,
> connecting via tcp://localhost:61616. Stacktrace is as follows:
>
> "main" prio=6 tid=0x00037b38 nid=0x875c in Object.wait() 
[0x0007f000..0x0007fc40
> ]
>         at java.lang.Object.wait(Native Method)
>         - waiting on <0x03274110> (a 
edu.emory.mathcs.backport.java.util.concurr
> ent.CountDownLatch)
>         at java.lang.Object.wait(Object.java:474)
>         at 
edu.emory.mathcs.backport.java.util.concurrent.CountDownLatch.await(C
> ountDownLatch.java:179)
>         - locked <0x03274110> (a 
edu.emory.mathcs.backport.java.util.concurrent.
> CountDownLatch)
>         at 
org.apache.activemq.transport.WireFormatNegotiator.oneway(WireFormatN
> egotiator.java:73)
>         at 
org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.ja
> va:44)
>         - locked <0x03276a30> (a java.lang.Object)
>         at 
org.apache.activemq.transport.ResponseCorrelator.asyncRequest(Respons
> eCorrelator.java:68)
>         at 
org.apache.activemq.transport.ResponseCorrelator.request(ResponseCorr
> elator.java:73)
>         at 
org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnect
> ion.java:1131)
>         at 
org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(Activ
> eMQConnection.java:1219)
>         - locked <0x02b60208> (a org.apache.activemq.ActiveMQConnection)
>         at 
org.apache.activemq.ActiveMQConnection.start(ActiveMQConnection.java:
> 435)
>         at 
com.vnocore.empower.jms.JmsTemplate.afterPropertiesSet(JmsTemplate.ja
> va:217)
>         at 
org.springframework.beans.factory.support.AbstractAutowireCapableBean
> Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1059)
>         at 
org.springframework.beans.factory.support.AbstractAutowireCapableBean
> Factory.createBean(AbstractAutowireCapableBeanFactory.java:363)
>         at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> (AbstractBeanFactory.java:226)
>         - locked <0x030ebdf0> (a java.util.HashMap)
>         at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> (AbstractBeanFactory.java:147)
>         at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.
> preInstantiateSingletons(DefaultListableBeanFactory.java:275)
>         at 
org.springframework.context.support.AbstractApplicationContext.refres
> h(AbstractApplicationContext.java:320)
>
> regards,
> jamie.
>


--

James
-------
http://radio.weblogs.com/0112098/

Reply via email to