You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Sodan <so...@sodan.dk> on 2010/08/12 17:50:43 UTC

CMS getString throws exception if string is empty ?

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://old.nabble.com/CMS-getString-throws-exception-if-string-is-empty---tp29420197p29420197.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: CMS getString throws exception if string is empty ?

Posted by Sodan <so...@sodan.dk>.
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. ""), then it throws an
>> exception.
>> 
>> I am using 3.2.2
>> 
>> please help with a fix asap !
>> Søren
>> 
> 
> Can you provide a short but complete sample app that reproduces the
> problem as well as document what OS / Compiler you are using?  Opeing a
> Jira issue would be best.
> 
> Regards
> 
> -- 
> Tim Bish
> 
> Open Source Integration: http://fusesource.com
> ActiveMQ in Action: http://www.manning.com/snyder/
> 
> Follow me on Twitter: http://twitter.com/tabish121
> My Blog: http://timbish.blogspot.com/
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/CMS-getString-throws-exception-if-string-is-empty---tp29420197p29421484.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: CMS getString throws exception if string is empty ?

Posted by Timothy Bish <ta...@gmail.com>.
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 an
> exception.
> 
> I am using 3.2.2
> 
> please help with a fix asap !
> Søren
> 

Can you provide a short but complete sample app that reproduces the
problem as well as document what OS / Compiler you are using?  Opeing a
Jira issue would be best.

Regards

-- 
Tim Bish

Open Source Integration: http://fusesource.com
ActiveMQ in Action: http://www.manning.com/snyder/

Follow me on Twitter: http://twitter.com/tabish121
My Blog: http://timbish.blogspot.com/


Re: CMS getString throws exception if string is empty ?

Posted by Sodan <so...@sodan.dk>.
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 ?

Posted by Timothy Bish <ta...@gmail.com>.
On Thu, 2010-08-12 at 14:17 -0700, Sodan wrote:
> what file was changed?
> 
> Søren

Check the svn log:  svn log -v -l 1

Regards
Tim.

> 
> 
> 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 an
> >> exception.
> >> 
> >> I am using 3.2.2
> >> 
> >> please help with a fix asap !
> >> Søren
> >> 
> > 
> > You're welcome to try the code in the 3.2.x fixes branch in SVN, I just
> > added a change that should fix the problem.
> > 
> > Regards
> > 
> > -- 
> > Tim Bish
> > 
> > Open Source Integration: http://fusesource.com
> > ActiveMQ in Action: http://www.manning.com/snyder/
> > 
> > Follow me on Twitter: http://twitter.com/tabish121
> > My Blog: http://timbish.blogspot.com/
> > 
> > 
> > 
> 



Re: CMS getString throws exception if string is empty ?

Posted by Sodan <so...@sodan.dk>.
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 an
>> exception.
>> 
>> I am using 3.2.2
>> 
>> please help with a fix asap !
>> Søren
>> 
> 
> You're welcome to try the code in the 3.2.x fixes branch in SVN, I just
> added a change that should fix the problem.
> 
> Regards
> 
> -- 
> Tim Bish
> 
> Open Source Integration: http://fusesource.com
> ActiveMQ in Action: http://www.manning.com/snyder/
> 
> Follow me on Twitter: http://twitter.com/tabish121
> My Blog: http://timbish.blogspot.com/
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/CMS-getString-throws-exception-if-string-is-empty---tp29420197p29423370.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: CMS getString throws exception if string is empty ?

Posted by Timothy Bish <ta...@gmail.com>.
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 an
> exception.
> 
> I am using 3.2.2
> 
> please help with a fix asap !
> Søren
> 

You're welcome to try the code in the 3.2.x fixes branch in SVN, I just
added a change that should fix the problem.

Regards

-- 
Tim Bish

Open Source Integration: http://fusesource.com
ActiveMQ in Action: http://www.manning.com/snyder/

Follow me on Twitter: http://twitter.com/tabish121
My Blog: http://timbish.blogspot.com/