Jruby Runtime error

When I try to access the Jruby application I am receiving below runtime
error.

In shared/navigation_bar.html.erb

WEB-INF/gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:249

:in load_missing_constant' WEB-INF/gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453 :inconst_missing’
WEB-INF/gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:465
:in const_missing' WEB-INF/gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:260 :inload_missing_constant’
WEB-INF/gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453
:in const_missing' WEB-INF/gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:260 :inload_missing_constant’
WEB-INF/gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:469
:in const_missing' WEB-INF/gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:260 :inload_missing_constant’
WEB-INF/gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453
:in const_missing' app/views/shared/navigation_bar.html.erb:68:in_run_erb_47app47views47share
d47navigation_bar46html46erb’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_view/base.rb:637:in
compile_a nd_render_template' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_view/base.rb:365:inrender_te
mplate’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_view/base.rb:316:in
render_fi le' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_view/base.rb:331:inrender’
app/views/login/login.html.erb:3:in
_run_erb_47app47views47login47login46ht ml46erb' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_view/base.rb:637:incompile_a
nd_render_template’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_view/base.rb:365:in
render_te mplate' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_view/base.rb:316:inrender_fi
le’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:1100:in
re nder_for_file' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:836:inren
der’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/layout.rb:262:in
r ender_with_a_layout' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:51: inrender_with_benchmark’
WEB-INF/lib/jruby-complete-1.1RC3.jar!/benchmark.rb:293:in measure' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:51: inrender_with_benchmark’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:1153:in
de fault_render' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:1159:inpe
rform_action’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in
call_filters' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in
perform_action_with_filters’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:
in perform_action_with_benchmark' WEB-INF/lib/jruby-complete-1.1RC3.jar!/benchmark.rb:293:inmeasure’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:
in perform_action_with_benchmark' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:inp
erform_action_with_rescue’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in
perform_action_with_caching' WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/connection_adapters/a bstract/query_cache.rb:33:incache’
WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:in
cache' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in
perform_action_with_caching’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in
pro cess' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in
process_with_filters’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/session_management.
rb:123:in process_with_session_management_support' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:inpro
cess’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:i
n handle_request' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:i ndispatch’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:i
n dispatch_cgi' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:indispatch’

-Sam

First is there a way you can upgrade jruby? 1.1RC3 is pretty out of
date.

Second what constant is missing. This almost looks like you are
missing a require or something vs it being a jruby thing.

Jay

On Thu, Mar 11, 2010 at 1:09 AM, Sam L. [email protected] wrote:

:in const_missing' WEB-INF/gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453 WEB-INF/gems/gems/actionpack-2.0.2/lib/action_view/base.rb:316:in WEB-INF/gems/gems/actionpack-2.0.2/lib/action_view/base.rb:365:in der' fault_render' inperform_action_with_benchmark’
bstract/query_cache.rb:33:in cache'
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:i
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Jay,

The problem is this application is working fine in windows OS, Even it
is working fine in solaris OS.

The problem is in solarise OS this application is not that stable. We
use same war file and working sometime and after few hours it start to
give above exception.

Can you please let me know what is the reason it’s working fine some
time and after some time it is failing.

-Sam

Hi Sam,

Could you please provide a bit more detail?
What Java version, JRuby version, what exception you see?
Any sample to reproduce?

Thanks,
–Vladimir

On Fri, Mar 12, 2010 at 4:59 AM, Sam L. [email protected] wrote:

time and after some time it is failing.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Ah, sorry, my gmail got mixed up and I missed the whole exchange.

Or, maybe, the responses via ruby-forum are generating top-level
messages, and hence the beginning of the conversation is missed.

Thanks,
–Vladimir

On Fri, Mar 12, 2010 at 8:05 AM, Vladimir S. [email protected]
wrote:

Jay,


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Charles Nutter wrote:

This seems to be the case; it’s cleaving threads in half because it’s
not including appropriate headers…

Someone should report that to them :slight_smile:

Thanks for you replay. Can you please let me know To whom I need to
report.

I am also feeling that it is some threading issue. I also observer when
we remove browser cache then I can access the application using same
code Other thing I observer is it’s giving error because of cache or due
to reading session variable.(process_with_session_management_support)

Please advice.

-Sam

This seems to be the case; it’s cleaving threads in half because it’s
not including appropriate headers…

Someone should report that to them :slight_smile:

On Fri, Mar 12, 2010 at 1:08 AM, Vladimir S. [email protected]
wrote:

The problem is this application is working fine in windows OS, Even it


To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Wed, Mar 17, 2010 at 9:05 PM, Sam L. [email protected] wrote:

Charles Nutter wrote:

This seems to be the case; it’s cleaving threads in half because it’s
not including appropriate headers…

Someone should report that to them :slight_smile:

Thanks for you replay. Can you please let me know To whom I need to
report.

Sorry, I was referring to the ruby-forum gateway splitting email
threads in half :slight_smile:

I am also feeling that it is some threading issue. I also observer when
we remove browser cache then I can access the application using same
code Other thing I observer is it’s giving error because of cache or due
to reading session variable.(process_with_session_management_support)

Taking a closer look at your original email…

I would strongly recommend that you not use JRuby 1.1RC3. It’s now
over two years old, and was an RC after all. Can you provide more
information about how you’re building your WAR file? I think you’re
picking up a really old JRuby somewhere.

If you have absolutely no choice but to stay with 1.1RC3, our ability
to help you will be very limited :frowning:

  • Charlie

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Wed, Mar 17, 2010 at 9:42 PM, Sam L. [email protected] wrote:

I use Jruby1.1.4 version with below gems.

1.1.4 is over 1.5 years old, and GoldSpike has been deprecated for
almost two years, so you’re on the right track to move to Warbler.

Is this an existing application that had been working fine, and you’re
just not trying to move it to Solaris and having trouble?

hoe (1.9.0)
sources (0.0.1)
ssl_requirement (0.1.0)
warbler (0.9.4)

I hate to say it, but this list of gems is really old. I’m not sure
AR-JDBC will even work properly with a recent JRuby version.

I wish it were possible to be more helpful, but this app seems to have
decayed quite a bit. What was that error again?

  • Charlie

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Charles Nutter wrote:

On Wed, Mar 17, 2010 at 9:42 PM, Sam L. [email protected] wrote:

I use Jruby1.1.4 version with below gems.

1.1.4 is over 1.5 years old, and GoldSpike has been deprecated for
almost two years, so you’re on the right track to move to Warbler.

Is this an existing application that had been working fine, and you’re
just not trying to move it to Solaris and having trouble?

hoe (1.9.0)
sources (0.0.1)
ssl_requirement (0.1.0)
warbler (0.9.4)

I hate to say it, but this list of gems is really old. I’m not sure
AR-JDBC will even work properly with a recent JRuby version.

I wish it were possible to be more helpful, but this app seems to have
decayed quite a bit. What was that error again?

  • Charlie

Hi,

This application we started to develop 1.5 year ago and this application
is working in production since last 1 year but in QA environment this
application is giving that kind of exception from last 4 month. This
application is deployed in solarise since first day of deployment and it
is working fine in solaris OS as well earlier. The environment is also
same but I don’t know the did some solarise update in between.

-Sam

Charles Nutter wrote:

On Wed, Mar 17, 2010 at 9:05 PM, Sam L. [email protected] wrote:

Charles Nutter wrote:

This seems to be the case; it’s cleaving threads in half because it’s
not including appropriate headers…

Someone should report that to them :slight_smile:

Thanks for you replay. Can you please let me know To whom I need to
report.

Sorry, I was referring to the ruby-forum gateway splitting email
threads in half :slight_smile:

I am also feeling that it is some threading issue. I also observer when
we remove browser cache then I can access the application using same
code Other thing I observer is it’s giving error because of cache or due
to reading session variable.(process_with_session_management_support)

