[aida] Mysterious problem only Firefox, only hosted Server no clue how to solve

Herbert König herbertkoenig at gmx.net
Tue Nov 13 22:14:45 CET 2012


Hi,
this really bugs me since two days and I'm really out of my depths here.

In my app I have a WebButton whose action does a simple self 
redirectToView: .... like I have in several cases.
This is the generated HTML, both buttons have the same problem.
<inputtype="submit"value="Dieses Profil drucken"name="plotThis">
<inputtype="submit"value="Alle Positionen drucken"name="plotAll">
<td>

This always works on a Windows Server and on an Ubuntu Server running in 
a VM in my local network.

On the hosted Ubuntu server (same Ubunu) only on Firefox it regularly 
fails (not always) while it always works on Chrome and Opera. The 
tendency is: the slower the computer running the browser the better it 
works.

  The problem is that the action method of the button never gets sent, 
because SwazooBuffer>>refillFrom raises a SwazooStreamNoDataError "No 
data available, socket probably closed".

I get the same problem with several versions of Swazoo incl. the latest 
download from Aidaweb.si.

I've attached a Stack trace. Help is really appreciated.

Thanks,

Herbert


-------------- n?chster Teil --------------
SwazooStreamNoDataError: No data available.  Socket probably closed
13 November 2012 9:03:42.972 pm

VM: unix - Smalltalk
Image: Squeak4.3 [latest update: #12282]

SecurityManager state:
Restricted: false
FileAccess: true
SocketAccess: true
Working Dir /home/karlbiene/squeak/Contents/Resources
Trusted Dir /home/karlbiene/squeak/Contents/Resources/secure
Untrusted Dir /home/karlbiene/squeak/Contents/Resources/My Squeak

SwazooBuffer>>refillFrom:
	Receiver: <<error during printing>>
	Arguments and temporary variables: 
		aSocket: 	a SwazooSocket
	Receiver's instance variables: 
		collection: 	#[48 53 50 56 49 52 53 45 45 13 10 103 119 101 98 55 53 56 57 57 51...etc...
		position: 	0
		readLimit: 	0
		writeLimit: 	8000
		type: 	#read
		resize: 	nil

SwazooStream>>fillBuffer
	Receiver: a SwazooStream
	Arguments and temporary variables: 

	Receiver's instance variables: 
		socket: 	a SwazooSocket
		readBuffer: 	<<error during printing>>

SwazooStream>>syncBuffer
	Receiver: a SwazooStream
	Arguments and temporary variables: 

	Receiver's instance variables: 
		socket: 	a SwazooSocket
		readBuffer: 	<<error during printing>>

SwazooStream>>peekByte
	Receiver: a SwazooStream
	Arguments and temporary variables: 

	Receiver's instance variables: 
		socket: 	a SwazooSocket
		readBuffer: 	<<error during printing>>

HTTPPost>>partFromStream:boundary:
	Receiver: a HTTPRequest POST
	 from: 107.148.163.80
	 at: 13 November 2012 8:44:35 pm.0
	 host: 78.4...etc...
	Arguments and temporary variables: 
		aSwazooStream: 	a SwazooStream
		aBoundaryBytes: 	'---------------------------24464570528145'
		bytes: 	''
		name: 	nil
		filename: 	nil
		datum: 	nil
		contentType: 	nil
		field: 	nil
		line: 	'
'
	Receiver's instance variables: 
		task: 	a SwazooTask
		headers: 	a HTTPHeaders
   Content-Type: multipart/form-data boundary=----------...etc...
		body: 	nil
		requestLine: 	a HTTPRequestLine
		peer: 	'107.148.163.80'
		timestamp: 	a SpTimestamp
		ip: 	'107.148.163.80'
		environmentData: 	a Dictionary(#context->a WebContextFirst #session->a WebSessio...etc...
		resolution: 	an URIResolution
		encrypted: 	nil
		authenticated: 	nil
		postData: 	a Swazoo.HttpPostDataArray 
	'field2'->'1.1--Position 1'
	'field244'-...etc...
		entityBody: 	nil
		readPosition: 	901

HTTPPost>>multipartDataFrom:
	Receiver: a HTTPRequest POST
	 from: 107.148.163.80
	 at: 13 November 2012 8:44:35 pm.0
	 host: 78.4...etc...
	Arguments and temporary variables: 
		aSwazooStream: 	a SwazooStream
		contentTypeField: 	Content-Type: multipart/form-data boundary=------------------...etc...
		boundary: 	'---------------------------24464570528145'
		part: 	'field258'->a HTTPPostDatum
	Receiver's instance variables: 
		task: 	a SwazooTask
		headers: 	a HTTPHeaders
   Content-Type: multipart/form-data boundary=----------...etc...
		body: 	nil
		requestLine: 	a HTTPRequestLine
		peer: 	'107.148.163.80'
		timestamp: 	a SpTimestamp
		ip: 	'107.148.163.80'
		environmentData: 	a Dictionary(#context->a WebContextFirst #session->a WebSessio...etc...
		resolution: 	an URIResolution
		encrypted: 	nil
		authenticated: 	nil
		postData: 	a Swazoo.HttpPostDataArray 
	'field2'->'1.1--Position 1'
	'field244'-...etc...
		entityBody: 	nil
		readPosition: 	901

HTTPPost>>parsePostDataFrom:
	Receiver: a HTTPRequest POST
	 from: 107.148.163.80
	 at: 13 November 2012 8:44:35 pm.0
	 host: 78.4...etc...
	Arguments and temporary variables: 
		aSwazooStream: 	a SwazooStream
		contentType: 	Content-Type: multipart/form-data boundary=-----------------------...etc...
	Receiver's instance variables: 
		task: 	a SwazooTask
		headers: 	a HTTPHeaders
   Content-Type: multipart/form-data boundary=----------...etc...
		body: 	nil
		requestLine: 	a HTTPRequestLine
		peer: 	'107.148.163.80'
		timestamp: 	a SpTimestamp
		ip: 	'107.148.163.80'
		environmentData: 	a Dictionary(#context->a WebContextFirst #session->a WebSessio...etc...
		resolution: 	an URIResolution
		encrypted: 	nil
		authenticated: 	nil
		postData: 	a Swazoo.HttpPostDataArray 
	'field2'->'1.1--Position 1'
	'field244'-...etc...
		entityBody: 	nil
		readPosition: 	901

HTTPPost>>ensureFullRead
	Receiver: a HTTPRequest POST
	 from: 107.148.163.80
	 at: 13 November 2012 8:44:35 pm.0
	 host: 78.4...etc...
	Arguments and temporary variables: 

	Receiver's instance variables: 
		task: 	a SwazooTask
		headers: 	a HTTPHeaders
   Content-Type: multipart/form-data boundary=----------...etc...
		body: 	nil
		requestLine: 	a HTTPRequestLine
		peer: 	'107.148.163.80'
		timestamp: 	a SpTimestamp
		ip: 	'107.148.163.80'
		environmentData: 	a Dictionary(#context->a WebContextFirst #session->a WebSessio...etc...
		resolution: 	an URIResolution
		encrypted: 	nil
		authenticated: 	nil
		postData: 	a Swazoo.HttpPostDataArray 
	'field2'->'1.1--Position 1'
	'field244'-...etc...
		entityBody: 	nil
		readPosition: 	901

HTTPPost>>postKeysAndValuesDo:
	Receiver: a HTTPRequest POST
	 from: 107.148.163.80
	 at: 13 November 2012 8:44:35 pm.0
	 host: 78.4...etc...
	Arguments and temporary variables: 
		aTwoArgBlock: 	[closure] in WebForm>>acceptFormInputFrom:
	Receiver's instance variables: 
		task: 	a SwazooTask
		headers: 	a HTTPHeaders
   Content-Type: multipart/form-data boundary=----------...etc...
		body: 	nil
		requestLine: 	a HTTPRequestLine
		peer: 	'107.148.163.80'
		timestamp: 	a SpTimestamp
		ip: 	'107.148.163.80'
		environmentData: 	a Dictionary(#context->a WebContextFirst #session->a WebSessio...etc...
		resolution: 	an URIResolution
		encrypted: 	nil
		authenticated: 	nil
		postData: 	a Swazoo.HttpPostDataArray 
	'field2'->'1.1--Position 1'
	'field244'-...etc...
		entityBody: 	nil
		readPosition: 	901

WebForm>>acceptFormInputFrom:
	Receiver: a WebForm
	Arguments and temporary variables: 
		aRequest: 	a HTTPRequest POST
	 from: 107.148.163.80
	 at: 13 November 2012 8:44...etc...
		postData: 	a Swazoo.HttpPostDataArray 
	
	Receiver's instance variables: 
		parent: 	a WebPage
		elements: 	an OrderedCollection()
		attributes: 	a Dictionary(#id->#id1 )
		other: 	nil
		fields: 	a Dictionary(size 261)
		action: 	nil
		tabOrder: 	an OrderedCollection(a WebMenu a WebInputField a WebButton a DynamicW...etc...

EllingWebTabsApp(WebApplication)>>acceptInputsAndActionFrom:
	Receiver: an EllingWebTabsApp
	Arguments and temporary variables: 
		aRequest: 	a HTTPRequest POST
	 from: 107.148.163.80
	 at: 13 November 2012 8:44...etc...
		form: 	a WebForm
		field: 	nil
	Receiver's instance variables: 
		session: 	a WebSession
		observee: 	an EllingWebTabs
		contexts: 	a Dictionary(33103->a WebContextFirst 42772->a WebContextFirst 53842-...etc...
		other: 	nil
		rebDownloader: 	an EllingDownload
		filename: 	'ellingdataExt.reb'
		uploadedStream: 	nil
		dummy: 	nil
		printAll: 	false

EllingWebTabsApp>>printWebPageStepTwoFor:
	Receiver: an EllingWebTabsApp
	Arguments and temporary variables: 
		aRequest: 	a HTTPRequest POST
	 from: 107.148.163.80
	 at: 13 November 2012 8:44...etc...
		toLogin: 	false
	Receiver's instance variables: 
		session: 	a WebSession
		observee: 	an EllingWebTabs
		contexts: 	a Dictionary(33103->a WebContextFirst 42772->a WebContextFirst 53842-...etc...
		other: 	nil
		rebDownloader: 	an EllingDownload
		filename: 	'ellingdataExt.reb'
		uploadedStream: 	nil
		dummy: 	nil
		printAll: 	false

WebContextFirst(WebContext)>>processLoop
	Receiver: a WebContextFirst
	Arguments and temporary variables: 

	Receiver's instance variables: 
		id: 	53842
		parent: 	an EllingWebTabsApp
		child: 	nil
		state: 	#executing
		window: 	a WebPage
		ids: 	a Dictionary(size 664)
		process: 	a Process in nil
		semaphore: 	a Semaphore()
		request: 	a HTTPRequest POST
	 from: 107.148.163.80
	 at: 13 November 2012 8:44:...etc...
		answer: 	nil
		result: 	nil
		view: 	#profileNeu
		mainSemaphore: 	a Semaphore(a Process in EllingWebTabsApp>>printWebPageFor:)

[] in WebContextFirst(WebContext)>>startProcess
	Receiver: a WebContextFirst
	Arguments and temporary variables: 

	Receiver's instance variables: 
		id: 	53842
		parent: 	an EllingWebTabsApp
		child: 	nil
		state: 	#executing
		window: 	a WebPage
		ids: 	a Dictionary(size 664)
		process: 	a Process in nil
		semaphore: 	a Semaphore()
		request: 	a HTTPRequest POST
	 from: 107.148.163.80
	 at: 13 November 2012 8:44:...etc...
		answer: 	nil
		result: 	nil
		view: 	#profileNeu
		mainSemaphore: 	a Semaphore(a Process in EllingWebTabsApp>>printWebPageFor:)

[] in BlockClosure>>newProcess
	Receiver: [closure] in WebContextFirst(WebContext)>>startProcess
	Arguments and temporary variables: 

	Receiver's instance variables: 
		outerContext: 	WebContextFirst(WebContext)>>startProcess
		startpc: 	51
		numArgs: 	0


--- The full stack ---
SwazooBuffer>>refillFrom:
SwazooStream>>fillBuffer
SwazooStream>>syncBuffer
SwazooStream>>peekByte
HTTPPost>>partFromStream:boundary:
HTTPPost>>multipartDataFrom:
HTTPPost>>parsePostDataFrom:
HTTPPost>>ensureFullRead
HTTPPost>>postKeysAndValuesDo:
WebForm>>acceptFormInputFrom:
EllingWebTabsApp(WebApplication)>>acceptInputsAndActionFrom:
EllingWebTabsApp>>printWebPageStepTwoFor:
WebContextFirst(WebContext)>>processLoop
[] in WebContextFirst(WebContext)>>startProcess
[] in BlockClosure>>newProcess


More information about the Aida mailing list