Hi
If I configure:
jms_server=tcp://myserver.com:61616
then no problem
but
jms_server=failover:(tcp://myserver.com:61616)?wireFormat.maxInactivityDuration=0keepAlive=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
vectorunsigned char 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::vectorunsigned
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.
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.
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:
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 (...) {
// failed
MessageBeep(-1);
}
if the field myString in the message is empty (ie
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
MessageBeep(-1);
}
if the field myString in the message is empty (ie. ), then it throws
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.
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();
std::vectorunsigned char 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øren
A sample app that demonstrates
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
Søren
Timothy Bish wrote:
On Fri, 2010
--
Sodan wrote:
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
Søren
Timothy Bish wrote
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
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.2 to be compatible
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 and many of these messages are ok, but then
suddenly I
get
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_castconst MapMessage
*(message);
some are empty, map
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::vectorunsigned
:
On Thu, 2010-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, const wchar_t
*
file, unsigned int line) Line 15C
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 now...
but giving strange errors... in the marshall code... something aint
right...
the project for 2008 is not working... can someone fix
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
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
On Tue, 2010-06-22 at 02:57 -0700, Sodan wrote:
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
If I use the project from the repos, I now get:
1Debug\activemq-cpp\activemq-cpp\ActiveMQBlobMessageMarshaller.obj :
warning LNK4042: object specified more than once; extras ignored
1Debug\activemq-cpp\activemq-cpp\ActiveMQBytesMessageMarshaller.obj :
warning LNK4042: object specified more than
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:
-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
Are you compiling in VS2008 or converting the project to VS2010. From
what I
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
Solved:
add this line to the source files complaining...
#include iterator
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.
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'
1..\src\main\activemq\wireformat\openwire
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\BooleanStream.cpp(134):
error C2039
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
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 project
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.
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,
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 sometimes get
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.
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:
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
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++
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.
1Linking...
1libactivemq-cppd.lib(OpenWireFormat.obj) : error LNK2001: unresolved
external
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:
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 wrote:
On Sun, 2009-08-02 at 10
after building the 3.0.1, then I get a link error when linking to my project.
1Linking...
1libactivemq-cppd.lib(OpenWireFormat.obj) : error LNK2001: unresolved
external symbol public: virtual void __thiscall
activemq::wireformat::openwire::marshal::v3::MarshallerFactory::configure(class
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.
1Linking...
1libactivemq-cppd.lib
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
but should be able to do
failover:(tcp://x.x.x.x:61616
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 -
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 ?
thanx
Søren
Yes, all clone operations in ActiveMQ-CPP
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
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();
session
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-getCMSReplyTo();
session-createProducer(cmsdst
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:
ok, it seems that I need
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
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.
Regards
Tim.
On Sun, 2008-10-05 at 11:41 -0700, Sodan wrote:
Hi there
I am using the c
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 even do map-getBytes
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
an exception 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 greek Zigma
sign, and he has
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
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 ActiveMQ CPP client
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.
58 matches
Mail list logo