search for: marshal_dump

Displaying 15 results from an estimated 15 matches for "marshal_dump".

2008 May 21
1
custom serialization problem (marshal_dump, marshal_load)
Hi, I have a problem with the marshal_dump and marshal_load... I built two classes XXX, YYY and implemented both methods like this: class YYY @data = "string" @version = 1 def marshal_dump() return [@version,@data] end def marshal_load(var) @version = var[0] case @version when 1...
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 worked fine. Is there some reason this has been disabled in wxruby classes? Sorry, I picked up ruby a few da...
2008 Mar 18
0
no marshal_dump is defined for class StringIO
Hi all, I''m newbie to ROR, anybody know why I would be getting the following error when I use paginating_find with memcache "no marshal_dump is defined for class StringIO" Im just using the plugin straight out with very default options like from the documentation. Thanks in advance. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribe...
2006 Aug 01
0
storing object with no "marshal_dump is defined" in session
...my classes uses the class GSL::Poly. It seems from this error message that rails won''t let me store it in the session. ANy ideas what i can do? Rendering /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/templates/rescues/layout.rhtml (500 Internal Error) no marshal_dump is defined for class GSL::Poly /usr/local/lib/ruby/1.8/pstore.rb:348:in `dump'' Thanks Chris -- Posted via http://www.ruby-forum.com/.
2005 Jan 28
17
breakpoint not working
I keep getting: No connection to breakpoint service at druby://localhost:42531 (DRb::DRbConnError) Tries to connect will be made every 3 seconds... This happens every time i run ./script/breakpointer using 0.9.5 on OSX or Windows. Any ideas?
2006 Apr 03
2
no marshal_dump is defined for class Proc
Hello ~ This problem has me puzzled. When users login to my rails app I have the session set up to be stored in the MySQL database for the app. Intermittently, users will get the following error: no marshal_dump is defined for class Proc D:/apps/xampp/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:81:in `dump'' D:/apps/xampp/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/session/active_record_store.rb:81:in `marshal''...
2007 Dec 25
6
error: no marshal_dump is defined for class Thread
...running ruby 1.8.5) - my dev box doesn''t get this error. As far as I can tell, everything is working ok, despite the error (I don''t really know how to determine if the jobs are getting threaded successfully, but they are running, that I am sure of). Here''s the dump: no marshal_dump is defined for class Thread /var/www/apps/rpg/releases/20071224050255/vendor/plugins/backgroundrb/lib/../framework/nbio.rb:55:in `dump'' /var/www/apps/rpg/releases/20071224050255/vendor/plugins/backgroundrb/lib/../framework/nbio.rb:55:in `dump_object'' /var/www/apps/rpg/releases/...
2007 Dec 19
6
thread_pooling sleeping
...n I run the jobs from the rails irb console, they go without any error - even if I start a couple jobs for multiple users and spam "MiddleMan.ask_status" while the jobs are still running. (of course, when I start the server using the ''Thread.new'' method, I get a "no marshal_dump is defined for class Thread" exception in the backgroundrb_server log. I''m guessing this has something to do with why I''m supposed to be using thread_pool instead of Thread). When I get those read errors, the backgroundrb_debug.log shows "Client disconected" (sic)....
2006 Jul 21
0
[RESOLVED] Marshal.dump not dumping entire object?
...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, sg, of] + dumped_obj + end + + def marshal_load(dumped_obj) + @date_precision, @ajd, @sg, @of = dumped_obj + end For those that use Runt, I''ve submitted a patch. cheers, Jodi ----------- Greetings, I first want to say that...
2006 Feb 28
1
Oracle OraNumber problem with Authentication. Please help!
...d an authenticator using the instructions here: http://wiki.rubyonrails.org/rails/pages/HowtoAuthenticate The LoginController sets session["employee"] to an employee. When i try to access the session["employee"] from another controller i get this error : " TypeError (no marshal_dump is defined for class OraNumber): c:/ruby/lib/ruby/1.8/pstore.rb:159:in `dump'' c:/ruby/lib/ruby/1.8/pstore.rb:159:in `dump'' c:/ruby/lib/ruby/1.8/pstore.rb:138:in `transaction'' ...... " As you can tell i am using Oracle as the DB. I have added model:...
2006 Sep 27
0
NET::LDAP Help Anyone? Maybe session Help? Bring my server to it's knees Help?
...= AuthUser.login(params[:user]["username"], params[:user]["password"]) end My server returns a 500 error. I''ve tried from lighttpd and locomotive. Both return the same generic error. I suspect it''s related to the object returned is not compatible with the marshal_dump. So the question is how do I copy the values from the result set into my session object? Sorry if this is a stupid noobie question but I am one so. :) Thanks in advance. Phill Phillip Novess http://primalart.net pnovess-ee4meeAH724@public.gmane.org 970-227-7626 --~--~---------~--~----~...
2008 Sep 11
0
session/marshalling
...Membership.new @profile = @membership.build_profile @customer = @membership.build_customer @customer.profile = @profile # <= that’s the problem And then try to save @customer in the session: session[:customer] = @customer There is a 500 internal server error: NoMethodError (undefined method `marshal_dump'' for #<Class:0x2162504>) And that is only if I establish the link between two has_one :through associations. For example between @profile and @customer, or @customer and @user. Do you habe any idea, how i could solve this problem? I greatly apreciate any help. -- Posted via http:/...
2008 Feb 20
2
Rails Edge ActiveSupport::TimeWithZone and Marshalled objects
Hello all, I''m trying to use the new ActiveSupport::TimeWithZone from Edge. The problem seems to be that I have a several-action process to create a Booking. This Booking is stored in the session (session[:booking] = @booking) throughout the actions until the last action is reached and the record is saved to the DB. Using TimeWithZone seems to be producing errors when trying to
2011 Jun 01
7
desperate, errors with file upload
...etting the following error [1] when uploading a file. I''m using the gems rails v2.3.8 and paperclip v2.1.6. the parameter hash looks like [2], the model like [3]. Interesting is that i get two different errors, on the localhost with webrick it says: Status: 500 Internal Server Error no marshal_dump is defined for class Proc /var/lib/gems/1.8/gems/activesupport-2.3.8/lib/active_support/ message_verifier.rb:38:in `dump'' on the server (same setup): Status: 500 Internal Server Error can''t dump File /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/ m...
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