Taking a closer look at your original email…

I would strongly recommend that you not use JRuby 1.1RC3. It’s now
over two years old, and was an RC after all. Can you provide more
information about how you’re building your WAR file? I think you’re
picking up a really old JRuby somewhere.

If you have absolutely no choice but to stay with 1.1RC3, our ability
to help you will be very limited :frowning:

  • Charlie

Hi Charlie,

I use Jruby1.1.4 version with below gems.

actionmailer (2.0.2)
actionpack (2.1.1, 2.0.2)
activerecord (2.0.2)
activerecord-jdbc-adapter (0.9, 0.8.2)
activerecord-jdbcderby-adapter (0.9)
activeresource (2.0.2)
activesupport (2.1.1, 2.0.2)
calendar_date_select (1.15, 1.13)
cgi_multipart_eof_fix (2.5.0)
gem_plugin (0.2.3)
hoe (1.9.0)
jdbc-derby (10.3.2.1)
jruby-jars (1.4.0)
jruby-openssl (0.1.1)
mislav-will_paginate (2.3.6)
mongrel (1.1.2)
rails (2.0.2)
rake (0.8.7, 0.8.4, 0.8.1)
rspec (1.1.4)
ruby-net-ldap (0.0.4)
rubyforge (1.0.3)
sources (0.0.1)
ssl_requirement (0.1.0)
warbler (0.9.4)

I use to build the war file using Gold spike plugin. I am trying to do
now using Warbler to fix that issue.

-Sam

I also recommend upgrading since we have fixed several concurrency
bugs since then as well as hundreds/thousands of others. It may take
a little work, but I will lay money that you won’t have this error
anymore once you are done.

If you cannot upgrade easily you can try disabling the JIT to see if
the errror goes away:

-J-Djruby.compile.mode=OFF

We did have a concurrency error back then when replacing the default
interpreted version of the method with the JIT’d one. If you change
this and it does not work then you are tripping on something else.
Like I said we have fixed multiple concurrency bugs since then.

-Tom

On Thu, Mar 18, 2010 at 9:37 AM, Sam L. [email protected] wrote:

