Re: Viewing the contents of a message?

2011-11-16 Thread Claus Ibsen
On Wed, Nov 16, 2011 at 8:13 PM, frachel wrote: > Our applications puts a message on a Queue - initially using the Web Console > when I clicked on the message to view it, i got a ClassNotFound exception > (couldn't find the serialized class that the message was). I added the > appropriate JAR's to

Reply:Viewing the contents of a message?

2011-11-16 Thread SuoNayi
Hi Frank,Adding the appropriate jar to the lib directory of AMQ works well so there is no need to modify wrapper.conf. I guess the class named ExecuteCycleReply should override the method named toString to display some more meaning output. At 2011-11-17 03:13:48,frachel wrote: >Our applicat

Re: The Decaf Threading API is in a Shutdown State. Exception

2011-11-16 Thread Timothy Bish
On Wed, 2011-11-16 at 15:34 -0800, mrdiesel wrote: > I got the segmentation fault again. but i was able to process 4000 messages. > before it was crapping right away. there must be a leak somewhere else? > right? > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/The-D

Re: The Decaf Threading API is in a Shutdown State. Exception

2011-11-16 Thread mrdiesel
I got the segmentation fault again. but i was able to process 4000 messages. before it was crapping right away. there must be a leak somewhere else? right? -- View this message in context: http://activemq.2283324.n4.nabble.com/The-Decaf-Threading-API-is-in-a-Shutdown-State-Exception-tp4077689p407

Re: The Decaf Threading API is in a Shutdown State. Exception

2011-11-16 Thread mrdiesel
wow. that did it actually. it works now and no segmentation fault. Thanks man!!!. -- View this message in context: http://activemq.2283324.n4.nabble.com/The-Decaf-Threading-API-is-in-a-Shutdown-State-Exception-tp4077689p4078288.html Sent from the ActiveMQ - User mailing list archive at Nabble.c

Re: The Decaf Threading API is in a Shutdown State. Exception

2011-11-16 Thread Timothy Bish
On Wed, 2011-11-16 at 12:53 -0800, mrdiesel wrote: > I took exactly the same code from examples, but instead of asynchronous, i > want synchronous client. So all i changed was remove tge listeners and > return the message to runConsumer method. > > I keep getting segmentation fault. > > Can you

Re: The Decaf Threading API is in a Shutdown State. Exception

2011-11-16 Thread Timothy Bish
On Wed, 2011-11-16 at 14:03 -0800, mrdiesel wrote: > Where can i find unit tests or other examples? rather than the ones come with > package? > Look in the folders named, "test" and "test-integration" The integration tests require a running broker and provide many exmaples of using the CMS API.

Re: The Decaf Threading API is in a Shutdown State. Exception

2011-11-16 Thread mrdiesel
Where can i find unit tests or other examples? rather than the ones come with package? Thanks. -- View this message in context: http://activemq.2283324.n4.nabble.com/The-Decaf-Threading-API-is-in-a-Shutdown-State-Exception-tp4077689p4078091.html Sent from the ActiveMQ - User mailing list archive

Re: The Decaf Threading API is in a Shutdown State. Exception

2011-11-16 Thread mrdiesel
when i m debugging, it just hangs. 8test [Thread -188621920 (LWP 5666) exited] [Thread -146584672 (LWP 5657) exited] [Thread -178132064 (LWP 5663) exited] [Thread -167642208 (LWP 5662) exited] [Thread -157152352 (LWP 5659) exited] [New Thread -146584672 (LWP 5670)] [New Thread -157152352 (LWP 5671

Re: The Decaf Threading API is in a Shutdown State. Exception

2011-11-16 Thread Timothy Bish
On Wed, 2011-11-16 at 13:30 -0800, mrdiesel wrote: > I m getting the same segmentation fault error. > > I moved the init and shutdown statements outside the for loop. > > 0test > 1test > 2test > 3test > Segmentation fault (core dumped) > There are several good examples in the unit and integrati

Re: The Decaf Threading API is in a Shutdown State. Exception

2011-11-16 Thread mrdiesel
I m getting the same segmentation fault error. I moved the init and shutdown statements outside the for loop. 0test 1test 2test 3test Segmentation fault (core dumped) is there a sample, synchronous c++ client i can look? I m really not getting why this is happening? -- View this message in con

Re: The Decaf Threading API is in a Shutdown State. Exception

2011-11-16 Thread Timothy Bish
On Wed, 2011-11-16 at 12:53 -0800, mrdiesel wrote: > I took exactly the same code from examples, but instead of asynchronous, i > want synchronous client. So all i changed was remove tge listeners and > return the message to runConsumer method. > Try calling init and shutdown on the library outsi

Re: The Decaf Threading API is in a Shutdown State. Exception

2011-11-16 Thread mrdiesel
I took exactly the same code from examples, but instead of asynchronous, i want synchronous client. So all i changed was remove tge listeners and return the message to runConsumer method. I keep getting segmentation fault. Can you advise? Below is the code I m running: #include #include #incl

Re: The Decaf Threading API is in a Shutdown State. Exception

2011-11-16 Thread Timothy Bish
On Wed, 2011-11-16 at 12:33 -0800, mrdiesel wrote: > you are right!!. i commented out shutdown library and I dont get that > exception anymore. But now I get segmentation fault..:(( > My advice would be to look at the examples in the source package and see how the code is organized such that the

Re: The Decaf Threading API is in a Shutdown State. Exception

2011-11-16 Thread mrdiesel
you are right!!. i commented out shutdown library and I dont get that exception anymore. But now I get segmentation fault..:(( Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -188941408 (LWP 28796)] 0xf7d7e255 in decaf::util::concurrent::Lock::lock (this=0xf4bcf0c0) at d

Re: The Decaf Threading API is in a Shutdown State. Exception

2011-11-16 Thread Timothy Bish
On Wed, 2011-11-16 at 12:02 -0800, mrdiesel wrote: > try{ > if( session != NULL ) session->close(); > if( connection != NULL ) connection->close(); > }catch (CMSException& e) {e.printStackTrace();} > > I m getting an exception as follows: > > The Decaf Threading A

Re: The Decaf Threading API is in a Shutdown State. Exception

2011-11-16 Thread mrdiesel
And Sometimes, it justs hangs, it doesnt even throw exception, with JMX i still can see there is a connection, which is not terminated yet. -- View this message in context: http://activemq.2283324.n4.nabble.com/The-Decaf-Threading-API-is-in-a-Shutdown-State-Exception-tp4077689p4077694.html Sent f

Viewing the contents of a message?

2011-11-16 Thread frachel
Our applications puts a message on a Queue - initially using the Web Console when I clicked on the message to view it, i got a ClassNotFound exception (couldn't find the serialized class that the message was). I added the appropriate JAR's to the ClassPath (edited wrapper.conf), and I no longer get

Wiki

2011-11-16 Thread André Ricardo
I have found that some pages in the wiki have broken links, at least in some pages related to PHP/STOMP. For example in the page http://activemq.apache.org/stomp.html the link # Example of using Stomp over SSL on the client side could be found in the PHP Stomp client example

Re: Custom Transport - similar to Failover transport

2011-11-16 Thread Dejan Bosanac
Hi, we have something similar in the progress. It uses ZooKeeper to keep a list of available brokers. Checkout http://fabric.fusesource.org/ especially ActiveMQ demo - https://github.com/fusesource/fabric/tree/master/fabric-examples/fabric-activemq-demo also, take a look at readme on how to star

Re: Connection timeout 20 sec

2011-11-16 Thread Torsten Mielke
This is an NMS client right? The failover url does not even work with a pure Java client. Do you see the same behavior when using a simple url like failover:(tcp://broker-1:61616,tcp://broker-2:61616) without any extra configuration? I just tested it again using a Java client (but needed to c

Re: Connection timeout 20 sec

2011-11-16 Thread Ishitori
ActiveMQ version is 5.5.0. Yes, the port is not listeneed at all, because I stop ActiveMQ windows service for broker-2. -- View this message in context: http://activemq.2283324.n4.nabble.com/Connection-timeout-20-sec-tp4076349p4076625.html Sent from the ActiveMQ - User mailing list archive at Nab

Re: Connection timeout 20 sec

2011-11-16 Thread Torsten Mielke
What version of ActiveMQ are you using? Will the broker-2 be shutdown completely, i.e. not listener on port 61616? I have recently tested a similar scenario and found it working alright. Torsten Mielke tors...@fusesource.com tmie...@blogspot.com On Nov 16, 2011, at 2:52 PM, Ishitori wrote: >

Connection timeout 20 sec

2011-11-16 Thread Ishitori
I have 2 failover brokers and the following configuration: failover:(tcp://broker-1:61616,tcp://broker-2:61616)?randomize=true&transport.initialReconnectDelay=10&transport.startupMaxReconnectAttempts=1&transport.maxReconnectDelay=1000&transport.useExponentialBackOff=false&transport.timeout=3000&tr

Re: Out Of Memory Error - InactivityMonitorWriteCheck - newThread

2011-11-16 Thread Torsten Mielke
This looks like you're running out of memory while trying to create a new thread that handles a new connection. There can be many reasons for getting an OOM. I suggest you have a read over http://activemq.apache.org/javalangoutofmemory.html first. If you have hundreds of connections into the br

Re: ActiveMQ needs tempUsage for recovery of persistent messages on startup?

2011-11-16 Thread Gary Tully
yes. On 16 November 2011 12:01, Martin C. wrote: > Hi Gary, > > thanks for the very fast response. I will change the configuration > accordingly. So basically you say I should remove the > as a whole? > > Best regards, > Martin > > On Wed, Nov 16, 2011 at 11:34 AM, Gary Tully wrote: >> You shou

Out Of Memory Error - InactivityMonitorWriteCheck - newThread

2011-11-16 Thread Horacio Natyural
hi, i would like to ask if anyone is encountering this. we're getting outofmemory errors on activemq 5.3.0. please see the following Exception in thread "InactivityMonitor WriteCheck" java.lang.OutOfMemoryError at java.security.AccessController.getProtectionDomains(Native Method)

Re: ActiveMQ needs tempUsage for recovery of persistent messages on startup?

2011-11-16 Thread Martin C.
Hi Gary, thanks for the very fast response. I will change the configuration accordingly. So basically you say I should remove the as a whole? Best regards, Martin On Wed, Nov 16, 2011 at 11:34 AM, Gary Tully wrote: > You should not be using the file pending message cursor in this case. > The d

Re: ActiveMQ needs tempUsage for recovery of persistent messages on startup?

2011-11-16 Thread Gary Tully
You should not be using the file pending message cursor in this case. The default store cursor is best, it will use a file cursor for non persistent messages and leave excess (exceed the cache) persistent messages in the store. When it is specified as the default cursor in configuration, it is used

ActiveMQ needs tempUsage for recovery of persistent messages on startup?

2011-11-16 Thread Martin C.
Hi, I a have a question regarding fileQueueCursor and systemUsage on ActiveMQ 5.5.0: Below you see my configuration, which limits the memory to 64MB, store usage to 10GB and tempUsage to 1GB. I have a KahaDB with about 30 messages, using 330MB in the kahadb directory, all messages are persist