solr5.2.1整合web项目,执行查询时报语法错误。求解!!!
严重:Servlet.service()forservlet[mvc-dispatcher]incontextwithpath[/webShopManager]threwexception[Requestprocessingfailed;nestedexceptionisjava.lang.IllegalArgumentException:Illegalcharacterinschemenameatindex0:127.0.0.1:8080/code1/select?q=%C3%A4%C2%BD%C2%A0%C3%A4%C2%BB%C2%AC&start=0&rows=10&hl=true&hl.simple.pre=%3Cfont+color+%3D+%27red%27%3E&hl.simple.post=%3C%2Ffont%3E&wt=javabin&version=2]withrootcause
java.net.URISyntaxException:Illegalcharacterinschemenameatindex0:127.0.0.1:8080/code1/select?q=%C3%A4%C2%BD%C2%A0%C3%A4%C2%BB%C2%AC&start=0&rows=10&hl=true&hl.simple.pre=%3Cfont+color+%3D+%27red%27%3E&hl.simple.post=%3C%2Ffont%3E&wt=javabin&version=2
atjava.net.URI$Parser.fail(URI.java:2829)
atjava.net.URI$Parser.checkChars(URI.java:3002)
atjava.net.URI$Parser.checkChar(URI.java:3012)
atjava.net.URI$Parser.parse(URI.java:3028)
atjava.net.URI.<init>(URI.java:595)
atjava.net.URI.create(URI.java:857)
atorg.apache.http.client.methods.HttpGet.<init>(HttpGet.java:69)
atorg.apache.solr.client.solrj.impl.HttpSolrClient.createMethod(HttpSolrClient.java:333)
atorg.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:235)
atorg.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:227)
atorg.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:135)
atorg.apache.solr.client.solrj.SolrClient.query(SolrClient.java:943)
atorg.apache.solr.client.solrj.SolrClient.query(SolrClient.java:958)
atcom.hisun.manager.controller.setting.SolrjController.searchByKeywords(SolrjController.java:71)
atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
atjava.lang.reflect.Method.invoke(Method.java:606)
atorg.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
atorg.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)
atorg.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:111)
atorg.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:806)
atorg.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:729)
atorg.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
atorg.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
atorg.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
atorg.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
atorg.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
atjavax.servlet.http.HttpServlet.service(HttpServlet.java:624)
atorg.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
atjavax.servlet.http.HttpServlet.service(HttpServlet.java:731)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
atorg.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
atorg.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:151)
atorg.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
atcom.hisun.base.filter.CookieFilter.doFilter(CookieFilter.java:51)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
atorg.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
atorg.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
atorg.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
atorg.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
atcom.hisun.base.filter.intercepter.MyFilterSecurityInterceptor.invoke(MyFilterSecurityInterceptor.java:57)
atcom.hisun.base.filter.intercepter.MyFilterSecurityInterceptor.doFilter(MyFilterSecurityInterceptor.java:46)
atorg.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
atorg.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
atorg.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
atorg.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
atorg.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
atorg.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
atorg.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
atorg.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)
atorg.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
atorg.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
atorg.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
atorg.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
atorg.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
atorg.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)
atorg.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
atorg.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
atorg.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
atorg.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)
atorg.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
atorg.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
atorg.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
atorg.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
atorg.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
atorg.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
atorg.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
atorg.springframework.web.filter.DelegatingFilterProxy.doFilter(Deleg
atingFilterProxy.java:262)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
atorg.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:85)
atorg.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
atorg.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
atorg.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
atorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
atorg.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
atorg.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
atorg.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)
atorg.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
atorg.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
atjava.lang.Thread.run(Thread.java:744)
更多0