activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eddie Fast (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMQCPP-366) createConnection() fails if given an ip address
Date Fri, 22 Apr 2011 22:01:05 GMT
createConnection() fails if given an ip address
-----------------------------------------------

                 Key: AMQCPP-366
                 URL: https://issues.apache.org/jira/browse/AMQCPP-366
             Project: ActiveMQ C++ Client
          Issue Type: Bug
    Affects Versions: 3.2.5
         Environment: windows 7, visual studio 2008 sp1, apr 1.4.2
            Reporter: Eddie Fast
            Assignee: Timothy Bish


If I pass an ip address to createConnection(), it fails with this exception message:

Input: 172.16.1.1:61616, Index 0 resulted in this error: Schema must start with a Letter.The
program '[3144] testd.exe: Native' has exited with code -1 (0xffffffff).

My relevant code snippet looks like:

{noformat}
   string brokerURI = "tcp://172.16.1.1:61616";

   activemq::core::ActiveMQConnectionFactory * connectionFactory = NULL;

   try
   {
      // Create a ConnectionFactory
      connectionFactory = new activemq::core::ActiveMQConnectionFactory( brokerURI );

      // Create a Connection
      pimpl->m_connection = connectionFactory->createConnection();  // exception here
      pimpl->m_connection->start();

      ...
   }
{noformat}


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message