Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

iframe Problem

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am working on a web site and have run into a strange iframe problem. The src parameter on the iframe is a Java servlet which, based on parameters passed on the URL makes decisions and redirects to the appropriate web page. This works most of the time. Sometimes a 500 error is thrown based on a NullPointer Exception when the page is trying to read parameters from the session. This happens on IE on some machines sometimes and sometimes on Safari on the Mac. The same URL call (as the src parameter in the iframe) always works on all browsers/operating systems. Not a problem of old browswers - only been testing recent browsers that support iframes.

Any ideas?

Steve Watson
 
Sheriff
Posts: 67619
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds like a race condition to me. What's setting the session values that the iframed servlet is depending upon?
 
reply
    Bookmark Topic Watch Topic
  • New Topic