<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Find Webscript name from log in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/find-webscript-name-from-log/m-p/11045#M4891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following entry in catalina.out&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/15647_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;Can I know which webscript is called by looking at this entry?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Aug 2017 00:01:35 GMT</pubDate>
    <dc:creator>sakshik</dc:creator>
    <dc:date>2017-08-12T00:01:35Z</dc:date>
    <item>
      <title>Find Webscript name from log</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/find-webscript-name-from-log/m-p/11045#M4891</link>
      <description>I have the following entry in catalina.outCan I know which webscript is called by looking at this entry?</description>
      <pubDate>Sat, 12 Aug 2017 00:01:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/find-webscript-name-from-log/m-p/11045#M4891</guid>
      <dc:creator>sakshik</dc:creator>
      <dc:date>2017-08-12T00:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Find Webscript name from log</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/find-webscript-name-from-log/m-p/11046#M4892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot determine the calling web script from a log entry like this alone, unless the code that does the logging - or the logging framework itself - does some stack analysis to determine the caller / context. Since Alfresco does not provide the name / ID of the currently executing web script in some thread-local data structure, you would have to do some invasive thread stack + variable state analysis, which might even require use of JDK internal APIs...&lt;/P&gt;&lt;P&gt;A simple albeit "dumb"-fire approach is for the code that logs to create a new exception and use that exception object to get to the current stack trace. But that won't give you the name / path of the&amp;nbsp;JavaScript file if you are being called from a JavaScript-backed web script (which in your case is the case since we are talking about a script extension).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Long answer short: You could determine the calling web script, but the cost / complexity is too great...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Aug 2017 13:33:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/find-webscript-name-from-log/m-p/11046#M4892</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-08-12T13:33:04Z</dc:date>
    </item>
  </channel>
</rss>

