Unofficial Content
  • This documentation is valid for:

1. Error The specified module could not be found

When the mySql drivers are not installed , the following error will ocurre when the reorganization is tried to run 

\========== Reorganization started ==========
ruby -c "C:\Models\TestTipoWindow2\rubyapp\web\reorganization.rb"
Syntax OK
ruby "C:\Models\TestTipoWindow2\rubyapp\web\reorganization.rb"  -nogui -noverifydatabaseschema
c:/ruby/lib/ruby/gems/1.8/gems/mysql-2.7.3-mswin32/ext/mysql.so: 126: The specified module could not be found.   - c:/ruby/lib/ruby/gems/1.8/gems/mysql-2.7.3-mswin32/ext/mysql.so (LoadError)
                from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'
                from ./gxdbaccess.rb:14
                from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
                from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
                from ./reorg.rb:10
                from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
                from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
                from C:/Models/TestTipoWindow2/rubyapp/web/reorganization.rb:9
Reorganization Failed
error: Error in reorganization

SOLUTION: Install the MySql drivers: C:\ruby>gem install mysql
See more details in Ruby Generator Requirements

2. Error runing PDF report


If the pdf-writer gem is no installed, the application throws an following error, at the moment of executing a PDF report: Error 404 page not found.
One way to know the cause of the problem is to try to load the report by command line:
>irb
irb(main):001:0> load 'printinvoice.rb'
LoadError: no such file to load -- pdf/writer
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `ge
m_original_require'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `re
quire'
        from ./gxrptpdf.rb:2
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `ge
m_original_require'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `re
quire'
        from ./gxrptfact.rb:1
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `ge
m_original_require'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `re
quire'
        from ./printinvoice.rb:12
        from (irb):1:in `load'
        from (irb):1

Solution: Install the pdf-writer gem, by running the installgems.bat distributed with the generator.

3. Error trying to upload / download blob attribute (unix environment)

Error
Permission denied - ./12194231090.JPG
Stack
./gxblob.rb:17:in `initialize'
./gxblob.rb:17:in `open'
./gxblob.rb:17:in `create_file'
./gxblob.rb:93:in `db2file'
./gxdbaccess.rb:415:in `load'

Check Blob Local Storage path and Temp Media Directory properties.
You can change those values also by editing gxconfigure.yaml file. Check that the referenced paths exist, and have write permissions.


Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant