Community
Participate
Working Groups
Created attachment 226940 [details] StackTrace of the Exception I get an NullPointerException in the class UISessionBuilder when launching my RAP App in the Browser. It happens just the first time after the start of the application. When i refresh afterwards i get a correct RAP protocol message. I'm using Concierge OSGi on top of an RTSJ-JVM called JamaicaVM. As HttpService i use Jetty 6.1.x.
Since we probably cannot replicate your environment, could you help us narrowing it down? For example, could you try to reproduce the problem with a different VM, and/or with a different OSGi container?
I have solved this issue. The ApplicationContext is not null in the ApplicationRunner#start. It is null in the ContextProvider#getUISession after the handling of the request in RWTServlet#handleValidRequest. So i replaced the lines 192 and 193 in ContextProvider#getUISession: ServletContext servletContext = httpSession.getServletContext(); ApplicationContextImpl applicationContext = ApplicationContextUtil.get( servletContext ); with the following line: ApplicationContextImpl applicationContext = getContext().getApplicationContext(); That solved the problem for me. Don't know exactly what the problem is and if it's the best solution but for now it's fine.
After getting rid of the first there is another NullPointerException that occures when i launch the App in the Browser. See Bug 400857
As there is no response from the reporter I will close it as WORKSFORME. Roland, please reopen if you have more information or snippet to reproduce the issue.