Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
Message: 96638
BY: Jordan Curzon (curzonj)
DATE: 2011-06-17 14:57
SUBJECT: RE: InvalidHandle errors

 

Kubo, I see a bug in 2.0.5. On 2.0.4 I get the following:

oci8.c:261:in oci8lib_191.so: ORA-28002: the password will expire within 7 days (OCISuccessWithInfo)
from /home/t/ruby-1.9.2-p0-1/lib/ruby/gems/1.9.1/bundler/gems/ruby-oci8-6c275102ebbb/lib/oci8/oci8.rb:117:in `initialize'

On 2.0.5 I get this:

stmt.c:312:in oci8lib_191.so: Invalid Handle (OCIInvalidHandle)
from /home/t/ruby-1.9.2-p0-1/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.0.5/lib/oci8/oci8.rb:288:in `exec'
from /home/t/ruby-1.9.2-p0-1/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.0.5/lib/oci8/oci8.rb:116:in `exec'
from /home/t/ruby-1.9.2-p0-1/lib/ruby/gems/1.9.1/gems/activerecord-oracle_enhanced-adapter-1.2.4/lib/active_record/connection_adapters/oracle_enhanced_oci_connection.rb:224:in `new_connection'
from /home/t/ruby-1.9.2-p0-1/lib/ruby/gems/1.9.1/gems/activerecord-oracle_enhanced-adapter-1.2.4/lib/active_record/connection_adapters/oracle_enhanced_oci_connection.rb:328:in `initialize'

Would it be possible to fix it so that instead of just returning to the previous behavior of dying with the OCI message, it could raise a warning and continue? It would also be a good idea to make sure that when the password is actually expired and the OCI result in an error and not success_with_info, that it still puts the error message and not an invalid_handle error.


Thread View

Thread Author Date
InvalidHandle errorsJordan Curzon2011-05-02 22:36
      RE: InvalidHandle errorsJordan Curzon2011-05-05 10:47
            RE: InvalidHandle errorsKubo Takehiro2011-05-05 14:30
                  RE: InvalidHandle errorsJordan Curzon2011-05-06 05:07
                        RE: InvalidHandle errorsKubo Takehiro2011-05-08 13:14
                              RE: InvalidHandle errorsJordan Curzon2011-06-01 19:22
                                    RE: InvalidHandle errorsAaron Qian2011-06-02 20:15
                                          RE: InvalidHandle errorsAaron Qian2011-06-02 20:17
                                                RE: InvalidHandle errorsAaron Qian2011-06-03 21:25
                        RE: InvalidHandle errorsKubo Takehiro2011-05-06 14:26
                              RE: InvalidHandle errorsAaron Qian2011-06-04 01:46
                                    RE: InvalidHandle errorsKubo Takehiro2011-06-05 14:23
                                          RE: InvalidHandle errorsAaron Qian2011-06-07 18:16
                                                RE: InvalidHandle errorsKubo Takehiro2011-06-08 03:49
                                                      RE: InvalidHandle errorsJordan Curzon2011-06-17 14:57
                                                            RE: InvalidHandle errorsKubo Takehiro2011-06-18 04:27
                                                                  RE: InvalidHandle errorsJordan Curzon2011-06-18 04:54

Post a followup to this message