You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Eddie Fast (JIRA)" <ji...@apache.org> on 2011/04/23 00:01:05 UTC

[jira] [Created] (AMQCPP-366) createConnection() fails if given an ip address

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

[jira] [Commented] (AMQCPP-366) createConnection() fails if given an ip address

Posted by "Eddie Fast (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQCPP-366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13023434#comment-13023434 ] 

Eddie Fast commented on AMQCPP-366:
-----------------------------------

I just tried it with 3.3.0 using the patch in r1095725.

It still crashes, but this time it's in:
connectionFactory = new activemq::core::ActiveMQConnectionFactory( brokerURI );

rather than createConnection().

On 3.3.0:
Debugging into it, it crashes in the ctor, on this line:
this->setBrokerURI( URI( uri ) );


> 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

[jira] [Updated] (AMQCPP-366) createConnection() fails if given an ip address

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQCPP-366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish updated AMQCPP-366:
--------------------------------

    Fix Version/s: 3.4.0

> 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
>             Fix For: 3.4.0
>
>
> 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

[jira] [Resolved] (AMQCPP-366) createConnection() fails if given an ip address

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQCPP-366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish resolved AMQCPP-366.
---------------------------------

    Resolution: Fixed

Fixed in trunk and 3.4.x branch, report back if you find any other uri issues.

> 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