[ 
https://issues.apache.org/jira/browse/AMQ-4957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14315573#comment-14315573
 ] 

Mark Frazier commented on AMQ-4957:
-----------------------------------

I agree, it doesn't seem consistent. I'll try to find what was actually 
intended and maybe fix the code.

> LDAP Network Connector does not allow port number in uri
> --------------------------------------------------------
>
>                 Key: AMQ-4957
>                 URL: https://issues.apache.org/jira/browse/AMQ-4957
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Connector
>    Affects Versions: 5.9.0
>         Environment: Centos 6.4, OpenLDAP 2.4
>            Reporter: Matthew Western
>            Priority: Minor
>
> When using the LDAP discovery agent, if a non-failover URI containing a port 
> number is specified in the ldapNetworkConnector for example:
> <networkConnectors>
> <ldapNetworkConnector uri="ldap://172.31.67.192:389";
>                                         base="dc=tmts,dc=net"
>                                         anonymousAuthentication="true"
>                                         searchFilter="(!(cn=esb1))"
>                                         searchScope="SUBTREE_SCOPE"
>                                         dynamicOnly="true"
>                                         networkTTL="2"
>                                         prefetchSize="1"
>                                         conduitSubscriptions="true"
>                                         
> decreaseNetworkConsumerPriority="false"
>                                          />
> </networkConnectors>
> The following Java exception is seen in the log on startup and the broker 
> never initialises:
> 2013-12-26 13:40:40,919 | INFO  | Refreshing 
> org.apache.activemq.xbean.XBeanBrokerFactory$1@2919c2af: startup date [Thu 
> Dec 26 13:40:40 UTC 2013]; root of context hierarchy | 
> org.apache.activemq.xbean.XBeanBrokerFactory$1 | main
> 2013-12-26 13:40:44,231 | ERROR | Failed to load: class path resource 
> [activemq.xml], reason: Error creating bean with name 
> 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class path 
> resource [activemq.xml]: Cannot create inner bean 
> 'ldapNetworkConnector#4e2cb9f0' of type 
> [org.apache.activemq.network.LdapNetworkConnector] while setting bean 
> property 'networkConnectors' with key [0]; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating bean 
> with name 'ldapNetworkConnector#4e2cb9f0' defined in class path resource 
> [activemq.xml]: Error setting property values; nested exception is 
> org.springframework.beans.PropertyBatchUpdateException; nested 
> PropertyAccessExceptions (1) are:
> PropertyAccessException 1: 
> org.springframework.beans.MethodInvocationException: Property 'uri' threw 
> exception; nested exception is java.net.URISyntaxException: Illegal character 
> in scheme name at index 0: 172.31.67.192:389 | 
> org.apache.activemq.xbean.XBeanBrokerFactory | main
> If the URI is changed to remove the port number the broker works fine. If the 
> URI containing a port number is used in a failover transport specification, 
> the broker also works fine.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to