Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-4893

AND is not escaped in lucene query

    XMLWordPrintable

    Details

    • Complexity:
      Low

      Description

      At times you may see:

      HTTP Status 500 - java.lang.IllegalStateException: Invalid query
      
      type Exception report
      
      message java.lang.IllegalStateException: Invalid query
      
      description The server encountered an internal error that prevented it from fulfilling this request.
      
      exception
      
      java.lang.RuntimeException: java.lang.IllegalStateException: Invalid query
      	org.openmrs.module.metadatasharing.wrapper.impl.PackageImporterImpl.getImportedItems(PackageImporterImpl.java:120)
      	org.openmrs.module.metadatasharing.web.controller.ImportController.load(ImportController.java:386)
      	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:498)
      	org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
      	org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:440)
      	org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:428)
      	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
      	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
      	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
      	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
      	org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      	org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:61)
      	org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:72)
      	org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
      	org.openmrs.module.logmanager.web.filter.RequestProviderFilter.doFilterInternal(RequestProviderFilter.java:36)
      	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      	org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
      	org.openmrs.module.xforms.web.XformsFilter.doFilter(XformsFilter.java:60)
      	org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
      	org.openmrs.module.amrsmobileforms.web.LocationFilter.doFilter(LocationFilter.java:27)
      	org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
      	org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:54)
      	org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:109)
      	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      	org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:230)
      	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      	org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
      	org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
      	org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
      	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
      	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      root cause
      
      java.lang.IllegalStateException: Invalid query
      	org.openmrs.api.db.hibernate.search.LuceneQuery.buildQuery(LuceneQuery.java:324)
      	org.openmrs.api.db.hibernate.search.LuceneQuery.<init>(LuceneQuery.java:82)
      	org.openmrs.api.db.hibernate.search.LuceneQuery$1.<init>(LuceneQuery.java:56)
      	org.openmrs.api.db.hibernate.search.LuceneQuery.newQuery(LuceneQuery.java:55)
      	org.openmrs.api.db.hibernate.HibernateConceptDAO.newConceptNameLuceneQuery(HibernateConceptDAO.java:1384)
      	org.openmrs.api.db.hibernate.HibernateConceptDAO.getConcepts(HibernateConceptDAO.java:1340)
      	org.openmrs.api.impl.ConceptServiceImpl.getConcepts(ConceptServiceImpl.java:1645)
      	sun.reflect.GeneratedMethodAccessor579.invoke(Unknown Source)
      	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	java.lang.reflect.Method.invoke(Method.java:498)
      	org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      	org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
      	org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
      	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      	com.sun.proxy.$Proxy484.getConcepts(Unknown Source)
      	sun.reflect.GeneratedMethodAccessor579.invoke(Unknown Source)
      	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	java.lang.reflect.Method.invoke(Method.java:498)
      	org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      	org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:51)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:51)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:51)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      	com.sun.proxy.$Proxy485.getConcepts(Unknown Source)
      	org.openmrs.module.metadatasharing.api.db.hibernate.HibernateCompatibility1_11.getConcepts(HibernateCompatibility1_11.java:38)
      	org.openmrs.module.metadatasharing.api.db.hibernate.HibernateMetadataDAO.getConcepts(HibernateMetadataDAO.java:204)
      	org.openmrs.module.metadatasharing.api.impl.MetadataServiceImpl.getConcepts(MetadataServiceImpl.java:76)
      	sun.reflect.GeneratedMethodAccessor578.invoke(Unknown Source)
      	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	java.lang.reflect.Method.invoke(Method.java:498)
      	org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      	org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
      	org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
      	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      	com.sun.proxy.$Proxy562.getConcepts(Unknown Source)
      	sun.reflect.GeneratedMethodAccessor578.invoke(Unknown Source)
      	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	java.lang.reflect.Method.invoke(Method.java:498)
      	org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      	org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
      	org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
      	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:51)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:51)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      	com.sun.proxy.$Proxy563.getConcepts(Unknown Source)
      	sun.reflect.GeneratedMethodAccessor578.invoke(Unknown Source)
      	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	java.lang.reflect.Method.invoke(Method.java:498)
      	org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      	org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
      	org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
      	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      	com.sun.proxy.$Proxy563.getConcepts(Unknown Source)
      	org.openmrs.module.metadatasharing.handler.impl.ConceptHandler.getItems(ConceptHandler.java:178)
      	org.openmrs.module.metadatasharing.handler.Handler.getItems(Handler.java:83)
      	org.openmrs.module.metadatasharing.resolver.impl.ObjectByNameResolver.getPossibleMatch(ObjectByNameResolver.java:68)
      	org.openmrs.module.metadatasharing.resolver.ResolverEngine.resolve(ResolverEngine.java:117)
      	org.openmrs.module.metadatasharing.wrapper.impl.PackageImporterImpl.createImportedItems(PackageImporterImpl.java:217)
      	org.openmrs.module.metadatasharing.wrapper.impl.PackageImporterImpl.getImportedItems(PackageImporterImpl.java:117)
      	org.openmrs.module.metadatasharing.web.controller.ImportController.load(ImportController.java:386)
      	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:498)
      	org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
      	org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:440)
      	org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:428)
      	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
      	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
      	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
      	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
      	org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      	org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:61)
      	org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:72)
      	org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
      	org.openmrs.module.logmanager.web.filter.RequestProviderFilter.doFilterInternal(RequestProviderFilter.java:36)
      	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      	org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
      	org.openmrs.module.xforms.web.XformsFilter.doFilter(XformsFilter.java:60)
      	org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
      	org.openmrs.module.amrsmobileforms.web.LocationFilter.doFilter(LocationFilter.java:27)
      	org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
      	org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:54)
      	org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:109)
      	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      	org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:230)
      	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      	org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
      	org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
      	org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
      	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
      	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      root cause
      
      org.apache.lucene.queryParser.ParseException: Cannot parse '(concept.conceptMappings.conceptReferenceTerm.code:(SULFADOXINE AND PYRIMETHAMINE)^0.4 OR (( name:("SULFADOXINE AND PYRIMETHAMINE")^0.7 OR ( (name:(SULFADOXINE)^0.6 OR name:(SULFADOXINE*)^0.3 OR name:(SULFADOXINE~0.8)^0.1) (name:(AND)^0.6 OR name:(AND*)^0.3 OR name:(AND~0.8)^0.1) (name:(PYRIMETHAMINE)^0.6 OR name:(PYRIMETHAMINE*)^0.3 OR name:(PYRIMETHAMINE~0.8)^0.1))^0.3) localePreferred:true)^0.4 OR (( name:("SULFADOXINE AND PYRIMETHAMINE")^0.7 OR ( (name:(SULFADOXINE)^0.6 OR name:(SULFADOXINE*)^0.3 OR name:(SULFADOXINE~0.8)^0.1) (name:(AND)^0.6 OR name:(AND*)^0.3 OR name:(AND~0.8)^0.1) (name:(PYRIMETHAMINE)^0.6 OR name:(PYRIMETHAMINE*)^0.3 OR name:(PYRIMETHAMINE~0.8)^0.1))^0.3))^0.2) locale:(en*  OR en_GB^2 ) voided:false': Encountered " <AND> "AND "" at line 1, column 230.
      Was expecting one of:
          <NOT> ...
          "+" ...
          "-" ...
          "(" ...
          "*" ...
          <QUOTED> ...
          <TERM> ...
          <PREFIXTERM> ...
          <WILDTERM> ...
          "[" ...
          "{" ...
          <NUMBER> ...
          <TERM> ...
          "*" ...
          
      	org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:211)
      	org.openmrs.api.db.hibernate.search.LuceneQuery$1.prepareQuery(LuceneQuery.java:63)
      	org.openmrs.api.db.hibernate.search.LuceneQuery.buildQuery(LuceneQuery.java:321)
      	org.openmrs.api.db.hibernate.search.LuceneQuery.<init>(LuceneQuery.java:82)
      	org.openmrs.api.db.hibernate.search.LuceneQuery$1.<init>(LuceneQuery.java:56)
      	org.openmrs.api.db.hibernate.search.LuceneQuery.newQuery(LuceneQuery.java:55)
      	org.openmrs.api.db.hibernate.HibernateConceptDAO.newConceptNameLuceneQuery(HibernateConceptDAO.java:1384)
      	org.openmrs.api.db.hibernate.HibernateConceptDAO.getConcepts(HibernateConceptDAO.java:1340)
      	org.openmrs.api.impl.ConceptServiceImpl.getConcepts(ConceptServiceImpl.java:1645)
      	sun.reflect.GeneratedMethodAccessor579.invoke(Unknown Source)
      	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	java.lang.reflect.Method.invoke(Method.java:498)
      	org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      	org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
      	org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
      	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      	com.sun.proxy.$Proxy484.getConcepts(Unknown Source)
      	sun.reflect.GeneratedMethodAccessor579.invoke(Unknown Source)
      	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	java.lang.reflect.Method.invoke(Method.java:498)
      	org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      	org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:51)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:51)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:51)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      	com.sun.proxy.$Proxy485.getConcepts(Unknown Source)
      	org.openmrs.module.metadatasharing.api.db.hibernate.HibernateCompatibility1_11.getConcepts(HibernateCompatibility1_11.java:38)
      	org.openmrs.module.metadatasharing.api.db.hibernate.HibernateMetadataDAO.getConcepts(HibernateMetadataDAO.java:204)
      	org.openmrs.module.metadatasharing.api.impl.MetadataServiceImpl.getConcepts(MetadataServiceImpl.java:76)
      	sun.reflect.GeneratedMethodAccessor578.invoke(Unknown Source)
      	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	java.lang.reflect.Method.invoke(Method.java:498)
      	org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      	org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
      	org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
      	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      	com.sun.proxy.$Proxy562.getConcepts(Unknown Source)
      	sun.reflect.GeneratedMethodAccessor578.invoke(Unknown Source)
      	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	java.lang.reflect.Method.invoke(Method.java:498)
      	org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      	org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
      	org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
      	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:51)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:51)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      	com.sun.proxy.$Proxy563.getConcepts(Unknown Source)
      	sun.reflect.GeneratedMethodAccessor578.invoke(Unknown Source)
      	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	java.lang.reflect.Method.invoke(Method.java:498)
      	org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      	org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
      	org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
      	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      	com.sun.proxy.$Proxy563.getConcepts(Unknown Source)
      	org.openmrs.module.metadatasharing.handler.impl.ConceptHandler.getItems(ConceptHandler.java:178)
      	org.openmrs.module.metadatasharing.handler.Handler.getItems(Handler.java:83)
      	org.openmrs.module.metadatasharing.resolver.impl.ObjectByNameResolver.getPossibleMatch(ObjectByNameResolver.java:68)
      	org.openmrs.module.metadatasharing.resolver.ResolverEngine.resolve(ResolverEngine.java:117)
      	org.openmrs.module.metadatasharing.wrapper.impl.PackageImporterImpl.createImportedItems(PackageImporterImpl.java:217)
      	org.openmrs.module.metadatasharing.wrapper.impl.PackageImporterImpl.getImportedItems(PackageImporterImpl.java:117)
      	org.openmrs.module.metadatasharing.web.controller.ImportController.load(ImportController.java:386)
      	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:498)
      	org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
      	org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:440)
      	org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:428)
      	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
      	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
      	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
      	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
      	org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      	org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:61)
      	org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:72)
      	org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
      	org.openmrs.module.logmanager.web.filter.RequestProviderFilter.doFilterInternal(RequestProviderFilter.java:36)
      	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      	org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
      	org.openmrs.module.xforms.web.XformsFilter.doFilter(XformsFilter.java:60)
      	org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
      	org.openmrs.module.amrsmobileforms.web.LocationFilter.doFilter(LocationFilter.java:27)
      	org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
      	org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:54)
      	org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:109)
      	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      	org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:230)
      	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      	org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
      	org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
      	org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
      	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
      	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      root cause
      
      org.apache.lucene.queryParser.ParseException: Encountered " <AND> "AND "" at line 1, column 230.
      Was expecting one of:
          <NOT> ...
          "+" ...
          "-" ...
          "(" ...
          "*" ...
          <QUOTED> ...
          <TERM> ...
          <PREFIXTERM> ...
          <WILDTERM> ...
          "[" ...
          "{" ...
          <NUMBER> ...
          <TERM> ...
          "*" ...
          
      	org.apache.lucene.queryParser.QueryParser.generateParseException(QueryParser.java:1818)
      	org.apache.lucene.queryParser.QueryParser.jj_consume_token(QueryParser.java:1700)
      	org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1327)
      	org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1237)
      	org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1313)
      	org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1237)
      	org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1313)
      	org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1266)
      	org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1313)
      	org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1266)
      	org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1313)
      	org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1237)
      	org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1313)
      	org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1266)
      	org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1313)
      	org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1237)
      	org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1226)
      	org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:206)
      	org.openmrs.api.db.hibernate.search.LuceneQuery$1.prepareQuery(LuceneQuery.java:63)
      	org.openmrs.api.db.hibernate.search.LuceneQuery.buildQuery(LuceneQuery.java:321)
      	org.openmrs.api.db.hibernate.search.LuceneQuery.<init>(LuceneQuery.java:82)
      	org.openmrs.api.db.hibernate.search.LuceneQuery$1.<init>(LuceneQuery.java:56)
      	org.openmrs.api.db.hibernate.search.LuceneQuery.newQuery(LuceneQuery.java:55)
      	org.openmrs.api.db.hibernate.HibernateConceptDAO.newConceptNameLuceneQuery(HibernateConceptDAO.java:1384)
      	org.openmrs.api.db.hibernate.HibernateConceptDAO.getConcepts(HibernateConceptDAO.java:1340)
      	org.openmrs.api.impl.ConceptServiceImpl.getConcepts(ConceptServiceImpl.java:1645)
      	sun.reflect.GeneratedMethodAccessor579.invoke(Unknown Source)
      	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	java.lang.reflect.Method.invoke(Method.java:498)
      	org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      	org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
      	org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
      	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      	com.sun.proxy.$Proxy484.getConcepts(Unknown Source)
      	sun.reflect.GeneratedMethodAccessor579.invoke(Unknown Source)
      	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	java.lang.reflect.Method.invoke(Method.java:498)
      	org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      	org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:51)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:51)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:51)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      	com.sun.proxy.$Proxy485.getConcepts(Unknown Source)
      	org.openmrs.module.metadatasharing.api.db.hibernate.HibernateCompatibility1_11.getConcepts(HibernateCompatibility1_11.java:38)
      	org.openmrs.module.metadatasharing.api.db.hibernate.HibernateMetadataDAO.getConcepts(HibernateMetadataDAO.java:204)
      	org.openmrs.module.metadatasharing.api.impl.MetadataServiceImpl.getConcepts(MetadataServiceImpl.java:76)
      	sun.reflect.GeneratedMethodAccessor578.invoke(Unknown Source)
      	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	java.lang.reflect.Method.invoke(Method.java:498)
      	org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      	org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
      	org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
      	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      	com.sun.proxy.$Proxy562.getConcepts(Unknown Source)
      	sun.reflect.GeneratedMethodAccessor578.invoke(Unknown Source)
      	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	java.lang.reflect.Method.invoke(Method.java:498)
      	org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      	org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
      	org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
      	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:121)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:51)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:51)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      	com.sun.proxy.$Proxy563.getConcepts(Unknown Source)
      	sun.reflect.GeneratedMethodAccessor578.invoke(Unknown Source)
      	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	java.lang.reflect.Method.invoke(Method.java:498)
      	org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      	org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
      	org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
      	org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
      	org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      	com.sun.proxy.$Proxy563.getConcepts(Unknown Source)
      	org.openmrs.module.metadatasharing.handler.impl.ConceptHandler.getItems(ConceptHandler.java:178)
      	org.openmrs.module.metadatasharing.handler.Handler.getItems(Handler.java:83)
      	org.openmrs.module.metadatasharing.resolver.impl.ObjectByNameResolver.getPossibleMatch(ObjectByNameResolver.java:68)
      	org.openmrs.module.metadatasharing.resolver.ResolverEngine.resolve(ResolverEngine.java:117)
      	org.openmrs.module.metadatasharing.wrapper.impl.PackageImporterImpl.createImportedItems(PackageImporterImpl.java:217)
      	org.openmrs.module.metadatasharing.wrapper.impl.PackageImporterImpl.getImportedItems(PackageImporterImpl.java:117)
      	org.openmrs.module.metadatasharing.web.controller.ImportController.load(ImportController.java:386)
      	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:498)
      	org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
      	org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:440)
      	org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:428)
      	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
      	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
      	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
      	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
      	org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      	org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:61)
      	org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:72)
      	org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
      	org.openmrs.module.logmanager.web.filter.RequestProviderFilter.doFilterInternal(RequestProviderFilter.java:36)
      	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      	org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
      	org.openmrs.module.xforms.web.XformsFilter.doFilter(XformsFilter.java:60)
      	org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
      	org.openmrs.module.amrsmobileforms.web.LocationFilter.doFilter(LocationFilter.java:27)
      	org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70)
      	org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:54)
      	org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:109)
      	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      	org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:230)
      	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      	org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
      	org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
      	org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
      	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
      	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      note The full stack trace of the root cause is available in the Apache Tomcat/7.0.52 (Ubuntu) logs.
      

      It is caused by not escaping AND in the query. See http://stackoverflow.com/a/10757968

      Note the actual fix may be simply using lowercase letters.

      We should escape or lowercase any reserved operators. See also this

      Talk thread: https://talk.openmrs.org/t/error-importing-metadata-using-metadata-sharing-module-on-platform-1-11-5/6285/4

      It's not that critical as most users have "AND", "OR" and "NOT" in concept stop words list, which excludes them from the query as well.

        Attachments

          Activity

            People

            Assignee:
            dkayiwa Daniel Kayiwa
            Reporter:
            raff Rafal Korytkowski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: