Uploaded image for project: 'WebTop'
  1. WebTop
  2. WT-1046

Searching by dates generates an error

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • High
    • Resolution: Done
    • Tasks
    • None
    • 5.8.0
    • release
    • 5.8.3
    • wt-5.14.1
    • 0465

    Description

      Opening the multiple search window and entering a date in Started after or Started before you receive an error and no results are returned

      Steps to reproduce:

      • open search window
      • enter a date in Started after or Started before
      • start the search

      Expected behaviour:

      • the results are shown based on the dates entered

      Actual behaviour:

      • no results are shown and the interface shows the attached error

      The log reports this:

      2021-10-21 09:37:52 [ERROR] com.sonicle.webtop.tasks.Service - Error in ManageGridTask
      com.sonicle.webtop.core.sdk.WTException: java.lang.IllegalArgumentException: The argument 'conditions' must not contain null
              at com.sonicle.webtop.core.app.util.ExceptionUtils.wrapThrowable(ExceptionUtils.java:55)
              at com.sonicle.webtop.tasks.TasksManager.listTaskInstances(TasksManager.java:1090)
              at com.sonicle.webtop.tasks.Service.processManageGridTasks(Service.java:612)
              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 com.sonicle.webtop.core.app.servlet.BaseRequest.invokeMethod(BaseRequest.java:109)
              at com.sonicle.webtop.core.app.servlet.PrivateRequest.processRequest(PrivateRequest.java:86)
              at com.sonicle.webtop.core.app.servlet.PrivateRequest.doGet(PrivateRequest.java:113)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              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.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 com.sonicle.webtop.core.app.shiro.filter.GZip.doFilterInternal(GZip.java:60)
              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:449)
              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:383)
              at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
              at com.sonicle.webtop.core.app.shiro.WTShiroFilter.doFilterInternal(WTShiroFilter.java:89)
              at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
              at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:747)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
              at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:615)
              at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
              at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818)
              at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1627)
              at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
              at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.IllegalArgumentException: The argument 'conditions' must not contain null
              at org.jooq.impl.CombinedCondition.<init>(CombinedCondition.java:80)
              at org.jooq.impl.AbstractCondition.and(AbstractCondition.java:78)
              at com.sonicle.webtop.core.app.sdk.JOOQPredicateVisitor.visit(JOOQPredicateVisitor.java:89)
              at com.sonicle.webtop.core.app.sdk.JOOQPredicateVisitor.visit(JOOQPredicateVisitor.java:57)
              at com.sonicle.commons.qbuilders.visitors.AbstractVoidContextNodeVisitor.visit(AbstractVoidContextNodeVisitor.java:26)
              at com.sonicle.commons.qbuilders.visitors.AbstractVoidContextNodeVisitor.visit(AbstractVoidContextNodeVisitor.java:21)
              at com.sonicle.commons.qbuilders.visitors.ContextualNodeVisitor.visitAny(ContextualNodeVisitor.java:95)
              at com.sonicle.commons.qbuilders.visitors.ContextualNodeVisitor.visitAny(ContextualNodeVisitor.java:90)
              at com.sonicle.commons.qbuilders.visitors.AbstractVoidContextNodeVisitor.visitAny(AbstractVoidContextNodeVisitor.java:50)
              at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
              at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1384)
              at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
              at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
              at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
              at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
              at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566)
              at com.sonicle.webtop.core.app.sdk.JOOQPredicateVisitor.visit(JOOQPredicateVisitor.java:87)
              at com.sonicle.webtop.core.app.sdk.JOOQPredicateVisitor.visit(JOOQPredicateVisitor.java:57)
              at com.sonicle.commons.qbuilders.visitors.AbstractVoidContextNodeVisitor.visit(AbstractVoidContextNodeVisitor.java:26)
              at com.sonicle.commons.qbuilders.visitors.AbstractVoidContextNodeVisitor.visit(AbstractVoidContextNodeVisitor.java:21)
              at com.sonicle.commons.qbuilders.visitors.ContextualNodeVisitor.visitAny(ContextualNodeVisitor.java:95)
              at com.sonicle.commons.qbuilders.visitors.ContextualNodeVisitor.visitAny(ContextualNodeVisitor.java:90)
              at com.sonicle.commons.qbuilders.nodes.AbstractNode.visit(AbstractNode.java:37)
              at com.sonicle.commons.qbuilders.nodes.Visitable.visit(Visitable.java:20)
              at com.sonicle.commons.qbuilders.builders.QBuilder$ConditionDelegate.query(QBuilder.java:246)
              at com.sonicle.webtop.core.dal.BaseDAO.createCondition(BaseDAO.java:108)
              at com.sonicle.webtop.tasks.TasksManager.listTaskInstances(TasksManager.java:960)
              ... 60 common frames omitted
       

      Attachments

        Activity

          People

            matteo.albinola Matteo Albinola
            luca.gasparini Luca Gasparini
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Packages

                Version Package