[Glass] SIXX load conflict

Dale Henrichs via Glass glass at lists.gemtalksystems.com
Thu Mar 5 10:22:44 PST 2015


Dario,

I used my 3.1.0.6 tODE stone, loaded SIXX:

   GsDeployer
     bulkMigrate: [
       Metacello new
         baseline: 'SIXX';
         repository: 'github://glassdb/SIXX:master/repository';
         load ].

and then ran the example:

   SixxExamples example2

and it worked just fine ...

Here's the list of packages that are loaded in my stone, if you could 
supply the list of packages loaded in your stone, we might be able to 
get to the bottom of this:

Announcements (Announcements.v3-dkh.18)
AST-Core (AST-Core-dkh.102)
Base-Bootstrap (Base-Bootstrap.v3-dkh.30)
BaselineOfFileTree (BaselineOfFileTree-dkh.4)
BaselineOfGLASS1 (BaselineOfGLASS1-jupiter.46)
BaselineOfGrease (BaselineOfGrease-JohanBrichau.7)
BaselineOfMetacello (BaselineOfMetacello-dkh.85)
BaselineOfRB (BaselineOfRB-dkh.5)
BaselineOfSIXX (BaselineOfSIXX-dkh.1)
BaselineOfSton (BaselineOfSton-dkh.1)
BaselineOfTode (BaselineOfTode-dkh.41)
Bootstrap (Bootstrap.v3-dkh.241)
Change-Notification (Change-Notification.v310-dkh.21)
Collections-BitmapCharacterSet (Collections-BitmapCharacterSet-JAAyer.1)
Collections-CharacterSet (Collections-CharacterSet-JohanBrichau.1)
Collections-OrderPreservingDictionary 
(Collections-OrderPreservingDictionary.g-JohanBrichau.9)
ConfigurationOfFileTree (ConfigurationOfFileTree-dkh.36)
ConfigurationOfGLASS (ConfigurationOfGLASS-dkh.250)
ConfigurationOfGofer (ConfigurationOfGofer-dkh.45)
ConfigurationOfGoferProjectLoader (ConfigurationOfGoferProjectLoader-dkh.22)
ConfigurationOfGrease (ConfigurationOfGrease-dkh.189)
ConfigurationOfGsCore (ConfigurationOfGsCore-dkh.297)
ConfigurationOfGsMisc (ConfigurationOfGsMisc-dkh.116)
ConfigurationOfGsMonticello (ConfigurationOfGsMonticello-dkh.173)
ConfigurationOfGsOB (ConfigurationOfGsOB-dkh.91)
ConfigurationOfGsSqueakCommon (ConfigurationOfGsSqueakCommon-dkh.25)
ConfigurationOfMetacello (ConfigurationOfMetacello-dkh.800)
ConfigurationOfMetacelloPreview (ConfigurationOfMetacelloPreview-dkh.54)
ConfigurationOfXMLSupport (ConfigurationOfXMLSupport-NorbertHartl.64)
ConfigurationOfXMLWriter (ConfigurationOfXMLWriter-dkh.23)
Core (Core.v3-dkh.90)
Core31x (Core31x-dkh.5)
GemStone-ANSI-Streams (GemStone-ANSI-Streams-dkh.12)
GemStone-Compression (GemStone-Compression-dkh.7)
GemStone-Deployment (GemStone-Deployment.v310-dkh.26)
GemStone-Indexing-Extensions (GemStone-Indexing-Extensions-dkh.4)
GemStone-Interactions (GemStone-Interactions-dkh.12)
GemStone-Release-Support (GemStone-Release-Support-dkh.67)
* Generated ()
Gofer-Core (Gofer-Core.gemstone-dkh.138)
GoferProjectLoader (GoferProjectLoader-DaleHenrichs.25)
Grease-Core (Grease-Core-JohanBrichau.94)
Grease-GemStone-Core (Grease-GemStone-Core-JohanBrichau.55)
Grease-GemStone300-Core (Grease-GemStone300-Core-JohanBrichau.5)
GsSqueakCommon-Core (GsSqueakCommon-Core-dkh.20)
GsSqueakCommon-Core.3x (GsSqueakCommon-Core.3x-dkh.4)
GsSqueakCommon-CoreV30 (GsSqueakCommon-CoreV30-dkh.1)
GsSqueakCommon-Tests (GsSqueakCommon-Tests-dkh.2)
GsUpgrader-Core (GsUpgrader-Core-dkh.38)
JadeServer (JadeServer-dkh.13)
Metacello-Base (Metacello-Base-topa.124)
Metacello-Bitbucket (Metacello-Bitbucket-dkh.5)
Metacello-Core (Metacello-Core-dkh.809)
Metacello-FileTree (Metacello-FileTree-dkh.36)
Metacello-GitBasedRepository (Metacello-GitBasedRepository-dkh.13)
Metacello-GitHub (Metacello-GitHub-dkh.44)
Metacello-GS3x-Platform (Metacello-GS3x-Platform-dkh.1)
Metacello-MC (Metacello-MC-dkh.726)
Metacello-Platform (Metacello-Platform.gemstone-dkh.56)
Metacello-ToolBox (Metacello-ToolBox-dkh.139)
Monticello (Monticello.v3-dkh.476)
MonticelloFileTree-Core (MonticelloFileTree-Core-dkh.183)
MonticelloFileTree-FileDirectory-Utilities 
(MonticelloFileTree-FileDirectory-Utilities-dkh.15)
MonticelloGs (MonticelloGs-dkh.2)
OB-GemStone-Platform (OB-GemStone-Platform-dkh.76)
OB-Metacello (OB-Metacello-dkh.83)
OB-Monticello (OB-Monticello-dkh.105)
OB-Standard (OB-Standard.v3-dkh.449)
OB-SUnitGUI (OB-SUnitGUI.g-dkh.61)
OB-SUnitIntegration (OB-SUnitIntegration-dkh.10)
OB-SymbolListBrowser (OB-SymbolListBrowser-DaleHenrichs.4)
OB-Tools (OB-Tools.v3-dkh.140)
OmniBrowser (OmniBrowser-DaleHenrichs.447)
PackageInfo-Base (PackageInfo-Base.g-dkh.36)
Regex-Core (Regex-Core-DaleHenrichs.3)
Regex-Tests-Core (Regex-Tests-Core-DaleHenrichs.5)
SIXX (SIXX.310-dkh.183)
SMTPMail (SMTPMail-dkh.11)
Sport (Sport3.010.v3-jupiter.33)
* Squeak (Squeak.v3-dkh.309)
* STON-Core (STON-Core-dkh.46)
System-Digital-Signatures (System-Digital-Signatures-dkh.5)
Tode-AST-Extensions (Tode-AST-Extensions-dkh.2)
Tode-BatchEdit-Tool (Tode-BatchEdit-Tool-dkh.3)
Tode-GemStone-Server-Core (Tode-GemStone-Server-Core-dkh.118)
Tode-GemStone-Server-Tests (Tode-GemStone-Server-Tests-dkh.5)
Tode-Server-31x-GsProcess-Patch (Tode-Server-31x-GsProcess-Patch-dkh.1)
Tode-Server-TestTestTools (Tode-Server-TestTestTools-dkh.2)
Topez-Common-Core (Topez-Common-Core-dkh.414)
Topez-Common-Tests (Topez-Common-Tests-dkh.22)
Topez-Server-31x-Core (Topez-Server-31x-Core-dkh.5)
Topez-Server-31x-DebugTools (Topez-Server-31x-DebugTools-dkh.19)
Topez-Server-31x-Tests (Topez-Server-31x-Tests-dkh.3)
Topez-Server-3x-Core (Topez-Server-3x-Core-dkh.2)
Topez-Server-3x-DebugTools (Topez-Server-3x-DebugTools-dkh.2)
Topez-Server-Core (Topez-Server-Core-dkh.89)
Topez-Server-DebugTools (Topez-Server-DebugTools-dkh.151)
Topez-Server-ProcessTools (Topez-Server-ProcessTools-dkh.25)
Topez-Server-TestDebugTools (Topez-Server-TestDebugTools-dkh.19)
Topez-Server-Tests (Topez-Server-Tests-dkh.151)
Topez-Server-TestTools (Topez-Server-TestTools-dkh.54)
Utf8Encoding (Utf8Encoding.310-dkh.32)
XML-Observable (XML-Observable-JohanBrichau.1)
XML-Parser (XML-Parser.g-JohanBrichau.116)
XML-Writer (XML-Writer-JAAyer.5)

