Is this exit in my code?

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

Is this exit in my code?

Stephan Eggermont-3
Hello

Yesterday my Hyper exited with the following log:
(Gemstone 2.3.1 on Ubuntu). That doesn't look
like my code is doing that. What am I seeing here?

Stephan Eggermont

-----------------------------------------------------
GemStone: Error         Nonfatal
No method was found for the selector #'_generality' when sent to nil
with arguments contained in anArray( ).
Error Category: 231169 [GemStone] Number: 2010 Arg Count: 3 Context :  
236829697
Arg 1: [20 sz:0 cls: 76289 UndefinedObject] nil
Arg 2: [4253953 sz:11 cls: 110849 Symbol] _generality
Arg 3: [236768001 sz:0 cls: 66817 Array] an Array

Now executing the following command saved from "iferr 1":
  where
==> 1 System class >> signal:args:signalDictionary: @8 line 15    
[GsMethod 3261441]
2 Object >> doesNotUnderstand: @6 line 14   [GsMethod 1939969]
3 Object >> _doesNotUnderstand: @1 line 6   [GsMethod 1943809]
4 Number >> _retry:coercing: @13 line 22   [GsMethod 1966593]
5 Integer >> < @2 line 7   [GsMethod 2104065]
6 SmallInteger >> < @2 line 9   [GsMethod 3400705]
7 OSkSocketReadStream >> readUpTo:into: @5 line 8   [GsMethod 110344193]
8 OSkSocketReadStream >> upTo: @5 line 7   [GsMethod 110368513]
9 HTTPReadStream >> upTo: @2 line 5   [GsMethod 116294657]
10 HTTPReadStream >> nextCHARsUpToCHAR: @3 line 5   [GsMethod 116293121]
11 HTTPRequestLine >> readFrom: @3 line 6   [GsMethod 114638337]
12 HTTPFirstLine class >> readFrom: @2 line 5   [GsMethod 114798081]
13 HTTPRequest class >> readFrom: @2 line 7   [GsMethod 110572289]
14 ComplexBlock in HTTPConnection >> readRequestFor: @4 line 8    
[GsMethod 106983425]
15 SpExceptionContext class >> do:catchExceptionsOfClass: @17 line  
25   [GsMethod 22912769]
16 SpExceptionContext class >> for:on:do: @2 line 6   [GsMethod  
22913537]
17 HTTPConnection >> readRequestFor: @32 line 7   [GsMethod 106983425]
18 HTTPConnection >> getAndDispatchMessages @7 line 13   [GsMethod  
116214529]
19 ComplexBlock in OSkSocketInboundConnection >> interact @3 line 7    
[GsMethod 111594753]
20 SpExceptionContext class >> do:catchExceptionsOfClass: @17 line  
25   [GsMethod 22912769]
21 SpExceptionContext class >> for:on:do: @2 line 6   [GsMethod  
22913537]
22 OSkSocketInboundConnection >> interact @7 line 6   [GsMethod  
111594753]
23 OSkSocketListenerService >> handleInboundConnectionOn: @8 line 10    
[GsMethod 101359617]
24 ComplexBlock in OSkSocketListenerService >>  
acceptInboundConnections @13 line 16   [GsMethod 101364737]
25 GsProcess >> _startPart2 @13 line 17   [GsMethod 3005185]
26 GsProcess >> _start @1 line 9   [GsMethod 2992897]
[GsProcess 236829697]
topaz 1> run
GemToGemAnnouncement uninstallStaticHandler.
System beginTransaction.
(ObjectLogEntry
fatal: 'Hyper: topaz exit'
object:
   'port: ', 8080 printString, ' ',
   'pid: ', (System gemVersionReport at: 'processId') printString)  
addToLog.
System commitTransaction.
%
[268 sz:0 cls: 68097 Boolean] true

Reply | Threaded
Open this post in threaded view
|

Re: Is this exit in my code?

Dale
Stephan,

I will take a closer look at how this one slipped through the net ...

Unhandled exceptions will cause topaz to exit and that is what this appears to be ... I have tried to catch and handle all server level errors, but obviously I haven't covered them all (I've done more stress testing with FastCGI than Hyper).

If you recall, in earlier discussions I have mentioned that topaz servers should be set up to automatically restart and others have mentioned that daemontools is a good way to arrange for this ...