same but I don’t know the did some solarise update in between.
to define Login for login
WEB-INF/gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:260:in
const_missing' app/views/login/login.html.erb:3:inrender’
perform_action'perform_action_with_rescue’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in
`dispatch_cgi’
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


blog: http://blog.enebo.com twitter: tom_enebo
mail: [email protected]


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Sam L. wrote:

Charles Nutter wrote:

On Wed, Mar 17, 2010 at 9:42 PM, Sam L. [email protected] wrote:

I use Jruby1.1.4 version with below gems.

1.1.4 is over 1.5 years old, and GoldSpike has been deprecated for
almost two years, so you’re on the right track to move to Warbler.

Is this an existing application that had been working fine, and you’re
just not trying to move it to Solaris and having trouble?

hoe (1.9.0)
sources (0.0.1)
ssl_requirement (0.1.0)
warbler (0.9.4)

I hate to say it, but this list of gems is really old. I’m not sure
AR-JDBC will even work properly with a recent JRuby version.

I wish it were possible to be more helpful, but this app seems to have
decayed quite a bit. What was that error again?

  • Charlie

Hi,

This application we started to develop 1.5 year ago and this application
is working in production since last 1 year but in QA environment this
application is giving that kind of exception from last 4 month. This
application is deployed in solarise since first day of deployment and it
is working fine in solaris OS as well earlier. The environment is also
same but I don’t know the did some solarise update in between.

-Sam
Hi ,

I am receiving below exception While rendering first page of the
application.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
rescuing exception globally - Expected
/opt/wlpdomain/servers/stAppServer02/tmp/_WL_user/LoginApp/qkatyo/war/app/models/login.rb
to define Login for login
printing stack trace now…"
In shared/navigation_bar.html.erb

WEB-INF/gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:249:in 

load_missing_constant' WEB-INF/gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453:inconst_missing’
WEB-INF/gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:465:in
const_missing' WEB-INF/gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:260:inload_missing_constant’
WEB-INF/gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453:in
const_missing' WEB-INF/gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:260:inload_missing_constant’
WEB-INF/gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:469:in
const_missing' WEB-INF/gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:260:inload_missing_constant’
WEB-INF/gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453:in
const_missing' app/views/shared/navigation_bar.html.erb:68:in_run_erb_47app47views47shared47navigation_bar46html46erb’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_view/base.rb:637:in
compile_and_render_template' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_view/base.rb:365:inrender_template’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_view/base.rb:316:in
render_file' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_view/base.rb:331:inrender’
app/views/login/login.html.erb:3:in
_run_erb_47app47views47login47login46html46erb' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_view/base.rb:637:incompile_and_render_template’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_view/base.rb:365:in
render_template' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_view/base.rb:316:inrender_file’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:1100:in
render_for_file' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:836:inrender’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/layout.rb:262:in
render_with_a_layout' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:51:inrender_with_benchmark’
WEB-INF/lib/jruby-complete-1.1RC3.jar!/benchmark.rb:293:in measure' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:51:inrender_with_benchmark’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:1153:in
default_render' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:1159:inperform_action’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in
call_filters' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:inperform_action_with_filters’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in
perform_action_with_benchmark' WEB-INF/lib/jruby-complete-1.1RC3.jar!/benchmark.rb:293:inmeasure’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in
perform_action_with_benchmark' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:inperform_action_with_rescue’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in
perform_action_with_caching' WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:incache’
WEB-INF/gems/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:in
cache' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:inperform_action_with_caching’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in
process' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:inprocess_with_filters’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in
process_with_session_management_support' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:inprocess’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in
handle_request' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:indispatch’
WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in
dispatch_cgi' WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:indispatch’
:1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Please advice.
-Sam

Thomas E Enebo wrote:

I also recommend upgrading since we have fixed several concurrency
bugs since then as well as hundreds/thousands of others. It may take
a little work, but I will lay money that you won’t have this error
anymore once you are done.

If you cannot upgrade easily you can try disabling the JIT to see if
the errror goes away:

-J-Djruby.compile.mode=OFF

We did have a concurrency error back then when replacing the default
interpreted version of the method with the JIT’d one. If you change
this and it does not work then you are tripping on something else.
Like I said we have fixed multiple concurrency bugs since then.

-Tom

On Thu, Mar 18, 2010 at 9:37 AM, Sam L. [email protected] wrote:

same but I don’t know the did some solarise update in between.
to define Login for login
� �WEB-INF/gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:260:in
const_missing' � �app/views/login/login.html.erb:3:inrender’
perform_action'perform_action_with_rescue’
� �WEB-INF/gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in
`dispatch_cgi’
To unsubscribe from this list, please visit:

� �http://xircles.codehaus.org/manage_email

Where are need to put that -J-Djruby.compile.mode=OFF, I try in console
but it is giving

‘-Djruby.compile.mode’ is not recognized as an internal or external
command,
operable program or batch file.

Remove the -J and then supply this -D java property setting to your
Java application server. How this is done varies per app server so
you may need to figure out how to do this.

-Tom

On Thu, Mar 18, 2010 at 3:51 PM, Sam L. [email protected] wrote:

To unsubscribe from this list, please visit:
but it is giving

  http://xircles.codehaus.org/manage_email


blog: http://blog.enebo.com twitter: tom_enebo
mail: [email protected]


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Thanks Thomas.

We fix that issue after deleting connection pool and creating new
connection pool with the same name. Looks like the connection pool is
not responding at some stage.

-Sam

I tried to do today using warble war and it is working in one solaris
box and does not working in another solaris box. It is giving “The
server is currently overload please try again” from last 30 min.

please advice.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs