Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Ubuntu Xenial at Travis CI #176

Merged
merged 2 commits into from
Jul 15, 2019
Merged

Use Ubuntu Xenial at Travis CI #176

merged 2 commits into from
Jul 15, 2019

Conversation

yahonda
Copy link
Collaborator

@yahonda yahonda commented Jul 14, 2019

This pull request upgrades Ubuntu version to Xenial at Travis CI

https://docs.travis-ci.com/user/reference/xenial/

@yahonda yahonda force-pushed the use_xenial branch 2 times, most recently from 5647dbc to 72f18c5 Compare July 14, 2019 14:10
@yahonda yahonda force-pushed the use_xenial branch 2 times, most recently from cd10bea to 2d85863 Compare July 14, 2019 23:56
To workaround `Failure/Error: Unable to find java.sql.DriverManager.getConnection(java/sql/DriverManager.java to read failed line`

https://travis-ci.org/rsim/ruby-plsql/jobs/558503445

```ruby
1) Connection create and destroy should create connection
     Failure/Error: Unable to find java.sql.DriverManager.getConnection(java/sql/DriverManager.java to read failed line

     Java::JavaSql::SQLException:
       No suitable driver found for jdbc:oracle:thin:@localhost:1521/XE
     # java.sql.DriverManager.getConnection(java/sql/DriverManager.java:702)
     # java.sql.DriverManager.getConnection(java/sql/DriverManager.java:228)
     # jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     # jdk.internal.reflect.NativeMethodAccessorImpl.invoke(jdk/internal/reflect/NativeMethodAccessorImpl.java:62)
     # jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(jdk/internal/reflect/DelegatingMethodAccessorImpl.java:43)
     # java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:566)
     # RUBY.get_connection(/home/travis/build/rsim/ruby-plsql/spec/spec_helper.rb:89)
     # RUBY.try_to_connect(/home/travis/build/rsim/ruby-plsql/spec/spec_helper.rb:100)
     # RUBY.get_connection(/home/travis/build/rsim/ruby-plsql/spec/spec_helper.rb:88)
     # RUBY.<main>(/home/travis/build/rsim/ruby-plsql/spec/plsql/connection_spec.rb:8)
     # java.lang.invoke.MethodHandle.invokeWithArguments(java/lang/invoke/MethodHandle.java:710
```

Actually I do not know the reason why yet.
I just found these Java version differences between Trusty and Xenial,
then installed `openjdk8` on Xenial.

* Trusty
```
$ java -Xmx32m -version
java version "1.8.0_151"
```

* Xenial
```
$ java -Xmx32m -version
openjdk version "11.0.2" 2019-01-15
```

* Xenial with this pull request
```
$ java -Xmx32m -version
openjdk version "1.8.0_191"
```
@yahonda yahonda merged commit 568a2a0 into rsim:master Jul 15, 2019
@yahonda yahonda deleted the use_xenial branch July 15, 2019 00:57
yahonda added a commit to yahonda/ruby-plsql that referenced this pull request Aug 4, 2021
- Run Oracle Database 18c
- Only CRuby versions executed since due to rsim#176
- No Active Record matrix added yet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant