Re: CMS: whats going on with bytearrays now ?

2010-08-18 Thread Sodan
fixed in 3.2.x thanx. Søren -- View this message in context: http://old.nabble.com/CMS%3A-whats-going-on-with-bytearrays-now---tp29469904p29471918.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: CMS: whats going on with bytearrays now ?

2010-08-18 Thread Sodan
done -- View this message in context: http://old.nabble.com/CMS%3A-whats-going-on-with-bytearrays-now---tp29469904p29470040.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

CMS: whats going on with bytearrays now ?

2010-08-18 Thread Sodan
vector blist; map->setBytes(name,blist); BOOM (since blist is empty, but is blist is at least 1 byte, then everything is fine) server_debug.exe!std::_Debug_message(const wchar_t * message, const wchar_t * file, unsigned int line) Line 15 C++ server_debug.exe!std::vector >::operator[](unsign

CMS: Failover Exceptions

2010-08-18 Thread Sodan
Hi If I configure: jms_server=tcp://myserver.com:61616 then no problem but jms_server=failover:(tcp://myserver.com:61616)?wireFormat.maxInactivityDuration=0&keepAlive=true then I got a lot of exceptions at start. Everthing seems to work fine, but I do get 30-40 exceptions (can see them in output

Re: CMS getString throws exception if string is empty ?

2010-08-12 Thread Sodan
ok, thanx, that worked. Søren -- View this message in context: http://old.nabble.com/CMS-getString-throws-exception-if-string-is-empty---tp29420197p29423567.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: CMS getString throws exception if string is empty ?

2010-08-12 Thread Sodan
what file was changed? Søren Timothy Bish wrote: > > On Thu, 2010-08-12 at 08:50 -0700, Sodan wrote: >> example: >> >> try { >> string xx = map->getString("myString"); >> return xx; >> } >> catch (...) { >> // failed >>

Re: CMS getString throws exception if string is empty ?

2010-08-12 Thread Sodan
Windows 7 Visual Studio 2010 Søren Timothy Bish wrote: > > On Thu, 2010-08-12 at 08:50 -0700, Sodan wrote: >> example: >> >> try { >> string xx = map->getString("myString"); >> return xx; >> } >> catch (...) { >> // fail

CMS getString throws exception if string is empty ?

2010-08-12 Thread Sodan
example: try { string xx = map->getString("myString"); return xx; } catch (...) { // failed MessageBeep(-1); } if the field myString in the message is empty (ie. ""), then it throws an exception. I am using 3.2.2 please help with a fix asap ! Søren -- View this message in context: http://o

Re: activemq-cpp 3.2.0 vs2005-build directory is missing

2010-07-01 Thread Sodan
aaa... thanx... now it works... :-) Søren Timothy Bish wrote: > > On Wed, 2010-06-30 at 02:50 -0700, Sodan wrote: >> case PrimitiveValueNode::BYTE_ARRAY_TYPE: >> { >> int size = dataIn.readInt(); >>

Re: activemq-cpp 3.2.0 vs2005-build directory is missing

2010-06-30 Thread Sodan
data ); break; } size is 0 Timothy Bish wrote: > > On Tue, 2010-06-29 at 06:31 -0700, Sodan wrote: >> I have always changed and compiled it as static lib, so no dll. >> 3.1.3 works like a charm, 3.2 goes boom. Same setup. >> >> dang, >> S

Re: activemq-cpp 3.2.0 vs2005-build directory is missing

2010-06-29 Thread Sodan
I have always changed and compiled it as static lib, so no dll. 3.1.3 works like a charm, 3.2 goes boom. Same setup. dang, Søren Timothy Bish wrote: > > On Tue, 2010-06-29 at 06:10 -0700, Sodan wrote: >> btw: we use 5.3.0.4 ActiveMQ. >> Maybe we need the newest version 5.3.

Re: activemq-cpp 3.2.0 vs2005-build directory is missing

2010-06-29 Thread Sodan
btw: we use 5.3.0.4 ActiveMQ. Maybe we need the newest version 5.3.2 to be compatible... ? Søren -- View this message in context: http://old.nabble.com/activemq-cpp-3.2.0-vs2005-build-directory-is-missing-tp28946553p29023435.html Sent from the ActiveMQ - User mailing list archive at Nabble.com

Re: activemq-cpp 3.2.0 vs2005-build directory is missing

2010-06-29 Thread Sodan
lthreadstartex() Line 314 + 0xf bytesC app_debug.exe!_threadstartex(void * ptd) Line 297 C -- Sodan wrote: > > getMapNames also fails... :-( > > Søren > > > > Timothy Bish wrote: >> >> On Mon, 2010-06-28 at 02:22 -0700, Sodan w

Re: activemq-cpp 3.2.0 vs2005-build directory is missing

2010-06-29 Thread Sodan
getMapNames also fails... :-( Søren Timothy Bish wrote: > > On Mon, 2010-06-28 at 02:22 -0700, Sodan wrote: >> is there a way to test if a map is empty ? >> > > You could call getMapNames() and see if the returned vector is empty. > > Regards > >

Re: activemq-cpp 3.2.0 vs2005-build directory is missing

2010-06-28 Thread Sodan
is there a way to test if a map is empty ? Søren Timothy Bish wrote: > > On Fri, 2010-06-25 at 05:05 -0700, Sodan wrote: >> Hi again >> >> Spent a number of hours trying to figure this out. I get a certain type >> of >> message, call it "PT&quo

Re: activemq-cpp 3.2.0 vs2005-build directory is missing

2010-06-25 Thread Sodan
I also get many other types of messages, and they are all fine. ? Søren Timothy Bish wrote: > > On Thu, 2010-06-24 at 04:27 -0700, Sodan wrote: >> its weird... >> >> some of the messages we send and recieve are fine: >> const MapMessage *mapMessage = dynamic_cast>

Re: activemq-cpp 3.2.0 vs2005-build directory is missing

2010-06-24 Thread Sodan
-06-24 at 03:40 -0700, Sodan wrote: >> thanx. our project actually compiles and runs now, but getting this >> strange >> bug now: >> >> using: map->itemExists(inName) >> >> >> app_debug.exe!std::_Debug_message(const wchar_t * message, con

Re: activemq-cpp 3.2.0 vs2005-build directory is missing

2010-06-24 Thread Sodan
thanx. our project actually compiles and runs now, but getting this strange bug now: using: map->itemExists(inName) app_debug.exe!std::_Debug_message(const wchar_t * message, const wchar_t * file, unsigned int line) Line 15 C++ app_debug.exe!std::vector >::operator[](unsigned int _Pos)

Re: activemq-cpp 3.2.0 vs2005-build directory is missing

2010-06-23 Thread Sodan
lease respond to > users@activemq.apache.org > > > To > users@activemq.apache.org > cc > > Subject > Re: activemq-cpp 3.2.0 vs2005-build directory is missing > > > > > > > On Tue, 2010-06-22 at 13:47 -0700, Sodan wrote: >> it does compile fine

Re: activemq-cpp 3.2.0 vs2005-build directory is missing

2010-06-22 Thread Sodan
, 2010-06-22 at 13:47 -0700, Sodan wrote: >> it does compile fine now... >> >> but giving strange errors... in the marshall code... something aint >> right... >> >> the project for 2008 is not working... can someone fix it..? >> >> Søren >> &

Re: activemq-cpp 3.2.0 vs2005-build directory is missing

2010-06-22 Thread Sodan
it does compile fine now... but giving strange errors... in the marshall code... something aint right... the project for 2008 is not working... can someone fix it..? Søren -- View this message in context: http://old.nabble.com/activemq-cpp-3.2.0-vs2005-build-directory-is-missing-tp28946553p2

Re: activemq-cpp 3.2.0 vs2005-build directory is missing

2010-06-22 Thread Sodan
If I use the project from the repos, I now get: 1>Debug\activemq-cpp\activemq-cpp\ActiveMQBlobMessageMarshaller.obj : warning LNK4042: object specified more than once; extras ignored 1>Debug\activemq-cpp\activemq-cpp\ActiveMQBytesMessageMarshaller.obj : warning LNK4042: object specified more than

Re: activemq-cpp 3.2.0 vs2005-build directory is missing

2010-06-22 Thread Sodan
com >> 22/06/2010 11:20 >> Please respond to >> users@activemq.apache.org >> >> >> To >> users@activemq.apache.org >> cc >> >> Subject >> Re: activemq-cpp 3.2.0 vs2005-build directory is missing >> >> >> >>

Re: activemq-cpp 3.2.0 vs2005-build directory is missing

2010-06-22 Thread Sodan
for now... what is the immediate solution to the problem below ? (everything else seems to compile and work just fine) activemq\ResourceLifecycleManager.obj : warning LNK4042: object specified more than once activemq\src\main\activemq\cmsutil\ResourceLifecycleManager.cpp and activemq\src\main\

Re: activemq-cpp 3.2.0 vs2005-build directory is missing

2010-06-22 Thread Sodan
I also get this: activemq\ResourceLifecycleManager.obj : warning LNK4042: object specified more than once it seems the are two files with the same name... a conflict ? activemq\src\main\activemq\cmsutil\ResourceLifecycleManager.cpp and activemq\src\main\decaf\internal\util\ResourceLifecycleMana

Re: activemq-cpp 3.2.0 vs2005-build directory is missing

2010-06-21 Thread Sodan
I just tried to use my VC10 project, but it fails many places... like: 1> OpenwireStringSupport.cpp 1>..\src\main\activemq\wireformat\openwire\utils\OpenwireStringSupport.cpp(47): error C2661: 'decaf::io::DataInputStream::readFully' : no overloaded function takes 3 arguments 1>..\src\main\active

Re: Visual Studio 2010 compile error

2010-04-20 Thread Sodan
Solved: add this line to the source files complaining... #include sincerely, Søren -- View this message in context: http://old.nabble.com/Visual-Studio-2010-compile-error-tp28285659p28287848.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Visual Studio 2010 compile error

2010-04-19 Thread Sodan
found this link http://programming.itags.org/c-c++/195297/ says "Because back_inserter_iterator<> is an output iterator but not an input iterator." any clue ? Søren Sodan wrote: > > 1> BooleanStream.cpp > 1>..\src\main\activemq\wireformat\openwire\utils\

Re: Visual Studio 2010 compile error

2010-04-19 Thread Sodan
there are several of these... cant compile the project... help! Søren Sodan wrote: > > 1> BooleanStream.cpp > 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134): > error C2039: 'back_insert_iterator' : is not a member of 'std

Visual Studio 2010 compile error

2010-04-18 Thread Sodan
1> BooleanStream.cpp 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134): error C2039: 'back_insert_iterator' : is not a member of 'std' 1>..\src\main\activemq\wireformat\openwire\utils\BooleanStream.cpp(134): error C2065: 'back_insert_iterator' : undeclared identifier 1>..\sr

Re: ActiveMq-CPP lib is too large

2010-03-25 Thread Sodan
I compile them as libs and they are over 100MB, but the final .exe is 6MB or so. Søren pvnguyen wrote: > > I've went through the instructions for compiling CMS and was able to get > my CPP application to send and receive messages from JMS ActiveMQ. The > problem is that the Lib that CMS proj

Re: CMS 3.1 NoSuchElementException with failover

2010-03-10 Thread Sodan
any news on this ?? Søren Sodan wrote: > > dont know how to put it into jira... > > -- View this message in context: http://old.nabble.com/CMS-3.1-NoSuchElementException-with-failover-tp27125879p27848155.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: DeadLock in CMS 3.1 ?

2010-02-12 Thread Sodan
createsession just hangs... we restarted the broker and now it works... (until next time)... should it throw an exception right away or after some time ? Søren Timothy Bish wrote: > > On Fri, 2010-02-12 at 03:35 -0800, Sodan wrote: >> When lots of message are going on I suddenly s

DeadLock in CMS 3.1 ?

2010-02-12 Thread Sodan
When lots of message are going on I suddenly sometimes get: res = WaitForSingleObject( condition->semaphore, (DWORD)mills ); // forever ?? hang here forever lobbyserver.exe!decaf::internal::util::concurrent::ConditionImpl::wait(decaf::util::concurrent::ConditionHandle * condition=0x098c9e18, __i

Re: CMS 3.1 NoSuchElementException with failover

2010-01-13 Thread Sodan
dont know how to put it into jira... -- View this message in context: http://old.nabble.com/CMS-3.1-NoSuchElementException-with-failover-tp27125879p27143319.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: CMS 3.1 NoSuchElementException with failover

2010-01-12 Thread Sodan
apr-1.3.9 apr-iconv-1.2.1 apr-util-1.3.9 first one comes here: - debug.exe!decaf::lang::exceptions::NoSuchElementException::NoSuchElementException(const char * file=0x01486e78, const int lineNumber=239, const char * msg=0x01486f28, ...) Line 110 C++ debug.exe!decaf::util::StlMap,st

Re: CMS 3.1 NoSuchElementException with failover

2010-01-12 Thread Sodan
its simple, all I do is: activemq::library::ActiveMQCPP::initializeLibrary(); itsConnectionFactory = new ActiveMQConnectionFactory(brokerURI); itsConnection = itsConnectionFactory->createConnection(); and at that point 'createConnection', the first NoSuchElementException appears... (it comes fro

CMS 3.1 NoSuchElementException with failover

2010-01-12 Thread Sodan
Hi all (using cms 3.1, vs 2008) If we do broker url: tcp://host:61616 then everything is fine, but we need failover (for automatic reconnect) so we do: failover:(tcp://host:61616) but then we get a lot of: First-chance exception at 0x7505e124 in server_debug.exe: Microsoft C++ exception: decaf:

Re: failover in C++ CMS

2009-08-06 Thread Sodan
yes, but I want to debug out when it happens in the client. Søren rajdavies wrote: > > Have tried killing/restarting the activemq broker ? > > On 6 Aug 2009, at 12:48, Sodan wrote: > >> >> 3.0.01 is now running, and we tried to do >> brake the connectio

Re: failover in C++ CMS

2009-08-06 Thread Sodan
3.0.01 is now running, and we tried to do brake the connection, so the failover should kick in. Is there a way to debug out, when the failover happens? Søren Sodan wrote: > > oh, ok, still using 2.2.6. Will change to 3.0. > > thanx, > Søren > > > > Timothy Bish

Re: link error CMS

2009-08-06 Thread Sodan
ok, found this on the forum: activemq::library::ActiveMQCPP::initializeLibrary(); now it works... that function I had missed. Søren Sodan wrote: > > took the project supplied along with 3.0.1 and it now links... donno > why... > > but when I run the app it says: > >

Re: link error CMS

2009-08-06 Thread Sodan
took the project supplied along with 3.0.1 and it now links... donno why... but when I run the app it says: No Matching Factory Registered for format := tcp FILE: ..\src\main\activemq\transport\TransportRegistry.cpp, LINE: 50 FILE: ..\src\main\activemq\core\ActiveMQConnectionFact

Re: link error CMS

2009-08-06 Thread Sodan
building of the library works fine, no problems. its when linking I get these 2 link errors... Søren Sodan wrote: > > after building the 3.0.1, then I get a link error when linking to my > project. > > 1>Linking... > > 1>libactivemq-cppd.lib(OpenWireFormat.obj)

Re: link error CMS

2009-08-05 Thread Sodan
Windows - Visual Studio 2008. static build. all the 2.2.X versions has compiled just fine. Søren Timothy Bish wrote: > > On Wed, 2009-08-05 at 14:40 -0700, Sodan wrote: >> after building the 3.0.1, then I get a link error when linking to my >> project. >>

link error CMS

2009-08-05 Thread Sodan
after building the 3.0.1, then I get a link error when linking to my project. 1>Linking... 1>libactivemq-cppd.lib(OpenWireFormat.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall activemq::wireformat::openwire::marshal::v3::MarshallerFactory::configure(class activ

Re: failover in C++ CMS

2009-08-02 Thread Sodan
oh, ok, still using 2.2.6. Will change to 3.0. thanx, Søren Timothy Bish wrote: > > On Sun, 2009-08-02 at 10:48 -0700, Sodan wrote: >> Hi there >> >> Is the failover implemented in CMS ? >> >> usually I do: >> tcp://x.x.x.x:61616 >> >&g

failover in C++ CMS

2009-08-02 Thread Sodan
Hi there Is the failover implemented in CMS ? usually I do: tcp://x.x.x.x:61616 but should be able to do failover:(tcp://x.x.x.x:61616) but that does not work ... ?! Søren -- View this message in context: http://www.nabble.com/failover-in-C%2B%2B-CMS-tp24780179p24780179.html Sent from the

Re: ActiveMQ-CPP Version 3.0 RC2 Released

2009-05-27 Thread Sodan
Hi there Does 3.0 have support for utf8 string ? So we can string s = map->getString("somestring"); and s will contain the utf8 string. thanx, Søren -- View this message in context: http://www.nabble.com/ActiveMQ-CPP-Version-3.0-RC2-Released-tp23728342p23738877.html Sent from the ActiveMQ -

Re: Questions about getCMSReplyTo

2008-12-07 Thread Sodan
all works fine! thanx Søren Timothy Bish wrote: > > On Fri, 2008-12-05 at 07:06 -0800, Sodan wrote: >> So if I do >> Message *clone = message->clone(); >> and then later (out of scope) clone the dest, >> then that should be safe also, right ? >>

Re: Questions about getCMSReplyTo

2008-12-05 Thread Sodan
So if I do Message *clone = message->clone(); and then later (out of scope) clone the dest, then that should be safe also, right ? thanx Søren Timothy Bish wrote: > > Yes, anything you clone is now yours to delete. > > > On Fri, 2008-12-05 at 06:11 -0800, Sodan wrote: &g

Re: Questions about getCMSReplyTo

2008-12-05 Thread Sodan
yep, but what about provider string... why does that not work ? Timothy Bish wrote: > > On Fri, 2008-12-05 at 05:03 -0800, Sodan wrote: >> So I get a message and create a producer based on the destination >> const cms::Destination *cmsdst = map->getCMSRe

Re: Questions about getCMSReplyTo

2008-12-05 Thread Sodan
ok, it seems that I need to cms::Destination *clone = cmsdst->clone(); and then later when done, I can delete the clone... right ? Sodan wrote: > > So I get a message and create a producer based on the destination > const cms::Destination *cmsdst = map->getCMSReplyTo

Questions about getCMSReplyTo

2008-12-05 Thread Sodan
So I get a message and create a producer based on the destination const cms::Destination *cmsdst = map->getCMSReplyTo(); session->createProducer(cmsdst); which works fine. The thing is that I dont need to reply instantly back, when I get a message, instead I will send back messages after 1 m

Re: ActiveMQ-CPP 2.2.2 Released

2008-12-04 Thread Sodan
seems to work like a charm..! :-) async now works! nice ! thanx! Søren Timothy Bish wrote: > > Hi everyone, > The ActiveMQ-CPP 2.2.2 release is now official! You can download the > source distribution here: > http://activemq.apache.org/cms/activemq-cpp-222-release.html > > This release off

Re: ( ActiveMQ CPP )

2008-10-07 Thread Sodan
The java sender was sending it as a stream, and so I could not read it with readBytes. Now he send a bytearray, and our utf8 encoded stuff comes around fine. I would love to contribute, I just done have the time. Sodan wrote: > > ok, it might be that the java sender is actually sen

Re: ( ActiveMQ CPP )

2008-10-06 Thread Sodan
ok, it might be that the java sender is actually sending a string, and not a bytearray. Will check this later today, and get back. btw: is there utf8, unicode or wstring planned ? Søren Timothy Bish wrote: > > On Mon, 2008-10-06 at 03:46 -0700, Sodan wrote: >> Btw, I cant

Re: ( ActiveMQ CPP )

2008-10-06 Thread Sodan
Btw, I cant even do map->getBytes ... but why would it do exception in the first place, when reading the long ? -- View this message in context: http://www.nabble.com/%27readString---Encoding-not-supported%27-exception-%28-ActiveMQ-CPP-%29-tp19827735p19835598.html Sent from the ActiveMQ - User

Re: ( ActiveMQ CPP )

2008-10-06 Thread Sodan
Unicode strings your best bet is to encode them in a Bytes > Message and decode them in your client code. > > To provide more insight it would be helpful if you could provide some > sample code to show what exactly it is you are doing to encode and > decode your data. > >

Re: UTF8 'Encoding not supported' error ( ActiveMQ CPP )

2008-10-05 Thread Sodan
ption already here ! (reading the long) ??? please advice... -- Sodan wrote: > > Hi there > > I am using the c++ client, and the mesage I am getting back have different > members, > long, bytes etc. > The other end is trying to send me a message which contains a gree

( ActiveMQ CPP )

2008-10-05 Thread Sodan
Hi there I am using the c++ client, and the mesage I am getting back have different members, long, bytes etc. The other end is trying to send me a message which contains a greek Zigma sign, and he has encoded with UFT8 and done setbytes... But when I do a read, not even on the bytes, but on the l

Re: producer->send blocks ( ActiveMQ CPP )

2008-09-29 Thread Sodan
ok. thanx ! -- View this message in context: http://www.nabble.com/producer-%3Esend-blocks-%28-ActiveMQ-CPP-%29-tp19718849p19732422.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: producer->send blocks ( ActiveMQ CPP )

2008-09-29 Thread Sodan
ok, it actually does send async, sort of... I am sending 30 msgs, and with a roundtrip latency of 100 ms it will take approx 3 seconds to send, since it wont send the next msg until it has gotten a ack from the previous. Sodan wrote: > > Hi there > > Have been integrating ActiveM

producer->send blocks ( ActiveMQ CPP )

2008-09-28 Thread Sodan
Hi there Have been integrating ActiveMQ CPP client into our project, and I now have a question. For example: if we do 10 producer->send then each send seems to be blocking, so 1) send 2) wait for ack? 3) goto 1 with a latency of 100ms, 10 sends take 1 second. I am looking for nonblocking send, so