[Seaside] Re: error uploading file
Philippe Marschall
philippe.marschall at gmail.com
Wed Dec 8 06:00:03 UTC 2010
2010/12/7 Esteban Lorenzano <estebanlm at gmail.com>:
> 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
You don't have by chance the file you tried to upload? I think the
problem is right here:
SocketStream>>nextInBuffer:
Receiver: SocketStream[inbuf:4kb/outbuf:4kb]
Arguments and temporary variables:
anInteger: -19
start: 1388
amount: -19
Receiver's instance variables:
recentlyRead: 0
socket: a Socket[connected]
inBuffer: '3 00000 n
0000114044 00000 n
0000114067 00000 n
0000114331 00000 ...etc...
outBuffer: '
...etc...
inNextToWrite: 1411
outNextToWrite: 1
lastRead: 1368
timeout: 10
autoFlush: false
bufferSize: 4096
binary: false
shouldSignal: true
SocketStream>>upToAll:bufferSize:do:
Receiver: SocketStream[inbuf:4kb/outbuf:4kb]
Arguments and temporary variables:
aStringOrByteArray: '
------WebKitFormBoundaryqD0oYzAvsNrfKLUp'
maxSize: 1000000
aBlock: [:buffer | firstBuffer
ifNil: [size := size + buffer size.
outStre...etc...
index: 0
sz: 42
result: nil
lastRecentlyRead: 0
searchedSoFar: 23
insz: 23
Receiver's instance variables:
recentlyRead: 0
socket: a Socket[connected]
inBuffer: '3 00000 n
Somehow #upToAll:bufferSize:do: sends #nextInBuffer: to self with an
argument of -19.
Cheers
Philippe
More information about the seaside
mailing list