Hi all, after not having encountered the infamous "Packets out of order" problem for quite a long time, I''ve now fallen prey to it, too: I''ve implemented an action displaying an uploaded image which is stored in the (MySQL) database (as described in Agile Web Development with Rails). Every time I called it, first the image wouldn''t be displayed and then any subsequent call to RoR resulted in the "Packets out of order" error message. I tried the various solutions proposed on the mailing list and elsewhere on the web: native MySQL driver - installation failed on my W2K box; mysql.so from RubyOnApache - .NET dll needed (!); installed that - unstable system; after deinstallation of all that, resetted MySQL password - nothing changed. By now, I''m lucky if I get the error message, because most of the time Ruby crashes instead. The only thing that seems to be reproducable is that everything is fine until I try to display the image stored in MySQL. So - are there any further ideas how I might escape this problem? Somewhere I read about a wrapper accessor method in the model class - are there positive experiences with this approach? Should I (last resort) change my DB to PostgreSQL? Any help is greatly appreciated - the problem is slowly driving me mad... ;-) Thanks in advance! Wolfgang Wopperer mindmatters* * Neuer Kamp 30 20357 Hamburg Fon +49-(0)40-31 79 22 72 Fax +49-(0)40-31 79 22 73 E-Mail mailto:wolfgang.wopperer-UkcLZtRm+6hlwAJJmLIKuQ@public.gmane.org Website www.mindmatters.de -------------------------------------------------------------------------- Es läuft und läuft und läuft: Schon über 10.000 Downloads für JSF-Spring, unsere JSF-/Spring-Integrationslösung! Im Netz: jsf-spring.sourceforge.net --------------------------------------------------------------------------
Dema(http://dema.ruby.com.br/) has reported problems with mysql.so extension from RubyForApache. You can download either new version of RubyForApache or mysql.so dll from dema''s web site. Kent. On 7/19/05, Wolfgang Wopperer <wolfgang.wopperer-UkcLZtRm+6hlwAJJmLIKuQ@public.gmane.org> wrote:> Hi all, > > after not having encountered the infamous "Packets out of order" problem for > quite a long time, I''ve now fallen prey to it, too: > > I''ve implemented an action displaying an uploaded image which is stored in > the (MySQL) database (as described in Agile Web Development with Rails). > Every time I called it, first the image wouldn''t be displayed and then any > subsequent call to RoR resulted in the "Packets out of order" error message. > > I tried the various solutions proposed on the mailing list and elsewhere on > the web: native MySQL driver - installation failed on my W2K box; mysql.so > from RubyOnApache - .NET dll needed (!); installed that - unstable system; > after deinstallation of all that, resetted MySQL password - nothing changed. > By now, I''m lucky if I get the error message, because most of the time Ruby > crashes instead. The only thing that seems to be reproducable is that > everything is fine until I try to display the image stored in MySQL. > > So - are there any further ideas how I might escape this problem? Somewhere > I read about a wrapper accessor method in the model class - are there > positive experiences with this approach? Should I (last resort) change my DB > to PostgreSQL? > > Any help is greatly appreciated - the problem is slowly driving me mad... > ;-) > > Thanks in advance! > > Wolfgang Wopperer > > mindmatters* > > * Neuer Kamp 30 > 20357 Hamburg > > Fon +49-(0)40-31 79 22 72 > Fax +49-(0)40-31 79 22 73 > E-Mail mailto:wolfgang.wopperer-UkcLZtRm+6hlwAJJmLIKuQ@public.gmane.org > Website www.mindmatters.de > > -------------------------------------------------------------------------- > Es läuft und läuft und läuft: Schon über 10.000 Downloads für JSF-Spring, > unsere JSF-/Spring-Integrationslösung! Im Netz: jsf-spring.sourceforge.net > -------------------------------------------------------------------------- > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Thanks for the tip, but I already used the latest RubyForApache (sorry for the wrong name) version, and replacing it with dema''s mysql.so didn''t change anything (I suppose, the two .so-files are the same anyway?) - Ruby still crashing. My configuration is: W2K, Ruby 1.8.2-15, MySQL 4.1.12. Wolfgang> Dema(http://dema.ruby.com.br/) has reported problems with mysql.so > extension from RubyForApache. You can download either new version of > RubyForApache or mysql.so dll from dema''s web site. > > Kent. > > On 7/19/05, Wolfgang Wopperer <wolfgang.wopperer-UkcLZtRm+6hlwAJJmLIKuQ@public.gmane.org> wrote: > > Hi all, > > > > after not having encountered the infamous "Packets out of > order" problem for > > quite a long time, I''ve now fallen prey to it, too: > > > > I''ve implemented an action displaying an uploaded image which > is stored in > > the (MySQL) database (as described in Agile Web Development with Rails). > > Every time I called it, first the image wouldn''t be displayed > and then any > > subsequent call to RoR resulted in the "Packets out of order" > error message. > > > > I tried the various solutions proposed on the mailing list and > elsewhere on > > the web: native MySQL driver - installation failed on my W2K > box; mysql.so > > from RubyOnApache - .NET dll needed (!); installed that - > unstable system; > > after deinstallation of all that, resetted MySQL password - > nothing changed. > > By now, I''m lucky if I get the error message, because most of > the time Ruby > > crashes instead. The only thing that seems to be reproducable is that > > everything is fine until I try to display the image stored in MySQL. > > > > So - are there any further ideas how I might escape this > problem? Somewhere > > I read about a wrapper accessor method in the model class - are there > > positive experiences with this approach? Should I (last resort) > change my DB > > to PostgreSQL? > > > > Any help is greatly appreciated - the problem is slowly driving > me mad... > > ;-) > > > > Thanks in advance! > > > > Wolfgang Wopperer > > > > mindmatters* > > > > * Neuer Kamp 30 > > 20357 Hamburg > > > > Fon +49-(0)40-31 79 22 72 > > Fax +49-(0)40-31 79 22 73 > > E-Mail mailto:wolfgang.wopperer-UkcLZtRm+6hlwAJJmLIKuQ@public.gmane.org > > Website www.mindmatters.de > > > > > -------------------------------------------------------------------------- > > Es läuft und läuft und läuft: Schon über 10.000 Downloads für > JSF-Spring, > > unsere JSF-/Spring-Integrationslösung! Im Netz: > jsf-spring.sourceforge.net > > > -------------------------------------------------------------------------- > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Sorry for the noise - I just figured out that Ruby was crashing because of a bug in my code: I tried to access an attribute of a nonexistent local variable, and instead of throwing a null pointer exception or something similar, Ruby justs crashed. Kind of weird, but at least nothing wrong with the MySQL drivers.> Thanks for the tip, but I already used the latest RubyForApache (sorry for > the wrong name) version, and replacing it with dema''s mysql.so > didn''t change > anything (I suppose, the two .so-files are the same anyway?) - Ruby still > crashing. My configuration is: W2K, Ruby 1.8.2-15, MySQL 4.1.12. > > Wolfgang > > > Dema(http://dema.ruby.com.br/) has reported problems with mysql.so > > extension from RubyForApache. You can download either new version of > > RubyForApache or mysql.so dll from dema''s web site. > > > > Kent. > > > > On 7/19/05, Wolfgang Wopperer <wolfgang.wopperer-UkcLZtRm+6hlwAJJmLIKuQ@public.gmane.org> wrote: > > > Hi all, > > > > > > after not having encountered the infamous "Packets out of > > order" problem for > > > quite a long time, I''ve now fallen prey to it, too: > > > > > > I''ve implemented an action displaying an uploaded image which > > is stored in > > > the (MySQL) database (as described in Agile Web Development > with Rails). > > > Every time I called it, first the image wouldn''t be displayed > > and then any > > > subsequent call to RoR resulted in the "Packets out of order" > > error message. > > > > > > I tried the various solutions proposed on the mailing list and > > elsewhere on > > > the web: native MySQL driver - installation failed on my W2K > > box; mysql.so > > > from RubyOnApache - .NET dll needed (!); installed that - > > unstable system; > > > after deinstallation of all that, resetted MySQL password - > > nothing changed. > > > By now, I''m lucky if I get the error message, because most of > > the time Ruby > > > crashes instead. The only thing that seems to be reproducable is that > > > everything is fine until I try to display the image stored in MySQL. > > > > > > So - are there any further ideas how I might escape this > > problem? Somewhere > > > I read about a wrapper accessor method in the model class - are there > > > positive experiences with this approach? Should I (last resort) > > change my DB > > > to PostgreSQL? > > > > > > Any help is greatly appreciated - the problem is slowly driving > > me mad... > > > ;-) > > > > > > Thanks in advance! > > > > > > Wolfgang Wopperer > > > > > > mindmatters* > > > > > > * Neuer Kamp 30 > > > 20357 Hamburg > > > > > > Fon +49-(0)40-31 79 22 72 > > > Fax +49-(0)40-31 79 22 73 > > > E-Mail mailto:wolfgang.wopperer-UkcLZtRm+6hlwAJJmLIKuQ@public.gmane.org > > > Website www.mindmatters.de > > > > > > > > > -------------------------------------------------------------------------- > > > Es läuft und läuft und läuft: Schon über 10.000 Downloads für > > JSF-Spring, > > > unsere JSF-/Spring-Integrationslösung! Im Netz: > > jsf-spring.sourceforge.net > > > > > > -------------------------------------------------------------------------- > > > > > > _______________________________________________ > > > Rails mailing list > > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Here we go again - contrary to what I thought, the crashing problem seems to be connected to the native MySQL drivers. While my application runs smoothly with PostgreSQL and the pure Ruby MySQL driver, it crashes again (being bug free, this time ;-) with the native one. The error (described on the console as a Segmentation fault) seems to be triggered in the ActionController''s code_generation.rb in method dup, line 69: def dup copy = self.class.new(source) self.class::FieldsToDuplicate.each do |sym| value = self.send(sym) value = value.dup unless value.nil? || value.is_a?(Numeric) copy.send("#{sym}=", value) <<< the line where the error occurs end return copy end I''m back to the pure Ruby driver for now - if anyone knows another way out, please let me know!> Sorry for the noise - I just figured out that Ruby was crashing > because of a > bug in my code: I tried to access an attribute of a nonexistent local > variable, and instead of throwing a null pointer exception or something > similar, Ruby justs crashed. Kind of weird, but at least nothing > wrong with > the MySQL drivers. > > > Thanks for the tip, but I already used the latest RubyForApache > (sorry for > > the wrong name) version, and replacing it with dema''s mysql.so > > didn''t change > > anything (I suppose, the two .so-files are the same anyway?) - > Ruby still > > crashing. My configuration is: W2K, Ruby 1.8.2-15, MySQL 4.1.12. > > > > Wolfgang > > > > > Dema(http://dema.ruby.com.br/) has reported problems with mysql.so > > > extension from RubyForApache. You can download either new version of > > > RubyForApache or mysql.so dll from dema''s web site. > > > > > > Kent. > > > > > > On 7/19/05, Wolfgang Wopperer > <wolfgang.wopperer-UkcLZtRm+6hlwAJJmLIKuQ@public.gmane.org> wrote: > > > > Hi all, > > > > > > > > after not having encountered the infamous "Packets out of > > > order" problem for > > > > quite a long time, I''ve now fallen prey to it, too: > > > > > > > > I''ve implemented an action displaying an uploaded image which > > > is stored in > > > > the (MySQL) database (as described in Agile Web Development > > with Rails). > > > > Every time I called it, first the image wouldn''t be displayed > > > and then any > > > > subsequent call to RoR resulted in the "Packets out of order" > > > error message. > > > > > > > > I tried the various solutions proposed on the mailing list and > > > elsewhere on > > > > the web: native MySQL driver - installation failed on my W2K > > > box; mysql.so > > > > from RubyOnApache - .NET dll needed (!); installed that - > > > unstable system; > > > > after deinstallation of all that, resetted MySQL password - > > > nothing changed. > > > > By now, I''m lucky if I get the error message, because most of > > > the time Ruby > > > > crashes instead. The only thing that seems to be > reproducable is that > > > > everything is fine until I try to display the image stored in MySQL. > > > > > > > > So - are there any further ideas how I might escape this > > > problem? Somewhere > > > > I read about a wrapper accessor method in the model class - > are there > > > > positive experiences with this approach? Should I (last resort) > > > change my DB > > > > to PostgreSQL? > > > > > > > > Any help is greatly appreciated - the problem is slowly driving > > > me mad... > > > > ;-) > > > > > > > > Thanks in advance! > > > > > > > > Wolfgang Wopperer > > > > > > > > mindmatters* > > > > > > > > * Neuer Kamp 30 > > > > 20357 Hamburg > > > > > > > > Fon +49-(0)40-31 79 22 72 > > > > Fax +49-(0)40-31 79 22 73 > > > > E-Mail mailto:wolfgang.wopperer-UkcLZtRm+6hlwAJJmLIKuQ@public.gmane.org > > > > Website www.mindmatters.de > > > > > > > > > > > > > > -------------------------------------------------------------------------- > > > > Es läuft und läuft und läuft: Schon über 10.000 Downloads für > > > JSF-Spring, > > > > unsere JSF-/Spring-Integrationslösung! Im Netz: > > > jsf-spring.sourceforge.net > > > > > > > > > > -------------------------------------------------------------------------- > > > > > > > > _______________________________________________ > > > > Rails mailing list > > > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > _______________________________________________ > > > Rails mailing list > > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails