Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when URL of sparql endpoint is percent encoded #162

Open
bwmcbride opened this issue Dec 13, 2015 · 0 comments
Open

Exception when URL of sparql endpoint is percent encoded #162

bwmcbride opened this issue Dec 13, 2015 · 0 comments
Labels

Comments

@bwmcbride
Copy link
Member

I have a sparql endpoint that requires basic authentication.

When I configure Elda with the uri of the endpoint like this:

http://username:password@domain/endpoint

I get the execption below. The password is URL encoded.

type Exception report

message Format specifier '%2B'

description The server encountered an internal error that prevented it from fulfilling this request.

exception

java.util.MissingFormatArgumentException: Format specifier '%2B'
java.util.Formatter.format(Formatter.java:2519)
java.util.Formatter.format(Formatter.java:2455)
java.lang.String.format(String.java:2928)
com.epimorphics.lda.log.ELog.error(ELog.java:51)
com.epimorphics.lda.restlets.RouterRestlet.runEndpoint(RouterRestlet.java:467)
com.epimorphics.lda.restlets.RouterRestlet.requestHandler(RouterRestlet.java:260)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:497)
com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:927)
com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:875)
com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:829)
com.epimorphics.lda.support.LogRequestFilter.doFilter(LogRequestFilter.java:74)

@ehedgehog ehedgehog added the bug label Apr 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants