Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Error running BIRT report via Tomcat
Error running BIRT report via Tomcat [message #134569] Mon, 01 June 2009 10:18 Go to next message
Gemma Bowers is currently offline Gemma BowersFriend
Messages: 13
Registered: July 2009
Junior Member
Hi,
I'm using Eclipse Galileo M7, RAP 1.2 and BIRT 2.5.
When I try to open a report design from my RAP application (so that I can
then run the report), I get the following error

SEVERE: Could not execute
org.eclipse.ui.internal.Workbench$ShutdownHandler.beforeDest roy(SessionStoreEvent).
java.lang.NullPointerException
at
org.eclipse.ui.internal.preferences.SessionScope.getNode(Ses sionScope.java:67)
at
org.eclipse.ui.preferences.ScopedPreferenceStoreCore.getStor ePreferences(ScopedPreferenceStoreCore.java:226)
at
org.eclipse.ui.preferences.ScopedPreferenceStoreCore.getPref erenceNodes(ScopedPreferenceStoreCore.java:268)
at
org.eclipse.ui.preferences.ScopedPreferenceStoreCore.interna lGet(ScopedPreferenceStoreCore.java:459)
at
org.eclipse.ui.preferences.ScopedPreferenceStoreCore.getBool ean(ScopedPreferenceStoreCore.java:371)
at
org.eclipse.ui.preferences.ScopedPreferenceStore.getBoolean( ScopedPreferenceStore.java:446)
at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:8 96)
at org.eclipse.ui.internal.Workbench.access$12(Workbench.java:8 70)
at org.eclipse.ui.internal.Workbench$21.run(Workbench.java:1136 )
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:66)
at org.eclipse.ui.internal.Workbench.close(Workbench.java:1134)
at org.eclipse.ui.internal.Workbench.close(Workbench.java:1096)
at
org.eclipse.ui.internal.Workbench$ShutdownHandler.beforeDest roy(Workbench.java:219)
at
org.eclipse.rwt.internal.service.SessionStoreImpl.doValueUnb ound(SessionStoreImpl.java:174)
at
org.eclipse.rwt.internal.service.SessionStoreImpl.access$0(S essionStoreImpl.java:165)
at
org.eclipse.rwt.internal.service.SessionStoreImpl$1.run(Sess ionStoreImpl.java:50)
at
org.eclipse.rwt.internal.lifecycle.UIThread.processShutdown( UIThread.java:93)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(RWTLifeCycle.java:127)
at java.lang.Thread.run(Unknown Source)

I've implemented user preferences by following the example provided in
org.eclipse.rap.demo i.e. adding a preferencePages extension point, adding
a PreferencePage class, then setting the preferencestore using the line
setPreferenceStore(PrefUtil.getAPIPreferenceStore());

Is there something I've missed? It works fine when I run the application
from Eclipse, but I get the error when I deploy it in Tomcat.
Any help would be much appreciated!
Re: Error running BIRT report via Tomcat [message #134663 is a reply to message #134569] Tue, 02 June 2009 11:09 Go to previous messageGo to next message
Gemma Bowers is currently offline Gemma BowersFriend
Messages: 13
Registered: July 2009
Junior Member
In my investigations I've tried adding a preference initializer to see
whether it made a difference or not. However, I can't

get the initializer to work.

I've created a preference initializer class and added an extension, my
plugin.xml contains the following

<extension
point="org.eclipse.ui.preferencePages">
<page
class="MyPreferencePage"
id="MyPreferencePage.id"
name="My Preferences">
</page>
</extension>
<extension
point="org.eclipse.core.runtime.preferences">
<initializer
class="MyPreferenceInitializer">
</initializer>
</extension>

When I run the application, the default preferences don't appear e.g. if I
click the "Restore Defaults" button from the Preference Page.

Is there something else I need to do in order to get the preference
initializer to work?
Re: Error running BIRT report via Tomcat [message #135850 is a reply to message #134569] Fri, 12 June 2009 08:39 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
the stack trace indicates that the exception occurs while the
session is invalidated. Are you sure that the exception is a direct
consequence of opening a report?


Gemma Bowers wrote:
> Hi,
> I'm using Eclipse Galileo M7, RAP 1.2 and BIRT 2.5.
> When I try to open a report design from my RAP application (so that I
> can then run the report), I get the following error
>
> SEVERE: Could not execute
> org.eclipse.ui.internal.Workbench$ShutdownHandler.beforeDest roy(SessionStoreEvent).
>
> java.lang.NullPointerException
> at
> org.eclipse.ui.internal.preferences.SessionScope.getNode(Ses sionScope.java:67)
>
> at
> org.eclipse.ui.preferences.ScopedPreferenceStoreCore.getStor ePreferences(ScopedPreferenceStoreCore.java:226)
>
> at
> org.eclipse.ui.preferences.ScopedPreferenceStoreCore.getPref erenceNodes(ScopedPreferenceStoreCore.java:268)
>
> at
> org.eclipse.ui.preferences.ScopedPreferenceStoreCore.interna lGet(ScopedPreferenceStoreCore.java:459)
>
> at
> org.eclipse.ui.preferences.ScopedPreferenceStoreCore.getBool ean(ScopedPreferenceStoreCore.java:371)
>
> at
> org.eclipse.ui.preferences.ScopedPreferenceStore.getBoolean( ScopedPreferenceStore.java:446)
>
> at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:8 96)
> at org.eclipse.ui.internal.Workbench.access$12(Workbench.java:8 70)
> at org.eclipse.ui.internal.Workbench$21.run(Workbench.java:1136 )
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:66)
> at org.eclipse.ui.internal.Workbench.close(Workbench.java:1134)
> at org.eclipse.ui.internal.Workbench.close(Workbench.java:1096)
> at
> org.eclipse.ui.internal.Workbench$ShutdownHandler.beforeDest roy(Workbench.java:219)
>
> at
> org.eclipse.rwt.internal.service.SessionStoreImpl.doValueUnb ound(SessionStoreImpl.java:174)
>
> at
> org.eclipse.rwt.internal.service.SessionStoreImpl.access$0(S essionStoreImpl.java:165)
>
> at
> org.eclipse.rwt.internal.service.SessionStoreImpl$1.run(Sess ionStoreImpl.java:50)
>
> at
> org.eclipse.rwt.internal.lifecycle.UIThread.processShutdown( UIThread.java:93)
>
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(RWTLifeCycle.java:127)
>
> at java.lang.Thread.run(Unknown Source)
>
> I've implemented user preferences by following the example provided in
> org.eclipse.rap.demo i.e. adding a preferencePages extension point,
> adding a PreferencePage class, then setting the preferencestore using
> the line
> setPreferenceStore(PrefUtil.getAPIPreferenceStore());
>
> Is there something I've missed? It works fine when I run the application
> from Eclipse, but I get the error when I deploy it in Tomcat. Any help
> would be much appreciated!
>
Previous Topic:I18N problems
Next Topic:RightToLeft
Goto Forum:
  


Current Time: Wed Dec 01 10:38:00 GMT 2021

Powered by FUDForum. Page generated in 0.01827 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top