[jboss-jira] [JBoss JIRA] Commented: (JBAS-4064) failing org.jboss.test.jacc.test.*(JACC+SecurityMgr)

Stan Silvert (JIRA) jira-events at jboss.com
Thu Feb 8 09:25:30 EST 2007


    [ http://jira.jboss.com/jira/browse/JBAS-4064?page=comments#action_12352632 ] 
            
Stan Silvert commented on JBAS-4064:
------------------------------------

Dimitris,

Please let me know what you would like to do about this.

I looked at tomcat-federation.  The problem had nothing to do with the http-client update.  It appears to be a timing issue.  When the test tries to hit SecuredServlet it will sometimes get a 503 error (Application Unavailable).  I can't reproduce the problem manually.  

I added this to the test, which fixed the test.  However, this is actually a JBoss bug that is just very hard to reproduce except in an automated test.  Adding retry logic to the test makes it pass:
if (responseCode == HttpURLConnection.HTTP_UNAVAILABLE)   responseCode = httpConn.executeMethod(indexGet);

>From what I see in the DEBUG messages in server.log, it appears to be loading some security stuff after the deployer declares that the app is deployed.  Notice the time that the request happens versus the deployment messages in server.log.

>From test.log:

2007-02-08 09:06:20,398 DEBUG [org.apache.commons.httpclient.HttpConnection] Open connection to localhost:8080
2007-02-08 09:06:20,398 DEBUG [httpclient.wire.header] >> "GET /header-form-auth/restricted/SecuredServlet HTTP/1.1[\r][\n]"
2007-02-08 09:06:20,408 DEBUG [org.apache.commons.httpclient.HttpMethodBase] Adding Host request header
2007-02-08 09:06:20,418 DEBUG [httpclient.wire.header] >> "User-Agent: Jakarta Commons-HttpClient/3.0[\r][\n]"
2007-02-08 09:06:20,418 DEBUG [httpclient.wire.header] >> "Host: localhost:8080[\r][\n]"
2007-02-08 09:06:20,418 DEBUG [httpclient.wire.header] >> "[\r][\n]"
2007-02-08 09:06:20,418 DEBUG [httpclient.wire.header] << "HTTP/1.1 503 This application is not currently available[\r][\n]"
2007-02-08 09:06:20,428 DEBUG [httpclient.wire.header] << "Server: Apache-Coyote/1.1[\r][\n]"
2007-02-08 09:06:20,428 DEBUG [httpclient.wire.header] << "Content-Type: text/html[\r][\n]"
2007-02-08 09:06:20,428 DEBUG [httpclient.wire.header] << "Transfer-Encoding: chunked[\r][\n]"
2007-02-08 09:06:20,428 DEBUG [httpclient.wire.header] << "Date: Thu, 08 Feb 2007 14:06:20 GMT[\r][\n]"
2007-02-08 09:06:20,428 DEBUG [httpclient.wire.header] << "Connection: close[\r][\n]"

>From server.log:

2007-02-08 09:06:20,318 INFO  [org.jboss.deployment.EARDeployer] Started J2EE application: file:/C:/projects/jboss4.2/jboss-4.2/testsuite/output/lib/header-form-auth.ear
2007-02-08 09:06:20,318 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: header-form-auth.ear
2007-02-08 09:06:20,318 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/projects/jboss4.2/jboss-4.2/testsuite/output/lib/header-form-auth.ear
2007-02-08 09:06:20,609 DEBUG [org.jboss.security.plugins.JaasSecurityManager.jbossweb-form-auth] CallbackHandler: org.jboss.security.auth.callback.SecurityAssociationHandler at 130500f
2007-02-08 09:06:20,609 DEBUG [org.jboss.security.plugins.JaasSecurityManagerService] Created securityMgr=org.jboss.security.plugins.JaasSecurityManager at d8326d
2007-02-08 09:06:20,609 DEBUG [org.jboss.security.plugins.JaasSecurityManager.jbossweb-form-auth] CachePolicy set to: org.jboss.util.TimedCachePolicy at 1d6b049
2007-02-08 09:06:20,609 DEBUG [org.jboss.security.plugins.JaasSecurityManagerService] setCachePolicy, c=org.jboss.util.TimedCachePolicy at 1d6b049
2007-02-08 09:06:20,609 DEBUG [org.jboss.security.plugins.JaasSecurityManagerService] Added jbossweb-form-auth, org.jboss.security.plugins.SecurityDomainContext at 1cfad77 to map
2007-02-08 09:06:20,609 DEBUG [org.jboss.security.auth.spi.UsersRolesLoginModule] Loaded properties, users=[jduke, guest]
2007-02-08 09:06:20,609 DEBUG [org.jboss.security.auth.spi.UsersRolesLoginModule] Loaded properties, users=[jduke, guest]


> failing org.jboss.test.jacc.test.*(JACC+SecurityMgr)
> ----------------------------------------------------
>
>                 Key: JBAS-4064
>                 URL: http://jira.jboss.com/jira/browse/JBAS-4064
>             Project: JBoss Application Server
>          Issue Type: Sub-task
>      Security Level: Public(Everyone can see) 
>          Components: Test Suite
>         Environment: Java Version 1.5.0_10 
> Java Vendor Sun Microsystems Inc. 
> Java VM Name Java HotSpot(TM) Client VM 
> Java VM Version 1.5.0_10-b03 
> Java VM Info mixed mode 
> OS Name Linux 
> OS Version 2.6.9-42.0.2.EL 
> OS Arch i386 
>            Reporter: Dimitris Andreadis
>         Assigned To: Stan Silvert
>             Fix For: JBossAS-4.2.0.CR1
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list