"Could not clear Essential Viewer Cache successfully." [SOLVED]

Post Reply
gunther.lachambre
Posts: 19
Joined: 17 Feb 2013, 15:52
Location: Rennes, Britany, France

Hi,

As I try to send XML snapshot to Viewer from Protégé, it says:

Code: Select all

Rendering repository...
Sending repository snapshot...
Checking for access...
Sending XML snapshot...
Failed to send snapshot to the Report Service : 
Essential Viewer ReportService encountered an internal error while receiving your repository snapshot. Contact your system administrator and check Essential Viewer server logs for errors, e.g. memory exceptions.
If I check catalina.out on Viewer server, it says:

Code: Select all

EasReportService: Could not clear Essential Viewer Cache successfully.
Does anyone have already encountered those errors?

Thanks
Gunther
Last edited by gunther.lachambre on 23 Mar 2018, 15:15, edited 1 time in total.
Environment :
Protégé 3.5 | Essential Meta Model 6.1.1
Essential Viewer 6.1 | Essential Import Utility 1.7.2
Java 1.8.0_91 | Tomcat 8.0.28 | Server CentOS 7
Java 1.8.0_201 | Tomcat 8.5.38 | Desktop Windows 10
jmk
Posts: 137
Joined: 31 May 2012, 12:08
Location: France

Acl problem ?

I'd check if files under tomcat/webapp are owned/readable/writable by
the tomcat process user.

@+
gunther.lachambre
Posts: 19
Joined: 17 Feb 2013, 15:52
Location: Rennes, Britany, France

Thanks Jean-Marie for the reply.

Viewer files are all well writable by tomcat user.

I have to mention that I'm using git and Gitlab to maintain source code over my various environments, and I ignore reportXML.xml and graph_images/*.png by listing them into .gitignore.
Thus I separate Viewer source code updating and repo data publishing.

Regards,
Gunther
Environment :
Protégé 3.5 | Essential Meta Model 6.1.1
Essential Viewer 6.1 | Essential Import Utility 1.7.2
Java 1.8.0_91 | Tomcat 8.0.28 | Server CentOS 7
Java 1.8.0_201 | Tomcat 8.5.38 | Desktop Windows 10
User avatar
jonathan.carter
Posts: 1087
Joined: 04 Feb 2009, 15:44

Hi Gunther,

It does sound like Git might be causing you some trouble. This exception is happening as the Viewer is clearing it's cache when finishing the publish process.

In addition to graph_images/*.png, you'll need to exclude:
  • graph_images/uml
  • graph_images/pageCache
  • graph_images/pageCache/application
Try this - make sure that you have these folders set up and that you have the oscache.properties file in graph_images/pageCache

Let me know when you've checked these and whether this has helped. Git can cause some trouble if not excluding all the relevant folders.

My Git Ignore for Viewer looks like this:

Code: Select all

reportXML.xml
graph_images/*.png
graph_images/uml/*.png
OLD*
graph_images/pageCache/application
Jonathan
Essential Project Team
gunther.lachambre
Posts: 19
Joined: 17 Feb 2013, 15:52
Location: Rennes, Britany, France

As usual Jonathan, you deserve many thanks!

I was missing the `uml` and `application` folders on all environments. And I had a `tmp` folder too in the `graph_images` folder, so I've added it to the `.gitignore` list too.

Now everything is running well.

Thanks!
Gunther
Environment :
Protégé 3.5 | Essential Meta Model 6.1.1
Essential Viewer 6.1 | Essential Import Utility 1.7.2
Java 1.8.0_91 | Tomcat 8.0.28 | Server CentOS 7
Java 1.8.0_201 | Tomcat 8.5.38 | Desktop Windows 10
Post Reply