aFlyBird0 opened a new issue, #3975:
URL: https://github.com/apache/shenyu/issues/3975

   ### Is there an existing issue for this?
   
   - [X] I have searched the existing issues
   
   ### Current Behavior
   
   <img width="1178" alt="image" 
src="https://user-images.githubusercontent.com/36830265/191560390-5b90abf4-1575-403e-b8c8-9a5a0a422793.png";>
   
   The text version:
   
   ```
   ### Error querying database.  Cause: org.postgresql.util.PSQLException: 
ERROR: operator does not exist: smallint = boolean
     Hint: No operator matches the given name and argument types. You might 
need to add explicit type casts.
     Position: 337
   ### The error may exist in class path resource [mappers/plugin-sqlmap.xml]
   ### The error may involve defaultParameterMap
   ### The error occurred while setting parameters
   ### SQL: select p.id,                p.name,                config,          
      role,                count(ph.id) handlecount,                count(s.id) 
 selectorcount         from plugin p                  left join plugin_handle 
ph on p.id = ph.plugin_id                  left join selector s on p.id = 
s.plugin_id         where p.enabled = true                   group by p.id, 
p.name, config, p.role, p.sort         order by p.sort, p.id
   ### Cause: org.postgresql.util.PSQLException: ERROR: operator does not 
exist: smallint = boolean
     Hint: No operator matches the given name and argument types. You might 
need to add explicit type casts.
     Position: 337
   ; bad SQL grammar []; nested exception is org.postgresql.util.PSQLException: 
ERROR: operator does not exist: smallint = boolean
     Hint: No operator matches the given name and argument types. You might 
need to add explicit type casts.
     Position: 337
   org.apache.shenyu.common.exception.ShenyuException: 
org.springframework.jdbc.BadSqlGrammarException: 
   ### Error querying database.  Cause: org.postgresql.util.PSQLException: 
ERROR: operator does not exist: smallint = boolean
     Hint: No operator matches the given name and argument types. You might 
need to add explicit type casts.
     Position: 337
   ### The error may exist in class path resource [mappers/plugin-sqlmap.xml]
   ### The error may involve defaultParameterMap
   ### The error occurred while setting parameters
   ### SQL: select p.id,                p.name,                config,          
      role,                count(ph.id) handlecount,                count(s.id) 
 selectorcount         from plugin p                  left join plugin_handle 
ph on p.id = ph.plugin_id                  left join selector s on p.id = 
s.plugin_id         where p.enabled = true                   group by p.id, 
p.name, config, p.role, p.sort         order by p.sort, p.id
   ### Cause: org.postgresql.util.PSQLException: ERROR: operator does not 
exist: smallint = boolean
     Hint: No operator matches the given name and argument types. You might 
need to add explicit type casts.
     Position: 337
   ; bad SQL grammar []; nested exception is org.postgresql.util.PSQLException: 
ERROR: operator does not exist: smallint = boolean
     Hint: No operator matches the given name and argument types. You might 
need to add explicit type casts.
     Position: 337
           at 
org.apache.shenyu.admin.aspect.PrintApiLogAspect.logAround(PrintApiLogAspect.java:66)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:498)
           at 
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)
           at 
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)
           at 
org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)
           at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
           at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)
           at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
           at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
           at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)
           at 
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)
           at 
org.apache.shenyu.admin.controller.PluginController$$EnhancerBySpringCGLIB$$ae63356b.activePluginSnapshot(<generated>)
           at 
org.apache.shenyu.admin.controller.PluginController$$FastClassBySpringCGLIB$$90452f44.invoke(<generated>)
           at 
org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
           at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)
           at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
           at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)
           at 
org.springframework.validation.beanvalidation.MethodValidationInterceptor.invoke(MethodValidationInterceptor.java:123)
           at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
           at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)
           at 
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)
           at 
org.apache.shenyu.admin.controller.PluginController$$EnhancerBySpringCGLIB$$ce31176c.activePluginSnapshot(<generated>)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:498)
           at 
org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
           at 
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
           at 
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
           at 
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
           at 
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
           at 
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
           at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1067)
           at 
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963)
           at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
           at 
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:655)
           at 
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
           at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
           at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
           at 
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
           at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
           at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
           at 
org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
           at 
org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
           at 
org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
           at 
org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
           at 
org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
           at 
org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
           at 
org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
           at 
org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
           at 
org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
           at 
org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:450)
           at 
org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
           at 
org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
           at 
org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
           at 
org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)
           at 
org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
           at 
org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
           at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
           at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
           at 
org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
           at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
           at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
           at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
           at 
org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
           at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
           at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
           at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
           at 
org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:96)
           at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
           at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
           at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
           at 
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
           at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
           at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
           at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
           at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
           at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
           at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
           at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
           at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
           at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
           at 
org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)
           at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)
           at 
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
           at 
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
           at 
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:890)
           at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1743)
           at 
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
           at 
org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
           at 
org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
           at 
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
           at java.lang.Thread.run(Thread.java:748)
   Caused by: org.springframework.jdbc.BadSqlGrammarException:
   ```
   
   ### Expected Behavior
   
   no error
   
   ### Steps To Reproduce
   
   I ran into this problem while debugging the helm installation method, but I 
guess starting admin in any way (using a PostgreSQL database) will have this 
problem.
   
   ### Environment
   
   ```markdown
   ShenYu version(s): 2.5.0
   ```
   
   
   ### Debug logs
   
   _No response_
   
   ### Anything else?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to