Re: Connecting to invalid URI leads program crash.

2017-11-20 Thread Timothy Bish
On 11/20/2017 09:56 PM, hackerick4 wrote: Hello guys, I was using Paho C library but found a issue. I'm not it's a bug or not. Here are several lines of codes in C. URI1 and URI2 are in valid URI for active MQ, Why the MQTTAsync_connect function didn't report any error but success ? and the prog

Connecting to invalid URI leads program crash.

2017-11-20 Thread hackerick4
Hello guys, I was using Paho C library but found a issue. I'm not it's a bug or not. Here are several lines of codes in C. URI1 and URI2 are in valid URI for active MQ, Why the MQTTAsync_connect function didn't report any error but success ? and the program would crash after a few seconds. I

Re: Artemis cannot find LIBAIO, although it is installed

2017-11-20 Thread ipolevoy
Problem is finally resolved. There is an error in the documentation: This page: https://activemq.apache.org/artemis/docs/2.3.0/libaio.html mentions a file libActiveMQAIO64.so, which is /incorrect./ The distribution is shipped with a file called libartemis-native-64.so, which is to be used. In

Re: [DISCUSS] Confusion surrounding the ActiveMQ project roadmap

2017-11-20 Thread Clebert Suconic
Lets keep the discussion copied on the dev list as well, in case there is someone subscribing only to the dev list. For those who do not follow the user's list.. this link should provide some context: http://activemq.2283324.n4.nabble.com/DISCUSS-Confusion-surrounding-the-ActiveMQ-project-roadma

Re: ActiveMQ offload messages from DLQ to Disk

2017-11-20 Thread Tim Bain
You'd need to write a consumer that reads messages from the DLQ (the easy part) and writes them to wherever you want them stored, like a database or flat files or whatever (the hard part). Since the hard part of the problem will be different for any given ActiveMQ user, there's no built-in capabili

Re: Messages delayed for no reason

2017-11-20 Thread Clebert Suconic
what do you have for redelivery delay? Perhaps your client throwed an exception (ActiveException on your codebase)? I would log those. On Mon, Nov 20, 2017 at 3:42 PM, ipolevoy wrote: > The entire code base except Artemis is under our control. The vast majority > of the messages are delivering

Re: Artemis cannot find LIBAIO, although it is installed

2017-11-20 Thread ipolevoy
Clebert, I'm in the IRC chat room. My ID: ipolevoy, ping me when you have a chance. thanks -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Artemis cannot find LIBAIO, although it is installed

2017-11-20 Thread ipolevoy
sorry, this is a poor Nabble UI playing jokes on me, I did not see my response, so sent it again. -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Messages delayed for no reason

2017-11-20 Thread ipolevoy
The entire code base except Artemis is under our control. The vast majority of the messages are delivering fast ,more than 99.999. The use case: An API submits a POST request, we form a message and stick it into a queue. The queue has 10 listeners. When these listeners receive a Message, they wri

Re: Artemis cannot find LIBAIO, although it is installed

