[ https://issues.apache.org/jira/browse/CAMEL-7406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13987544#comment-13987544 ]
ASF GitHub Bot commented on CAMEL-7406: --------------------------------------- Github user asfgit closed the pull request at: https://github.com/apache/camel/pull/142 > 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)