Data dodania Pytanie
2017-06-17 16:06 How to call an overloaded java function from JRuby with an array parameter »
I have a java class with an overloaded method like the following one: public class Main { public void print(Object o) { System.out.println("p...
(1) odpowiedzi
2017-06-17 10:06 How can I improve JRuby startup time in Java? »
I have just made a little java program: ScriptEngineManager scriptengineManager = new ScriptEngineManager(); ScriptEngine engine = scriptengineManage...
(0) odpowiedzi
2017-06-09 21:06 Missing stack trace on zip in jruby »
I am running JRuby 1.7 and JRuby 9K on Java 1.7. While working on debugging a hard crash, I came across an exception message with no stack trace. Af...
(0) odpowiedzi
2017-06-04 10:06 Packaging JRuby binaries into executable jar »
Have downloaded the Jruby binaries on windows, installed the necessary gems i needed. How then do I re-package the whole Jruby binaries into an execut...
(1) odpowiedzi
2017-06-04 02:06 jruby rails undefined method `empty?' for nil:NilClass »
I am trying to run filterrific in jruby rails environment. Initially, there was no errors and was able to run it succesffully. Few days after that I w...
(1) odpowiedzi
2017-05-25 09:05 reading tomcat7 configurations from rails app »
I want to read a couple of Tomcat characters like maxThreads, maxConnections etc so that I can expose them through one of the API endpoints. Tomcat wi...
(1) odpowiedzi
2017-05-22 14:05 Rails initializer (using JRuby, Puma) at_exit is occasionally not executed »
I'm trying to make a little library that wraps over march_hare and is used as part of our Rails app. It needs to connect on app startup and disconnect...
(0) odpowiedzi
2017-05-20 05:05 Override interface method in jruby »
I'd like to implement the following in jruby: ref.addListenerForSingleValueEvent(new ValueEventListener() { @Override public void onDataChang...
(1) odpowiedzi
2017-05-19 20:05 Firebase java package in jruby »
I'm attempting to use firebase's newly open sourced java firebase-admin sdk with jruby. The firebase docs have the following instructions for initiali...
(1) odpowiedzi
2017-05-18 16:05 Logstash plugin development »
I'm trying to develop an input plugin for logstash. i've used this tutorial http://blog.eagerelk.com/how-to-write-a-logstash-plugin/ the problem th...
(2) odpowiedzi
2017-05-18 12:05 Use one codec within another in Logstash v5 custom plugin (ruby / jruby) »
I'm working on a fork of logstash-codec-avro with the goal of sending AVRO encoded messages to Kafka, but where one of the fields contains an encapsul...
(0) odpowiedzi
2017-05-17 20:05 Monkey Patching a Class Method in Ruby Mail Module »
I am currently working on a monkey patch in the JRuby Mail-2.6.0 module. Specifically, I want to patch the ssl_context class method. If it helps, this...
(0) odpowiedzi
2017-05-14 18:05 jruby: application running on glassfish becomes slow as time passes »
I have deployed war file of my jruby application on glassfish server. i have noticed that my application becomes slow as time passes. My server is of ...
(0) odpowiedzi
2017-05-10 21:05 How to set Mail module's SSL/TLS version manually »
I am working on fixing a SSL-related bug with the Ruby Mail module in JRuby. This Github issue explains (and provides a monkey patch to) this bug. Th...
(0) odpowiedzi
2017-05-09 00:05 How does Java code executing within JRuby getResourceAsStream from its own jar? »
I am using JRuby, and I am having trouble loading a resources from a jar file. I load jar file. The java code inside the jar file attempts to load on...
(0) odpowiedzi
2017-04-27 10:04 logstash with jdbc gets PsychParser error »
Background environment: logstash using the microsoft jdbc driver to connect to sql server with integrated security. When the jruby gets to PsychParse...
(1) odpowiedzi
2017-04-25 13:04 Ruby :cannot load such file -- db2jcc4.jar (from linux) »
I am new into Jruby and trying to run Jruby from a Linux server. We have it running successfully in windows local. But when I use the following comma...
(0) odpowiedzi
2017-04-25 08:04 "Google is not defined" error on ruby on rails »
I have a html and js file (maps_scripts.js) in which I have defined all the google maps function related to the mentioned html page. These two are wor...
(1) odpowiedzi
2017-04-23 15:04 libgdx - rotation by integer resulting in imprecise values »
I'm rotating a 3d model in 10 degree increments. I expect that as I rotate back and forth, I return to integer values -- eg I start at 0, rotate 10 ri...
(0) odpowiedzi
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