[vwnc] Problem to log in using StoreGlorp

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] Problem to log in using StoreGlorp

Andres Fortier-2
Hi list,
            I started to try to use StoreGlorp, but failed pretty
quickly. I'm trying to log in by doing:

doLogIn

                | logIn |

                logIn:=self defaultLogin. "Answers a glorp log in"
                self session accessor: (DatabaseAccessor forLogin: logIn).
                self session system: (StoreDescriptorSystem forPlatform: logIn
database).
                self session login.

however when I execute this code I get the following exception:

PostgreSQLEXDIConnection does not understand #setLogin:

Some additional information:
- I'm using VW 7.6 and have loaded the StoreGlorp packages from the
repository.
- The StoreGlorp replication tool works ok.
- The RepositoryCrawler throws the same exception.

So, any hints would be much appreciated!

Thanks in advance,
                                Andrés
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Problem to log in using StoreGlorp

Alan Knight-2
Yes, that's a 7.7 dependency in there - we really ought to find a way to work around its presence/absence. If you implement setLogin: as

ExternalDatabaseConnection>>setLogin: aLogin

        self
                 environment: aLogin connectString;
                 username: aLogin username;
                 password: aLogin password

you should be ok. Note that an easy way to get a StoreGlorp login is
  StoreLoginFactory currentStoreSession
That will give you a session set up for the Store database the image is connected to, and sharing its connection.

At 03:18 PM 10/24/2008, Andres Fortier wrote:
Hi list,
            I started to try to use StoreGlorp, but failed pretty
quickly. I'm trying to log in by doing:

doLogIn

                 | logIn |

                 logIn:=self defaultLogin. "Answers a glorp log in"
                 self session accessor: (DatabaseAccessor forLogin: logIn).
                 self session system: (StoreDescriptorSystem forPlatform: logIn
database).
                 self session login.

however when I execute this code I get the following exception:

PostgreSQLEXDIConnection does not understand #setLogin:

Some additional information:
- I'm using VW 7.6 and have loaded the StoreGlorp packages from the
repository.
- The StoreGlorp replication tool works ok.
- The RepositoryCrawler throws the same exception.

So, any hints would be much appreciated!

Thanks in advance,
                                Andrés
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

--
Alan Knight [|], Engineering Manager, Cincom Smalltalk

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Problem to log in using StoreGlorp

Andres Fortier-2
In reply to this post by Andres Fortier-2
Thank you very much Alan!

Best regards,
                       Andrés

Alan Knight escribió:

> Yes, that's a 7.7 dependency in there - we really ought to find a way to work around its presence/absence. If you implement setLogin: as
>
> ExternalDatabaseConnection>>setLogin: aLogin
>
>         self
>                 environment: aLogin connectString;
>                 username: aLogin username;
>                 password: aLogin password
>
> you should be ok. Note that an easy way to get a StoreGlorp login is
>   StoreLoginFactory currentStoreSession
> That will give you a session set up for the Store database the image is connected to, and sharing its connection.
>
> At 03:18 PM 10/24/2008, Andres Fortier wrote:
>> Hi list,
>>            I started to try to use StoreGlorp, but failed pretty
>> quickly. I'm trying to log in by doing:
>>
>> doLogIn
>>
>>                | logIn |
>>
>>                logIn:=self defaultLogin. "Answers a glorp log in"
>>                self session accessor: (DatabaseAccessor forLogin: logIn).
>>                self session system: (StoreDescriptorSystem forPlatform: logIn
>> database).
>>                self session login.
>>
>> however when I execute this code I get the following exception:
>>
>> PostgreSQLEXDIConnection does not understand #setLogin:
>>
>> Some additional information:
>> - I'm using VW 7.6 and have loaded the StoreGlorp packages from the
>> repository.
>> - The StoreGlorp replication tool works ok.
>> - The RepositoryCrawler throws the same exception.
>>
>> So, any hints would be much appreciated!
>>
>> Thanks in advance,
>>                                Andrés
>> _______________________________________________
>> vwnc mailing list
>> [hidden email]
>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>
> --
> Alan Knight [|], Engineering Manager, Cincom Smalltalk
> [hidden email]
> [hidden email]
> http://www.cincom.com/smalltalk
>
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc