Error while editing the report
Hi,
Our clienta are getting error while editing some of their custom reports(Reports are creating by the clients). They are getting "Oh No!.."error while editing their reports.
The error log saying that Filter Id not found and Null pointer exception. The filter id not exist in ReportFilter, CachedFilter tables, But exists in ReportFormat table. That might be the reason for null pointer exception.
Can you please let me know, In which scenario the record(Filter) will be removed from the ReportFilter, CachedFilter,.. tables and will not be removed from ReportFormat table.
The workaround as of now I am doing is: I will export and reimport the report, that is solving the issue. But now a days its increased the number of cases.
So I thought of bringing this to your attention for some idea. I am not sure whether you are supporting 7.1 or not, but this is for to get some information.
Below is the error log:
YF:2017-08-22 11:24:42:ERROR (CachedFilterProcess:B) - Filter Id not found: 699358
YF:2017-08-22 11:24:42:ERROR (CopyReportProcess:copyReport) - Error: java.lang.NullPointerException
java.lang.NullPointerException
at com.hof.mi.util.CachedFilterCache.getCachedFilter(CachedFilterCache.java:1376)
at com.hof.mi.util.CachedFilterCache.getCachedFilterQuery(CachedFilterCache.java:2334)
at com.hof.mi.util.CachedFilterCache.getCachedFilterQuery(CachedFilterCache.java:2210)
at com.hof.mi.process.CopyReportProcess.A(CopyReportProcess.java:944)
at com.hof.mi.process.CopyReportProcess.copyReport(CopyReportProcess.java:339)
at com.hof.mi.process.MIReportProcess.cloneReport(MIReportProcess.java:3732)
at com.hof.mi.web.action.MIReportsAction.A(MIReportsAction.java:1782)
at com.hof.mi.web.action.MIReportsAction.execute(MIReportsAction.java:1430)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.hof.servlet.BrowserHeaderFilter.doFilter(BrowserHeaderFilter.java:43)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.tramada.servlet.TramadaYFp3pFilter.doFilter(TramadaYFp3pFilter.java:38)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.tramada.servlet.TramadaYFp3pFilter.doFilter(TramadaYFp3pFilter.java:38)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:745)
System Information:
System Information
Application Version:7.1
Build:20160728
Java Version:1.7.0_80
Operating System:Linux 2.6.32-642.1.1.el6.x86_64 (amd64)
Thanks
Jhansi.
Hi Jahnsi,
The lack of this filter in the reportfilter table will definitely trigger this nullpointer. However, there is no reason why this would be removed from the table.
We do still support 7.1, meaning that we will answer your questions and try to solve problems, but we are no longer patching this so if you found a bug, it will not be fixed in 7.1.
I am not sure if this will directly effect this issue, but is upgrading a possibility?
Regards,
Nathan
Hi Jahnsi,
The lack of this filter in the reportfilter table will definitely trigger this nullpointer. However, there is no reason why this would be removed from the table.
We do still support 7.1, meaning that we will answer your questions and try to solve problems, but we are no longer patching this so if you found a bug, it will not be fixed in 7.1.
I am not sure if this will directly effect this issue, but is upgrading a possibility?
Regards,
Nathan
Hi Jhansi,
Im sorry, I guess I am a little confused here. If you already have a way to edit the report, what is the problem we are addressing?
Does this newly imported report become impossible to edit after saving?
Looking at the report format table you provided, it appears that this is a custom query on demand filter. To get in and edit this without importing, you could probably just switch the filter type to be user prompt, temporarily. But before I elaborate a bit on this, I think it would be best to clarify what the end goal is here.
Regards,
Nathan
Hi Jhansi,
Im sorry, I guess I am a little confused here. If you already have a way to edit the report, what is the problem we are addressing?
Does this newly imported report become impossible to edit after saving?
Looking at the report format table you provided, it appears that this is a custom query on demand filter. To get in and edit this without importing, you could probably just switch the filter type to be user prompt, temporarily. But before I elaborate a bit on this, I think it would be best to clarify what the end goal is here.
Regards,
Nathan
Hi Nathan,
I can't edit the the report now. As I mentioned I am getting null pointer exception error(Filter Id not found). Now a days these cases are more.
So temporary workaround for such cases What I am doing is, export the same report and import it again then I can edit it. But We need address the actual issue not to occur in future
Thanks
Jhansi
Hi Nathan,
I can't edit the the report now. As I mentioned I am getting null pointer exception error(Filter Id not found). Now a days these cases are more.
So temporary workaround for such cases What I am doing is, export the same report and import it again then I can edit it. But We need address the actual issue not to occur in future
Thanks
Jhansi
HI Jhansi,
I think that the key here is figuring out what these broken reports have in common and what initially triggers the break:
Do all of these reports use custom query filters?
Are they built off of stored procedure views?
Are they broadcasted?
Are they used on dashboards?
Do these stop working randomly, after a set period of time, after editing the report and saving it, after refreshes, etc?
Regards,
Nathan
HI Jhansi,
I think that the key here is figuring out what these broken reports have in common and what initially triggers the break:
Do all of these reports use custom query filters?
Are they built off of stored procedure views?
Are they broadcasted?
Are they used on dashboards?
Do these stop working randomly, after a set period of time, after editing the report and saving it, after refreshes, etc?
Regards,
Nathan
Hi Jhansi,
Unfortunately this does sound to be a bug, and since we are no longer releasing patches for 7.1, any fix will need to be done in 7.3. I think the best option here is to upgrade the instance, at which point we can re-evaluate this problem.
If we are still facing issues, the next step will be to gather a configuration database for your instance so that we can replicate the entire environment on our end.
Let me know your thoughts here.
Regards,
Nathan
Hi Jhansi,
Unfortunately this does sound to be a bug, and since we are no longer releasing patches for 7.1, any fix will need to be done in 7.3. I think the best option here is to upgrade the instance, at which point we can re-evaluate this problem.
If we are still facing issues, the next step will be to gather a configuration database for your instance so that we can replicate the entire environment on our end.
Let me know your thoughts here.
Regards,
Nathan
Just want to mention that I'm running into this issue in 7.3 build 20180226 as well.
Regards,
Alex
Just want to mention that I'm running into this issue in 7.3 build 20180226 as well.
Regards,
Alex
Replies have been locked on this page!