<?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>question Re: How to resolve the issue:- java.lang.IllegalArgumentException: Invalid uri 'https://****.****.****.*****.***:9060/***/**/****/***/ReferenceError: &amp;quot;name&amp;quot; is not defined. (&amp;lt;refname&amp;gt;': escaped absolute path not valid in ITOM forum</title>
    <link>https://www.servicenow.com/community/itom-forum/how-to-resolve-the-issue-java-lang-illegalargumentexception/m-p/942486#M42175</link>
    <description>&lt;P&gt;Thanks Sergiu,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Could you please help me with the line of code which is used to Display the response of GET message with the help of gs.addInfoMessage function.&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 03 Oct 2016 10:43:30 GMT</pubDate>
    <dc:creator>swapnilagrawal</dc:creator>
    <dc:date>2016-10-03T10:43:30Z</dc:date>
    <item>
      <title>How to resolve the issue:- java.lang.IllegalArgumentException: Invalid uri 'https://****.****.****.*****.***:9060/***/**/****/***/ReferenceError: "name" is not defined. (&lt;refname&gt;': escaped absolute path not valid</title>
      <link>https://www.servicenow.com/community/itom-forum/how-to-resolve-the-issue-java-lang-illegalargumentexception/m-p/942478#M42167</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have configured REST GET Method, its working fine when I'm Testing from REST Message GET method, but the same method when I called from workflow activity it giving me this error.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;java.lang.IllegalArgumentException: Invalid uri '&lt;SPAN style="text-decoration: line-through;"&gt;&lt;A title="k-external-small" class="jive-link-external-small" href="https://***.****.****.*****.***:9060/**/***/**/**" rel="nofollow" target="_blank"&gt;https://***.****.****.*****.***:9060/**/***/**/**&lt;/A&gt;&lt;/SPAN&gt;/ReferenceError: "name" is not defined. (&amp;lt;refname&amp;gt;': escaped absolute path not valid&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/99456iFA101D28AA6C63E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide to resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Swapnil Agrawal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Oct 2016 12:00:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/how-to-resolve-the-issue-java-lang-illegalargumentexception/m-p/942478#M42167</guid>
      <dc:creator>swapnilagrawal</dc:creator>
      <dc:date>2016-10-02T12:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the issue:- java.lang.IllegalArgumentException: Invalid uri 'https://****.****.****.*****.***:9060/***/**/****/***/ReferenceError: "name" is not defined. (&lt;refname&gt;': escaped absolute path not valid</title>
      <link>https://www.servicenow.com/community/itom-forum/how-to-resolve-the-issue-java-lang-illegalargumentexception/m-p/942479#M42168</link>
      <description>&lt;P&gt;Can you show more exactly the REST message.. It sound just like the error says. That you are using "name" and it isn't defined.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;//Göran&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 02 Oct 2016 12:13:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/how-to-resolve-the-issue-java-lang-illegalargumentexception/m-p/942479#M42168</guid>
      <dc:creator>Goran WitchDoc</dc:creator>
      <dc:date>2016-10-02T12:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the issue:- java.lang.IllegalArgumentException: Invalid uri 'https://****.****.****.*****.***:9060/***/**/****/***/ReferenceError: "name" is not defined. (&lt;refname&gt;': escaped absolute path not valid</title>
      <link>https://www.servicenow.com/community/itom-forum/how-to-resolve-the-issue-java-lang-illegalargumentexception/m-p/942480#M42169</link>
      <description>&lt;P&gt;Hi Goran,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Below is the screenshot for REST message Workflow activity, the same has been configured in rest messages, there it is working fine.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Here in variables I have used &lt;STRONG&gt;name = {current.variables.name}&lt;/STRONG&gt; by doing this I'm pasing the value of variable name from RITM to this name variable.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/99453i2BF1169664457124/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Swapnil&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 02 Oct 2016 12:22:58 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/how-to-resolve-the-issue-java-lang-illegalargumentexception/m-p/942480#M42169</guid>
      <dc:creator>swapnilagrawal</dc:creator>
      <dc:date>2016-10-02T12:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the issue:- java.lang.IllegalArgumentException: Invalid uri 'https://****.****.****.*****.***:9060/***/**/****/***/ReferenceError: "name" is not defined. (&lt;refname&gt;': escaped absolute path not valid</title>
      <link>https://www.servicenow.com/community/itom-forum/how-to-resolve-the-issue-java-lang-illegalargumentexception/m-p/942481#M42170</link>
      <description>&lt;P&gt;Does your HTTPS URL includes path to a directory that contains spaces in the name?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I've seen cases where a path like below example caused same error (see the 'Project Documents' directory name):&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;A title="k-external-small" class="jive-link-external-small" href="https://xxx/xxx/xxx/xxx/Project" rel="nofollow" target="_blank"&gt;https://xxx/xxx/xxx/xxx/Project&lt;/A&gt;&lt;SPAN&gt; Documents/My_List.csv'&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;A workaround to that is to move the file to a directory with spaces in the name.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Oct 2016 06:53:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/how-to-resolve-the-issue-java-lang-illegalargumentexception/m-p/942481#M42170</guid>
      <dc:creator>sergiu_panaite</dc:creator>
      <dc:date>2016-10-03T06:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the issue:- java.lang.IllegalArgumentException: Invalid uri 'https://****.****.****.*****.***:9060/***/**/****/***/ReferenceError: "name" is not defined. (&lt;refname&gt;': escaped absolute path not valid</title>
      <link>https://www.servicenow.com/community/itom-forum/how-to-resolve-the-issue-java-lang-illegalargumentexception/m-p/942482#M42171</link>
      <description>&lt;P&gt;Hi Sergiu,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN&gt;No we don't use space in name, this name is unique Username which user chooses for him/her, the only condition is he should have "@" in his name(for example: &lt;/SPAN&gt;&lt;A title="k-email-small" class="jive-link-email-small" href="mailto:swapnil@gmail.com"&gt;swapnil@gmail.com&lt;/A&gt;&lt;SPAN&gt; or agr@gmail anything works fine.)&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Swapnil&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Oct 2016 07:05:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/how-to-resolve-the-issue-java-lang-illegalargumentexception/m-p/942482#M42171</guid>
      <dc:creator>swapnilagrawal</dc:creator>
      <dc:date>2016-10-03T07:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the issue:- java.lang.IllegalArgumentException: Invalid uri 'https://****.****.****.*****.***:9060/***/**/****/***/ReferenceError: "name" is not defined. (&lt;refname&gt;': escaped absolute path not valid</title>
      <link>https://www.servicenow.com/community/itom-forum/how-to-resolve-the-issue-java-lang-illegalargumentexception/m-p/942483#M42172</link>
      <description>&lt;P&gt;I was not referring to the username, but to the path to the file on the server. Does that path includes spaces?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Oct 2016 07:50:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/how-to-resolve-the-issue-java-lang-illegalargumentexception/m-p/942483#M42172</guid>
      <dc:creator>sergiu_panaite</dc:creator>
      <dc:date>2016-10-03T07:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the issue:- java.lang.IllegalArgumentException: Invalid uri 'https://****.****.****.*****.***:9060/***/**/****/***/ReferenceError: "name" is not defined. (&lt;refname&gt;': escaped absolute path not valid</title>
      <link>https://www.servicenow.com/community/itom-forum/how-to-resolve-the-issue-java-lang-illegalargumentexception/m-p/942484#M42173</link>
      <description>&lt;P&gt;No URL has non spaces.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Oct 2016 10:33:12 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/how-to-resolve-the-issue-java-lang-illegalargumentexception/m-p/942484#M42173</guid>
      <dc:creator>swapnilagrawal</dc:creator>
      <dc:date>2016-10-03T10:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the issue:- java.lang.IllegalArgumentException: Invalid uri 'https://****.****.****.*****.***:9060/***/**/****/***/ReferenceError: "name" is not defined. (&lt;refname&gt;': escaped absolute path not valid</title>
      <link>https://www.servicenow.com/community/itom-forum/how-to-resolve-the-issue-java-lang-illegalargumentexception/m-p/942485#M42174</link>
      <description>&lt;P&gt;That's the only case I've seen so far. Maybe open an incident with ServiceNow support as that way you get a faster response.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Oct 2016 10:36:47 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/how-to-resolve-the-issue-java-lang-illegalargumentexception/m-p/942485#M42174</guid>
      <dc:creator>sergiu_panaite</dc:creator>
      <dc:date>2016-10-03T10:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the issue:- java.lang.IllegalArgumentException: Invalid uri 'https://****.****.****.*****.***:9060/***/**/****/***/ReferenceError: "name" is not defined. (&lt;refname&gt;': escaped absolute path not valid</title>
      <link>https://www.servicenow.com/community/itom-forum/how-to-resolve-the-issue-java-lang-illegalargumentexception/m-p/942486#M42175</link>
      <description>&lt;P&gt;Thanks Sergiu,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Could you please help me with the line of code which is used to Display the response of GET message with the help of gs.addInfoMessage function.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Oct 2016 10:43:30 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/how-to-resolve-the-issue-java-lang-illegalargumentexception/m-p/942486#M42175</guid>
      <dc:creator>swapnilagrawal</dc:creator>
      <dc:date>2016-10-03T10:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the issue:- java.lang.IllegalArgumentException: Invalid uri 'https://****.****.****.*****.***:9060/***/**/****/***/ReferenceError: "name" is not defined. (&lt;refname&gt;': escaped absolute path not valid</title>
      <link>https://www.servicenow.com/community/itom-forum/how-to-resolve-the-issue-java-lang-illegalargumentexception/m-p/942487#M42176</link>
      <description>&lt;P&gt;Hi Swapnil,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Following is the script using which you can print the response of GET method in REST.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;var restCall = new RESTMessage('RestMessage1', 'get'); //RestMessage1 is name of the REST Message&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; restCall.setStringParameter('xyz','xyz'); // xyz is the parameter&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; restCall.setStringParameter('abc','abc'); // abc is the parameter &lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; var response = restCall.execute();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; responseBody=response.getBody();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; gs.print(responseBody);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;gs.addInfoMessage(responseBody);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;Mark Correct if this solves your issue or hit Like and Helpful if you find my response worthy based on the impact.&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;Thanks&lt;/P&gt;&lt;BR /&gt;&lt;P style="font-family: arial, sans-serif; color: #666666;"&gt;Ankur&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Oct 2016 12:00:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/how-to-resolve-the-issue-java-lang-illegalargumentexception/m-p/942487#M42176</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2016-10-03T12:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the issue:- java.lang.IllegalArgumentException: Invalid uri 'https://****.****.****.*****.***:9060/***/**/****/***/ReferenceError: "name" is not defined. (&lt;refname&gt;': escaped absolute path not valid</title>
      <link>https://www.servicenow.com/community/itom-forum/how-to-resolve-the-issue-java-lang-illegalargumentexception/m-p/942488#M42177</link>
      <description>&lt;P&gt;I believe that Sergui means that a possible workaround is: To move the file to a directory WITH OUT spaces in the name.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The Error message is related to Unexpected characters in the URL:&amp;nbsp;&lt;BR /&gt;Alternatively when using a URL with spaces or other special characters in a script is to URL encode these.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you are seeing this issue using a script try using:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;var urlencoded=encodeURIComponent('/some/path/with spaces/');&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sat, 07 May 2022 12:31:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/how-to-resolve-the-issue-java-lang-illegalargumentexception/m-p/942488#M42177</guid>
      <dc:creator>heinkoster</dc:creator>
      <dc:date>2022-05-07T12:31:39Z</dc:date>
    </item>
  </channel>
</rss>

