Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
IllegalArgumentException: ServletContext must not be null
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Robert Brendler  
View profile  
 More options Apr 28 2011, 9:21 am
From: Robert Brendler <robert.brend...@googlemail.com>
Date: Thu, 28 Apr 2011 06:21:17 -0700 (PDT)
Local: Thurs, Apr 28 2011 9:21 am
Subject: IllegalArgumentException: ServletContext must not be null
Hi all,

I am trying to get dpHibernate 2.0 RC6 running on an Apache Tomcat
7.0.12 with BlazeDS 4.0.0.14931, Spring 3.0.5 and Spring-BlazeDS-
Integration 1.5.0.M2

I updated the lazyoverflow example to get it running with spring 3.0,
but keep running into this error. It seems that the login works, at
least I am getting an ApplicationUser object as response to the login
attempt. But as getRecentQuestions() is called the error appears
(Suppose thats the first lazy loading call). I could narrow it down to
FlexContext.getServletContext(); returning "null" in
SpringContextSerializerFactory.java line 110.

Quick fix to this (staying compatible to the current implementation)
was adding following code:
                if(servletContext == null)
                        servletContext =
FlexContext.getMessageBroker().getServletContext();

Don't know if I am doing something ugly here, but works for me.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »