You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm again with the basicNew: primitive failed when trying to upload a file... I
tried to avoid the problem by using swazoo server, but that was not an option :(
This is the problem: I need to upload files (using "streamUploads" option of
comanche adaptor), and that works fine in development, but not in production.
When running in production, I'm getting a primitive failed when trying to store
a byte string, because it is receiving a -19 as a requested storage size.
I'm attaching a log with the debugger information I could get.
Also, this is the system information:
CPU Intel(R) Xeon(R) CPU X3360 @ 2.83GHz
SO Linux, I can't say which version... looks like a suse,
but I dunno.
Pharo 1.1.1 (core)
Seaside Loaded with ConfigurationOfSeaside30 version 3.0.2
VM Tried both: exuperi 0.15 and latest cogvm for unix
Thanks,
Esteban
Original issue reported on code.google.com by philippe...@gmail.com on 10 Dec 2010 at 6:08
On 12/8/10 2:13 PM, Bob Arning wrote:
> Somehow #upToAll:bufferSize:do: sends #nextInBuffer: to self with an
> argument of -19.
This method does not seem happy when the buffer contents are shorter than the
search string. If you change...
index = 0 ifTrue: [
aBlock value: (self nextInBuffer: (searchedSoFar - sz)) ].
].
to...
(index = 0 and: [searchedSoFar > sz]) ifTrue: [
aBlock value: (self nextInBuffer: (searchedSoFar - sz)) ].
].
it might be happier.
It's also interesting that...
searchedSoFar: 23
insz: 23
when this...
> inNextToWrite: 1411
> outNextToWrite: 1
> lastRead: 1368
would argue for 42 rather than 23. Makes me wonder if something caused socket
stream to read the rest of the data *after* the error occurred.
Cheers,
Bob
Original comment by philippe...@gmail.com on 10 Dec 2010 at 6:10
Original issue reported on code.google.com by
philippe...@gmail.com
on 10 Dec 2010 at 6:08Attachments:
The text was updated successfully, but these errors were encountered: