18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Exception while recording with 20090715 build

hari19hari19 Members
edited August 2009 in Sahi - Open Source
Steps to reproduce :

1. Start Sahi.
2. Set Firefox to use Sahi's proxy and browse to a page.
3. Bring up Sahi Controller
4. Click on Record Button.

The following exception is seen :
java.io.IOException: The system cannot find the path specified
        at java.io.WinNTFileSystem.createFileExclusively(Native Method)
        at java.io.File.createNewFile(File.java:850)
        at net.sf.sahi.util.Utils.writeFile(Utils.java:158)
        at net.sf.sahi.command.Recorder2.setRecordedSteps(Recorder2.java:38)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at net.sf.sahi.command.CommandExecuter.execute(CommandExecuter.java:52)
        at net.sf.sahi.LocalRequestProcessor.getLocalResponse(LocalRequestProcessor.java:42)
        at net.sf.sahi.ProxyProcessor.processLocally(ProxyProcessor.java:227)
        at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:79)
        at java.lang.Thread.run(Thread.java:595)
File:F:\sahi\20090715\scripts\tmp\sahi_1250517869625.sah xx F:/sahi/20090715/scripts/tmp/sahi_1250517869625.sah

Have not also been successful in saving a recorded script using this version of Sahi.
This exception happens when trying to save etc :
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at net.sf.sahi.command.CommandExecuter.execute(CommandExecuter.java:52)
        at net.sf.sahi.LocalRequestProcessor.getLocalResponse(LocalRequestProcessor.java:42)
        at net.sf.sahi.ProxyProcessor.processLocally(ProxyProcessor.java:227)
        at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:79)
        at java.lang.Thread.run(Thread.java:595)
Caused by: net.sf.sahi.util.FileNotFoundRuntimeException: java.io.FileNotFoundException: F:\sahi\20090715\scripts\bug12345 (The system cannot find the file specified)
        at net.sf.sahi.util.Utils.readFile(Utils.java:140)
        at net.sf.sahi.util.Utils.readFile(Utils.java:127)
        at net.sf.sahi.util.Utils.readFileAsString(Utils.java:180)
        at net.sf.sahi.command.Recorder2.setRecordedSteps(Recorder2.java:35)
        ... 9 more
Caused by: java.io.FileNotFoundException: F:\sahi\20090715\scripts\bug12345 (The system cannot find the file specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at net.sf.sahi.util.Utils.readFile(Utils.java:137)
        ... 12 more
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at net.sf.sahi.command.CommandExecuter.execute(CommandExecuter.java:52)
        at net.sf.sahi.LocalRequestProcessor.getLocalResponse(LocalRequestProcessor.java:42)
        at net.sf.sahi.ProxyProcessor.processLocally(ProxyProcessor.java:227)
        at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:79)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
        at net.sf.sahi.playback.ScriptUtil.getFilesRecursively(ScriptUtil.java:75)
        at net.sf.sahi.playback.ScriptUtil.getScriptFiles(ScriptUtil.java:69)
        at net.sf.sahi.command.ControllerUI.scriptsListJSON(ControllerUI.java:68)
        ... 9 more

Comments

  • narayannarayan Administrators
    Hari, and others,

    That build was released by mistake, and it was an unstable release. But SourceForge started showing that as the default release due to changes to the SourceForge website. Apologies for the confusion. I have deleted that build.

    The next release should be available in a couple of weeks.

    Regards,
    Narayan
Sign In or Register to comment.