Skip to main content Skip to navigation

Web Sign On

Web Sign On page returned after signing in appears empty

You need to be logged in to post in this topic.
  1. Now the grails issue appears to be fixed, I’m having another go at stress testing. This time when I log in with my temporary user the page appears to be empty. What does it look like from your end? Here’s the code: \\\ SingleSignOnHelper ssoHelper = new SingleSignOnHelper(); WebResponse resp = ssoHelper.signIn(webConv, url, member); System.err.println(“member dob: ” + member.getDob()); System.err.println(“member Uni ID: ” + member.getUniversityId()); System.err.println(“resp after signing in: ” + resp); System.err.println(“text after signing in: >” + resp.getText() + ”<”); WebForm form = resp.getFormWithID(“studentForm”); \\\ and here’s the output: \\\ member dob: Mon Nov 16 00:00:00 GMT 1964 member Uni ID: 3999100 resp after signing in: HttpWebResponse [url= https://test-mrm.warwick.ac.uk/mrm/index.htm ; headers= CONTENT-TYPE: text/html CONTENT-LENGTH: 0 CONNECTION: Keep-Alive SERVER: Apache/2.2.9 (Unix) mod_jk/1.2.26 mod_ssl/2.2.9 OpenSSL/0.9.7d DATE: Tue, 17 Aug 2010 12:42:27 GMT KEEP-ALIVE: timeout=5, max=95 ] text after signing in: >< Exception in thread “Thread-2” java.lang.RuntimeException: java.lang.NullPointerException \\\
     
  2. Re: page returned after signing in appears empty
    Since the URL is https://test-mrm.warwick.ac.uk/mrm/index.htm and the response includes a Content-Length header of 0 bytes, this would seem to be an issue with your application, rather than with websignon – is it possible that you always return a Content-Length of 0 and this is just responding differently to a browser?
     
  3. Re: page returned after signing in appears empty
    Better still, can you get the stack trace of the \\\ Exception in thread “Thread-2” java.lang.RuntimeException: java.lang.NullPointerException \\\ from your server logs? That might indicate where your problem lies.
     
  4. Re: page returned after signing in appears empty
    The stack trace isn’t very exciting – the null pointer exception is just caused by failure to find the form I’m expecting in the page (which I assumed was because it had no content). \\\ at uk.ac.warwick.stresstest.TestMonitor.run(TestMonitor.java:23) at java.lang.Thread.run(Thread.java:595 <>) Caused by: java.lang.NullPointerException at loadTest.ViewStudentStressTest$ViewStudent.run(ViewStudentStressTest.java:87) at uk.ac.warwick.stresstest.TestMonitor.run(TestMonitor.java:21) ... 1 more \\\
     
  5. Re: page returned after signing in appears empty
    It works fine on my dev machine so I’m guessing the app itself is OK. Do the SSO logs indicate whether login has been successful?
     
  6. Re: page returned after signing in appears empty
    here is the output from my dev machine: \\\ ViewStudentStressTest run called member dob: Mon Nov 16 00:00:00 GMT 1964 member Uni ID: xxxxxxx resp after signing in: HttpWebResponse [url= http://saligo.warwick.ac.uk:8080/mrm/staff/mainMenu.htm ; headers= CONTENT-TYPE: text/html;charset=ISO-8859-1 TRANSFER-ENCODING: chunked CONTENT-LANGUAGE: en-GB SERVER: Apache-Coyote/1.1 DATE: Tue, 17 Aug 2010 14:37:35 GMT ] text after signing in: > MRM : Main Menu ... \\\
     
  7. Re: page returned after signing in appears empty
    Hi Zoe, In the websignon logs I can see several logins by your stress testing users, and attribute lookups from the mrm application for their details – so it seems that websignon is handing them off correctly. For some reason, these users are then being redirected to /mrm/index.html, rather than /mrm/staff/mainMenu.htm – but I don’t think this is an issue with websignon. Mat
     
  8. Re: page returned after signing in appears empty
    OK, not an SSO issue then. /mrm/index.html just redirects to /mrm/staff/mainMenu.htm so it remains a puzzle. Perhaps could be something to do with the stress testing framework. Thanks for checking.
     
  9. Re: page returned after signing in appears empty
    Here’s the log I’m seeing from my end (just realised I needed to look in the app logs on my test machine) – it does seem to be an SSOException: \\\ 2010-08-19 13:35:41,879 INFO [uk.ac.warwick.sso.client.ForceLoginFilter] Forcing redirect to login screen:https://websignon.warwick.ac.uk/origin/hs?shire=https%3A%2F%2Ftest-mrm.warwick.ac.uk%2Fmrm%2Fshire&p <> roviderId=urn%3Atest-mrm.warwick.ac.uk%3Amrm%3Aservice&target=https%3A%2F%2Ftest-mrm.warwick.ac.uk%2Fmrm%2Findex.htm&error=notloggedin 2010-08-19 13:35:43,177 WARN [uk.ac.warwick.sso.client.SSOClientFilter] No user, not even an AnonymousUser found in the request, so returning a new AnonymousUser 2010-08-19 13:35:43,199 INFO [org.apache.xml.security.signature.Reference] Verification successful for URI ”#cf82c0a6d5e2380ec86453459a9ba69e” 2010-08-19 13:35:43,200 INFO [uk.ac.warwick.sso.client.ShireCommand] Accepted Shire request for target:https://test-mrm.warwick.ac.uk/mrm/index.htm <> 2010-08-19 13:35:43,202 INFO [uk.ac.warwick.sso.client.AttributeAuthorityResponseFetcherImpl] Shire connecting to AttributeAuthority athttps://websignon.warwick.ac.uk/origin/aa <>">https://websignon.warwick.ac.uk/origin/aa 2010-08-19 13:35:43,342 INFO [uk.ac.warwick.sso.client.AttributeAuthorityResponseFetcherImpl] Returning user Stress Testing(3999889) from SAMLSubject 2010-08-19 13:35:43,342 INFO [uk.ac.warwick.sso.client.ShireCommand] Users shire submission is from same host as they logged in from: Shire&Login=137.205.194.227 2010-08-19 13:35:44,463 WARN [uk.ac.warwick.sso.client.SSOClientFilter] No user, not even an AnonymousUser found in the request, so returning a new AnonymousUser 2010-08-19 13:35:44,485 INFO [org.apache.xml.security.signature.Reference] Verification successful for URI ”#cf82c0a6d5e2380ec86453459a9ba69e” 2010-08-19 13:35:44,486 INFO [uk.ac.warwick.sso.client.ShireCommand] Accepted Shire request fortarget:https://test-mrm.warwick.ac.uk/mrm/index.htm <> 2010-08-19 13:35:44,488 INFO [uk.ac.warwick.sso.client.AttributeAuthorityResponseFetcherImpl] Shire connecting to AttributeAuthority athttps://websignon.warwick.ac.uk/origin/aa <>">https://websignon.warwick.ac.uk/origin/aa 2010-08-19 13:35:44,563 WARN [uk.ac.warwick.sso.client.ShireServlet] Could not generate cookie uk.ac.warwick.sso.client.SSOException: Could not create SAMLResponse from stream at uk.ac.warwick.sso.client.AttributeAuthorityResponseFetcherImpl.getSAMLResponse(AttributeAuthorityResponseFetcherImpl. java:140 <>) at uk.ac.warwick.sso.client.AttributeAuthorityResponseFetcherImpl.getSAMLResponse(AttributeAuthorityResponseFetcherImpl.java:67) at uk.ac.warwick.sso.client.AttributeAuthorityResponseFetcherImpl.getUserFromSubject(AttributeAuthorityResponseFetcherImpl. java:167 <>) at uk.ac.warwick.sso.client.ShireCommand.getUserFromAuthSubject(ShireCommand. java:126 <>) at uk.ac.warwick.sso.client.ShireCommand.process(ShireCommand.java:93) at uk.ac.warwick.sso.client.ShireServlet.process(ShireServlet.java:75) at uk.ac.warwick.sso.client.ShireServlet.doPost(ShireServlet.java:46) at javax.servlet.http.HttpServlet.service(HttpServlet.java:647 <>) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729 <>) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain. java:269 <>) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain. java:188 <>) at uk.ac.warwick.mrm.filter.SsoOverrideFilter.doFilter(SsoOverrideFilter.java:55) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy. java:236 <>) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy. java:167 <>) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain. java:215 <>) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain. java:188 <>) at uk.ac.warwick.sso.client.SSOClientFilter.doFilter(SSOClientFilter.java:134 <> ) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain. java:215 <>) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain. java:188 <>) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve. java:213 <>) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve. java:172 <>) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127 <>) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve. java:117 <>) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:108 <>) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174 <> ) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200 <> ) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283 <>) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773 <>) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703 <>) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket. java:895 <>) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool. java:689 <>) at java.lang.Thread.run(Thread.java:595 <>) Caused by: org.opensaml.SAMLException: Handle doesn’t exist: ctmrrdahnntnlgfbauvdayxxvnlfmeakvagfjavghhjpcynyuf at org.opensaml.SAMLException.getInstance(SAMLException.java:169 <>) at org.opensaml.SAMLResponse.fromDOM(SAMLResponse.java:175 <>) at org.opensaml.SAMLResponse. (SAMLResponse.java:123 <>) at uk.ac.warwick.sso.client.AttributeAuthorityResponseFetcherImpl.getSAMLResponse(AttributeAuthorityResponseFetcherImpl. java:138 <>) \\\ Z
     
  10. Re: page returned after signing in appears empty
    Thanks all for your help with this – it was indeed an error in my application. A filter was directing test users differently, so though it appeared to work in real life but not with the test user, this was actually of my own (forgotten) making.
     

Are you sure?

Are you sure?

Forum followers

Follower data is not currently available.

Search results