2017-11-20 Thread Justin Bertram
"IRC" is "Internet Relay Chat." The link that Clebert provided in his previous message (i.e. http://activemq.apache.org/irc.html) has the server and the channel name you should use as well as a link to a Wikipedia article about IRC clients. You'll need to grab an IRC client for your platform and

Re: Artemis cannot find LIBAIO, although it is installed

2017-11-20 Thread Clebert Suconic
Maybe we crossed each other message? as I already answered both questions? you need to add the folder where libartemis-native-64.so is located. As for the link on IRC: http://activemq.apache.org/irc.html On Mon, Nov 20, 2017 at 3:39 PM, ipolevoy wrote: > we just use a system property: > > > j

Re: Artemis cannot find LIBAIO, although it is installed

2017-11-20 Thread ipolevoy
we just use a system property: java -Djava.library.path=/opt/lib/linux-x86_64/ ... Where is the link to IRC? -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Messages delayed for no reason

2017-11-20 Thread Clebert Suconic
Are you running your customer's code on these listeners? do you have any slow consumers? if that's the case a slow consumer will have a buffer on the client that won't be available for a while until you release your listener. You could setup consumer-window-size=0 for any slow consumers. (You hav

Re: Artemis cannot find LIBAIO, although it is installed

2017-11-20 Thread Clebert Suconic
On Mon, Nov 20, 2017 at 2:41 PM, ipolevoy wrote: > We use -Djava.library.path=/opt/lib/linux-x86_64/, is this not OK? Nope... unless you copied libartemis-native-64.so there which wouldn't be so standard. When you compile the native library.. it will be under: artemis-source-dir/artemis-native

Re: Re-ordering of messages - Artemis

2017-11-20 Thread alisu
Hi Justin, My thought was, just like ActiveMQ, this could simply be done without the need to integrate spring into the the server. I have created a web application as per the link you pointed to, and add the following details inside web.xml and applicationContext.xml files. *web.xml* / http://www

Re: Artemis cannot find LIBAIO, although it is installed

2017-11-20 Thread ipolevoy
We use -Djava.library.path=/opt/lib/linux-x86_64/, is this not OK? Is there a link to IRC? Thanks -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Messages delayed for no reason

2017-11-20 Thread ipolevoy
yep, we do use MessageListener, and register 10 instances of them on the same queue. -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Messages delayed for no reason

2017-11-20 Thread Clebert Suconic
Why you don’t use message listeners? I couldn’t run your code but I had the inpresssion you could have messages waiting at the client buffer. I regard to your old Libaio thread. Is this where you put on the embedded to work ? Maybe I could replicate the issue there ! On Mon, Nov 20, 2017 at 12

Re: Artemis cannot find LIBAIO, although it is installed

2017-11-20 Thread Clebert Suconic
If you can compile it. All you need it LD_LIBRARY_PATH where the compilation out is set. If you look for me on IRC today or tomorrow I can help you out. On Mon, Nov 20, 2017 at 12:48 PM ipolevoy wrote: > We recompiled and reinstalled the library, but when the process starts, we > still see "

Re: [DISCUSS] Confusion surrounding the ActiveMQ project roadmap

2017-11-20 Thread Christopher Shannon
Jeff, I don't think anyone is proposing killing off 5.x at this point, but just clarifying what the future is in terms of Artemis and ActiveMQ 6. I do think we need to retire Apollo though. Chris On Mon, Nov 20, 2017 at 12:41 PM, jgenender wrote: > I'll throw in my .02 on this... > > I think

Re: Artemis cannot find LIBAIO, although it is installed

2017-11-20 Thread ipolevoy
We recompiled and reinstalled the library, but when the process starts, we still see " libaio is not available, switching the configuration into NIO" in the log file. Is there a way to tell that the library is installed and functions properly? Thanks -- Sent from: http://activemq.2283324.n4

Re: [DISCUSS] Confusion surrounding the ActiveMQ project roadmap

2017-11-20 Thread jgenender
I'll throw in my .02 on this... I think the discussion should be here and in the open and I am confident the PMC will decide based on the community, and not on their personal view. I also think we need to be very careful in any discussion about sun-setting AMQ 5.X. "Classic" as it has been discu

Messages delayed for no reason

2017-11-20 Thread ipolevoy
Some of the messages sit in a queue, while we have available and registered listeners. After a few hours, the messages are delivered. What can be the cause of that? We use Artemis embedded using the JavaLite Async wrapper: https://github.com/javalite/activeweb/blob/master/javalite-async/src/mai

Re: [Artemis] Invalid keys during XA Recovery from HornetQ client

2017-11-20 Thread Benjamin Buehlmann
The attribute works well to disable the recovery, but we need XA recovery on several applications. So I tried to build the Artemis RAR. Two questions came up: 1. Is it possible to build Artemis RAR under Java 7? 2. I am trying to configure the RA to use with SSL, but don't get it right now. Alway

ActiveMQ offload messages from DLQ to Disk

2017-11-20 Thread anandn
I need to offload messages from a DLQ queue to the disk to avoid store percent from going up. Is there any way to do that in activemq v5.5.1 ? -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Re-ordering of messages - Artemis

2017-11-20 Thread Justin Bertram
> Where am I getting wrong? The fact that you're attempting to modify broker.xml and/or bootstap.xml indicates to me that you didn't understand my comment on Stackoverflow. I specifically noted that you need to use "a web application with a Camel context," and linked to some documentation on that

Re: jaasAuthenticationPlugin ans sslContext in karaf

2017-11-20 Thread MillieretXavier
Thx Tim, So 1. I follow this link http://docs.huihoo.com/fuse/esb/4.4/amq_security/Auth-JAAS-DualAuthentPlugin.html perhaps I am wrong??? 2. To add precision, I run karaf 3.0.7, and inside activemq 5.12.3. My goal is perhaps stupid, having a openwire without ssl (because wait only on localhost),

Re: ActiveMQ DLQ issues

2017-11-20 Thread augustl
Thanks for the detailed response! Unfortunately I don't know when the out of memory error happened. My logs were full of them. Messages started appearing in the DLQ about 21:00, and the logs with the OOM start at around 05:00 the day after. On the producer end, I connect to ActiveMQ using a Acti

Re: ActiveMQ DLQ issues

2017-11-20 Thread augustl
Thanks for the detailed response! Unfortunately I don't know when the out of memory error happened. My logs were full of them. Messages started appearing in the DLQ about 21:00, and the logs with the OOM start at around 05:00 the day after. On the producer end, I connect to ActiveMQ using a Acti

Re: jaasAuthenticationPlugin ans sslContext in karaf

2017-11-20 Thread Tim Bain
1. You referenced a forum post that told you how to do JAAS in this case; can you please provide a link? 2. If you run a standalone broker without the JAAS plugin, do both protocols work? How about if you configure the standalone broker to use JAAS directly rather than through Karaf? This sounds

Re: ActiveMQ DLQ issues

2017-11-20 Thread Tim Bain
Thanks Gary. I was convinced that the default configuration did not contain any of the message-discarding options from the slow consumers page I linked to; I'm not sure where I got that idea. But that explanation makes more sense than my wild theory about the no-consumer behavior of statically incl

jaasAuthenticationPlugin ans sslContext in karaf

2017-11-20 Thread MillieretXavier
Hi all, I use activeMq 5.12.3 embedded in karaf. I would like two connectors, one for openwire, and one for amqps here my activemq.xml (configuration) http://www.springframework.org/schema/beans"; xmlns:amq="http://activemq.apache.org/schema/core"; xmlns:xsi="http://www.w3.org/2001/XMLSch

Re: Re-ordering of messages - Artemis

2017-11-20 Thread alisu
Thanks Justin and gtully for your responses. As Justin said, it is possible t run camel routes inside the broker, now I have been experimenting with this. First, I have tried this with ActiveMQ 5.15.1 as described in [1], and everything works fine. But when I do the same thing with Artemis, by addi

Re: ActiveMQ DLQ issues

2017-11-20 Thread Gary Tully
dlqDeliveryFailureCause java.lang.Throwable: TopicSubDiscard. ID:localhost->fmiuseastp01-63022-1486246061090-100948:1:1:2 The cause indicates the a subscriber is full and has been configured to discard messages[1]. See policyEntry from the default config [2] https://github.com/apache/activemq/blo

Re: ActiveMQ DLQ issues

2017-11-20 Thread augustl
Thanks for the detailed response! Unfortunately I don't know when the out of memory error happened. My logs were full of them. Messages started appearing in the DLQ about 21:00, and the logs with the OOM start at around 05:00 the day after. On the producer end, I connect to ActiveMQ using a Acti