With commits for each request and auto restart, these kinds of Unhandled exceptions aren't quite as big a problem ... they become a "bug to be fixed" instead of "problem in production".

Dale
----- "Stephan Eggermont" <[hidden email]> wrote:

| Hello
|
| Yesterday my Hyper exited with the following log:
| (Gemstone 2.3.1 on Ubuntu). That doesn't look
| like my code is doing that. What am I seeing here?
|
| Stephan Eggermont
|
| -----------------------------------------------------
| GemStone: Error         Nonfatal
| No method was found for the selector #'_generality' when sent to nil
| with arguments contained in anArray( ).
| Error Category: 231169 [GemStone] Number: 2010 Arg Count: 3 Context :
|
| 236829697
| Arg 1: [20 sz:0 cls: 76289 UndefinedObject] nil
| Arg 2: [4253953 sz:11 cls: 110849 Symbol] _generality
| Arg 3: [236768001 sz:0 cls: 66817 Array] an Array
|
| Now executing the following command saved from "iferr 1":
|   where
| ==> 1 System class >> signal:args:signalDictionary: @8 line 15    
| [GsMethod 3261441]
| 2 Object >> doesNotUnderstand: @6 line 14   [GsMethod 1939969]
| 3 Object >> _doesNotUnderstand: @1 line 6   [GsMethod 1943809]
| 4 Number >> _retry:coercing: @13 line 22   [GsMethod 1966593]
| 5 Integer >> < @2 line 7   [GsMethod 2104065]
| 6 SmallInteger >> < @2 line 9   [GsMethod 3400705]
| 7 OSkSocketReadStream >> readUpTo:into: @5 line 8   [GsMethod
| 110344193]
| 8 OSkSocketReadStream >> upTo: @5 line 7   [GsMethod 110368513]
| 9 HTTPReadStream >> upTo: @2 line 5   [GsMethod 116294657]
| 10 HTTPReadStream >> nextCHARsUpToCHAR: @3 line 5   [GsMethod
| 116293121]
| 11 HTTPRequestLine >> readFrom: @3 line 6   [GsMethod 114638337]
| 12 HTTPFirstLine class >> readFrom: @2 line 5   [GsMethod 114798081]
| 13 HTTPRequest class >> readFrom: @2 line 7   [GsMethod 110572289]
| 14 ComplexBlock in HTTPConnection >> readRequestFor: @4 line 8    
| [GsMethod 106983425]
| 15 SpExceptionContext class >> do:catchExceptionsOfClass: @17 line  
| 25   [GsMethod 22912769]
| 16 SpExceptionContext class >> for:on:do: @2 line 6   [GsMethod  
| 22913537]
| 17 HTTPConnection >> readRequestFor: @32 line 7   [GsMethod
| 106983425]
| 18 HTTPConnection >> getAndDispatchMessages @7 line 13   [GsMethod  
| 116214529]
| 19 ComplexBlock in OSkSocketInboundConnection >> interact @3 line 7  
|
| [GsMethod 111594753]
| 20 SpExceptionContext class >> do:catchExceptionsOfClass: @17 line  
| 25   [GsMethod 22912769]
| 21 SpExceptionContext class >> for:on:do: @2 line 6   [GsMethod  
| 22913537]
| 22 OSkSocketInboundConnection >> interact @7 line 6   [GsMethod  
| 111594753]
| 23 OSkSocketListenerService >> handleInboundConnectionOn: @8 line 10  
|  
| [GsMethod 101359617]
| 24 ComplexBlock in OSkSocketListenerService >>  
| acceptInboundConnections @13 line 16   [GsMethod 101364737]
| 25 GsProcess >> _startPart2 @13 line 17   [GsMethod 3005185]
| 26 GsProcess >> _start @1 line 9   [GsMethod 2992897]
| [GsProcess 236829697]
| topaz 1> run
| GemToGemAnnouncement uninstallStaticHandler.
| System beginTransaction.
| (ObjectLogEntry
| fatal: 'Hyper: topaz exit'
| object:
|    'port: ', 8080 printString, ' ',
|    'pid: ', (System gemVersionReport at: 'processId') printString)  
| addToLog.
| System commitTransaction.
| %
| [268 sz:0 cls: 68097 Boolean] true