These two errors come in my a!queryEntity() function .What should I do to resolve these.
Discussion posts and replies are publicly visible
I'm accustomed to seeing this error happen when the query is timing out (like due to a slow-to-respond view). In tomcat-stdout.log you might see a bit more detail behind these error message instances giving you a clearer hint at what's happening. Also you can try querying a smaller data set (like just 1 or just a few rows of data per paging info) and seeing if it works better then.
how to read tomcat-stdout.log
It has very confusing data at today date 11-08-2023.
How I recognised where is caused of error
If you're able to reproduce it manually, just look at the bottom of the file, the error should appear once the error is triggered. If you're trying to trace back an error that occurred in the past, you'll have to know the date and time at which it occurred. Note that times in log files are in UTC.