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.

401 authentication problem

LanttiLantti Members
edited November -1 in Sahi - Open Source
Hello,

I have problem with 401 authentication (basic). Nothing happens (empty page opens) when sahi is running and I open any page with 401 authentication. I only get an error:
Password protected area
java.lang.NullPointerException
        at java.util.ArrayList.addAll(Unknown Source)
        at net.sf.sahi.HttpHeaders.addHeaders(HttpHeaders.java:58)
        at net.sf.sahi.RemoteRequestProcessor.processHttp(RemoteRequestProcessor
.java:119)
        at net.sf.sahi.RemoteRequestProcessor.processHttp(RemoteRequestProcessor
.java:74)
        at net.sf.sahi.ProxyProcessor.processAsProxy(ProxyProcessor.java:129)
        at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:86)
        at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
        at net.sf.sahi.ProxyProcessor.processAsProxy(ProxyProcessor.java:130)
        at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:86)
        at java.lang.Thread.run(Unknown Source)

I am using sahi release 02 Sep 2009.

Have I understood correctly that when I open page that requires 401 authentication Sahi should redirect me page C:\sahi\htdocs\spr\401.htm ?

BR, Lantti

Comments

  • narayannarayan Administrators
    Lantti,

    Yes, it should use C:\sahi\htdocs\spr\401.htm
    Can you hit http://sahi.co.in/cpanel and see what that shows? (That is also a 401 page)
    If your url is public can you point us to that url?

    Regards,
    Narayan
  • Hi,

    I can open sahi.co.in/cpanel correctly (sahi's 401 authentication page open).

    But our test url: rainen.homeip.net/testi is still not working (add h t t p at begin of url - because new members like me can not post links to this forum).

    BR, Lantti
  • narayannarayan Administrators
    Lantti,

    I can reproduce the problem on that URL. Will get back to you with a fix.

    Regards,
    Narayan
Sign In or Register to comment.