JRuby

GlassFish v3 Gem throws NPE

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: JRuby 1.0.2
  • Fix Version/s: None
  • Component/s: Core Classes/Modules
  • Labels:
    None
  • Environment:
    Windows Vista, JDK 1.5_012
  • Number of attachments :
    0

Description

On JRuby 1.0.2, installed GlassFish v3 gem from:

http://download.java.net/maven/glassfish/com/sun/enterprise/glassfish/glassfish-gem/10.0-SNAPSHOT/glassfish-gem-10.0-SNAPSHOT.gem

Created a template app and starting it using glassfish_rails script gives the following error:

– cut here –
INFO: Listening on port 8080
Nov 7, 2007 5:58:19 PM com.sun.grizzly.standalone.StaticResourcesAdapter <init>
INFO: New Servicing page from: C:\workarea\samples\rails\hello\public
C:/testbed/ruby/jruby-1.0.2/lib/ruby/1.8/pathname.rb:420:in `realpath_rec': No such file or director
y - /C: (Errno::ENOENT)
from C:/testbed/ruby/jruby-1.0.2/lib/ruby/1.8/pathname.rb:453:in `realpath'
from C:/testbed/ruby/jruby-1.0.2/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/initializer.rb:543:i
n `set_root_path!'
from C:/testbed/ruby/jruby-1.0.2/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/initializer.rb:509:i
n `initialize'
from /C:/workarea/samples/rails/hello/config/boot.rb:38:in `new'
from /C:/workarea/samples/rails/hello/config/boot.rb:38:in `run'
from /C:/workarea/samples/rails/hello/config/boot.rb:38
from /C:/workarea/samples/rails/hello/config/environment.rb:11:in `require'
from /C:/workarea/samples/rails/hello/config/environment.rb:11
from :1
...internal jruby stack elided...
from org.jruby.Ruby.loadScript(Ruby.java:1209)
from org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:53)
from org.jruby.runtime.load.LoadService.smartLoad(LoadService.java:307)
from org.jruby.runtime.load.LoadService.require(LoadService.java:333)
from com.sun.grizzly.jruby.RubyObjectPool.loadRubyLibraries(RubyObjectPool.java:153)
from com.sun.grizzly.jruby.RubyObjectPool.start(RubyObjectPool.java:127)
from com.sun.enterprise.rails.RailsDeployer.load(RailsDeployer.java:75)
from com.sun.enterprise.rails.RailsDeployer.load(RailsDeployer.java:46)
from com.sun.enterprise.v3.services.impl.ApplicationLoaderService$1.load(ApplicationLoaderSe
rvice.java:295)
from com.sun.enterprise.v3.server.ApplicationLifecycle.load(ApplicationLifecycle.java:224)
from com.sun.enterprise.v3.services.impl.ApplicationLoaderService.postConstruct(ApplicationL
oaderService.java:156)
from com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:79)
from com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:29)
from com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:21)
from com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:70)
from org.jvnet.hk2.component.Habitat$1.get(Habitat.java:75)
from java.util.AbstractList$Itr.next(AbstractList.java:422)
from com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:105)
from com.sun.enterprise.module.bootstrap.Main.launch(Main.java:274)
from com.sun.enterprise.module.bootstrap.Main.launch(Main.java:235)
from com.sun.enterprise.module.bootstrap.Main.start(Main.java:133)
from com.sun.enterprise.module.bootstrap.Main$1.run(Main.java:56)
No such file or directory - /C:
Nov 7, 2007 5:58:21 PM com.sun.enterprise.v3.server.ApplicationLifecycle failure
SEVERE: Exception while invoking class com.sun.enterprise.v3.services.impl.ApplicationLoaderService$
1 prepare method
java.lang.NullPointerException
at org.jruby.javasupport.JavaEmbedUtils.rubyToJava(JavaEmbedUtils.java:108)
at com.sun.enterprise.rails.RailsDeployer.load(RailsDeployer.java:83)
at com.sun.enterprise.rails.RailsDeployer.load(RailsDeployer.java:46)
at com.sun.enterprise.v3.services.impl.ApplicationLoaderService$1.load(ApplicationLoaderServ
ice.java:295)
at com.sun.enterprise.v3.server.ApplicationLifecycle.load(ApplicationLifecycle.java:224)
at com.sun.enterprise.v3.services.impl.ApplicationLoaderService.postConstruct(ApplicationLoa
derService.java:156)
at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:79)
at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:29)
at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:21)
at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:70)
at org.jvnet.hk2.component.Habitat$1.get(Habitat.java:75)
at java.util.AbstractList$Itr.next(AbstractList.java:422)
at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:105)
at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:274)
at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:235)
at com.sun.enterprise.module.bootstrap.Main.start(Main.java:133)
at com.sun.enterprise.module.bootstrap.Main$1.run(Main.java:56)
Nov 7, 2007 5:58:21 PM com.sun.enterprise.v3.server.AppServerStartup run
INFO: Startup service : Application Loader
Nov 7, 2007 5:58:21 PM com.sun.enterprise.v3.server.AppServerStartup run
INFO: Startup service : Grizzly on port 8080
– cut here –

It works with the trunk updated few minutes ago (Nov 8, 2:10pm).

Activity

Hide
Nick Sieger added a comment -

If JRuby 1.0.2 runs Rails 1.2.5 with webrick just fine, this would seem to be a glassfish gem issue.

Show
Nick Sieger added a comment - If JRuby 1.0.2 runs Rails 1.2.5 with webrick just fine, this would seem to be a glassfish gem issue.
Hide
Arun Gupta added a comment -

This is similar to http://jira.codehaus.org/browse/JRUBY-1401 and that's why wondering it's a JRuby issue. Moreover it works with the trunk and fails with 1.0.2 only. Let me know if you still think it's a GlassFish Gem issue and I'll follow accordingly.

Show
Arun Gupta added a comment - This is similar to http://jira.codehaus.org/browse/JRUBY-1401 and that's why wondering it's a JRuby issue. Moreover it works with the trunk and fails with 1.0.2 only. Let me know if you still think it's a GlassFish Gem issue and I'll follow accordingly.
Hide
Daniel Berger added a comment -

On Windows File.lstat is the same as File.stat. I think there's a bug in JRuby there, but I'm not sure if it's related. I'll file that separately.

Show
Daniel Berger added a comment - On Windows File.lstat is the same as File.stat. I think there's a bug in JRuby there, but I'm not sure if it's related. I'll file that separately.
Hide
Charles Oliver Nutter added a comment -

If it works with trunk I'm inclined to ignore it. Does it work with 1.0.3?

Show
Charles Oliver Nutter added a comment - If it works with trunk I'm inclined to ignore it. Does it work with 1.0.3?
Hide
Charles Oliver Nutter added a comment -

GlassFish gem does not support JRuby 1.0.x. Sorry! Upgrade to 1.1.x.

Show
Charles Oliver Nutter added a comment - GlassFish gem does not support JRuby 1.0.x. Sorry! Upgrade to 1.1.x.

People

Vote (0)
Watch (4)

Dates

  • Created:
    Updated:
    Resolved: