[Glass] GemTools Debug error: MessageNotUnderstood: ByteArray>>gsSubStrings2:

Dale Henrichs via Glass glass at lists.gemtalksystems.com
Tue Apr 21 10:00:34 PDT 2015


Dario,

Somehow you must have lost the String>>gsSubStrins2: method in your 
GemTools client. Here is the implementation from my GemTools 
1.0-beta.8.7 (launched from a GemTools-1.0-beta.8.7-3101x.app download):

gsSubStrings2: aCharacter
   "Returns an Array of CharacterCollections in which each element 
represents a
    substring separated by aCharacter.  The result will include empty 
substrings when
    two adjacent separators exist, as well as if a separator is the 
first or last element."

     | result startIndex endIndex int mySize |
     result := OrderedCollection new.
     startIndex := 1.
     int := aCharacter asciiValue.
     mySize := self size.

     [endIndex := self class indexOfAscii: int inString: self 
startingAt: startIndex.
     endIndex == 0]
         whileFalse: [
             (endIndex == startIndex)
                 ifTrue: [result add: self species new].
             (endIndex > startIndex)
                 ifTrue: [result add: (self copyFrom: startIndex to: 
endIndex - 1)].
             startIndex := endIndex + 1].

     (startIndex > mySize)
         ifFalse:[ result add: (self copyFrom: startIndex to: mySize)].
     ^ result

You might want to take a look at the modified packages in the Monticello 
browser on the GemTools image and see if there is any other "damage" to 
packages ... in my image only the System-Clipboard package is dirty ... 
You might look at the diffs if there are any and revert the GemTools 
packages ...

Dale

