cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "S. Ali Tokmen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CXF-2702) NullPointerException in CxfAuthenticator
Date Tue, 09 Mar 2010 14:32:27 GMT

     [ https://issues.apache.org/jira/browse/CXF-2702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

S. Ali Tokmen updated CXF-2702:
-------------------------------


Example stack trace:

testSecuredWarWithoutCredentials(org.ow2.jonas.itests.cargo.jrmp.VersioningTest)  Time elapsed:
0.016 sec  <<< FAILURE!
java.lang.RuntimeException: java.lang.NullPointerException
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:904)
	at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1961)
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:376)
	at org.ow2.jonas.itests.cargo.jrmp.VersioningTest.getURL(VersioningTest.java:433)
	at org.ow2.jonas.itests.cargo.jrmp.VersioningTest.testSecuredWarWithoutCredentials(VersioningTest.java:244)
Caused by: java.lang.NullPointerException
	at org.apache.cxf.transport.http.CXFAuthenticator.getPasswordAuthentication(CXFAuthenticator.java:84)
	at java.net.Authenticator.requestPasswordAuthentication(Authenticator.java:300)
	at sun.net.www.protocol.http.HttpURLConnection$1.run(HttpURLConnection.java:272)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.net.www.protocol.http.HttpURLConnection.privilegedRequestPasswordAuthentication(HttpURLConnection.java:268)
	at sun.net.www.protocol.http.HttpURLConnection.getServerAuthentication(HttpURLConnection.java:1559)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1035)
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:367)
	... 26 more



> NullPointerException in CxfAuthenticator
> ----------------------------------------
>
>                 Key: CXF-2702
>                 URL: https://issues.apache.org/jira/browse/CXF-2702
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.2.6
>            Reporter: S. Ali Tokmen
>         Attachments: CXF-2702.patch
>
>
> Steps to reproduce:
> 1) Use CXF. CXF will then set the java.net.Authenticator on the JVM to CXFAuthenticator
> 2) Try to access a password protected page without giving out any credentials
> Expected: an error 401 or 403
> Actual: CXF throws an exception because there's no message in the PhaseInterceptorChain.
That's normal, we did not start any CXF exchange!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message