Home » Eclipse Projects » DTP » Bug in the ProfileDetailsPropertyPage's classes
Bug in the ProfileDetailsPropertyPage's classes [message #30194] |
Thu, 26 April 2007 22:26  |
Eclipse User |
|
|
|
The mostly of the ProfileDetailsPropertyPage's classes don't initialize the
mDriverInstance variable and it make troubes in some cases. For instance,
- make some profile (Oracle, PostgreSQL, Derby, MySQL ...) and uncheck Save
password
- when connecting you will be prompt for password
- enter password and click ok
you will got the following exception :
java.lang.NullPointerException
at
org.eclipse.datatools.connectivity.sqm.internal.core.util.Da tabaseProviderHelper.getCatalogDatabase(DatabaseProviderHelp er.java:37)
at
org.eclipse.datatools.connectivity.sqm.internal.core.util.Da tabaseProviderHelper.setDatabase(DatabaseProviderHelper.java :46)
at
org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionInfoImpl. <init>(ConnectionInfoImpl.java:628)
at
org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionFactory.createConnection(ConnectionFactory.jav a:36)
at
org.eclipse.datatools.connectivity.sqm.core.SQMConnectionFac tory.createConnection(SQMConnectionFactory.java:45)
at
org.eclipse.datatools.connectivity.internal.ConnectionFactor yAdapterProvider.createConnection(ConnectionFactoryAdapterPr ovider.java:79)
at
org.eclipse.datatools.connectivity.internal.CreateConnection Job.run(CreateConnectionJob.java:55)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
It will make the profile unusable until you select a driver in driver's
combo.
The fix is simple.You need to add the following line on the end of
initControls method :
mDriverInstance = combo.getSelectedDriverInstance();
in the classes :
DerbyEmbeddedDBPropertyPage, HSQLDBPropertyPage,
GenericDBProfilePropertyPage and PostgreSQLProfilePropertyPage
Regards,
Peco
|
|
|
Re: Bug in the ProfileDetailsPropertyPage's classes [message #30340 is a reply to message #30194] |
Tue, 01 May 2007 17:10   |
Eclipse User |
|
|
|
Originally posted by: brianf.sybase.com
Peco, could you please enter a BZ entry for this and we'll try and get it
fixed?
--Brian Fitzpatrick
Sybase, Inc.
Senior Software Engineer/DTP Committer
"Haris Peco" <snpe@snpe.co.yu> wrote in message
news:f0rn0n$v1k$1@build.eclipse.org...
> The mostly of the ProfileDetailsPropertyPage's classes don't initialize
> the
> mDriverInstance variable and it make troubes in some cases. For instance,
>
> - make some profile (Oracle, PostgreSQL, Derby, MySQL ...) and uncheck
> Save
> password
> - when connecting you will be prompt for password
> - enter password and click ok
> you will got the following exception :
> java.lang.NullPointerException
> at
> org.eclipse.datatools.connectivity.sqm.internal.core.util.Da tabaseProviderHelper.getCatalogDatabase(DatabaseProviderHelp er.java:37)
> at
> org.eclipse.datatools.connectivity.sqm.internal.core.util.Da tabaseProviderHelper.setDatabase(DatabaseProviderHelper.java :46)
> at
> org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionInfoImpl. <init>(ConnectionInfoImpl.java:628)
> at
> org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionFactory.createConnection(ConnectionFactory.jav a:36)
> at
> org.eclipse.datatools.connectivity.sqm.core.SQMConnectionFac tory.createConnection(SQMConnectionFactory.java:45)
> at
> org.eclipse.datatools.connectivity.internal.ConnectionFactor yAdapterProvider.createConnection(ConnectionFactoryAdapterPr ovider.java:79)
> at
> org.eclipse.datatools.connectivity.internal.CreateConnection Job.run(CreateConnectionJob.java:55)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>
> It will make the profile unusable until you select a driver in driver's
> combo.
> The fix is simple.You need to add the following line on the end of
> initControls method :
>
> mDriverInstance = combo.getSelectedDriverInstance();
>
> in the classes :
> DerbyEmbeddedDBPropertyPage, HSQLDBPropertyPage,
> GenericDBProfilePropertyPage and PostgreSQLProfilePropertyPage
>
> Regards,
> Peco
|
|
|
Re: Bug in the ProfileDetailsPropertyPage's classes [message #30376 is a reply to message #30340] |
Tue, 01 May 2007 22:17   |
Eclipse User |
|
|
|
Done.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=185025
Peco
Brian Fitzpatrick wrote:
> Peco, could you please enter a BZ entry for this and we'll try and get it
> fixed?
> --Brian Fitzpatrick
> Sybase, Inc.
> Senior Software Engineer/DTP Committer
>
> "Haris Peco" <snpe@snpe.co.yu> wrote in message
> news:f0rn0n$v1k$1@build.eclipse.org...
>> The mostly of the ProfileDetailsPropertyPage's classes don't initialize
>> the
>> mDriverInstance variable and it make troubes in some cases. For instance,
>>
>> - make some profile (Oracle, PostgreSQL, Derby, MySQL ...) and uncheck
>> Save
>> password
>> - when connecting you will be prompt for password
>> - enter password and click ok
>> you will got the following exception :
>> java.lang.NullPointerException
>> at
>>
org.eclipse.datatools.connectivity.sqm.internal.core.util.Da tabaseProviderHelper.getCatalogDatabase(DatabaseProviderHelp er.java:37)
>> at
>>
org.eclipse.datatools.connectivity.sqm.internal.core.util.Da tabaseProviderHelper.setDatabase(DatabaseProviderHelper.java :46)
>> at
>>
org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionInfoImpl. <init>(ConnectionInfoImpl.java:628)
>> at
>>
org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionFactory.createConnection(ConnectionFactory.jav a:36)
>> at
>>
org.eclipse.datatools.connectivity.sqm.core.SQMConnectionFac tory.createConnection(SQMConnectionFactory.java:45)
>> at
>>
org.eclipse.datatools.connectivity.internal.ConnectionFactor yAdapterProvider.createConnection(ConnectionFactoryAdapterPr ovider.java:79)
>> at
>>
org.eclipse.datatools.connectivity.internal.CreateConnection Job.run(CreateConnectionJob.java:55)
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>>
>> It will make the profile unusable until you select a driver in driver's
>> combo.
>> The fix is simple.You need to add the following line on the end of
>> initControls method :
>>
>> mDriverInstance = combo.getSelectedDriverInstance();
>>
>> in the classes :
>> DerbyEmbeddedDBPropertyPage, HSQLDBPropertyPage,
>> GenericDBProfilePropertyPage and PostgreSQLProfilePropertyPage
>>
>> Regards,
>> Peco
|
|
|
Re: Bug in the ProfileDetailsPropertyPage's classes [message #30695 is a reply to message #30376] |
Mon, 07 May 2007 18:25   |
Eclipse User |
|
|
|
Originally posted by: brianf.sybase.com
Hi Peco...
Is the issue more that you're allowed to create the profile without
selecting a driver? I'm having issues recreating this locally...
So you create a new profile, let's say a SQL Model-JDBC Connection profile.
No driver is selected by default.
You specify a driver, customize the url, set the uid, and make sure the Save
Password checkbox is unchecked. Click Finish.
Then you connect. Enter password, click OK and you get the NPE exception you
mentioned?
I've tried this multiple ways and can't reproduce it. The profile details
wizard page shouldn't let you continue if no driver is selected.
Can you provide more detailed steps on how to reproduce this issue?
Thanks.
--Brian Fitzpatrick
"Haris Peco" <snpe@snpe.co.yu> wrote in message
news:f18sb8$6m2$1@build.eclipse.org...
> Done.
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=185025
>
> Peco
> Brian Fitzpatrick wrote:
>
>> Peco, could you please enter a BZ entry for this and we'll try and get it
>> fixed?
>> --Brian Fitzpatrick
>> Sybase, Inc.
>> Senior Software Engineer/DTP Committer
>>
>> "Haris Peco" <snpe@snpe.co.yu> wrote in message
>> news:f0rn0n$v1k$1@build.eclipse.org...
>>> The mostly of the ProfileDetailsPropertyPage's classes don't initialize
>>> the
>>> mDriverInstance variable and it make troubes in some cases. For
>>> instance,
>>>
>>> - make some profile (Oracle, PostgreSQL, Derby, MySQL ...) and uncheck
>>> Save
>>> password
>>> - when connecting you will be prompt for password
>>> - enter password and click ok
>>> you will got the following exception :
>>> java.lang.NullPointerException
>>> at
>>>
> org.eclipse.datatools.connectivity.sqm.internal.core.util.Da tabaseProviderHelper.getCatalogDatabase(DatabaseProviderHelp er.java:37)
>>> at
>>>
> org.eclipse.datatools.connectivity.sqm.internal.core.util.Da tabaseProviderHelper.setDatabase(DatabaseProviderHelper.java :46)
>>> at
>>>
> org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionInfoImpl. <init>(ConnectionInfoImpl.java:628)
>>> at
>>>
> org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionFactory.createConnection(ConnectionFactory.jav a:36)
>>> at
>>>
> org.eclipse.datatools.connectivity.sqm.core.SQMConnectionFac tory.createConnection(SQMConnectionFactory.java:45)
>>> at
>>>
> org.eclipse.datatools.connectivity.internal.ConnectionFactor yAdapterProvider.createConnection(ConnectionFactoryAdapterPr ovider.java:79)
>>> at
>>>
> org.eclipse.datatools.connectivity.internal.CreateConnection Job.run(CreateConnectionJob.java:55)
>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>>>
>>> It will make the profile unusable until you select a driver in driver's
>>> combo.
>>> The fix is simple.You need to add the following line on the end of
>>> initControls method :
>>>
>>> mDriverInstance = combo.getSelectedDriverInstance();
>>>
>>> in the classes :
>>> DerbyEmbeddedDBPropertyPage, HSQLDBPropertyPage,
>>> GenericDBProfilePropertyPage and PostgreSQLProfilePropertyPage
>>>
>>> Regards,
>>> Peco
>
|
|
|
Re: Bug in the ProfileDetailsPropertyPage's classes [message #30766 is a reply to message #30695] |
Mon, 07 May 2007 19:03  |
Eclipse User |
|
|
|
Hi Brian,
I have answered you to bugzilla
https://bugs.eclipse.org/bugs/show_bug.cgi?id=185025
Regards,
Peco
Brian Fitzpatrick wrote:
> Hi Peco...
>
> Is the issue more that you're allowed to create the profile without
> selecting a driver? I'm having issues recreating this locally...
>
> So you create a new profile, let's say a SQL Model-JDBC Connection
> profile. No driver is selected by default.
>
> You specify a driver, customize the url, set the uid, and make sure the
> Save Password checkbox is unchecked. Click Finish.
>
> Then you connect. Enter password, click OK and you get the NPE exception
> you mentioned?
>
> I've tried this multiple ways and can't reproduce it. The profile details
> wizard page shouldn't let you continue if no driver is selected.
>
> Can you provide more detailed steps on how to reproduce this issue?
>
> Thanks.
> --Brian Fitzpatrick
>
>
> "Haris Peco" <snpe@snpe.co.yu> wrote in message
> news:f18sb8$6m2$1@build.eclipse.org...
>> Done.
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=185025
>>
>> Peco
>> Brian Fitzpatrick wrote:
>>
>>> Peco, could you please enter a BZ entry for this and we'll try and get
>>> it fixed?
>>> --Brian Fitzpatrick
>>> Sybase, Inc.
>>> Senior Software Engineer/DTP Committer
>>>
>>> "Haris Peco" <snpe@snpe.co.yu> wrote in message
>>> news:f0rn0n$v1k$1@build.eclipse.org...
>>>> The mostly of the ProfileDetailsPropertyPage's classes don't initialize
>>>> the
>>>> mDriverInstance variable and it make troubes in some cases. For
>>>> instance,
>>>>
>>>> - make some profile (Oracle, PostgreSQL, Derby, MySQL ...) and uncheck
>>>> Save
>>>> password
>>>> - when connecting you will be prompt for password
>>>> - enter password and click ok
>>>> you will got the following exception :
>>>> java.lang.NullPointerException
>>>> at
>>>>
>>
org.eclipse.datatools.connectivity.sqm.internal.core.util.Da tabaseProviderHelper.getCatalogDatabase(DatabaseProviderHelp er.java:37)
>>>> at
>>>>
>>
org.eclipse.datatools.connectivity.sqm.internal.core.util.Da tabaseProviderHelper.setDatabase(DatabaseProviderHelper.java :46)
>>>> at
>>>>
>>
org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionInfoImpl. <init>(ConnectionInfoImpl.java:628)
>>>> at
>>>>
>>
org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionFactory.createConnection(ConnectionFactory.jav a:36)
>>>> at
>>>>
>>
org.eclipse.datatools.connectivity.sqm.core.SQMConnectionFac tory.createConnection(SQMConnectionFactory.java:45)
>>>> at
>>>>
>>
org.eclipse.datatools.connectivity.internal.ConnectionFactor yAdapterProvider.createConnection(ConnectionFactoryAdapterPr ovider.java:79)
>>>> at
>>>>
>>
org.eclipse.datatools.connectivity.internal.CreateConnection Job.run(CreateConnectionJob.java:55)
>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>>>>
>>>> It will make the profile unusable until you select a driver in driver's
>>>> combo.
>>>> The fix is simple.You need to add the following line on the end of
>>>> initControls method :
>>>>
>>>> mDriverInstance = combo.getSelectedDriverInstance();
>>>>
>>>> in the classes :
>>>> DerbyEmbeddedDBPropertyPage, HSQLDBPropertyPage,
>>>> GenericDBProfilePropertyPage and PostgreSQLProfilePropertyPage
>>>>
>>>> Regards,
>>>> Peco
>>
|
|
|
Re: Bug in the ProfileDetailsPropertyPage's classes [message #585504 is a reply to message #30194] |
Tue, 01 May 2007 17:10  |
Eclipse User |
|
|
|
Peco, could you please enter a BZ entry for this and we'll try and get it
fixed?
--Brian Fitzpatrick
Sybase, Inc.
Senior Software Engineer/DTP Committer
"Haris Peco" <snpe@snpe.co.yu> wrote in message
news:f0rn0n$v1k$1@build.eclipse.org...
> The mostly of the ProfileDetailsPropertyPage's classes don't initialize
> the
> mDriverInstance variable and it make troubes in some cases. For instance,
>
> - make some profile (Oracle, PostgreSQL, Derby, MySQL ...) and uncheck
> Save
> password
> - when connecting you will be prompt for password
> - enter password and click ok
> you will got the following exception :
> java.lang.NullPointerException
> at
> org.eclipse.datatools.connectivity.sqm.internal.core.util.Da tabaseProviderHelper.getCatalogDatabase(DatabaseProviderHelp er.java:37)
> at
> org.eclipse.datatools.connectivity.sqm.internal.core.util.Da tabaseProviderHelper.setDatabase(DatabaseProviderHelper.java :46)
> at
> org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionInfoImpl. <init>(ConnectionInfoImpl.java:628)
> at
> org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionFactory.createConnection(ConnectionFactory.jav a:36)
> at
> org.eclipse.datatools.connectivity.sqm.core.SQMConnectionFac tory.createConnection(SQMConnectionFactory.java:45)
> at
> org.eclipse.datatools.connectivity.internal.ConnectionFactor yAdapterProvider.createConnection(ConnectionFactoryAdapterPr ovider.java:79)
> at
> org.eclipse.datatools.connectivity.internal.CreateConnection Job.run(CreateConnectionJob.java:55)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>
> It will make the profile unusable until you select a driver in driver's
> combo.
> The fix is simple.You need to add the following line on the end of
> initControls method :
>
> mDriverInstance = combo.getSelectedDriverInstance();
>
> in the classes :
> DerbyEmbeddedDBPropertyPage, HSQLDBPropertyPage,
> GenericDBProfilePropertyPage and PostgreSQLProfilePropertyPage
>
> Regards,
> Peco
|
|
|
Re: Bug in the ProfileDetailsPropertyPage's classes [message #585517 is a reply to message #30340] |
Tue, 01 May 2007 22:17  |
Eclipse User |
|
|
|
Done.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=185025
Peco
Brian Fitzpatrick wrote:
> Peco, could you please enter a BZ entry for this and we'll try and get it
> fixed?
> --Brian Fitzpatrick
> Sybase, Inc.
> Senior Software Engineer/DTP Committer
>
> "Haris Peco" <snpe@snpe.co.yu> wrote in message
> news:f0rn0n$v1k$1@build.eclipse.org...
>> The mostly of the ProfileDetailsPropertyPage's classes don't initialize
>> the
>> mDriverInstance variable and it make troubes in some cases. For instance,
>>
>> - make some profile (Oracle, PostgreSQL, Derby, MySQL ...) and uncheck
>> Save
>> password
>> - when connecting you will be prompt for password
>> - enter password and click ok
>> you will got the following exception :
>> java.lang.NullPointerException
>> at
>>
org.eclipse.datatools.connectivity.sqm.internal.core.util.Da tabaseProviderHelper.getCatalogDatabase(DatabaseProviderHelp er.java:37)
>> at
>>
org.eclipse.datatools.connectivity.sqm.internal.core.util.Da tabaseProviderHelper.setDatabase(DatabaseProviderHelper.java :46)
>> at
>>
org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionInfoImpl. <init>(ConnectionInfoImpl.java:628)
>> at
>>
org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionFactory.createConnection(ConnectionFactory.jav a:36)
>> at
>>
org.eclipse.datatools.connectivity.sqm.core.SQMConnectionFac tory.createConnection(SQMConnectionFactory.java:45)
>> at
>>
org.eclipse.datatools.connectivity.internal.ConnectionFactor yAdapterProvider.createConnection(ConnectionFactoryAdapterPr ovider.java:79)
>> at
>>
org.eclipse.datatools.connectivity.internal.CreateConnection Job.run(CreateConnectionJob.java:55)
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>>
>> It will make the profile unusable until you select a driver in driver's
>> combo.
>> The fix is simple.You need to add the following line on the end of
>> initControls method :
>>
>> mDriverInstance = combo.getSelectedDriverInstance();
>>
>> in the classes :
>> DerbyEmbeddedDBPropertyPage, HSQLDBPropertyPage,
>> GenericDBProfilePropertyPage and PostgreSQLProfilePropertyPage
>>
>> Regards,
>> Peco
|
|
|
Re: Bug in the ProfileDetailsPropertyPage's classes [message #585644 is a reply to message #30376] |
Mon, 07 May 2007 18:25  |
Eclipse User |
|
|
|
Hi Peco...
Is the issue more that you're allowed to create the profile without
selecting a driver? I'm having issues recreating this locally...
So you create a new profile, let's say a SQL Model-JDBC Connection profile.
No driver is selected by default.
You specify a driver, customize the url, set the uid, and make sure the Save
Password checkbox is unchecked. Click Finish.
Then you connect. Enter password, click OK and you get the NPE exception you
mentioned?
I've tried this multiple ways and can't reproduce it. The profile details
wizard page shouldn't let you continue if no driver is selected.
Can you provide more detailed steps on how to reproduce this issue?
Thanks.
--Brian Fitzpatrick
"Haris Peco" <snpe@snpe.co.yu> wrote in message
news:f18sb8$6m2$1@build.eclipse.org...
> Done.
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=185025
>
> Peco
> Brian Fitzpatrick wrote:
>
>> Peco, could you please enter a BZ entry for this and we'll try and get it
>> fixed?
>> --Brian Fitzpatrick
>> Sybase, Inc.
>> Senior Software Engineer/DTP Committer
>>
>> "Haris Peco" <snpe@snpe.co.yu> wrote in message
>> news:f0rn0n$v1k$1@build.eclipse.org...
>>> The mostly of the ProfileDetailsPropertyPage's classes don't initialize
>>> the
>>> mDriverInstance variable and it make troubes in some cases. For
>>> instance,
>>>
>>> - make some profile (Oracle, PostgreSQL, Derby, MySQL ...) and uncheck
>>> Save
>>> password
>>> - when connecting you will be prompt for password
>>> - enter password and click ok
>>> you will got the following exception :
>>> java.lang.NullPointerException
>>> at
>>>
> org.eclipse.datatools.connectivity.sqm.internal.core.util.Da tabaseProviderHelper.getCatalogDatabase(DatabaseProviderHelp er.java:37)
>>> at
>>>
> org.eclipse.datatools.connectivity.sqm.internal.core.util.Da tabaseProviderHelper.setDatabase(DatabaseProviderHelper.java :46)
>>> at
>>>
> org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionInfoImpl. <init>(ConnectionInfoImpl.java:628)
>>> at
>>>
> org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionFactory.createConnection(ConnectionFactory.jav a:36)
>>> at
>>>
> org.eclipse.datatools.connectivity.sqm.core.SQMConnectionFac tory.createConnection(SQMConnectionFactory.java:45)
>>> at
>>>
> org.eclipse.datatools.connectivity.internal.ConnectionFactor yAdapterProvider.createConnection(ConnectionFactoryAdapterPr ovider.java:79)
>>> at
>>>
> org.eclipse.datatools.connectivity.internal.CreateConnection Job.run(CreateConnectionJob.java:55)
>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>>>
>>> It will make the profile unusable until you select a driver in driver's
>>> combo.
>>> The fix is simple.You need to add the following line on the end of
>>> initControls method :
>>>
>>> mDriverInstance = combo.getSelectedDriverInstance();
>>>
>>> in the classes :
>>> DerbyEmbeddedDBPropertyPage, HSQLDBPropertyPage,
>>> GenericDBProfilePropertyPage and PostgreSQLProfilePropertyPage
>>>
>>> Regards,
>>> Peco
>
|
|
|
Re: Bug in the ProfileDetailsPropertyPage's classes [message #585664 is a reply to message #30695] |
Mon, 07 May 2007 19:03  |
Eclipse User |
|
|
|
Hi Brian,
I have answered you to bugzilla
https://bugs.eclipse.org/bugs/show_bug.cgi?id=185025
Regards,
Peco
Brian Fitzpatrick wrote:
> Hi Peco...
>
> Is the issue more that you're allowed to create the profile without
> selecting a driver? I'm having issues recreating this locally...
>
> So you create a new profile, let's say a SQL Model-JDBC Connection
> profile. No driver is selected by default.
>
> You specify a driver, customize the url, set the uid, and make sure the
> Save Password checkbox is unchecked. Click Finish.
>
> Then you connect. Enter password, click OK and you get the NPE exception
> you mentioned?
>
> I've tried this multiple ways and can't reproduce it. The profile details
> wizard page shouldn't let you continue if no driver is selected.
>
> Can you provide more detailed steps on how to reproduce this issue?
>
> Thanks.
> --Brian Fitzpatrick
>
>
> "Haris Peco" <snpe@snpe.co.yu> wrote in message
> news:f18sb8$6m2$1@build.eclipse.org...
>> Done.
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=185025
>>
>> Peco
>> Brian Fitzpatrick wrote:
>>
>>> Peco, could you please enter a BZ entry for this and we'll try and get
>>> it fixed?
>>> --Brian Fitzpatrick
>>> Sybase, Inc.
>>> Senior Software Engineer/DTP Committer
>>>
>>> "Haris Peco" <snpe@snpe.co.yu> wrote in message
>>> news:f0rn0n$v1k$1@build.eclipse.org...
>>>> The mostly of the ProfileDetailsPropertyPage's classes don't initialize
>>>> the
>>>> mDriverInstance variable and it make troubes in some cases. For
>>>> instance,
>>>>
>>>> - make some profile (Oracle, PostgreSQL, Derby, MySQL ...) and uncheck
>>>> Save
>>>> password
>>>> - when connecting you will be prompt for password
>>>> - enter password and click ok
>>>> you will got the following exception :
>>>> java.lang.NullPointerException
>>>> at
>>>>
>>
org.eclipse.datatools.connectivity.sqm.internal.core.util.Da tabaseProviderHelper.getCatalogDatabase(DatabaseProviderHelp er.java:37)
>>>> at
>>>>
>>
org.eclipse.datatools.connectivity.sqm.internal.core.util.Da tabaseProviderHelper.setDatabase(DatabaseProviderHelper.java :46)
>>>> at
>>>>
>>
org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionInfoImpl. <init>(ConnectionInfoImpl.java:628)
>>>> at
>>>>
>>
org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionFactory.createConnection(ConnectionFactory.jav a:36)
>>>> at
>>>>
>>
org.eclipse.datatools.connectivity.sqm.core.SQMConnectionFac tory.createConnection(SQMConnectionFactory.java:45)
>>>> at
>>>>
>>
org.eclipse.datatools.connectivity.internal.ConnectionFactor yAdapterProvider.createConnection(ConnectionFactoryAdapterPr ovider.java:79)
>>>> at
>>>>
>>
org.eclipse.datatools.connectivity.internal.CreateConnection Job.run(CreateConnectionJob.java:55)
>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>>>>
>>>> It will make the profile unusable until you select a driver in driver's
>>>> combo.
>>>> The fix is simple.You need to add the following line on the end of
>>>> initControls method :
>>>>
>>>> mDriverInstance = combo.getSelectedDriverInstance();
>>>>
>>>> in the classes :
>>>> DerbyEmbeddedDBPropertyPage, HSQLDBPropertyPage,
>>>> GenericDBProfilePropertyPage and PostgreSQLProfilePropertyPage
>>>>
>>>> Regards,
>>>> Peco
>>
|
|
|
Goto Forum:
Current Time: Sat Aug 02 14:41:10 EDT 2025
Powered by FUDForum. Page generated in 0.33991 seconds
|