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

2011-11-17 Thread mrdiesel
OK It turns out that the version I was using was sick. I used v3.4 and no problems. Thanks Tim. -- View this message in context: http://activemq.2283324.n4.nabble.com/The-Decaf-Threading-API-is-in-a-Shutdown-State-Exception-tp4077689p4081893.html Sent from the ActiveMQ - User mailing list archiv

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

2011-11-17 Thread mrdiesel
Hi Tim, yes, i m aware that can be done but i m not quite sure, if i can do that with c++. you are saying, have your program keep the connection open as long as the program is open and for each get request, i ll ask the consumer to receive one. rigth? any samples on this? -- View this message in

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