On 04/21/2015 07:36 AM, Dario Trussardi via Glass wrote:
> Hi,
>
> i have i deployment GLASS 3.1.0.6 system and i have a problem when
>
> i work with GemTools Launcher - >=1.0-beta.8.7 
> [ConfigurationOfGemTools]   Debug menu options.
>
> In this case when i click on Debug menu option the system answer a 
> debug with title set to:  MessageNotUnderstood: ByteArray>>gsSubStrings2:
>
> the relative method is:  (  the **** mark the call )
>
>     execute
>
>     | labels values logEntries ans |
>
>     (self session executeStringNB: 'System needsCommit')
>
>     ifTrue: [ (self confirm: 'About to abortTransaction. Okay?') ~~
>     true ifTrue: [ ^self ]].
>
>     labels := OrderedCollection new.
>
>     values := OrderedCollection new.
>
>     labels add: 'Remove Continuations from Object Log'.
>
>     values add: #removeContinuations.
>
>     labels add: 'Clear Object Log'.
>
>     values add: #emptyObjectLog.
>
>     logEntries := self session jadeServer continuationsFromObjectLog.
>
>         ****** logEntries := logEntries gsSubStrings2: Character tab.
>
>     1 to: logEntries size by: 2 do: [:i |
>
>     labels add: (logEntries at: i).
>
>     values add: (logEntries at: i + 1)].
>
>     ans := OBChoiceRequest
>
>     prompt: 'Remote Debugging...'
>
>     labels: labels
>
>     values: values
>
>     lines: #(2).
>
>     ans == nil ifTrue: [ ^self ].
>
>     ans isSymbol ifTrue: [ ^self perform: ans ].
>
>     self session executeStringNB: 'OTRemoteDebugger debugContinuation:
>     (Object _objectForOop: ', ans, ' asNumber)'
>
>     The logEntries is aByteArray with size of 11500
>
>     #[97 0 32 0 77 0 101 0 115 0 115 0 97 0 103 0 101 0 78 0 111 0 116
>     0 85 0 110 0 100 0 101 0 114 0 115 0 116 0 111 0 111 0 100 0 32 0
>     111 0 99 0 99 0 117 0 114 0 114 0 101 0 100 0 32 0 40 0 101 0 114
>     0 114 0 111 0 114 0 32 0 50 0 48 0 49 0 48 0 41 0 44 0 32 0 97 0
>     32 0 77 0 65 0 79 0 110 0 101 0 84 0 111 0 77 0 97 0 110 0 121 0
>     67 0 111 0 109 0 112 0 111 0 110 0 101 0 110 0 116 0 32 0 100 0
>     111 0 101 0 115 0 32 0 110 0 111 0 116 0 32 0 117 0 110 0 100 0
>     101 0 114 0 115 0 116 0 97 0 110 0 100 0 32 0 32 0 35 0 39 0 100 0
>     101 0 115 0 99 0 114 0 105 0 112 0 116 0 105 0 111 0 110 0 39 0 9
>     0 49 0 51 0 57 0 54 0 54 0 54 0 53 0 51 0 52 0 53 0 9 0 97 0 32 0
>     77 0 101 0 115 0 115 0 97 0 103 0 101 0 78 0 111 0 116 0 85 0 110
>     0 100 0 101 0 114 0 115 0 116 0 111 0 111 0 100 0 32 0 111 0 99 0
>     99 0 117 0 114 0 114 0 101 0 100 0 32 0 40 0 101 0 114 0 114 0 111
>     0 114 0 32 0 50 0 48 0 49 0 48 0 41 0 44 0 32 0 97 0 32 0 67 0 104
>     0 97 0 114 0 97 0 99 0 116 0 101 0 114 0 32 0 100 0 111 0 101 0
>     115 0 32 0 110 0 111 0 116 0 32 0 117 0 110 0 100 0 101 0 114 0
>     115 0 116 0 97 0 110 0 100 0 32 0 32 0 35 0 39 0 97 0 115 0 85 0
>     110 0 105 0 99 0 111 0 100 0 101 0 83 0 116 0 114 0 105 0 110 0
>     103 0 39 0 9 0 50 0 50 0 51 0 57 0 54 0 51 0 50 0 56 0 57 0 55 0 9
>     0 97 0 32 0 77 0 101 0 115 0 115 0 97 0 103 0 101 0 78 0 111 0 116
>     0 85 0 110 0 100 0 101 0 114 0 115 0 116 0 111 0 111 0 100 0 32 0
>     111 0 99 0 99 0 117 0 114 0 114 0 101 0 100 0 32 0 40 0 101 0 114
>     0 114 0 111 0 114 0 32 0 50 0 48 0 49 0 48 0 41 0 44 0 32 0 97 0
>     32 0 67 0 104 0 97 0 114 0 97 0 99 0 116 0 101 0 114 0 32 0 100 0
>     111 0 101 0 115 0 32 0 110 0 111 0 116 0 32 0 117 0 110 0 100 0
>     101 0 114 0 115 0 116 0 97 0 110 0 100 0 32 0 32 0 35 0 39 0 97 0
>     115 0 85 0 110 0 105 0 99 0 111 0 100 0 101 0 83 0 116 0 114 0 105
>     0 110 0 103 0 39 0 9 0 50 0 50 0 51 0 53 0 56 0 57 0 54 0 53 0 55
>     0 55 0 9 0 97 0 32 0 77 0 101 0 115 0 115 0 97 0 103 0 101 0 78 0
>     111 0 116 0 85 0 110 0 100 0 101 0 114 0 115 0 116 0 111 0 111 0
>     100 0 32 0 111 0 99 0 99 0 117 0 114 0 114 0 101 0 100 0 32 0 40 0
>     101 0 114 0 114 0 111 0 114 0 32 0 50 0 48 0 49 0 48 0 41 0 44 0
>     32 0 97 0 32 0 67 0 104 0 97 0 114 0 97 0 99 0 116 0 101 0 114 0
>     32 0 100 0 111 0 101 0 115 0 32 0 110 0 111 0 116 0 32 0 117 0 110
>     0 100 0 101 0 114 0 115 0 116 0 97 0 110 0 100 0 32 0 32 0 35 0 39
>     0 97 0 115 0 85 0 110 0 105 0 99 0 111 0 100 0 101 0 83 0 116 0
>     114 0 105 0 110 0 103 0 39 0 9 0 50 0 50 0 51 0 56 0 53 0 55 0 56
>     0 49 0 55 0 55 0 9 0 97 0 32 0 77 0 101 0 115 0 115 0 97 0 103 0
>     101 0 78 0 111 0 116 0 85 0 110 0 100 0 101 0 114 0 115 0 116 0
>     111 0 111 0 100 0 32 0 111 0 99 0 99 0 117 0 114 0 114 0 101 0 100
>     0 32 0 40 0 101 0 114 0 114 0 111 0 114 0 32 0 50 0 48 0 49 0 48 0
>     41 0 44 0 32 0 97 0 32 0 67 0 104 0 97 0 114 0 97 0 99 0 116 0 101
>     0 114 0 32 0 100 0 111 0 101 0 115 0 32 0 110 0 111 0 116 0 32 0
>     117 0 110 0 100 0 101 0 114 0 115 0 116 0 97 0 110 0 100 0 32 0 32
>     0 35 0 39 0 97 0 115 0 85 0 110 0 105 0 99 0 111 0 100 0 101 0 83
>     0 116 0 114 0 105 0 110 0 103 0 39 0 9 0 50 0 50 0 52 0 49 0 55 0
>     54 0 52 0 48 0 57 0 55 0 9 0 97 0 32 0 77 0 101 0 115 0 115 0 97 0
>     103 0 101 0 78 0 111 0 116 0 85 0 110 0 100 0 101 0 114 0 115 0
>     116 0 111 0 111 0 100 0 32 0 111 0 99 0 99 0 117 0 114 0 114 0 101
>     0 100 0 32 0 40 0 101 0 114 0 114 0 111 0 114 0 32 0 50 0 48 0 49
>     0 48 0 41 0 44 0 32 0 97 0 32 0 67 0 104 0 97 0 114 0 97 0 99 0
>     116 0 101 0 114 0 32 0 100 0 111 0 101 0 115 0 32 0 110 0 111 0
>     116 0 32 0 117 0 110 0 100 0 101 0 114 0 115 0 116 0 97 0 110 0
>     100 0 32 0 32 0 35 0 39 0 97 0 115 0 85 0 110 0 105 0 99 0 111 0
>     100 0 101 0 83 0 116 0 114 0 105 0 110 0 103 0 39 0 9 0 50 0 50 0
>     51 0 57 0 53 0 50 0 49 0 50 0 56 0 49 0 9 0 97 0 32 0 77 0 101 0
>     115 0 115 0 97 0 103 0 101 0 78 0 111 0 116 0 85 0 110 0 100 0 101
>     0 114 0 115 0 116 0 111 0 111 0 100 0 32 0 111 0 99 0 99 0 117 0
>     114 0 114 0 101 0 100 0 32 0 40 0 101 0 114 0 114 0 111 0 114 0 32
>     0 50 0 48 0 49 0 48 0 41 0 44 0 32 0 97 0 32 0 67 0 104 0 97 0 114
>     0 97 0 99 0 116 0 101 0 114 0 32 0 100 0 111 0 101 0 115 0 32 0
>     110 0 111 0 116 0 32 0 117 0 110 0 100 0 101 0 114 0 115 0 116 0
>     97 0 110 0 100 0 32 0 32 0 35 0 39 0 97 0 115 0 85 0 110 0 105 0
>     99 0 111 0 100 0 101 0 83 0 116 0 114 0 105 0 110 0 103 0 39 0 9 0
>     50 0 50 0 52 0 49 0 54 0 54 0 48 0 57 0 50 0 57 0 9 0 97 0 32 0 77
>     0 101 0 115 0 115 0 97 0 103 0 101 0 78 0 111 0 116 0 85 0 110 0
>     100 0 101 0 114 0 115 0 116 0 111 0 111 0 100 0 32 0 111 0 99 0 99
>     0 117 0 114 0 114 0 101 0 100 0 32 0 40 0 101 0 114 0 114 0 111 0
>     114 0 32 0 50 0 48 0 49 0 48 0 41 0 44 0 32 0 97 0 32 0 67 0 104 0
>     97 0 114 0 97 0 99 0 116 0 101 0 114 0 32 0 100 0 111 0 101 0 115
>     0 32 0 110 0 111 0 116 0 32 0 117 0 110 0 100 0 101 0 114 0 115 0
>     116 0 97 0 110 0 100 0 32 0 32 0 35 0 39 0 97 0 115 0 85 0 110 0
>     105 0 99 0 111 0 100 0 101 0 83 0 116 0 114 0 105 0 110 0 103 0 39
>     0 9 0 50 0 50 0 51 0 56 0 52 0 53 0 54 0 56 0 51 0 51 0 9 0 97 0
>     32 0 77 0 101 0 115 0 115 0 97 0 103 0 101 0 78 0 111 0 116 0 85 0
>     110 0 100 0 101 0 114 0 115 0 116 0 111 0 111 0 100 0 32 0 111 0
>     99 ...etc...
>
>      Some considerations ?
>
>
>     Thanks,
>
>     Dario
>
>
>
> _______________________________________________
> 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/20150421/883812e8/attachment.html>


More information about the Glass mailing list