从mongodb服务器检索数据时出现面向java的错误

uurv41yg  于 2021-07-08  发布在  Java
关注(0)|答案(0)|浏览(185)

服务器成功启动并接受数据,但检索数据时出现以下错误:
o、 a.c.c.c.[/].[dispatcherservlet]:上下文中servlet[dispatcherservlet]的servlet.service()
路径[]引发异常[请求处理失败;嵌套异常为
org.springframework.data.mongodb.uncategorizedmongodbeexception:查询失败,错误代码为2,出现错误
服务器上的{locale:“tax”}中的消息“field”“locale”无效localhost:27017; 嵌套异常为
com.mongodb.mongoqueryexception:查询失败,错误代码为2,错误消息“field”“locale”为
在服务器上的{locale:“tax”}中无效localhost:27017]有根本原因
com.mongodb.mongoqueryexception:查询失败,错误代码为2,错误消息“field”“locale”为
在服务器上的{locale:“tax”}中无效localhost:27017
在com.mongodb.internal.operation.findoOperation$1.call(findoOperation。java:635)~[mongodb驱动程序-核心-4.0.5。jar:na]在com.mongodb.internal.operation.findoOperation$1.call(findoOperation。java:625)~[mongodb-driver-core-4.0.5。jar:na]在com.mongodb.internal.operation.operationhelper.withreadconnectionsource(operationhelper。java:462) ~[mongodb-driver-core-4.0.5。jar:na]在com.mongodb.internal.operation.findoOperation.execute(findoOperation。java:625)~[mongodb-driver-core-4.0.5。jar:na]在com.mongodb.internal.operation.findoOperation.execute(findoOperation。java:77)~[mongodb-driver-core-4.0.5。jar:na]在com.mongodb.client.internal.mongoclientdelegate$delegateoperationexecutor.execute(mongoclientdelegate。java:190)~[mongodb-driver-sync-4.0.5。jar:na]在com.mongodb.client.internal.mongoiterablempl.execute(mongoiterablempl。java:135)~[mongodb-driver-sync-4.0.5。jar:na]在com.mongodb.client.internal.mongoiterablempl.iterator(mongoiterablempl。java:92)~[mongodb-driver-sync-4.0.5。jar:na]在org.springframework.data.mongodb.core.mongotemplate.executefindmultiinternal(mongotemplate。java:2782)~[spring-data-mongodb-3.0.3.发布。jar:3.0.3.release]在org.springframework.data.mongodb.core.mongotemplate.dofind(mongotemplate。java:2518)~[spring-data-mongodb-3.0.3.发布。jar:3.0.3.release]在org.springframework.data.mongodb.core.mongotemplate.dofind(mongotemplate。java:2500)~[spring-data-mongodb-3.0.3.发布。jar:3.0.3.release]在org.springframework.data.mongodb.core.mongotemplate.find(mongotemplate。java:856)~[spring-data-mongodb-3.0.3.发布。jar:3.0.3.release]位于org.springframework.data.mongodb.repository.support.simplemongorepository.findall(simplemongorepository.com)。java:383)~[spring-data-mongodb-3.0.3.发布。jar:3.0.3.release]在org.springframework.data.mongodb.repository.support.simplemongorepository.findall(simplemongorepository)。java:205)~[spring-data-mongodb-3.0.3.发布。jar:3.0.3.release]在java.base/jdk.internal.reflect.nativemethodaccessorimpl.invoke0(本机方法)~[na:na]处java.base/jdk.internal.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl。java:62)~[na:na]位于java.base/jdk.internal.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl。java:43)~[na:na]位于java.base/java.lang.reflect.method.invoke(method。java:567)~[na:na]在org.springframework.data.repository.core.support.implementationinvocationmetadata.invoke(implementationinvocationmetadata)。java:72)~[spring-data-commons-2.3.3.发布。jar:2.3.3.release]在org.springframework.data.repository.core.support.repositorycomposition$repositoryfragments.invoke(repositorycomposition。java:382) ~[spring-data-commons-2.3.3.发布。jar:2.3.3.release]位于org.springframework.data.repository.core.support.repositorycomposition.invoke(repositorycomposition)。java:205)~[spring-data-commons-2.3.3.发布。jar:2.3.3.release]在org.springframework.data.repository.core.support.repositoryfactorysupport$implementationmethodexecutioninterceptor.invoke(repositoryfactorysupport)。java:549)~[spring-data-commons-2.3.3.发布。jar:2.3.3.release]在org.springframework.aop.framework.reflectivemethodinvocation.procedue(reflectivemethodinvocation。java:186) ~[spring-aop-5.2.8.发布。jar:5.2.8.release]在org.springframework.data.repository.core.support.queryexecutormethodinterceptor.doinvoke(queryexecutormethodinterceptor。java:155)~[spring-data-commons-2.3.3.发布。jar:2.3.3.release]在org.springframework.data.repository.core.support.queryexecutormethodinterceptor.invoke(queryexecutormethodinterceptor)。java:130)~[spring-data-commons-2.3.3.发布。jar:2.3.3.release]在org.springframework.aop.framework.reflectivemethodinvocation.procedue(reflectivemethodinvocation。java:186)~[spring-aop-5.2.8.发布。jar:5.2.8.release]在org.springframework.data.projection.defaultmethodinvokingmethodinterceptor.invoke(defaultmethodinvokingmethodinterceptor)。java:80)~[spring-data-commons-2.3.3.发布。jar:2.3.3.release]在org.springframework.aop.framework.reflectivemethodinvocation.procedue(reflectivemethodinvocation。java:186)~[spring-aop-5.2.8.发布。jar:5.2.8.release]在org.springframework.aop.interceptor.exposeinvocationinterceptor.invoke(exposeinvocationinterceptor。java:95)~[spring-aop-5.2.8.发布。jar:5.2.8.release]在org.springframework.aop.framework.reflectivemethodinvocation.procedue(reflectivemethodinvocation。java:186)~[spring-aop-5.2.8.发布。jar:5.2.8.release]在org.springframework.aop.framework.jdkdynamicaopproxy.invoke(jdkdynamicaopproxy。java:212)~[spring-aop-5.2.8.发布。jar:5.2.8.release]在com.sun.proxy.$proxy58.findall(未知源)~[na:na]在net.example.taxengine.resources.taxcontroller.gettaxs(taxcontroller。java:31)~[classes/:na]在java.base/jdk.internal.reflect.nativemethodaccessorimpl.invoke0(本机方法)~[na:na]位于java.base/jdk.internal.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl)。java:62)~[na:na]位于java.base/jdk.internal.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl。java:43)~[na:na]在java.base/java.lang.reflect.method.invoke(方法。java:567)~[na:na]位于org.springframework.web.method.support.invocablehandlermethod.doinvoke(invocablehandlermethod。java:190)~[spring-web-5.2.8.发布。jar:5.2.8.release]在org.springframework.web.method.support.invocablehandlermethod.invokeforrequest(invocablehandlermethod。java:138) ~[spring-web-5.2.8.发布。jar:5.2.8.release]位于org.springframework.web.servlet.mvc.method.annotation.servletinvaccablehandlermethod.invokeandhandle(servletinvaccablehandlermethod)。java:105)~[spring-webmvc-5.2.8.发布。jar:5.2.8.release]在org.springframework.web.servlet.mvc.method.annotation.requestmappinghandleradapter.invokehandlermethod(requestmappinghandleradapter。java:878)~[spring-webmvc-5.2.8.发布。jar:5.2.8.release]位于org.springframework.web.servlet.mvc.method.annotation.requestmappinghandleradapter.handleinternal(requestmappinghandleradapter。java:792) ~[spring-webmvc-5.2.8.发布。jar:5.2.8.release]位于org.springframework.web.servlet.mvc.method.abstracthandlermethodadapter.handle(abstracthandlermethodadapter)。java:87)~[spring-webmvc-5.2.8.发布。jar:5.2.8.release]在org.springframework.web.servlet.dispatcherservlet.dodispatch(dispatcherservlet。java:1040) ~[spring-webmvc-5.2.8.发布。jar:5.2.8.release]位于org.springframework.web.servlet.dispatcherservlet.doservice(dispatcherservlet。java:943)~[spring-webmvc-5.2.8.发布。jar:5.2.8.release]位于org.springframework.web.servlet.frameworkservlet.processrequest(frameworkservlet。java:1006)~[spring-webmvc-5.2.8.发布。jar:5.2.8.release]在org.springframework.web.servlet.frameworkservlet.doget(frameworkservlet。java:898)~[spring-webmvc-5.2.8.发布。jar:5.2.8.release]在javax.servlet.http.httpservlet.service(httpservlet。java:626)~[tomcat-embed-core-9.0.37。jar:4.0.fr]位于org.springframework.web.servlet.frameworkservlet.service(frameworkservlet。java:883) ~[spring-webmvc-5.2.8.发布。jar:5.2.8.release]在javax.servlet.http.httpservlet.service(httpservlet。java:733)~[tomcat-embed-core-9.0.37。jar:4.0.fr]位于org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain)。java:231)~[tomcat-embed-core-9.0.37。jar:9.0.37]在org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain。java:166)~[tomcat-embed-core-9.0.37。jar:9.0.37]在org.apache.tomcat.websocket.server.wsfilter.dofilter(wsfilter。java:53)~[tomcat-embed-websocket-9.0.37。jar:9.0.37]位于org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain)。java:193) ~[tomcat-embed-core-9.0.37。jar:9.0.37]在org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain。java:166)~[tomcat-embed-core-9.0.37。jar:9.0.37]在org.springframework.web.filter.requestcontextfilter.dofilterinternal(requestcontextfilter。java:100)~[spring-web-5.2.8.发布。jar:5.2.8.release]在org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter。java:119)~[spring-web-5.2.8.发布。jar:5.2.8.release]位于org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain)。java:193)~[tomcat-embed-core-9.0.37。jar:9.0.37]在org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain。java:166)~[tomcat-embed-core-9.0.37。jar:9.0.37]在org.springframework.web.filter.formcontentfilter.dofilterinternal(formcontentfilter。java:93)~[spring-web-5.2.8.发布。jar:5.2.8.release]在org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter。java:119)~[spring-web-5.2.8.发布。jar:5.2.8.release]位于org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain)。java:193)~[tomcat-embed-core-9.0.37。jar:9.0.37]在org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain。java:166)~[tomcat-embed-core-9.0.37。jar:9.0.37]在org.springframework.web.filter.characterencodingfilter.dofilterinternal(characterencodingfilter。java:201)~[spring-web-5.2.8.发布。jar:5.2.8.release]在org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilter。java:119)~[spring-web-5.2.8.发布。jar:5.2.8.release]位于org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain)。java:193)~[tomcat-embed-core-9.0.37。jar:9.0.37]在org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilter

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题