RE: Null pointer in message selector in 0.7.7-alpha-3

"Tim Anderson" <[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
Sorry, my fault. Try doing a CVS update and build again.
If you can't access CVS (public version is currently down[1]),
edit line 242 of
modules/jms/src/main/java/org/exolab/jms/messagemgr/QueueDestinationCache.ja
va

and change:
	if (selector.selects(message)) {
To:
	if (message != null && selector.selects(message)) {


-Tim

[1] http://sitedocs.sourceforge.net/status/support_sitestatus.html

> -----Original Message-----
> From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org 
> [mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf 
> Of Gehl, Pascal
> Sent: Thursday, 16 March 2006 6:48 AM
> To: [email protected]
> Subject: RE: [openjms-user] Null pointer in message selector 
> in 0.7.7-alpha-3
> 
> Hi,
> I still have the nullpointer exception even after getting 
> last version of code in cvs and rebuilding.
> 
> 8:48:05.203 ERROR [ORB-Worker-176] -
> java.lang.NullPointerException
> 	at
> org.exolab.jms.selector.Identifier.evaluate(Identifier.java:142)
> 	at
> org.exolab.jms.selector.LogicalOperator.evaluate(LogicalOperat
> or.java:86
> )
> 	at org.exolab.jms.selector.Selector.selects(Selector.java:262)
> 	at
> org.exolab.jms.messagemgr.QueueDestinationCache.getMessage(Que
> ueDestinat
> ionCache.java:242)
> 	at
> org.exolab.jms.messagemgr.QueueConsumerEndpoint.doReceive(Queu
> eConsumerE
> ndpoint.java:153)
> 	at
> org.exolab.jms.messagemgr.AbstractConsumerEndpoint.receive(Abs
> tractConsu
> merEndpoint.java:233)
> 	at
> org.exolab.jms.server.SessionConsumer.doReceive(SessionConsume
> r.java:647
> )
> 	at
> org.exolab.jms.server.SessionConsumer.receive(SessionConsumer.
> java:380)
> 	at
> org.exolab.jms.server.ServerSessionImpl.receive(ServerSessionI
> mpl.java:2
> 70)
> 	at
> org.exolab.jms.server.net.RemoteServerSession.receive(RemoteSe
> rverSessio
> n.java:195)
> 	at sun.reflect.GeneratedMethodAccessor1218.invoke(Unknown
> Source)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessor
> Impl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at
> org.exolab.jms.net.orb.DefaultORB$Handler.invoke(DefaultORB.java:572)
> 	at org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB.java:530)
> 	at
> org.exolab.jms.common.threads.ThreadPool$NotifyingRunnable.run
> (ThreadPoo
> l.java:211)
> 	at
> EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
> Source)
> 	at java.lang.Thread.run(Thread.java:534) 
> 
>  
> Pascal Gehl
> 
> -----Original Message-----
> From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> [mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf 
> Of Tim Anderson
> Sent: Wednesday, February 22, 2006 5:20 PM
> To: [email protected]
> Subject: RE: [openjms-user] Null pointer in message selector in
> 0.7.7-alpha-3
> 
> Duplicated and fixed in CVS. The fix will be available in 
> 0.7.7-beta-1.
> 
> Regards,
> 
> Tim
> 
> > -----Original Message-----
> > From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> > [mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of 
> > Theoret, Jean-Francois
> > Sent: Wednesday, 22 February 2006 2:59 AM
> > To: [email protected]
> > Subject: [openjms-user] Null pointer in message selector in
> > 0.7.7-alpha-3
> > 
> > I am getting a null pointer exception in 0.7.7-alpha-3. I 
> do not get 
> > this consistently.
> > 
> > I am using message selectors on my queue.
> > 
> > Has anyone encountered this, and if so, is there a fix?
> > 
> > Jean-Francois Theoret
> > 
> > 10:39:33.743 ERROR [ORB-Worker-6] -
> > java.lang.NullPointerException
> >         at
> > org.exolab.jms.selector.Identifier.evaluate(Identifier.java:142)
> >         at
> > org.exolab.jms.selector.LogicalOperator.evaluate(LogicalOperat
> > or.java:86)
> >         at 
> org.exolab.jms.selector.Selector.selects(Selector.java:262)
> >         at
> > org.exolab.jms.messagemgr.QueueDestinationCache.getMessage(Que
> > ueDestinationCache.java:241)
> >         at
> > org.exolab.jms.messagemgr.QueueConsumerEndpoint.doReceive(Queu
> > eConsumerEndpoint.java:153)
> >         at
> > org.exolab.jms.messagemgr.AbstractConsumerEndpoint.receive(Abs
> > tractConsumerEndpoint.java:233)
> >         at
> > org.exolab.jms.server.SessionConsumer.doReceive(SessionConsume
> > r.java:647)
> >         at
> > org.exolab.jms.server.SessionConsumer.receive(SessionConsumer.
> > java:380)
> >         at
> > org.exolab.jms.server.ServerSessionImpl.receive(ServerSessionI
> > mpl.java:270)
> >         at
> > org.exolab.jms.server.net.RemoteServerSession.receive(RemoteSe
> > rverSession.java:195)
> >         at
> > sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
> >         at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> >         at java.lang.reflect.Method.invoke(Unknown Source)
> >         at
> > 
> org.exolab.jms.net.orb.DefaultORB$Handler.invoke(DefaultORB.java:553)
> >         at
> > org.exolab.jms.net.orb.DefaultORB$1.run(DefaultORB.java:511)
> >         at
> > EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unk
> > nown Source)
> >         at java.lang.Thread.run(Unknown Source)
> > 
> > 
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep 
> through log
> 
> > files for problems?  Stop!  Download the new AJAX search 
> engine that 
> > makes searching your log files as easy as surfing the  web.
> > DOWNLOAD SPLUNK!
> > http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642
> > _______________________________________________
> > openjms-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/openjms-user
> > 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep 
> through log files for problems?  Stop!  Download the new AJAX 
> search engine that makes searching your log files as easy as 
> surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642
> _______________________________________________
> openjms-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openjms-user
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking 
> scripting language that extends applications into web and 
> mobile media. Attend the live webcast and join the prime 
> developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
> _______________________________________________
> openjms-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openjms-user
> 


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.