Data dodania Pytanie
2017-04-21 01:04 JRuby installation failing unless sudo with "undefined local variable or method `r' for main:Object" »
UPDATE: everything works when I use sudo (e.g. sudo rbenv install jruby-9.1.2.0). But I don't want that :). $ ruby -v NameError: undefined local var...
(1) odpowiedzi
2017-04-20 11:04 Using JRuby with Oracle Database to populate a database »
I am looking to populate a database using jruby. I followed the instructions here and I have updates and queries working great. My issue is with the i...
(1) odpowiedzi
2017-04-18 14:04 EXEC at remote server using paramaterized query »
I am trying to run the following SQL on a Linked Server; INSERT INTO dbo.test (FirstName, LastName)Values(?,?) dbo.test exists on a linked server w...
(1) odpowiedzi
2017-04-15 17:04 libgdx trouble rotating 3d model in 2 of 3 axes »
I'm learning about 3d models and libgdx. I'm trying to rotate my model in 3 axes depending on a keypress. My problem is, I'm able to rotate in one axi...
(1) odpowiedzi
2017-04-10 15:04 Esper display context partitions using EPContextPartitionAdmin (JRuby) »
I have a working Esper instance running using JRuby. I have have created a context, some EPL statements and got the events flowing, everything is work...
(0) odpowiedzi
2017-03-31 18:03 Jruby OpenSSL RSA Base64 private key failed to instantiate object »
In Ruby i have simple old source line which create RSA public or private keys: OpenSSL::PKey::RSA.new(File.read(key_file)) My RSA public and privat...
(1) odpowiedzi
2017-03-25 14:03 How add ruby file to Rails application and make it auto-loadable/executable on Rails app start? »
I am trying to add some external non-rails services to my JRuby Rails application (from another framework). I want to run a Ruby file in the context ...
(1) odpowiedzi
2017-03-25 01:03 Can't use Vertx EventBus from official code example on Vertx.io »
I have 2 very simple Vertx verticles written in Ruby: ### sender.rb require 'vertx/vertx' require 'date' vertx = Vertx::Vertx.vertx() event_bus = ver...
(1) odpowiedzi
2017-03-24 14:03 Jruby 9.1.8.0 unknown encoding name: UTF8 (argument error) »
Platform: Windows 7 (x64) Jruby: 9.1.8.0 (2.3.1) jdk: 1.8.0_121 (x64) When trying to run a cucumber test in the command line using "jruby -S" I sta...
(0) odpowiedzi
2017-03-19 02:03 Unable to install any ruby gems »
I am trying to install Rails on my Mac. I keep getting a Jruby error or something of the sort: gem install rails Loading jruby-openssl in a non-JRuby...
(0) odpowiedzi
2017-03-17 12:03 Java UI on top of Ruby script »
I've been searching for answer without any luck for the below problem: I have a quite lengthy ruby script which if you run in terminal(MAC) requires...
(0) odpowiedzi
2017-03-15 21:03 How to include gems in java implementation using jRuby? »
I have written a demo program to run ruby code in java(basically scala, but it's quite similar) using jRuby. Here is what I am doing: package com.fl...
(0) odpowiedzi
2017-03-15 14:03 Trying to write a Java wrapper which will start or stop logstash »
I have written a java wrapper which I am using to run logstash. I want, if my parent thread dies all the ruby threads should get killed. Currently, Ex...
(0) odpowiedzi
2017-03-10 14:03 Logstash with fluent input codec not working »
I have been using logstash with gelf already and wanted to check out fluent input (mainly due to TCP based docker log-driver for fluent as opposed to ...
(1) odpowiedzi
2017-03-08 13:03 XPath Parsing in JRuby »
This is my line of code in JRuby when XPath.match(@xmlDoc, "//services/service[./serviceType = 'ADDRESSBOOK']/@data-uri").value When I run this I g...
(1) odpowiedzi
2017-03-02 18:03 Cucumber::Cli::Main throws Exiting... Interrupt again to exit immediately when Ctrl + C on windows »
I am running a rails app as a WAR file with JRuby 9000 and a jetty v9 server. Senario: When I am finished running the cucumber test via Cucumber::Cli...
(0) odpowiedzi
2017-03-02 14:03 How to use out=STDOUT, err=STDERR in Cucumber::Cli::Main to display output in HTML »
I am running a cucumber script by executing: Cucumber::Cli::Main.new(args).execute! I am trying to get the output from Cucumber into a variable, an...
(1) odpowiedzi
2017-03-01 05:03 jruby - import java class into jruby as different name »
I'm using a game framework, libgdx, which includes its own Array class which collides with the JRuby built-in Array. Is there a way to java_import 'co...
(1) odpowiedzi
2017-03-01 02:03 Partition a loop to be processed on different cores parallel »
How can I accomplish a loop that will que it's iterations on the available CPU cores? So each iteration will be run in parallel and therefore finish f...
(0) odpowiedzi
2017-02-28 23:02 NoMethodError: undefined method `bindings' for java.lang.NullPointerException »
we're working on a ruby on rails (4.2.8) application which is running on jruby-1.7.25. It really is time to update this mummy to the latest version 9....
(0) odpowiedzi
2017-02-25 12:02 Recommended approach for invoking functions (use CompiledScript or not?) »
I'm writing a library which offers macro support to be executed in various non-Java languages on the JVM. Think of JavaScript, Ruby etc. Therefor I w...
(0) odpowiedzi
2017-02-23 21:02 How do you know when Cucumber::Cli::Main.new(args).execute has finished executing »
I am running a cucumber script by executing Cucumber::Cli::Main.new(args).execute! But Ruby moves to the next line and starts reading from the file. ...
(1) odpowiedzi
2017-02-23 16:02 How do I get the output (STDOUT) from Cucumber::CLI::Main.execute into a variable »
Running a cucumber script in Jruby 9.1.7.0. The output goes to STDOUT. How can I get it to save it into a local variable ? require 'cucumber' require...
(2) odpowiedzi
2017-02-23 04:02 Slow basic operations JRuby rake task »
I'm trying to diagnose a performance problem with JRuby and Rails without much luck. Essentially, I have a JRuby on Rails 5 application that is going...
(1) odpowiedzi
2017-02-21 15:02 How to create async for loops? »
Is it possible to make a for loop divided asynchronous? That each iteration will be calculated in parallel to speed up the iteration? ...
(1) odpowiedzi
2017-02-21 14:02 Ruby Table Data Structure to PL/SQL »
Is there a way in Ruby to populate a table of data that would then be passed to a stored procedure? Essentially what I'm trying to do is something li...
(1) odpowiedzi
2017-02-20 15:02 Running a rake-tasks under jruby runs them twice »
I do run a jruby application in a tomcat container, deployed using a WAR file, packaged using warable. When executing rake-tasks i run the following ...
(0) odpowiedzi
2017-02-17 16:02 Issues writing text file to IFS though jt400 »
All I'm trying to do is to drop a log on IFS Here is my code: def write(target_filename, data) stream = com.ibm.as400.access.IFSFileOutputStre...
(0) odpowiedzi
2017-02-17 02:02 How to suppress HBase Shell warning message in JRuby? »
I need to perform some hbase commands using JRuby. In the following example I am trying to pass disable 'tab_name' command in hbase shell. The command...
(0) odpowiedzi
2017-02-16 21:02 How to setExceptionListener in Jruby »
I'm new to Jruby and currently working on an app needs to convert Java code to Jruby for JMS client, here is the code in java: connection.setExceptio...
(0) odpowiedzi
2017-02-11 17:02 Gem install not finding existing gem »
When running gem install I get the following: gregoryostermayr@gregors test $ gem install jruby-boilerpipe ERROR: Could not find a valid gem 'jruby...
(1) odpowiedzi
2017-02-10 15:02 warbler WAR to deploy at tomcat, trouble with relativ URL root »
i have a Rails 4.2.7.1 project that I'm attempting to deploy to Tomcat 7 with JRuby 9.1.5.0 and Warbler 2.0.4 When I deploy it to the root context it ...
(1) odpowiedzi
2017-02-09 00:02 Rufus cron scheduling not working on a jetty server »
Steps to replicate: Create a new Rails project. (rails 3.2.22.5) Add dependencies (warbler, rake, rufus-scheduler) (/Gemfile) JRuby 9.1.7.0 Create...
(2) odpowiedzi
2017-02-08 20:02 Zlib::GzipFile::Error: not in gzip format »
I'm trying to decode a gzipped string with zlib and jruby. Here is the minimal working example. require 'stringio' require 'zlib' str = 'H4sIAAAAAAA...
(1) odpowiedzi
2017-02-08 18:02 Why is Rufus scheduling the job twice? »
Steps to replicate: Create a new Rails project. (rails 3.2.22.5) Add dependencies (warbler, rake, rufus-scheduler) (/Gemfile) JRuby 9.1.7.0 Create...
(1) odpowiedzi