activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodrigo Ramos <crackdu...@gmail.com>
Subject Re: java.lang.NullPointerException
Date Thu, 27 Feb 2014 01:52:40 GMT
Sorry for respond at this time.


I solved it. I had to specify the Physical Name property in the queue and
restart Glassfish (even the console).

Thanks for your answer.




2014-02-06 18:10 GMT-06:00 Christian Posta <christian.posta@gmail.com>:

> What version of ActiveMQ are you using?
> Can you reproduce in a stand-alone test case? Or turn up logging to
> debug for activemq on your client and post to pastebin?
>
> On Thu, Feb 6, 2014 at 4:29 PM, Rodrigo Ramos <crackduoro@gmail.com>
> wrote:
> > Hello
> >
> > I am getting the next exception when I invoke a service into my webapp.
> >
> >
> > java.lang.NullPointerException
> > at
> >
> org.apache.activemq.command.ActiveMQDestination.hashCode(ActiveMQDestination.java:328)
> > at java.util.HashMap.hash(HashMap.java:351)
> > at java.util.HashMap.getEntry(HashMap.java:443)
> > at java.util.HashMap.get(HashMap.java:405)
> > at
> >
> org.apache.activemq.openwire.OpenWireFormat.getMarshallCacheIndex(OpenWireFormat.java:517)
> > at
> >
> org.apache.activemq.openwire.v9.BaseDataStreamMarshaller.tightMarshalCachedObject1(BaseDataStreamMarshaller.java:158)
> > at
> >
> org.apache.activemq.openwire.v9.ProducerInfoMarshaller.tightMarshal1(ProducerInfoMarshaller.java:98)
> > at
> >
> org.apache.activemq.openwire.OpenWireFormat.marshal(OpenWireFormat.java:234)
> > at
> >
> org.apache.activemq.transport.tcp.TcpTransport.oneway(TcpTransport.java:175)
> > at
> >
> org.apache.activemq.transport.AbstractInactivityMonitor.doOnewaySend(AbstractInactivityMonitor.java:322)
> > at
> >
> org.apache.activemq.transport.AbstractInactivityMonitor.oneway(AbstractInactivityMonitor.java:304)
> > at
> >
> org.apache.activemq.transport.TransportFilter.oneway(TransportFilter.java:85)
> > at
> >
> org.apache.activemq.transport.WireFormatNegotiator.oneway(WireFormatNegotiator.java:104)
> > at
> >
> org.apache.activemq.transport.failover.FailoverTransport.oneway(FailoverTransport.java:640)
> > at
> >
> org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:68)
> > at
> >
> org.apache.activemq.transport.ResponseCorrelator.asyncRequest(ResponseCorrelator.java:81)
> > at
> >
> org.apache.activemq.transport.ResponseCorrelator.request(ResponseCorrelator.java:86)
> > at
> >
> org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1380)
> > at
> >
> org.apache.activemq.ActiveMQSession.syncSendPacket(ActiveMQSession.java:1912)
> > at
> >
> org.apache.activemq.ActiveMQMessageProducer.<init>(ActiveMQMessageProducer.java:125)
> > at
> >
> org.apache.activemq.ActiveMQSession.createProducer(ActiveMQSession.java:956)
> >
> >
> > Sounds like It can not established connection between my webapp and my
> > broker, even though have received follow messages:
> >
> >
> [#|2014-02-06T17:20:12.270-0600|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=11233;_ThreadName=Thread-2;|2014-02-06
> > 17:20:12,252 [ActiveMQ Task-1] INFO  FailoverTransport              -
> > Successfully connected to tcp://localhost:31617
> > |#]
> >
> >
> [#|2014-02-06T17:20:12.422-0600|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=11239;_ThreadName=Thread-2;|2014-02-06
> > 17:20:12,422 [ActiveMQ Task-1] INFO  FailoverTransport              -
> > Successfully connected to tcp://localhost:31617
> > |#]
> >
> >
> >
> > Regards
>
>
>
> --
> Christian Posta
> http://www.christianposta.com/blog
> twitter: @christianposta
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message