#192 new
Ming

Thread [Rhino - 1] (suspended on exception: Wrapped java.net.URISyntaxException: Illegal character in authority at index 7:

Reported by Ming | January 15th, 2012 @ 05:43 PM

Hi,
I’m new to javascript and also envjs. I use Rhino as script engine under Windows XP.
My test script is very simple:
load (libs_path + 'json2.js');
load (libs_path + 'env.rhino.1.2.13.js');
Envjs.scriptTypes['text/javascript'] = true;
window.location = 'http://localhost:8080/';

console.log ("Done..");
I got into problem when executing
window.location = 'http://localhost:8080/';

Seems that there is issue dealing with file path under XP when it tries to create a simple file for cookies. Is there a way around this??

=======

[ Envjs/1.6 (Rhino; U; Windows XP x86 5.1; en-US; rv:1.7.0.rc2) Resig/20070309 PilotFish/1.2.13 ] ---- Stack --- Thread [Rhino - 1] (suspended on exception: Wrapped java.net.URISyntaxException: Illegal character in authority at index 7: file://C:\Documents and Settings\Ming/.cookies (C:\workspace\client\scripts\libs\env.rhino.1.2.13.js#1457))

file:/C:/workspace/client/scripts/libs/env.rhino.1.2.13.js - line: 1457 
file:/C:/workspace/client/scripts/libs/env.rhino.1.2.13.js - line: 302  
file:/C:/workspace/client/scripts/libs/env.rhino.1.2.13.js - line: 419  
file:/C:/workspace/client/scripts/libs/env.rhino.1.2.13.js - line: 13085    
file:/C:/workspace/client/scripts/libs/env.rhino.1.2.13.js - line: 13140    
file:/C:/workspace/client/scripts/libs/env.rhino.1.2.13.js - line: 12958    
file:/C:/workspace/client/scripts/libs/env.rhino.1.2.13.js - line: 13814    
file:/C:/workspace/client/scripts/example/simple.js - line: 12

=====================================

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

a javascript browser environment

People watching this ticket

Pages