Displaying 20 results from an estimated 30000 matches similar to: "Maddening error: "marshal data too short""
2006 Oct 20
1
Login Engine, user object "marshal data too short"?
This suddenly started happening to my app today. No code changes, so I
expect that this has something to do with a server change.
I''m using Login Engine and ActiveRecord sessions. LE stores the whole
user object in the session, then pulls it out as needed with
UserController#current_user.
Out of the blue today this starts failing with the infamous "you''re
serializing AR
2006 May 30
6
How to solve "Marshal Data Too Short" error?
Hi
I''ve got the error in the log file "marshal data too short" after I try
to store some data into session.
After doing some research on the internet, it looks like the problem was
caused by pstore.rb. It is there way to solve this problem?
Thank you
--
Posted via http://www.ruby-forum.com/.
2006 Oct 11
5
Marshal Data too short error with ActiveRecord sess. storage
I''m seeing a "marshal data too short" error with an ActiveRecord store
for my session data.
Other posts say that this happens when the size of the session data
exceeds the size of the "data" column in the sessions table. But my
"data" column is a TEXT field so it seems unlikely that I could have
blown it out.
Has anyone else seen "marshal data too
2006 Nov 04
0
Marshal Data Too Short Error
I am using Ruby 1.8.2 on WinXP and am receiving a "Marshal Data Too Short"
error. I havent been able to repeat the error as it seems to happen randomly
in my rails program. However, the version of Ruby I''m using already has the
file.binmode lines outlined in:
http://wiki.rubyonrails.com/rails/pages/MarshalDataTooShort.
If possible I''d like to avoid switching to active
2006 Aug 26
1
Marshal Data Too Short Error
I am using Ruby 1.8.2 on WinXP and am receiving a "Marshal Data Too
Short" error. I havent been able to repeat the error as it seems to
happen randomly in my rails program. However, the version of Ruby I''m
using already has the file.binmode lines outlined in:
http://wiki.rubyonrails.com/rails/pages/MarshalDataTooShort.
If possible I''d like to avoid switching to
2008 Jan 04
2
use of Marshal with wxruby classes
Is it possible to use Marshal with wxruby classes to serialize an
application''s state?
I tried a minimal example of simply serializing a minimal frame object, and
I get the error "no marshal_dump is defined for class MinimalFrame".
I don''t fully understand this because I also tried another minimal example
of dumping a class which did not defined a marshal_dump, and it
2008 May 17
4
Setting cookies in service overloader thingo
I''m implementing a simpler version of the Cookie Session Store in
Rails 2.0. If you know what that is, skip the next paragraph.
A cookie session store stores the session data inside cookies, on the
client, and signs them using a secret string, hashed together. The
user can decode the cookie easily if they know much about computers
and see what''s inside, but they
2008 Mar 07
6
creating a model registry
Hi all,
This is a problem I''ve approached so many times and always worked
around, that now I want to solve it once and for all. Say I have
something like this:
---
class X < ActiveRecord::Base
acts_as_wacky
end
module Wackinator
class ControlAllWackos
@@wackos = []
def self.kill_wackos
@@wackos.each(&:kill)
end
end
def acts_as_wacky
2006 Jul 21
0
[RESOLVED] Marshal.dump not dumping entire object?
After sending this I realized that this was a Ruby not Rails issue -
but the answer may be interesting for those who choose Marshal over
Serialize.
So, to close this off I don''t know why marshal.dump wasn''t ''dumping''
all attributes, but adding custom marshaling to PDate did the trick.
ala,
+ def marshal_dump
+ dumped_obj = [date_precision, ajd,
2006 Jul 21
0
Marshal.dump not dumping entire object?
Greetings,
I first want to say that this problem is happening with the Runt
gem. This may is likely an implementation issue between Marshal and
Runt. While I''ve simultaneously filed this problem with Matt Lipper,
I''m also hoping someone here can can guide me a little - either in
implementation (usage of Marshal), or to aid me to fix Runt to
support Marshal.
2006 Oct 13
2
win32-mmap - trying to marshal self
Hi all,
I realized the current implmentation has a problem - you can only get the last value set? I realized, after looking at the old C code, that it actually stores values in a hash and marshals the hash, not the values themselves.
That seemed clunky to me, though. I thought it would be more interesting if we just marshalled the entire mmap object and passed that back and forth.
2006 May 24
1
How to marshal Javascript data?
I''m trying to marshal some information I have in Javascript, and send
it over an AJAX request to the server, specifically to be stored in a
model on the server side.
I have some Javascript routines I wrote that gather information about
the user selection. I see that the link_to_remote has a :before
option in which I can write Javascript to collect what I need, but
right now I''m
2006 Jan 10
7
Can only render or redirect once per action - why?
I ran into this error message a quite a few times since my app requires
branching to different pages from the same action... say using a switch
statement. Ofcourse I found that you can use multiple redirects or renders
if you do
render :action => ''new'' and return false
I hate to code something I don''t understand fully. Any explanation of this
will be greatly
2011 Oct 26
8
IronRuby's Marshal.dump doesn't work with CLR types, or ruby types backed by a CLR type
Backstory: I''m trying to use DRb for some in-house utility code. DRb
itself seems to work fine, but I found that when I misspelled a method
name, instead of reporting back a NoMethodError, the IronRuby process
crashed immediately to the console.
This is using a relatively recent build of IronRuby from Github
Steps to repro:
e = RuntimeError.new ''xyz''
dumped =
2009 Aug 07
4
ActionController::UnknownAction (No action responded to 22.
I try to switch my application from Rails 2.2.2 to Rails 2.3.3.
In namespace :admin I have a resource-based controller. See controller
class Admin::OSystemsController < Admin::BaseController
def index
.......
end
def edit
.........
end
def update
..........
end
end
Resource is added to routes.rb like
map.namespace :admin do |admin|
............
admin.resources :o_systems,
2008 Jan 31
16
Hardware RAID vs. ZFS RAID
Hello,
I have a Dell 2950 with a Perc 5/i, two 300GB 15K SAS drives in a RAID0 array. I am considering going to ZFS and I would like to get some feedback about which situation would yield the highest performance: using the Perc 5/i to provide a hardware RAID0 that is presented as a single volume to OpenSolaris, or using the drives separately and creating the RAID0 with OpenSolaris and ZFS? Or
2006 Mar 01
1
maddening intermittent failures in unit tests with "working" code
Hi all,
This testing problem has been a sink for time today, and is still unresolved.
Basically I have some unit tests that test simple functions (example below)
that depend on join operations in a habtm relationship, and I suspect I am
getting "false" failures, i.e ones that do not logically make any sense. I
need fresh sets of eyes to take a look and see if I''m mising
2009 Jul 31
43
Error: uninitialized constant MysqlCompat::MysqlRes
Hi,
I installed the "kwatch-mysql-ruby" gem on my Debian server but when I
try to run the "db:migrate" task I get the following error:
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
rake aborted!
uninitialized constant MysqlCompat::MysqlRes
2009 Mar 01
8
invalid vdev configuration after power failure
What does it mean for a vdev to have an invalid configuration and how
can it be fixed or reset? As you can see, the following pool can no
longer be imported: (Note that the "last accessed by another system"
warning is because I moved these drives to my test workstation.)
~$ zpool import -f pool0
cannot import ''pool0'': invalid vdev configuration
~$ zpool import
pool:
2006 Mar 14
5
Maddening library loading problem
Hi everyone.
I recently wrote a nice module that I want to use in my rails app. It
consists of a few files in a directory that I have places in the lib
directory. It looks like this:
/lib/KMLTools/foo.rb, bar.rb, baz.rb
Some of these files load each other and I finally got those to work by
using the File.dirname(__FILE__) trick. When I simply require the file
into my controller, everything is