Help coderanch get a
new server
by contributing to the fundraiser
  • 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Session problem ... Please help

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a jsp where I call a bean method in which
I set an object in the session using setAttribute.
(I try to take out the value in the same bean and
it is fine.)
After that I do a 'forward' to some other jsp.
In the new jsp I call another bean method where
I try to take out the object out of session using
getAttribute. Here it is giving 'IllegalStateException'.
The code was working fine in apache/resin.
Please help.
I think somehow the session gets invalidated when
I move to the new page.
Thanks for any pointers.
--l
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Please let me know the O/S version, iAS service pack number and the error messages from the KJS logs.
 
Lakshmi Geetha
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Found the problem. We were trying to set a value to the maxm inactive time as
long var = .....
setMaxInactiveInterval( var);
this var will be muliplied by 1000 inside the setMaxInactiveInterval() and the new value was exceeding the limit for long
and there for becoming -ve. the setMaxInactiveInterval() checks for -ve and if true, invalidates the session.
but the same was working fine in apache/resin as the method in apache checks for -ve before multiplying by 1000. so in pache it was set as a -ve value.
thanks.
 
Lasagna is spaghetti flvored cake. Just like this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic