Displaying 20 results from an estimated 1000 matches similar to: "Struggling with Jruby Rails + jdbc driver"
2011 May 07
4
Activerecord::JDBCError: Invalid column number
Hi,
I''m rather new to Ruby and RoR, so I do not really know whether this ist
the right forum to place my question.
For my first ''project'' I planned to create a simple online-viewer, which
grabs data from an existing database and make them visible in a
structured form via browsers. So I thought that could be the right
beginner-project, because I have only read datasets
2011 Jun 09
1
Rails 3.1 RC4 has broken migrations
Rails 3.1 RC4 has broken migrations
$ jruby -v
jruby 1.6.2 (ruby-1.8.7-p330) (2011-05-23 e2ea975) (Java HotSpot(TM)
64-Bit Server VM 1.6.0_24) [darwin-x86_64-java]
$ jruby -S rails -v
Rails 3.1.0.rc4
$ jruby -S rails new myapp -d jdbcpostgresql
[...]
$jruby -S rake db:create
[...]
$ jruby -S rails g model user name:string
invoke active_record
create
2010 Oct 28
2
ActiveRecord JDBC error Generated keys not requested
I''m getting the following error while connecting to mysql using
activerecord-jdbcmysql-adapter (1.0.2). Rails 3.0.1.
ActiveRecord::JDBCError: Generated keys not requested. You need to
specify Statement.RETURN_GENERATED_KEYS to Statement.executeUpdate()
or Connection.prepareStatement().: SET SQL_AUTO_IS_NULL=0
This occurs not matter what application I run it in to e.g. rake,
rails
2012 Jul 06
0
Running Rspec tests with JRuby fails
How to run RSpec tests with JRuby in a Java project? I tried to run it
with JRuby 1.7.0.preview1,
rspec (2.10.0)
rspec-core (2.10.1)
rspec-expectations (2.10.0)
rspec-mocks (2.10.1)
rspec-rails (2.10.1)
as follows:
jruby -S rspec and got the error:
javix at ubuntu:~/Development/rspec_jruby$ jruby -S rspec spec
NameError: cannot load Java class com.models.Calculator
for_name at
2013 Feb 01
0
rake db:migrate failing against oracle
Hello All --
I am using jruby 1.6.7.2 with rails 3.2.11 to create a brown bag for
several other developers. I cannot get the migration to work to save my
life...
In my database yaml file I have the following:
---
development:
adapter: jdbc
driver: oracle.jdbc.driver.OracleDriver
url: jdbc:oracle:thin:@localhost:1521:xe
username: brownbag
password: brownbag
pool: 500
---
When I run:
2006 Sep 04
8
ActiveRecord-JDBC is coming along
The ActiveRecord-JDBC adapter is rapidly maturing these days. I got the full
set of AWDwR2 migrations to run with it against MySQL last night, and Ola
Bini has gotten migrations working well against Oracle and Firebird. We also
have SQL Server support running most of our test cases (under non-Windows
environments too!) and have started adding support for Derby and HSQLDB
(Java-based DBs). Things
2011 Aug 11
0
JRuby + Rails3 + Unit Tests = "Log" issue?
Hey all,
I am working on a Rails 3.0.7 application that is using JRuby 1.6.3,
running on Debian. I keep encountering an error regarding a missing
"Log" file when I am trying to run some Unit tests (among various
other activities). The cryptic error in question:
LoadError: No such file to load -- Log
Has anyone seen anything like this before? I am baffled as to where to
even begin to
2007 Aug 02
0
How to: Rails with JRuby/Actice Record-JDBC and JDBC-ODBC
hi to all,
it is posible to use activerecord-jdbc with the jdbc-odbc bridge?
i have problems to use ajax_scaffold. i get an error message, that the
driver is unable to choose type for date from(list of datatypes)
my database.yml look like
development:
adapter: jdbc
driver: sun.jdbc.odbc.JdbcOdbcDriver
url: jdbc:odbc:ac43demo
username: ac_odbc
password: ac_odbc
i have modified the
2008 Jun 19
1
How to run unit tests for Rails
hi,
I downloaded rails as well as unit tests from:
http://svn.rubyonrails.org/rails/branches/1-2-stable/
bash-2.03$ cd rails-1.2.6/railties/
bash-2.03$ rake regular_test
(in /u/liangl/ruby/JRUBY103/unit_test/rails-1.2.6/railties)
/u/liangl/ruby/JRUBY103/bin/jruby -w -Ilib:test "/u/liangl/ruby/
JRUBY103/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/
rake_test_loader.rb"
2006 Oct 09
1
accesing MySQL through JDBC
Hi all,
Completely new to this list and completely new to R so, please, accept my apologies in advance if any question is too basic or out of place. Thanks.
After reading some docs, googling around and searched the mail lists I've only found spare references to accessing databases. Among these references, few are related with JDBC and none of them include both MySQL and JDBC access.
Our
2018 May 30
0
CEBA-2018:1411 CentOS 7 postgresql-jdbc BugFix Update
CentOS Errata and Bugfix Advisory 2018:1411
Upstream details at : https://access.redhat.com/errata/RHBA-2018:1411
The following updated files have been uploaded and are currently
syncing to the mirrors: ( sha256sum Filename )
x86_64:
36b6e7066fd5a7027bbf9d71d115f5717b0030f853ae2c523907947fe4c82f13 postgresql-jdbc-9.2.1002-6.el7_5.noarch.rpm
2020 Aug 07
0
CESA-2020:3285 Important CentOS 7 postgresql-jdbc Security Update
CentOS Errata and Security Advisory 2020:3285 Important
Upstream details at : https://access.redhat.com/errata/RHSA-2020:3285
The following updated files have been uploaded and are currently
syncing to the mirrors: ( sha256sum Filename )
x86_64:
4085f09e7be4410758ded16aeb5fca59795cf4c2ad37a1afa78cddf45bef6806 postgresql-jdbc-9.2.1002-8.el7_8.noarch.rpm
2020 Aug 07
0
CESA-2020:3284 Important CentOS 6 postgresql-jdbc Security Update
CentOS Errata and Security Advisory 2020:3284 Important
Upstream details at : https://access.redhat.com/errata/RHSA-2020:3284
The following updated files have been uploaded and are currently
syncing to the mirrors: ( sha256sum Filename )
i386:
7da24f52d632e4a7bfe00e2133a719c22e6927e21c74a8c4a584b001aeb35df8 postgresql-jdbc-8.4.704-4.el6_10.noarch.rpm
x86_64:
2008 Jun 02
1
RJDBC cant find driver class in JDBC jar file
I would like to set up a Windows XP environment with R and MySQL.
This set-up was recommended by a friend who uses this set up, but I
have been unable to get RJDBC to work. I have installed all of the
software today (June 2 2008), first deleting and then replacing old
versions of software.
The error is as follows:
Error in .jfindClass(as.character(driverClass)[1]) : class not found
This error
2009 May 05
3
Oracle-JRuby error
I am trying to migrate from RoR/MYSql to JRoR/Oracle. I am using Active
Record JDBC to talk to the database. The Migration process to create and
populate the database tables has been painful. My latest issue is the
method new_date is undefined in the JDBC adapter. I have the following
gems installed:
*** LOCAL GEMS ***
actionmailer (2.2.2)
actionpack (2.2.2)
activerecord (2.2.2)
2012 Oct 04
1
Intermittent connectivity issues for JDBC / Oracle
I have been experiencing issues with an R script hanging when connecting to
an Oracle database. To help debug, I found a function here in the nabble
forum and made a small test script:
#!/usr/bin/Rscript --no-restore --no-save --no-init-file
library("RJDBC")
drv<-JDBC("oracle.jdbc.OracleDriver","/home/oracle/lib/ojdbc6.jar", "'")
dbCheck =
2004 Oct 23
2
JDBC DB access in R
Hello, i see packages referencing using ODBC access to databases via R, are
there any packages that use JDBC to submit SQL to a database and return into
a data frame?
-zubin
2010 Jul 07
0
Starting tomcat5: /usr/bin/rebuild-jar-repository: error: Could not find jdbc-stdext Java extension for this JVM
Due to some XML issues, we installed *1.6 from Sun jdk-6u20-nb-6_8-linux-ml.sh
on Centos. *
**
*below is the output from *[root at www2 tmp]# alternatives --config java
There are 3 programs which provide 'java'.
Selection Command
-----------------------------------------------
1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
* 2
2010 Sep 27
0
problem with set_sequence_name please help
I''m building rails 3 with legacy oracle 10g db. which it''s sequence is
non rails convension.
I have try this.
class AdCourt < ActiveRecord::Base
set_sequence_name ''COURT_SEQ''
end
with rails console :
AdCourt.sequence_name I have got "COURT_SEQ" which look ok.
When
AdCourt.create!(:caption => ''AAAA'', :code =>
2011 May 05
0
jruby PATH and RUBYOPTS integration
Hi,
I download the last jruby version and install the rspec gem using jgem
to install.
After it, I export RUBYOPTS=rubygems to guarantee that the spec can be
found.
Trying to run the spec by normal mode I got:
jonatas at branco:~/jruby-1.6.1$ jruby -S spec
LoadError: no such file to load -- spec/autorun
require at org/jruby/RubyKernel.java:1038
(root) at /usr/bin/spec:2
Trying to execute