camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-7406) Empty password in JCR Endpoint URI causes NPE
Date Fri, 02 May 2014 09:19:20 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-7406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen resolved CAMEL-7406.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.13.1
                   2.12.4

Thanks for the PR

> Empty password in JCR Endpoint URI causes NPE
> ---------------------------------------------
>
>                 Key: CAMEL-7406
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7406
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jcr
>            Reporter: Gregor Zurowski
>            Assignee: Gregor Zurowski
>            Priority: Minor
>             Fix For: 2.12.4, 2.13.1, 2.14.0
>
>
> Leaving the password empty in a Camel JCR Endpoint URI (e.g. "jcr://gregor:@repository/home")
leads to NullPointerExceptions. Empty passwords are valid when used with Jackrabbit's SimpleSecurityManager
and useful for testing.
> {code}
> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint:
jcr://gregor:@repository/home/test due to: null
> 	at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:534)
> 	at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:71)
> 	at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:190)
> 	at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:106)
> 	at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:112)
> 	at org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:61)
> 	at org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:55)
> 	at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:499)
> 	at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:212)
> 	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:907)
> 	... 38 more
> Caused by: java.lang.NullPointerException
> 	at org.apache.camel.component.jcr.JcrEndpoint.<init>(JcrEndpoint.java:60)
> 	at org.apache.camel.component.jcr.JcrComponent.createEndpoint(JcrComponent.java:31)
> 	at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:123)
> 	at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:514)
> 	... 47 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message