[squeak-dev] Altitude - Seaside JSON example

Edgar J. De Cleene edgardec2005 at gmail.com
Sat Sep 29 10:44:55 UTC 2012


> server := ALServer on: 8624 application: ALExampleApplication new.
> server start

I using the script in original mail for loading in Squeak4.4-11925, but
having the following error

EVP_MD_CTX_init: ctx
    <cdecl: void 'EVP_MD_CTX_init' (XTEVPMDCTX*) module: 'libcrypto'>
    ^self externalCallFailed

'External function is invalid'

See attached.

I'm on Mac Os X 10.6, don't know if this matter

Any help welcomed


Edgar

-------------- next part --------------
Error: External function is invalid
29 September 2012 7:39:51.166 am

VM: Mac OS - Smalltalk
Image: Squeak4.4-alpha [latest update: #11925]

SecurityManager state:
Restricted: false
FileAccess: true
SocketAccess: true
Working Dir /Users/edgar/AtlantisSqueak/imagesZip/Squeak4.4-11925
Trusted Dir /foobar/tooBar/forSqueak/bogus/
Untrusted Dir /foobar/tooBar/forSqueak/bogus/

XTLibCryptoHash(Object)>>error:
	Receiver: a XTLibCryptoHash
	Arguments and temporary variables: 
		aString: 	'External function is invalid'
	Receiver's instance variables: 
		library: 	nil
		context: 	a XTEVPMDCTX
		algorithm: 	nil

XTLibCryptoHash(Object)>>externalCallFailed
	Receiver: a XTLibCryptoHash
	Arguments and temporary variables: 
		errCode: 	17
	Receiver's instance variables: 
		library: 	nil
		context: 	a XTEVPMDCTX
		algorithm: 	nil

XTLibCryptoHash>>EVP_MD_CTX_init:
	Receiver: a XTLibCryptoHash
	Arguments and temporary variables: 
		ctx: 	a XTEVPMDCTX
	Receiver's instance variables: 
		library: 	nil
		context: 	a XTEVPMDCTX
		algorithm: 	nil

XTLibCryptoHash>>initialize
	Receiver: a XTLibCryptoHash
	Arguments and temporary variables: 

	Receiver's instance variables: 
		library: 	nil
		context: 	a XTEVPMDCTX
		algorithm: 	nil

XTHash class>>new
	Receiver: XTHash
	Arguments and temporary variables: 

	Receiver's instance variables: 
		superclass: 	Object
		methodDict: 	a MethodDictionary(#algorithm:->(XTHash>>#algorithm: "a CompiledMet...etc...
		format: 	2
		instanceVariables: 	nil
		organization: 	('initialize-release' algorithm: release reset)
('accessing' bloc...etc...
		subclasses: 	{XTBCryptHash . XTHMAC . XTLibCryptoHash}
		name: 	#XTHash
		classPool: 	nil
		sharedPools: 	nil
		environment: 	Smalltalk globals "a SystemDictionary with lots of globals"
		category: 	#'Xtreams-Xtras'

XTDigestWriteStream>>algorithm:
	Receiver: XTDigestWriteStream
XTNullWriteStream
nil
	Arguments and temporary variables: 
		id: 	'sha1'
	Receiver's instance variables: 
		destination: 	XTNullWriteStream
nil
		input: 	#[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...etc...
		digest: 	nil
		hash: 	nil

XTNullWriteStream(XTWriteStream)>>hashing:
	Receiver: XTNullWriteStream
nil
	Arguments and temporary variables: 
		id: 	'sha1'
	Receiver's instance variables: 
		destination: 	nil

ALArchive>>digest
	Receiver: an ALArchive
	Arguments and temporary variables: 
		stream: 	nil
	Receiver's instance variables: 
		bytes: 	#[252 253 249 14 65 76 72 116 109 108 82 101 115 111 117 114 99 101 1 1 ...etc...
		external: 	#()

ALDigestUrlStrategy>>keyForResource:
	Receiver: an ALDigestUrlStrategy
	Arguments and temporary variables: 
		aResource: 	an ALHtmlResource
	Receiver's instance variables: 
an ALDigestUrlStrategy
ALDigestLocator>>at:put:
	Receiver: an ALDigestLocator
	Arguments and temporary variables: 
		aPath: 	/
		aResource: 	an ALHtmlResource
	Receiver's instance variables: 
		paths: 	a Dictionary()
		resources: 	a Dictionary(/->an ALHtmlResource )
		strategy: 	an ALDigestUrlStrategy

ALExampleApplication>>initializeLocator
	Receiver: an ALExampleApplication
	Arguments and temporary variables: 

	Receiver's instance variables: 
		handler: 	an ALDigestLocator
		locator: 	an ALDigestLocator

ALExampleApplication(ALApplication)>>initializeWithLocator:
	Receiver: an ALExampleApplication
	Arguments and temporary variables: 
		aLocator: 	an ALDigestLocator
	Receiver's instance variables: 
		handler: 	an ALDigestLocator
		locator: 	an ALDigestLocator

ALExampleApplication class(ALApplication class)>>withLocator:
	Receiver: ALExampleApplication
	Arguments and temporary variables: 
		aLocator: 	an ALDigestLocator
	Receiver's instance variables: 
		superclass: 	ALApplication
		methodDict: 	a MethodDictionary(#initializeLocator->(ALExampleApplication>>#init...etc...
		format: 	134
		instanceVariables: 	nil
		organization: 	('as yet unclassified' initializeLocator)

		subclasses: 	nil
		name: 	#ALExampleApplication
		classPool: 	nil
		sharedPools: 	nil
		environment: 	Smalltalk globals "a SystemDictionary with lots of globals"
		category: 	#'AL-Examples-Simple'

ALExampleApplication class(ALApplication class)>>new
	Receiver: ALExampleApplication
	Arguments and temporary variables: 

	Receiver's instance variables: 
		superclass: 	ALApplication
		methodDict: 	a MethodDictionary(#initializeLocator->(ALExampleApplication>>#init...etc...
		format: 	134
		instanceVariables: 	nil
		organization: 	('as yet unclassified' initializeLocator)

		subclasses: 	nil
		name: 	#ALExampleApplication
		classPool: 	nil
		sharedPools: 	nil
		environment: 	Smalltalk globals "a SystemDictionary with lots of globals"
		category: 	#'AL-Examples-Simple'

UndefinedObject>>DoIt
	Receiver: nil
	Arguments and temporary variables: 

	Receiver's instance variables: 
nil
Compiler>>evaluate:in:to:notifying:ifFail:logged:
	Receiver: a Compiler
	Arguments and temporary variables: 
		textOrStream: 	a ReadWriteStream '| oldPref oldAuth|





oldPref := Scanner pre...etc...
		aContext: 	nil
		receiver: 	nil
		aRequestor: 	a SmalltalkEditor
		failBlock: 	[closure] in [] in SmalltalkEditor(TextEditor)>>evaluateSelectionAnd...etc...
		logFlag: 	true
		methodNode: 	DoIt
	server := ALServer on: 8624 application: ALExampleApplication...etc...
		method: 	(UndefinedObject>>#DoIt "a CompiledMethod(2025)")
		value: 	nil
		toLog: 	nil
		itsSelection: 	nil
		itsSelectionString: 	nil
	Receiver's instance variables: 
		sourceStream: 	a ReadWriteStream '| oldPref oldAuth|





oldPref := Scanner pre...etc...
		requestor: 	a SmalltalkEditor
		class: 	UndefinedObject
		category: 	nil
		context: 	nil
		parser: 	a Parser

[] in SmalltalkEditor(TextEditor)>>evaluateSelectionAndDo:
	Receiver: a SmalltalkEditor
	Arguments and temporary variables: 
<<error during printing>
	Receiver's instance variables: 
		morph: 	a TextMorphForEditView(1023)
		selectionShowing: 	false
		model: 	a Workspace
		paragraph: 	a MultiNewParagraph
		markBlock: 	a CharacterBlock with index 2414 and character $s and rectangle 0 at 25...etc...
		pointBlock: 	a CharacterBlock with index 2493 and rectangle 73 at 2592 corner: 73 at 2...etc...
		beginTypeInIndex: 	nil
		emphasisHere: 	#()
		lastParenLocation: 	nil
		otherInterval: 	(2493 to: 2492)
		oldInterval: 	(2493 to: 2492)
		typeAhead: 	a WriteStream ''
		styler: 	nil

BlockClosure>>on:do:
	Receiver: [closure] in SmalltalkEditor(TextEditor)>>evaluateSelectionAndDo:
	Arguments and temporary variables: 
		exception: 	OutOfScopeNotification
		handlerAction: 	[closure] in SmalltalkEditor(TextEditor)>>evaluateSelectionAndDo...etc...
		handlerActive: 	true
	Receiver's instance variables: 
		outerContext: 	SmalltalkEditor(TextEditor)>>evaluateSelectionAndDo:
		startpc: 	97
		numArgs: 	0

SmalltalkEditor(TextEditor)>>evaluateSelectionAndDo:
	Receiver: a SmalltalkEditor
	Arguments and temporary variables: 
		aBlock: 	[closure] in SmalltalkEditor(TextEditor)>>evaluateSelection
		result: 	nil
		rcvr: 	nil
		ctxt: 	nil
	Receiver's instance variables: 
		morph: 	a TextMorphForEditView(1023)
		selectionShowing: 	false
		model: 	a Workspace
		paragraph: 	a MultiNewParagraph
		markBlock: 	a CharacterBlock with index 2414 and character $s and rectangle 0 at 25...etc...
		pointBlock: 	a CharacterBlock with index 2493 and rectangle 73 at 2592 corner: 73 at 2...etc...
		beginTypeInIndex: 	nil
		emphasisHere: 	#()
		lastParenLocation: 	nil
		otherInterval: 	(2493 to: 2492)
		oldInterval: 	(2493 to: 2492)
		typeAhead: 	a WriteStream ''
		styler: 	nil


--- The full stack ---
XTLibCryptoHash(Object)>>error:
XTLibCryptoHash(Object)>>externalCallFailed
XTLibCryptoHash>>EVP_MD_CTX_init:
XTLibCryptoHash>>initialize
XTHash class>>new
XTDigestWriteStream>>algorithm:
XTNullWriteStream(XTWriteStream)>>hashing:
ALArchive>>digest
ALDigestUrlStrategy>>keyForResource:
ALDigestLocator>>at:put:
ALExampleApplication>>initializeLocator
ALExampleApplication(ALApplication)>>initializeWithLocator:
ALExampleApplication class(ALApplication class)>>withLocator:
ALExampleApplication class(ALApplication class)>>new
UndefinedObject>>DoIt
Compiler>>evaluate:in:to:notifying:ifFail:logged:
[] in SmalltalkEditor(TextEditor)>>evaluateSelectionAndDo:
BlockClosure>>on:do:
SmalltalkEditor(TextEditor)>>evaluateSelectionAndDo:
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SmalltalkEditor(TextEditor)>>evaluateSelection
[] in PluggableTextMorphPlus(PluggableTextMorph)>>doIt
TextMorphForEditView(TextMorph)>>handleEdit:
PluggableTextMorphPlus(PluggableTextMorph)>>handleEdit:
PluggableTextMorphPlus(PluggableTextMorph)>>doIt
Workspace(StringHolder)>>perform:orSendTo:
[] in MenuItemMorph>>invokeWithEvent:
BlockClosure>>ensure:
CursorWithMask(Cursor)>>showWhile:
MenuItemMorph>>invokeWithEvent:
MenuItemMorph>>mouseUp:
MenuItemMorph>>handleMouseUp:
MouseButtonEvent>>sentTo:
MenuItemMorph(Morph)>>handleEvent:
MorphicEventDispatcher>>dispatchDefault:with:
MorphicEventDispatcher>>dispatchEvent:with:
MenuItemMorph(Morph)>>processEvent:using:
MorphicEventDispatcher>>dispatchDefault:with:
MorphicEventDispatcher>>dispatchEvent:with:
MenuMorph(Morph)>>processEvent:using:
MenuMorph(Morph)>>processEvent:
MenuMorph>>handleFocusEvent:
[] in HandMorph>>sendFocusEvent:to:clear:
BlockClosure>>on:do:
PasteUpMorph>>becomeActiveDuring:
HandMorph>>sendFocusEvent:to:clear:
HandMorph>>sendEvent:focus:clear:
HandMorph>>sendMouseEvent:
HandMorph>>handleEvent:
HandMorph>>processEvents
[] in WorldState>>doOneCycleNowFor:
Array(SequenceableCollection)>>do:
WorldState>>handsDo:
WorldState>>doOneCycleNowFor:
WorldState>>doOneCycleFor:
WorldState>>doOneSubCycleFor:
PasteUpMorph>>doOneSubCycle
MenuMorph>>invokeModalAt:in:allowKeyboard:
MenuMorph>>invokeModal:
MenuMorph>>invokeModal
PluggableTextMorphPlus(PluggableTextMorph)>>yellowButtonActivity:
TextMorphForEditView>>mouseDown:
-- and more not shown --


More information about the Squeak-dev mailing list