Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Re: Error launching the preference page
Re: Error launching the preference page [message #331939] Tue, 30 September 2008 05:33 Go to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
I'm not getting any exception. Is there are any specific steps to reproduce
the issue?

- Prakash

--
http://blog.eclipse-tips.com



"G Dev" <gdind2003@gmail.com> wrote in message
news:48E1439E.9020107@gmail.com...
> Hi Prakash,
>
> I am giving the stack trace and also the src zip file. It is available
> in the project as well.
>
> java.lang.NullPointerException
> at
> org.fastcode.preferences.CreateSimilarPreferencePage.perform Ok(CreateSimilarPreferencePage.java:329)
> at
> org.eclipse.jface.preference.PreferenceDialog$12.run(Prefere nceDialog.java:926)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:857)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:19 9)
> at
> org.eclipse.jface.preference.PreferenceDialog.okPressed(Pref erenceDialog.java:906)
> at
> org.eclipse.jface.preference.PreferenceDialog.buttonPressed( PreferenceDialog.java:233)
> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:618)
>
> Thanks for help,
>
> --Gautam
>
> Prakash G.R. wrote:
>> Gautam,
>>
>> Attaching the stack trace/the few lines of source where NPE occurs
>> might be useful for others who try to investigate this issue. BTW, are
>> you passing the right parent for the Field Editors?
>>
>> - Prakash
>>
>
>
Re: Error launching the preference page [message #331965 is a reply to message #331939] Tue, 30 September 2008 17:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gdind2003.gmail.com

Prakash,

I don't know how you tried. It works from Windows->Preferences. But if I
launch it in the middle of the program when I don't find a match and I
want to take the user directly to the preference page error occurs.
I can see the preference diaglog fine and I get NPE when I click OK.

Thanks,

--Gautam


Prakash G.R. wrote:
> I'm not getting any exception. Is there are any specific steps to
> reproduce the issue?
>
> - Prakash
>
Re: Error launching the preference page [message #332210 is a reply to message #331965] Fri, 10 October 2008 15:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gdind2003.gmail.com

Hi,

I am disappointed to get no answer on this. This is killing me.
Could anyone take a look at this.

Thanks in advance,

--Gautam

G Dev wrote:
> Prakash,
>
> I don't know how you tried. It works from Windows->Preferences. But if I
> launch it in the middle of the program when I don't find a match and I
> want to take the user directly to the preference page error occurs.
> I can see the preference diaglog fine and I get NPE when I click OK.
>
> Thanks,
>
> --Gautam
>
>
> Prakash G.R. wrote:
>> I'm not getting any exception. Is there are any specific steps to
>> reproduce the issue?
>>
>> - Prakash
>>
Re: Error launching the preference page [message #332211 is a reply to message #332210] Fri, 10 October 2008 16:17 Go to previous messageGo to next message
Olivier Thomann is currently offline Olivier ThomannFriend
Messages: 518
Registered: July 2009
Senior Member
G Dev a écrit :
> I am disappointed to get no answer on this. This is killing me.
> Could anyone take a look at this.
Did you provide a stack trace of the NPE exception ?
Without this, I don't see what we can check or look at.
--
Olivier
Re: Error launching the preference page [message #332213 is a reply to message #332211] Fri, 10 October 2008 16:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gdind2003.gmail.com

Hi,

The stack trace was provided in an earlier post. Also the source files
attached before.

Thanks,

--Gautam

java.lang.NullPointerException
at
org.fastcode.preferences.CreateSimilarPreferencePage.perform Ok(CreateSimilarPreferencePage.java:329)
at
org.eclipse.jface.preference.PreferenceDialog$12.run(Prefere nceDialog.java:926)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:19 9)
at
org.eclipse.jface.preference.PreferenceDialog.okPressed(Pref erenceDialog.java:906)
at
org.eclipse.jface.preference.PreferenceDialog.buttonPressed( PreferenceDialog.java:233)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:618)

Olivier Thomann wrote:
> G Dev a écrit :
>> I am disappointed to get no answer on this. This is killing me.
>> Could anyone take a look at this.
> Did you provide a stack trace of the NPE exception ?
> Without this, I don't see what we can check or look at.
> --
> Olivier
Re: Error launching the preference page [message #332214 is a reply to message #332213] Fri, 10 October 2008 17:19 Go to previous messageGo to next message
Olivier Thomann is currently offline Olivier ThomannFriend
Messages: 518
Registered: July 2009
Senior Member
G Dev a écrit :
> The stack trace was provided in an earlier post. Also the source files
> attached before.
Sorry I missed it.

> java.lang.NullPointerException
> at
> org.fastcode.preferences.CreateSimilarPreferencePage.perform Ok(CreateSimilarPreferencePage.java:329)
> at
> org.eclipse.jface.preference.PreferenceDialog$12.run(Prefere nceDialog.java:926)
You have a bundle that provides a boggus preference page. I would
contact the provider of the
org.fastcode.preferences.CreateSimilarPreferencePage class.
--
Olivier
Re: Error launching the preference page [message #332215 is a reply to message #332214] Fri, 10 October 2008 17:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gdind2003.gmail.com

It is actually my plugin which works fine when opened from Windows ->
Preference. But it gives error when launched by itself.

Thanks,

--Gautam

Olivier Thomann wrote:

> G Dev a écrit :
>> The stack trace was provided in an earlier post. Also the source files
>> attached before.
> Sorry I missed it.
>
>> java.lang.NullPointerException
>> at
>> org.fastcode.preferences.CreateSimilarPreferencePage.perform Ok(CreateSimilarPreferencePage.java:329)
>> at
>> org.eclipse.jface.preference.PreferenceDialog$12.run(Prefere nceDialog.java:926)
>
> You have a bundle that provides a boggus preference page. I would
> contact the provider of the
> org.fastcode.preferences.CreateSimilarPreferencePage class.
> --
> Olivier
Re: Error launching the preference page [message #332238 is a reply to message #332215] Tue, 14 October 2008 07:47 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
G Dev wrote:
> It is actually my plugin which works fine when opened from Windows ->
> Preference. But it gives error when launched by itself.
Hi Gautam,

I took a quick look at your code. You should not directly create the
dialog. Instead use
org.eclipse.ui.dialogs.PreferencesUtil.createPreferenceDialo gOn(Shell,
String, String[], Object)

HTH
Dani
>
> Thanks,
>
> --Gautam
>
> Olivier Thomann wrote:
>
>> G Dev a écrit :
>>> The stack trace was provided in an earlier post. Also the source
>>> files attached before.
>> Sorry I missed it.
>>
>>> java.lang.NullPointerException
>>> at
>>> org.fastcode.preferences.CreateSimilarPreferencePage.perform Ok(CreateSimilarPreferencePage.java:329)
>>> at
>>> org.eclipse.jface.preference.PreferenceDialog$12.run(Prefere nceDialog.java:926)
>>
>>
>> You have a bundle that provides a boggus preference page. I would
>> contact the provider of the
>> org.fastcode.preferences.CreateSimilarPreferencePage class.
>> --
>> Olivier
Re: Error launching the preference page [message #332281 is a reply to message #332238] Thu, 16 October 2008 17:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gdind2003.gmail.com

This is a multi-part message in MIME format.
--------------080808050307040601010604
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Thanks. That worked much better. What do you pass as the last argument?
I put null and it worked. Only one problem, my fast code main preference
page is coming as blank as shown in the attachment.

Thanks,

--Gautam

Daniel Megert wrote:
> G Dev wrote:
>> It is actually my plugin which works fine when opened from Windows ->
>> Preference. But it gives error when launched by itself.
> Hi Gautam,
>
> I took a quick look at your code. You should not directly create the
> dialog. Instead use
> org.eclipse.ui.dialogs.PreferencesUtil.createPreferenceDialo gOn(Shell,
> String, String[], Object)
>
> HTH
> Dani
>>
>> Thanks,
>>
>> --Gautam
>>
>> Olivier Thomann wrote:
>>
>>> G Dev a
Re: Error launching the preference page [message #332292 is a reply to message #332281] Fri, 17 October 2008 12:53 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
G Dev wrote:
> Thanks. That worked much better. What do you pass as the last argument?
This is optional. We sometimes pass in context that the page then uses
to select a concrete setting on the page.

Dani
> I put null and it worked. Only one problem, my fast code main
> preference page is coming as blank as shown in the attachment.
>
> Thanks,
>
> --Gautam
>
> Daniel Megert wrote:
>> G Dev wrote:
>>> It is actually my plugin which works fine when opened from Windows
>>> -> Preference. But it gives error when launched by itself.
>> Hi Gautam,
>>
>> I took a quick look at your code. You should not directly create the
>> dialog. Instead use
>> org.eclipse.ui.dialogs.PreferencesUtil.createPreferenceDialo gOn(Shell,
>> String, String[], Object)
>>
>> HTH
>> Dani
>>>
>>> Thanks,
>>>
>>> --Gautam
>>>
>>> Olivier Thomann wrote:
>>>
>>>> G Dev a écrit :
>>>>> The stack trace was provided in an earlier post. Also the source
>>>>> files attached before.
>>>> Sorry I missed it.
>>>>
>>>>> java.lang.NullPointerException
>>>>> at
>>>>> org.fastcode.preferences.CreateSimilarPreferencePage.perform Ok(CreateSimilarPreferencePage.java:329)
>>>>> at
>>>>> org.eclipse.jface.preference.PreferenceDialog$12.run(Prefere nceDialog.java:926)
>>>>
>>>>
>>>>
>>>>
>>>> You have a bundle that provides a boggus preference page. I would
>>>> contact the provider of the
>>>> org.fastcode.preferences.CreateSimilarPreferencePage class.
>>>> --
>>>> Olivier
>
>
> ------------------------------------------------------------ ------------
>
Re: Error launching the preference page [message #332365 is a reply to message #332292] Mon, 20 October 2008 14:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gdind2003.gmail.com

Thanks. I wonder what the PreferenceUtil does that other method does
not. Any idea why the first page is coming blank?

--Gautam

Daniel Megert wrote:
> G Dev wrote:
>> Thanks. That worked much better. What do you pass as the last argument?
> This is optional. We sometimes pass in context that the page then uses
> to select a concrete setting on the page.
>
> Dani
>> I put null and it worked. Only one problem, my fast code main
>> preference page is coming as blank as shown in the attachment.
>>
>> Thanks,
>>
>> --Gautam
>>
>> Daniel Megert wrote:
>>> G Dev wrote:
>>>> It is actually my plugin which works fine when opened from Windows
>>>> -> Preference. But it gives error when launched by itself.
>>> Hi Gautam,
>>>
>>> I took a quick look at your code. You should not directly create the
>>> dialog. Instead use
>>> org.eclipse.ui.dialogs.PreferencesUtil.createPreferenceDialo gOn(Shell,
>>> String, String[], Object)
>>>
>>> HTH
>>> Dani
>>>>
>>>> Thanks,
>>>>
>>>> --Gautam
>>>>
>>>> Olivier Thomann wrote:
>>>>
>>>>> G Dev a écrit :
>>>>>> The stack trace was provided in an earlier post. Also the source
>>>>>> files attached before.
>>>>> Sorry I missed it.
>>>>>
>>>>>> java.lang.NullPointerException
>>>>>> at
>>>>>> org.fastcode.preferences.CreateSimilarPreferencePage.perform Ok(CreateSimilarPreferencePage.java:329)
>>>>>> at
>>>>>> org.eclipse.jface.preference.PreferenceDialog$12.run(Prefere nceDialog.java:926)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> You have a bundle that provides a boggus preference page. I would
>>>>> contact the provider of the
>>>>> org.fastcode.preferences.CreateSimilarPreferencePage class.
>>>>> --
>>>>> Olivier
>>
>>
>> ------------------------------------------------------------ ------------
>>
Re: Error launching the preference page [message #332500 is a reply to message #332365] Thu, 23 October 2008 15:10 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
G Dev wrote:
> Thanks. I wonder what the PreferenceUtil does that other method does
> not. Any idea why the first page is coming blank?
No idea. If you can reproduce then you should file a bug with a test case.

Dani
>
> --Gautam
>
> Daniel Megert wrote:
>> G Dev wrote:
>>> Thanks. That worked much better. What do you pass as the last argument?
>> This is optional. We sometimes pass in context that the page then
>> uses to select a concrete setting on the page.
>>
>> Dani
>>> I put null and it worked. Only one problem, my fast code main
>>> preference page is coming as blank as shown in the attachment.
>>>
>>> Thanks,
>>>
>>> --Gautam
>>>
>>> Daniel Megert wrote:
>>>> G Dev wrote:
>>>>> It is actually my plugin which works fine when opened from Windows
>>>>> -> Preference. But it gives error when launched by itself.
>>>> Hi Gautam,
>>>>
>>>> I took a quick look at your code. You should not directly create
>>>> the dialog. Instead use
>>>> org.eclipse.ui.dialogs.PreferencesUtil.createPreferenceDialo gOn(Shell,
>>>> String, String[], Object)
>>>>
>>>> HTH
>>>> Dani
>>>>>
>>>>> Thanks,
>>>>>
>>>>> --Gautam
>>>>>
>>>>> Olivier Thomann wrote:
>>>>>
>>>>>> G Dev a écrit :
>>>>>>> The stack trace was provided in an earlier post. Also the source
>>>>>>> files attached before.
>>>>>> Sorry I missed it.
>>>>>>
>>>>>>> java.lang.NullPointerException
>>>>>>> at
>>>>>>> org.fastcode.preferences.CreateSimilarPreferencePage.perform Ok(CreateSimilarPreferencePage.java:329)
>>>>>>> at
>>>>>>> org.eclipse.jface.preference.PreferenceDialog$12.run(Prefere nceDialog.java:926)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> You have a bundle that provides a boggus preference page. I would
>>>>>> contact the provider of the
>>>>>> org.fastcode.preferences.CreateSimilarPreferencePage class.
>>>>>> --
>>>>>> Olivier
>>>
>>>
>>> ------------------------------------------------------------ ------------
>>>
>>>
Previous Topic:Marker Annotations disapperaring in vertical toolbar
Next Topic:Databinding - DirtyState of an BindingContext
Goto Forum:
  


Current Time: Thu Dec 26 23:44:37 GMT 2024

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

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

Back to the top