Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

All extremists should be taken out and shot.


devel / comp.lang.smalltalk.dolphin / Re: ReStore

SubjectAuthor
o Re: ReStoreMark Davis

1
Re: ReStore

<e3457e55-cdac-4c15-8480-6fa96cae3147n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=240&group=comp.lang.smalltalk.dolphin#240

  copy link   Newsgroups: comp.lang.smalltalk.dolphin
X-Received: by 2002:a05:620a:4895:b0:6ff:c8a2:528f with SMTP id ea21-20020a05620a489500b006ffc8a2528fmr1704115qkb.375.1672809286619;
Tue, 03 Jan 2023 21:14:46 -0800 (PST)
X-Received: by 2002:a81:1ac5:0:b0:462:b821:f3b7 with SMTP id
a188-20020a811ac5000000b00462b821f3b7mr4860678ywa.428.1672809286376; Tue, 03
Jan 2023 21:14:46 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.smalltalk.dolphin
Date: Tue, 3 Jan 2023 21:14:46 -0800 (PST)
In-Reply-To: <75b1cdc9-b70f-479d-94a4-6b4fa7e9665fn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:fb90:cb01:d018:84d5:ef11:2cb9:b0b0;
posting-account=HA6oKwoAAADVTIFz3u2FnabABBWVYghx
NNTP-Posting-Host: 2607:fb90:cb01:d018:84d5:ef11:2cb9:b0b0
References: <5bdd8ee9-8bdc-4a5f-886f-c40ff2b84acan@googlegroups.com>
<20e15838-f5ef-4fc3-949c-2f76028f04fan@googlegroups.com> <86328289-4a59-4d3a-a11a-0807c6cc8ccen@googlegroups.com>
<515717bb-2369-41db-84a2-9d4297d8950an@googlegroups.com> <267e5455-0a69-4027-a3b3-00359cf73430n@googlegroups.com>
<75b1cdc9-b70f-479d-94a4-6b4fa7e9665fn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e3457e55-cdac-4c15-8480-6fa96cae3147n@googlegroups.com>
Subject: Re: ReStore
From: charybdis667@gmail.com (Mark Davis)
Injection-Date: Wed, 04 Jan 2023 05:14:46 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 9079
 by: Mark Davis - Wed, 4 Jan 2023 05:14 UTC

On Tuesday, January 3, 2023 at 1:47:59 AM UTC-7, john.a...@gmail.com wrote:
> Hi - the error log would indicate the method SSWReStore class>>onStartup is missing from the deployed image. I'm not sure why this would be the case as it's defined in the SSW ReStore Main package which would suggest a prerequisite issue.
>
> When you install your application in a fresh image are you manually installing ReStore, or do you just select your application's main package and ReStore loads automatically via prerequisite links?
>
> Thanks for the kind words on ReStore!
>
> John
> On Saturday, December 31, 2022 at 11:13:12 AM UTC, charyb...@gmail.com wrote:
> > On Friday, December 23, 2022 at 4:25:36 AM UTC-7, john.a...@gmail.com wrote:
> > > The prerequisite of SSW ReStore for Dolphin doesn't need to be at the top level, it just needs to be somewhere in the prerequisite tree. You can check this by expanding the tree in the Prerequisites tab of the Package Manager when your root package is selected.
> > >
> > > To add a manual prerequisite to a package, inspect the package by selecting "Properties" from the context menu, double-click on the manualPrerequisites aspect in the resulting inspector and click the + button.
> > >
> > > I just noticed you gave your initialization code as:
> > > > ReStore
> > > > dsn: (self databaseName);
> > > > uid: (self userId);
> > > > pwd: (self password).
> > > Do you also send "ReStore connect" ?
> > >
> > > Hope this helps.
> > > On Thursday, December 22, 2022 at 11:28:57 AM UTC, charyb...@gmail.com wrote:
> > > > On Thursday, December 22, 2022 at 2:12:56 AM UTC-7, john.a...@gmail..com wrote:
> > > > > Hi,
> > > > >
> > > > > The first thing to check is that you have the SSW ReStore for Dolphin package as a prerequisite of your deployment package. You may need to add this as a manual prerequisite.
> > > > >
> > > > > If this doesn't help please reply with any specific error messages you're seeing. Also let me know which database you're using (SQLite, MySQL etc.).
> > > > >
> > > > > Cheers.
> > > > >
> > > > > John Aspinall
> > > > > On Thursday, December 22, 2022 at 8:52:26 AM UTC, charyb...@gmail..com wrote:
> > > > > > Hi,
> > > > > >
> > > > > > Using ReStore for an application and it works fine during development. When I create a runtime executable, the app doesn't connect. Can't figure out what I'm doing wrong as initialization code runs during app start up. For example,
> > > > > >
> > > > > > ReStore
> > > > > > dsn: (self databaseName);
> > > > > > uid: (self userId);
> > > > > > pwd: (self password).
> > > > > >
> > > > > > Is there something I'm doing wrong here or something I missed?
> > > > > >
> > > > > > Thanks
> > > > Mark Davis's profile photo
> > > > Mark Davis
> > > > 4:24 AM (now)
> > > > to
> > > > On Thursday, December 22, 2022 at 2:12:56 AM UTC-7, john.a...@gmail..com wrote:
> > > > > Hi,
> > > > >
> > > > > The first thing to check is that you have the SSW ReStore for Dolphin package as a prerequisite of your deployment package. You may need to add this as a manual prerequisite.
> > > > >
> > > > > If this doesn't help please reply with any specific error messages you're seeing. Also let me know which database you're using (SQLite, MySQL etc.).
> > > > >
> > > > > Cheers.
> > > > >
> > > > Hi John,
> > > >
> > > > I'm using MySQL and the image is 7.1.24 under Windows. The package I'm deploying from is Swazoo 2.2. It has no pre-req for ReStore but the package that needs to access the database does have a prereq for SSWRestore for Dolphin. Maybe I should add a reference to ReStore at the web level (swazoo) since it is the root package?
> > > >
> > > > The error occurs when retrieving an object from the database:
> > > >
> > > > allUsers := (self userClass) storedInstances.
> > > >
> > > > Where userClass is returns the name of the class for users. In class Object>>storedInstances just returns the tables with SSWReStore default. I'll double check the exe manifest again to make sure the for omissions after stripping the image.
> > > >
> > > > I put in a runtime debug methods that writes out a file...
> > > > ReStore isConnected ifFalse: [ ^self writeLogFile: 'ReStore Not Connected To Database']. So, I know there's no connection. Has to be something silly occuring here. Stumped right now but, how would I manually add a package reference manually?
> > > >
> > > > Thanks
> > ReStore is properly initialized during startup with ReStore connect. All works fine in the development environment. I setup a new image (7.1.24) loaded my packages and still get the same error at runtime. Output from runtime error file shows:
> > :
> > {026706D4: cf 026706B1, sp 026706E8, bp 026706CC, ip 12, MessageNotUnderstood class>>receiver:message:}
> > receiver: MessageNotUnderstood
> > arg[0]: SSWReStore
> > arg[1]: Message selector: onStartup arguments: 0296B8A0
> >
> > {026706B0: cf 02670691, sp 026706C4, bp 026706AC, ip 4, SSWReStore class(Object)>>doesNotUnderstand:}
> > receiver: SSWReStore
> > arg[0]: Message selector: onStartup arguments: 0296B8A0
> >
> > {02670690: cf 0267066D, sp 026706A4, bp 02670688, ip 13, EventMessageSend>>forwardTo:withArguments:}
> > receiver: a EventMessageSend
> > arg[0]: SSWReStore
> > arg[1]: a Array
> > :
> >
> > Still investigating as ReStore is a well designed/documented framework, so I must have some error taking place that prevents my Swazoo Resource from reaching my domain instance which utilizes ReStore. Thanks for your assistance in this matter.
> >
> > Cheers

Hi John,

I load packages manually. Out of my packages, only on requires ReStore as a prerequisite. ReStore package is loaded automatically based on a reference to ReStore. Maybe I should load ReStore prior to loading my packages? On another note, I added debug code that writes out events to a log file when a request take place. The point of failure is when the object broker attempts to run a query.

ObjectBroker>>getUsers: aSearchRequest
| allUsers aUser |
self writeLogFile: 'Reached Object Broker Layer, Loading Customer from Database...' .
allUsers := [ self userClass storedInstances ] on: Error do: [:error | self writeLogFile: 'Error Loading Users from Database' ].
allUsers isNil
ifTrue: [
self writeLogFile: 'Failed to load Users from Database'.
^nil ]
ifFalse: [ self writeLogFile: 'Object Broker Successfully Loaded SSWDBInstancesCollection from Database' ].
aUser := [ allUsers detect: [:each | each userName = (aSearchRequest at: 'userName') ] ] on: Error do: [:error | self writeLogFile: 'Error Querying Collection' ].
^aUser

The detect: is where the error occurs based on my output file. allUsers is the SSWDBInstancesCollection which is in the SSW ReStore Querying package and in the deployed image. Only thing I can think of at this point is that I have a database version issue. I'm running MySQL 5.7 and the Connector ODBC is 8.0. Should I be using a different version of MySQL used/tested with ReStore?

Thanks

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor