Error 500 Java.lang.illegalstateexception Jsp.error.page. No Session
available in portal theme? 6 replies Latest Post - 2008-05-02T18:43:45Z by SystemAdmin Display:ConversationsBy Date 1-7 of 7 Previous Next SystemAdmin 110000D4XK 30895 Posts Pinned topic No session object available in portal theme? 2008-05-02T14:47:44Z | Tags: Answered question This question has been answered. Unanswered question This question has not been answered yet. We have a situation where we are modifying our portal theme to check for a session attribute and then do a conditional redirect. The code has to go in the head.jspf in order to work as intended. However, if I use a jstl tag like: ${sessionScope.myAttribute == true} I get a stack trace dumped into SystemOut with the root line: Exception thrown : java.lang.IllegalStateException: jsp.error.page.noSession at org.apache.jasper.runtime.PageContextImpl.getAttribute(PageContextImpl.java:271) I have set the property "public.session = true" in the Navigation.properties file, but that made no difference. Does anyone have any suggestion or guidance about how to check a session variable in Portal 6 theme files? We were doing this in Portal 5.1 and the code is pretty much cut and paste, but it doesn't work in Portal 6. Any help would be greatly appreciated. Log in to reply. Updated on 2008-05-02T18:43:45Z at 2008-05-02T18:43:45Z by SystemAdmin lonely 2700012D82 7 Posts Re: No session object available in portal theme? 2008-05-02T15:39:21Z This is the accepted answer. This is the accepted answer. I think theme is getting loaded when the server starts before any session is created. But you are trying to access the session before it is created. Include some condition to check wheather it is accessed for first time or not. Regards Sachin.P Log in to reply. Updated on 2008-05-02T15:39:21Z at 2008-05-02T15:39:21Z by lonely SystemAdmin 110000D4XK 30895 Posts Re: No session object available in portal theme? 2008-05-02T15:51:12Z This is the accepted answer. This is the accepted answer. lonely 2700012D82 2008-05-02T15:38:49Z I think theme is getting loaded when the server starts before any session is created. But you are trying to access the session before it is created. Include some condition to check wheather it is accessed for first time or not. Regards Sachin.P More... There should be a session because the code that is checking the session attribute is only run if the user is logged in, and I have wr
This Site Careers Other all forums Forum: Tomcat controlling maxActiveSessions Dave Jochim Ranch Hand Posts: 31 posted 13 years ago I want to limit the number of sessions in Tomcat so I set the attribute maxActiveSessions for my context in server.xml. When the limit is exceeded it throws an IllegalStateException error. I want to catch this error to print an appropriate message for the user. I had hoped that I would be able to easily handle this with with
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta https://web.liferay.com/community/forums/-/message_boards/message/34977579 Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business error 500 Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like error 500 java.lang.illegalstateexception you, helping each other. Join them; it only takes a minute: Sign up Using Facelets as
Search Forums Home » Liferay Portal » English » 3. Development Recent Posts Statistics RSS (Opens New Window) Answer (Unmark) Mark as an Answer Threads [ Previous | Next ] java.lang.IllegalStateException: Page needs a session and none is available user1 liferay February 26, 2014 7:45 AM RE: java.lang.IllegalStateException: Page needs a session and none is avail donino pienni April 8, 2014 3:50 PM RE: java.lang.IllegalStateException: Page needs a session and none is avail donino pienni April 10, 2014 9:16 AM RE: java.lang.IllegalStateException: Page needs a session and none is avail user1 liferay April 10, 2014 9:20 AM RE: java.lang.IllegalStateException: Page needs a session and none is avail donino pienni April 15, 2014 6:21 AM RE: java.lang.IllegalStateException: Page needs a session and none is avail donino pienni May 1, 2014 1:45 AM RE: java.lang.IllegalStateException: Page needs a session and none is avail user1 liferay May 8, 2014 12:52 PM RE: java.lang.IllegalStateException: Page needs a session and none is avail Ankit Chaudhari July 9, 2014 2:36 PM RE: java.lang.IllegalStateException: Page needs a session and none is avail donino pienni July 10, 2014 8:38 AM RE: java.lang.IllegalStateException: Page needs a session and none is avail Traolly Xiong November 25, 2014 1:27 AM RE: java.lang.IllegalStateException: Page needs a session and none is avail Juan Gonzalez November 25, 2014 2:14 AM RE: java.lang.IllegalStateException: Page needs a session and none is avail Andreas Lecerof January 22, 2015 6:32 AM RE: java.lang.IllegalStateException: Page needs a session and none is avail Kiran Yalavali January 3, 2016 10:48 PM java.lang.IllegalStateException: Page needs a session and none is available February 26, 2014 7:45 AM Answer user1 liferay Rank: New Member Posts: 21 Join Date: February 17, 2014 Recent Posts Does anyone no how to overcome the below error.I am storing a session attribute using @sessionAttribute.. it was working fine until i added another portlet that does not have any session info.NOTE: This occurs only once or twice, when we start the server ,+ if the user is not logged in ..when the value of the model attribute in the session is null.1217:33:11,766 ERROR