Page 1 of 1

Slot Value Checker

Posted: 04 Sep 2020, 02:32
by klawry38
Hi,
In a brief and unusually quiet moment I downloaded the latest update (v6.10.4), ran the .eup with no errors and then "fired up" the new version of the viewer. Upon trying out the new Slot Value Checker view it just "sat there" stating: "Loading slot check data. This may take a few minutes..."
Checking the Tomcat log (copy below) shows an error but I can't figure how to resolve. Is it a config omission in Protege? or something else I've forgotten to do.
Any help would be appreciated - thanks.

Cheers
Keith

Error on line 1 column 1 of file:/C:/tomcat/webapps/essential_viewer-6.10.4/:
SXXP0003: Error reported by XML parser: Content is not allowed in prolog.
Recoverable error on line 7 of core_footer.xsl:
FODC0002: javax.net.ssl.SSLException: Connection reset
04-Sep-2020 14:19:22.203 SEVERE [http-nio-8080-exec-3] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [ReportAPIServlet] in context with path [/essential_viewer-6.10.4] threw exception
java.lang.IllegalStateException: getOutputStream() has already been called for this response
at org.apache.catalina.connector.Response.getWriter(Response.java:585)
at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:211)
at com.enterprise_architecture.essential.report.ReportAPIServlet.doGet(ReportAPIServlet.java:118)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:626)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
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 com.enterprise_architecture.essential.report.LoadCSRF.doFilter(LoadCSRF.java:109)
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.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
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:1626)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:830)

Re: Slot Value Checker

Posted: 04 Sep 2020, 16:46
by neil.walsh
Hi Keith,

Essential Viewer makes an external call to check if there are any updates to Essential. It looks like from the trace that Viewer couldn't make that call.

If you're working in an offline situation then you can edit the common/core_footer.xsl file to disable this feature.

Comment out the following lines
line 7

Code: Select all

<xsl:variable name="updateFile" select="document('https://s3.amazonaws.com/essential-updater/viewerLatestVersion.xml')"/>
line 89 - 98

Code: Select all

<script type="text/javascript" src="js/compareVersions.js"/>
		<script>
			$(document).ready(function(){
				var viewerCurrentVersion =  $('#currentViewerVersion').val();
				var viewerLatestVersion =  $('#viewerLatestVersion').val();
				if (compareVersions(viewerCurrentVersion,viewerLatestVersion)) {
					$('#viewerUpdateText').html(' - <a href="https://www.enterprise-architecture.org/essential_update.php?viewerCurrentVersion='+viewerCurrentVersion+'&amp;viewerLatestVersion='+viewerLatestVersion+'" target="_blank">Update Available</a>');
				};
			});
		</script>
Let me know if this helps

Thanks

Neil

Re: Slot Value Checker

Posted: 06 Sep 2020, 22:57
by klawry38
Hi Neil,
Thanks for the reply - very much appreciated.

I tried commenting out those lines and only got slightly further (i.e. I no longer get the following 2 lines of errors: "Recoverable error on line 7 of core_footer.xsl:" and
"FODC0002: javax.net.ssl.SSLException: Connection reset" - but the other errors still exist.

I am working online - did check that I could browse to the "viewerLatestVersion.xml" file (with complete success).

Any further things I can try?

Cheers
Keith

Re: Slot Value Checker

Posted: 07 Sep 2020, 11:54
by jmk
Hi Neil,

These calls to an external server do not behave well when essential viewer is used in protected network zones.

Could it be possible to make this feature conditional ? Maybe through a report variable ?



Jean-Marie.