This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uwe-kuboschs-macbook-pro:aifudis.operator uwe$ jruby --version | |
jruby 1.3.1 (ruby 1.8.6p287) (2009-06-15 2fd6c3d) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_15) [x86_64-java] | |
uwe-kuboschs-macbook-pro:aifudis.operator uwe$ gem list | |
*** LOCAL GEMS *** | |
activemessaging (0.5.0) | |
activerecord (2.3.3) | |
activerecord-jdbc-adapter (0.9) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module FFI::Library | |
def ffi_lib(*names) | |
ffi_libs = [] | |
errors = {} | |
names.each do |name| | |
[ name, FFI.map_library_name(name) ].each do |libname| | |
begin | |
lib = FFI::DynamicLibrary.open(libname, FFI::DynamicLibrary::RTLD_LAZY) | |
if lib | |
ffi_libs << lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/local/aifudis.operator/platform/jruby-1.4.0/lib/ruby/gems/1.8/gems/amqp-0.6.6/lib/amqp/client.rb:123:in `unbind' | |
/usr/local/aifudis.operator/platform/jruby-1.4.0/lib/ruby/gems/1.8/gems/eventmachine-0.12.10-java/lib/eventmachine.rb:1417:in `event_callback' | |
/usr/local/aifudis.operator/platform/jruby-1.4.0/lib/ruby/gems/1.8/gems/eventmachine-0.12.10-java/lib/jeventmachine.rb:82:in `eventCallback' | |
/usr/local/aifudis.operator/platform/jruby-1.4.0/lib/ruby/gems/1.8/gems/eventmachine-0.12.10-java/lib/jeventmachine.rb:101:in `run_machine' | |
/usr/local/aifudis.operator/platform/jruby-1.4.0/lib/ruby/gems/1.8/gems/eventmachine-0.12.10-java/lib/eventmachine.rb:256:in `run' | |
/usr/local/aifudis.operator/src/models/amqp_messaging.rb:32:in `start' | |
/usr/local/aifudis.operator/src/helpers/setup_logging.rb:38:in `call' | |
/usr/local/aifudis.operator/src/helpers/setup_logging.rb:38:in `start' | |
/usr/local/aifudis.operator/src/helpers/setup_logging.rb:36:in `start' | |
/usr/local/aifudis.operator/src/models/amqp_messaging.rb:31:in `star |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@sandra:/usr/local/jruby# ant spec-short | |
Buildfile: build.xml | |
init: | |
jar: | |
init: | |
extract-rdocs: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.jruby.RubyInstanceConfig.CompileMode; | |
import org.jruby.embed.LocalContextScope; | |
import org.jruby.embed.ScriptingContainer; | |
public class Test { | |
public static void main(String[] args) { | |
System.setProperty("jruby.home", "/Users/uwe/workspace/aifudis/aifudis.dispatcher/platform/jruby"); | |
ScriptingContainer container = new ScriptingContainer(LocalContextScope.THREADSAFE); | |
container.getProvider().getRubyInstanceConfig().setCompileMode(CompileMode.JIT); | |
container.put("my_var", "Hullo!"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macbeth:activerecord-jdbc-adapter uwe$ jruby -S rake test_derby | |
(in /Users/uwe/workspace/aifudis/activerecord-jdbc-adapter) | |
no such file to load -- hoe | |
/Users/uwe/workspace/aifudis/aifudis.operator/platform/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' | |
/Users/uwe/workspace/aifudis/aifudis.operator/platform/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' | |
/Users/uwe/workspace/aifudis/activerecord-jdbc-adapter/rakelib/package.rake:13 | |
/Users/uwe/workspace/aifudis/activerecord-jdbc-adapter/rakelib/package.rake:1620:in `load' | |
/Users/uwe/workspace/aifudis/aifudis.operator/platform/jruby-1.5.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1620:in `load' | |
/Users/uwe/workspace/aifudis/aifudis.operator/platform/jruby-1.5.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2451:in `load_imports' | |
/Users/uwe/workspace/aifudis/aifudis.operator/platform/jruby-1.5.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2390:in `raw_load_rakefile' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macbeth:aifudis.operator uwe$ jruby -J-XstartOnFirstThread -S jirb | |
>> require 'lib/swt-x86_64-darwin.jar' | |
=> true | |
>> require 'java' | |
=> true | |
>> import org.eclipse.swt.widgets.Shell | |
=> Java::OrgEclipseSwtWidgets::Shell | |
>> import org.eclipse.swt.SWT | |
=> Java::OrgEclipseSwt::SWT | |
>> s = Shell.new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@webdatek:/usr/local/datekwww_beta# /etc/init.d/datekwww_beta restart | |
su - hudson -c "cd /usr/local/datekwww_beta ; jruby -S trinidad -t -p 3001 -e production -ldaemon --daemonize /usr/local/datekwww_beta/tmp/pids/server.pid 1>/usr/local/datekwww_beta/log/stdout.log 2>/usr/local/datekwww_beta/log/stderr.log" | |
Waiting for process to start... | |
Waiting for process to start... | |
Waiting for process to start... | |
Waiting for process to start... | |
Waiting for process to start... | |
Waiting for process to start... | |
Waiting for process to start... | |
Waiting for process to start... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[datek@alt-cargonet-gtps01 CargoNetAnkomstBeregning]$ ./memdump.sh | |
java version "1.6.0_21" | |
Java(TM) SE Runtime Environment (build 1.6.0_21-b06) | |
Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode) | |
jruby 1.6.0.RC2 (ruby 1.8.7 patchlevel 330) (2011-02-09 5434c72) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_21) [linux-amd64-java] | |
num #instances #bytes class name | |
---------------------------------------------- | |
1: 686890 43960960 org.jruby.RubyString | |
2: 384888 40919184 [B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
W/dalvikvm( 1823): threadid=1: thread exiting with uncaught exception (group=0x40014760) | |
E/AndroidRuntime( 1823): FATAL EXCEPTION: main | |
E/AndroidRuntime( 1823): java.lang.UnsupportedOperationException: can't load this type of class file | |
E/AndroidRuntime( 1823): at java.lang.VMClassLoader.defineClass(Native Method) | |
E/AndroidRuntime( 1823): at java.lang.ClassLoader.defineClass(ClassLoader.java:327) | |
E/AndroidRuntime( 1823): at org.jruby.util.ClassCache$OneShotClassLoader.defineClass(ClassCache.java:68) | |
E/AndroidRuntime( 1823): at org.jruby.java.codegen.RealClassGenerator.defineOldStyleImplClass(RealClassGenerator.java:241) | |
E/AndroidRuntime( 1823): at org.jruby.java.codegen.RealClassGenerator.createOldStyleImplClass(RealClassGenerator.java:63) | |
E/AndroidRuntime( 1823): at org.jruby.javasupport.Java.newInterfaceImpl(Java.java:1121) | |
E/AndroidRuntime( 1823): at org.jruby.java.proxies.JavaInterfaceTemplate.jcreateProxy(JavaInterfaceTemplate.java:287) |
OlderNewer