Skip to content

Instantly share code, notes, and snippets.

C:\>jruby -Xnative.verbose=true -v -e ""
jruby 1.7.20 (1.9.3p551) 2015-05-04 3086e6a on Java HotSpot(TM) 64-Bit Server VM 1.8.0_45-b15 +jit [Windows 7-amd64]
Successfully loaded native POSIX impl.
io/console not supported; tty will not be manipulated
@boskowski
boskowski / ActiveRecord vs. barebones connection
Last active December 7, 2015 15:51
ActiveRecord vs. barebones connection
$ java -version
java version "1.8.0"
Java(TM) SE Runtime Environment (build pap6480-20150129_02)
IBM J9 VM (build 2.8, JRE 1.8.0 OS/400 ppc64-64 Compressed References 20150116_231420 (JIT enabled, AOT enabled)
J9VM - R28_Java8_GA_20150116_2030_B231420
JIT - tr.r14.java_20150109_82886.02
GC - R28_Java8_GA_20150116_2030_B231420_CMPRSS
J9CL - 20150116_231420)
JCL - 20150123_01 based on Oracle jdk8u31-b12
$ jruby -v
Apache Ant(TM) version 1.9.6 compiled on June 29 2015
Trying the default build file: build.xml
Buildfile: /home/ybskwsk/jffi/build.xml
Detected Java version: 1.8 in: /QOpenSys/QIBM/ProdData/JavaVM/jdk80/64bit/jre
Detected OS: OS/400
parsing buildfile /home/ybskwsk/jffi/build.xml with URI = file:/home/ybskwsk/jffi/build.xml
Project base dir set to: /home/ybskwsk/jffi
parsing buildfile jar:file:/home/ybskwsk/BuildTools/apache-ant-1.9.6/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/home/ybskwsk/BuildTools/apache-ant-1.9.6/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
Importing file /home/ybskwsk/jffi/version.xml from /home/ybskwsk/jffi/build.xml
Overriding previous definition of reference to ant.projectHelper
Apache Ant(TM) version 1.9.6 compiled on June 29 2015
Trying the default build file: build.xml
Buildfile: /home/ybskwsk/jffi/build.xml
Detected Java version: 1.8 in: /QOpenSys/QIBM/ProdData/JavaVM/jdk80/64bit/jre
Detected OS: OS/400
parsing buildfile /home/ybskwsk/jffi/build.xml with URI = file:/home/ybskwsk/jffi/build.xml
Project base dir set to: /home/ybskwsk/jffi
parsing buildfile jar:file:/home/ybskwsk/BuildTools/apache-ant-1.9.6/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/home/ybskwsk/BuildTools/apache-ant-1.9.6/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
Importing file /home/ybskwsk/jffi/version.xml from /home/ybskwsk/jffi/build.xml
Overriding previous definition of reference to ant.projectHelper
Apache Ant(TM) version 1.9.6 compiled on June 29 2015
Trying the default build file: build.xml
Buildfile: /home/ybskwsk/jffi/build.xml
Detected Java version: 1.8 in: /QOpenSys/QIBM/ProdData/JavaVM/jdk80/64bit/jre
Detected OS: OS/400
parsing buildfile /home/ybskwsk/jffi/build.xml with URI = file:/home/ybskwsk/jffi/build.xml
Project base dir set to: /home/ybskwsk/jffi
parsing buildfile jar:file:/home/ybskwsk/BuildTools/apache-ant-1.9.6/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/home/ybskwsk/BuildTools/apache-ant-1.9.6/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
Importing file /home/ybskwsk/jffi/version.xml from /home/ybskwsk/jffi/build.xml
Overriding previous definition of reference to ant.projectHelper
Testsuite: com.kenai.jffi.NumberTest
Tests run: 43, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0,034 sec
Testcase: returnDefaultF128HighPrecision took 0,011 sec
Caused an ERROR
Not a valid char constructor input: 1,2345678901234567
java.lang.NumberFormatException: Not a valid char constructor input: 1,2345678901234567
at java.math.BigDecimal.bad(BigDecimal.java:1859)
at java.math.BigDecimal.charParser(BigDecimal.java:1190)
at java.math.BigDecimal.<init>(BigDecimal.java:922)
Apache Ant(TM) version 1.9.6 compiled on June 29 2015
Trying the default build file: build.xml
Buildfile: /home/ybskwsk/jffi/build.xml
Detected Java version: 1.6 in: /QOpenSys/QIBM/ProdData/JavaVM/jdk626/32bit/jre
Detected OS: OS/400
parsing buildfile /home/ybskwsk/jffi/build.xml with URI = file:/home/ybskwsk/jffi/build.xml
Project base dir set to: /home/ybskwsk/jffi
parsing buildfile jar:file:/home/ybskwsk/BuildTools/apache-ant-1.9.6/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/home/ybskwsk/BuildTools/apache-ant-1.9.6/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
Importing file /home/ybskwsk/jffi/version.xml from /home/ybskwsk/jffi/build.xml
Overriding previous definition of reference to ant.projectHelper
2016-08-19 11:55:38,871 [DEBUG] - Configured chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, Version=0.10.0.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb
2016-08-19 11:55:38,871 [DEBUG] - Configured chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, Version=0.10.0.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb
2016-08-19 11:55:38,889 [DEBUG] - XmlConfiguration is now operational
2016-08-19 11:55:39,120 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\config\chocolatey.config.update".
2016-08-19 11:55:39,120 [INFO ] - ============================================================
2016-08-19 11:55:39,120 [INFO ] - Chocolatey v0.10.0
2016-08-19 11:55:39,135 [DEBUG] - Chocolatey is running on Windows v 10.0.14393.0
2016-08-19 11:55:39,135 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2016-08-19 11:55:39,135 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2016-08-19 11:55:39,151 [
2016-08-19 11:56:52,660 [DEBUG] - Configured chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, Version=0.10.0.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb
2016-08-19 11:56:52,660 [DEBUG] - Configured chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, Version=0.10.0.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb
2016-08-19 11:56:52,676 [DEBUG] - XmlConfiguration is now operational
2016-08-19 11:56:52,961 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\config\chocolatey.config.update".
2016-08-19 11:56:52,961 [INFO ] - ============================================================
2016-08-19 11:56:52,976 [INFO ] - Chocolatey v0.10.0
2016-08-19 11:56:52,976 [DEBUG] - Chocolatey is running on Windows v 10.0.14393.0
2016-08-19 11:56:52,976 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2016-08-19 11:56:52,976 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2016-08-19 11:56:52,992 [
Archive: gemtest.jar
Length Date Time Name
--------- ---------- ----- ----
11913 2016-11-21 19:43 JarMain.class
0 2016-11-21 19:43 META-INF/
68 2016-11-21 19:43 META-INF/MANIFEST.MF
693 2016-11-21 19:43 META-INF/init.rb
0 2016-11-21 19:43 META-INF/lib/
13328210 2016-11-21 19:43 META-INF/lib/jruby-core-9.1.6.0-complete.jar
8965766 2016-11-21 19:43 META-INF/lib/jruby-stdlib-9.1.6.0.jar