activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dhanasekar <sekarsdh...@gmail.com>
Subject Re: ERROR: javax.jms.InvalidSelectorException: (“JMSMessageID=
Date Sun, 11 Mar 2018 03:22:40 GMT

Hi Tim,

after changing double quote also, getting error.

I feel issue is related to : and - characters.


./activemq purge --msgsel
JMSMessageID="ID:Dhanasekars-iMac.local-53803-1520058200878-1:1:1:1:1"
--jmxuser admin --jmxpassword admin DHANATEST
INFO: Loading '/Applications/apache-activemq//bin/env'
INFO: Using java
'/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/bin/java'
Java Runtime: Oracle Corporation 1.8.0_60
/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/jre
  Heap sizes: current=62976k  free=61321k  max=932352k
    JVM args: -Xms64M -Xmx1G
-Djava.util.logging.config.file=logging.properties
-Djava.security.auth.login.config=/Applications/apache-activemq//conf/login.config
-Dactivemq.classpath=/Applications/apache-activemq//conf:/Applications/apache-activemq//../lib/
-Dactivemq.home=/Applications/apache-activemq/
-Dactivemq.base=/Applications/apache-activemq/
-Dactivemq.conf=/Applications/apache-activemq//conf
-Dactivemq.data=/Applications/apache-activemq//data
Extensions classpath:
 
[/Applications/apache-activemq/lib,/Applications/apache-activemq/lib/camel,/Applications/apache-activemq/lib/optional,/Applications/apache-activemq/lib/web,/Applications/apache-activemq/lib/extra]
ACTIVEMQ_HOME: /Applications/apache-activemq
ACTIVEMQ_BASE: /Applications/apache-activemq
ACTIVEMQ_CONF: /Applications/apache-activemq/conf
ACTIVEMQ_DATA: /Applications/apache-activemq/data
useJmxServiceUrl Found JMS Url:
service:jmx:rmi://127.0.0.1/stub/rO0ABXNyAC5qYXZheC5tYW5hZ2VtZW50LnJlbW90ZS5ybWkuUk1JU2VydmVySW1wbF9TdHViAAAAAAAAAAICAAB4cgAaamF2YS5ybWkuc2VydmVyLlJlbW90ZVN0dWLp/tzJi+FlGgIAAHhyABxqYXZhLnJtaS5zZXJ2ZXIuUmVtb3RlT2JqZWN002G0kQxhMx4DAAB4cHc0AAtVbmljYXN0UmVmMgAACTEyNy4wLjAuMQAA5ftSLs1eQlwA53ivhH0AAAFiExH6iIABAHg=
Connecting to pid: 4801
ERROR: java.lang.RuntimeException: Failed to execute purge task. Reason:
javax.jms.InvalidSelectorException:
JMSMessageID=ID:Dhanasekars-iMac.local-53803-1520058200878-1:1:1:1:1
java.lang.RuntimeException: Failed to execute purge task. Reason:
javax.jms.InvalidSelectorException:
JMSMessageID=ID:Dhanasekars-iMac.local-53803-1520058200878-1:1:1:1:1
	at
org.apache.activemq.console.command.PurgeCommand.runTask(PurgeCommand.java:139)
	at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:62)
	at
org.apache.activemq.console.command.AbstractJmxCommand.execute(AbstractJmxCommand.java:387)
	at
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:154)
	at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:62)
	at
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.apache.activemq.console.Main.runTaskClass(Main.java:262)
	at org.apache.activemq.console.Main.main(Main.java:115)
ERROR: java.lang.Exception: javax.jms.InvalidSelectorException:
JMSMessageID=ID:Dhanasekars-iMac.local-53803-1520058200878-1:1:1:1:1
java.lang.Exception: javax.jms.InvalidSelectorException:
JMSMessageID=ID:Dhanasekars-iMac.local-53803-1520058200878-1:1:1:1:1
	at
org.apache.activemq.console.command.PurgeCommand.runTask(PurgeCommand.java:140)
	at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:62)
	at
org.apache.activemq.console.command.AbstractJmxCommand.execute(AbstractJmxCommand.java:387)
	at
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:154)
	at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:62)
	at
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.apache.activemq.console.Main.runTaskClass(Main.java:262)
	at org.apache.activemq.console.Main.main(Main.java:115)
Caused by: javax.jms.InvalidSelectorException:
JMSMessageID=ID:Dhanasekars-iMac.local-53803-1520058200878-1:1:1:1:1
	at
org.apache.activemq.selector.SelectorParser.parse(SelectorParser.java:88)
	at
org.apache.activemq.selector.SelectorParser.parse(SelectorParser.java:58)
	at
org.apache.activemq.broker.region.Queue.createSelectorFilter(Queue.java:1679)
	at
org.apache.activemq.broker.region.Queue.removeMatchingMessages(Queue.java:1284)
	at
org.apache.activemq.broker.region.Queue.removeMatchingMessages(Queue.java:1274)
	at
org.apache.activemq.broker.jmx.QueueView.removeMatchingMessages(QueueView.java:72)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275)
	at
com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112)
	at
com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46)
	at
com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237)
	at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138)
	at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252)
	at javax.management.StandardMBean.invoke(StandardMBean.java:405)
	at
org.apache.activemq.broker.jmx.AnnotatedMBean.invoke(AnnotatedMBean.java:218)
	at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
	at
javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1471)
	at
javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)
	at
javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1312)
	at
javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1404)
	at
javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:832)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)
	at sun.rmi.transport.Transport$1.run(Transport.java:200)
	at sun.rmi.transport.Transport$1.run(Transport.java:197)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
	at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
	at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$256(TCPTransport.java:683)
	at java.security.AccessController.doPrivileged(Native Method)
	at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
	at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.activemq.selector.TokenMgrError: Lexical error at line
1, column 16.  Encountered: ":" (58), after : ""
	at
org.apache.activemq.selector.SelectorParserTokenManager.getNextToken(SelectorParserTokenManager.java:1053)
	at
org.apache.activemq.selector.SelectorParser.jj_scan_token(SelectorParser.java:1270)
	at
org.apache.activemq.selector.SelectorParser.jj_3_7(SelectorParser.java:913)
	at
org.apache.activemq.selector.SelectorParser.jj_2_7(SelectorParser.java:657)
	at
org.apache.activemq.selector.SelectorParser.unaryExpr(SelectorParser.java:457)
	at
org.apache.activemq.selector.SelectorParser.multExpr(SelectorParser.java:391)
	at
org.apache.activemq.selector.SelectorParser.addExpression(SelectorParser.java:360)
	at
org.apache.activemq.selector.SelectorParser.comparisonExpression(SelectorParser.java:212)
	at
org.apache.activemq.selector.SelectorParser.equalityExpression(SelectorParser.java:172)
	at
org.apache.activemq.selector.SelectorParser.andExpression(SelectorParser.java:136)
	at
org.apache.activemq.selector.SelectorParser.orExpression(SelectorParser.java:115)
	at
org.apache.activemq.selector.SelectorParser.JmsSelector(SelectorParser.java:107)
	at
org.apache.activemq.selector.SelectorParser.parse(SelectorParser.java:85)
	... 46 more
ERROR: task failed




--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Mime
View raw message