trinidad/trinidad_daemon_extension — Issue #6: Throws error when using OpenJDK on ubuntu 10.04 (works fine with SunJDK). 
Author: sauliusgrigaitis
Created: 2012-01-15 18:24:39+00:00
State: open

Hi,

it throws error when using OpenJDK on Ubuntu 10.04 (works fine with SunJDK). App starts without any problems if I do not use daemon extension.

$ jruby --server -J-Djruby.compile.mode=FORCE -S trinidad --threadsafe -e production --config config/trinidad.yml -p 8080 --load daemon --daemonize ./trinidad.pidNativeException: java.lang.UnsatisfiedLinkError: com.sun.jna.Native.pointerSize()I
pointerSize at com/sun/jna/Native.java:-2
at com/sun/jna/Native.java:88
at com/sun/akuma/CLibrary.java:54
resolvePID at com/sun/akuma/JavaVMArguments.java:103
ofLinux at com/sun/akuma/JavaVMArguments.java:91
of at com/sun/akuma/JavaVMArguments.java:81
current at com/sun/akuma/JavaVMArguments.java:69
invoke at java/lang/reflect/Method.java:616
start at /home/deployer/.rvm/gems/jruby-1.6.6.dev-head/gems/trinidad-1.3.1/lib/trinidad/server.rb:212
call at home$deployer$$_dot_rvm$gems$jruby_minus_1_dot_6_dot_6_dot_dev_minus_head$gems$trinidad_minus_1_dot_3_dot_1$lib$trinidad$server$method__19$RUBY$start:65535
call at home$deployer$$_dot_rvm$gems$jruby_minus_1_dot_6_dot_6_dot_dev_minus_head$gems$trinidad_minus_1_dot_3_dot_1$lib$trinidad$server$method__19$RUBY$start:65535
(root) at /home/deployer/.rvm/gems/jruby-1.6.6.dev-head/gems/trinidad-1.3.1/bin/trinidad:6
load at home/deployer/$_dot_rvm/gems/jruby_minus_1_dot_6_dot_6_dot_dev_minus_head/gems/trinidad_minus_1_dot_3_dot_1/bin//home/deployer/.rvm/gems/jruby-1.6.6.dev-head/gems/trinidad-1.3.1/bin/trinidad:-1
load at org/jruby/RubyKernel.java:996
(root) at /home/deployer/.rvm/gems/jruby-1.6.6.dev-head/bin/trinidad:19
load at home/deployer/$_dot_rvm/gems/jruby_minus_1_dot_6_dot_6_dot_dev_minus_head/bin//home/deployer/.rvm/gems/jruby-1.6.6.dev-head/bin/trinidad:-1

Thanks,
Saulius