Dale

On 03/05/2015 03:22 AM, Dario Trussardi via Glass wrote:
> Ciao,
>
> i nedd to load SIXX support into   GLASS 3.1.0.6   ( stone created 
> with development kit createTodeStone command ).
>
>> Mariano is correct that `onLock: [:ex | ex honor];` will eliminate 
>> the Warning, but I am suspicious that you are not running a recent 
>> version of GLASS.
>>
>> You are getting a Warning during a topaz load (I assume ... in 
>> GemTools you would get a Warning dialog). There was a bug[1], where 
>> the wrong default action for a Warning was triggered during 
>> non-interactive loads and the bug was fixed back in June.
>>
>> So I think you should upgrade GLASS1:
>>
>
> i follow this :
>
>>   Gofer new
>>     package: 'GsUpgrader-Core';
>>     url: 'http://ss3.gemtalksystems.com/ss/gsUpgrader';
>>     load.
>>   (Smalltalk at: #GsUpgrader) upgradeGLASS1.
>
> but into Gemtools and into topaz this code answer :
>
> ERROR 4067 , VM temporary object memory is full
> , almost out of memory, too many markSweeps since last successful 
> scavenge
>
> I setup  the relative to:
> SHR_PAGE_CACHE_SIZE_KB = 2000000;
> GEM_TEMPOBJ_CACHE_SIZE = 1900000;
>
>>
>> Finally, when loading from within topaz, you should always use 
>> GsDeployer class>>bulkMigrate::
>>
>
> I load this in any case:
>
>> GsDeployer bulkMigrate: [
>>   Metacello new
>>       baseline: 'SIXX';
>>       repository: 'github://glassdb/SIXX:master/repository' 
>> <github://glassdb/SIXX:master/repository%27>;
>>       load ].
>
> after when i do the code: SixxExamples example2
>
> the system answer :
>
> parseXml: xmlStringOrStream persistentRoot: persistentArrayOrNil
> | stream |
> stream := xmlStringOrStream isStream
> ifTrue: [xmlStringOrStream]
> ifFalse: [ReadStream on: xmlStringOrStream].
> ^ (XMLDOMParser parseDocumentFrom: stream persistentRoot: 
> persistentArrayOrNil) topElement
>
> Object _doesNotUnderstand:   parseDocumentFrom: persistentRoot:
>
> Some considerations ?
>
> Thanks,
>
> Dario
>
>>
>> GsDeployer class>>bulkMigrate: wraps your code with an autoCommit 
>> handler, a Warning handler, and instance migrations are deferred 
>> until all of the loading is complete and then migrations are done 
>> with one pass of the db...
>>
>> Actually, it is not a bad idea to always use GsDeployer whether or 
>> not you are loading in topaz:)
>>
>> Dale
>>
>> [1] https://github.com/GsDevKit/GsDevKit/issues/21
>> On 12/18/2014 04:24 AM, Mariano Martinez Peck via Glass wrote:
>>>
>>> On Thu, Dec 18, 2014 at 8:10 AM, Dario Trussardi via Glass 
>>> <glass at lists.gemtalksystems.com 
>>> <mailto:glass at lists.gemtalksystems.com>> wrote:
>>>
>>>     I load SIXX support into GLASS 3.1.0.6 with the command:
>>>
>>>     Metacello new
>>>         baseline: 'SIXX';
>>>         repository: 'github://glassdb/SIXX:master/repository'
>>>     <github://glassdb/SIXX:master/repository%27>;
>>>         load.
>>>
>>>     The system answer :
>>>
>>>     a Halt occurred (error 2709), Debugging: Warning: LOCK ENFORCED:
>>>     Attempt to 'load with conflicts' new project:
>>>     'ConfigurationOfGrease 1.0.3 from
>>>     http://www.squeaksource.com/MetacelloRepository' when existing
>>>     project: 'BaselineOfGrease [baseline] from
>>>     github://GsDevKit/Grease:master/repository'
>>>     <github://GsDevKit/Grease:master/repository%27> is locked. New
>>>     project not loaded. Use #onLock: to intercept. - 
>>>     G/S[Scandella3106:2]
>>>
>>>
>>> I think I had the same issues.
>>>
>>> The most robust way I found to load code is the following. For your 
>>> concrete problem, I think the key line is " onLock: [:ex | ex 
>>> honor];"  but maybe you want to adapt all that code:
>>>
>>> [ [ [ [
>>>
>>>
>>> Metacello image
>>>         configuration: 'XXX';
>>>         version: YYY;
>>> onLock: [:ex | ex honor];
>>>         load: #(ZZZ).
>>>
>>> ]
>>>    on: MetacelloAllowConflictingProjectUpgrade
>>>    do: [ :ex | ex defaultAction ] ]
>>>    on: MetacelloAllowLockedProjectChange
>>>    do: [ :ex | ex disallow ] ]
>>>    on: MetacelloNameNotDefinedError
>>>    do: [ :ex | ex resume ]]
>>>    on: Warning
>>> do: [ :ex | ex resume ].
>>>
>>> The only discussion here is to resume upon all warning. This may not 
>>> be good for all cases. Sometimes the warnings are important.
>>> I think I will remove that from mine....
>>>
>>> Best,
>>>
>>>
>>>     I do some       proced  commands.
>>>
>>>     At he end the system answer:
>>>
>>>             linear load :
>>>             linear load : baseline [BaselineOfSIXX]
>>>                     linear load : 1.1.8 [ConfigurationOfXMLSupport]
>>>                             linear load : baseline [BaselineOfGrease]
>>>                                     atomic load : 0.243
>>>     [ConfigurationOfGsMisc]
>>>                                             linear load : 1.1.8
>>>     [ConfigurationOfXMLSupport]
>>>                     load : SIXX.310-dkh.183
>>>
>>>
>>>     I can consider correct the loading?
>>>
>>>
>>>     Thanks,
>>>
>>>                     Dario
>>>
>>>     P.S. The GLASS 3.1.06 is create with development kit   
>>>     createTodeStone   command
>>>     _______________________________________________
>>>     Glass mailing list
>>>     Glass at lists.gemtalksystems.com
>>>     <mailto:Glass at lists.gemtalksystems.com>
>>>     http://lists.gemtalksystems.com/mailman/listinfo/glass
>>>
>>>
>>>
>>> -- 
>>> Mariano
>>> http://marianopeck.wordpress.com <http://marianopeck.wordpress.com/>
>>>
>>>
>>> _______________________________________________
>>> Glass mailing list
>>> Glass at lists.gemtalksystems.com
>>> http://lists.gemtalksystems.com/mailman/listinfo/glass
>>
>> _______________________________________________
>> Glass mailing list
>> Glass at lists.gemtalksystems.com <mailto:Glass at lists.gemtalksystems.com>
>> http://lists.gemtalksystems.com/mailman/listinfo/glass
>
>
>
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20150305/df5a24c7/attachment-0001.html>


More information about the Glass mailing list