refresh, reopen error

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Valgardur
Posts: 165
Joined: Tue 24 Nov 2009 19:33

refresh, reopen error

Post by Valgardur » Thu 17 Sep 2015 11:26

Hi, we had a strange error with refresh and reopening a query with different parameters, not using SmartRefresh.

Occasionally our application would frequently - but not constantly - either hang for up to an hour or cause "Unknown error 1". This would happen at our client's site.

I was using ODAC 9.5.18 with Delphi XE8.. building in 9.4.14 and Delphi XE2 solved this. I just installed ODAC 9.6.19 for Delphi XE8 and released a new test version.

But is this something known?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: refresh, reopen error

Post by AlexP » Thu 17 Sep 2015 11:49

Hello,

Please send the full sample demonstrating the problem to alexp*devart*com, and specify the exact versions of Oracle client and server.

Valgardur
Posts: 165
Joined: Tue 24 Nov 2009 19:33

Re: refresh, reopen error

Post by Valgardur » Thu 17 Sep 2015 12:07

I am not allowed to send the code.

We are not using Oracle client, only direct mode, but running with Oracle 9.

We have many applications for this client, and have had for many years... this suddenly popped up in new applications - and stopped when we built with older versions.

But this is not constant and difficult to repeat.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: refresh, reopen error

Post by AlexP » Thu 17 Sep 2015 13:23

If you can't provide a sample, please provide the script for creating and filling in the table, the executing query, and the Delphi code abstract leading to the error.

Valgardur
Posts: 165
Joined: Tue 24 Nov 2009 19:33

Re: refresh, reopen error

Post by Valgardur » Thu 17 Sep 2015 13:47

Again, not so simple, happens with many queries, most of them extracting data from 5-7 tables with compilcated relations.. and no way to reproduce consistently.

I do appreciate it can be difficult to address without better information, but have there been no other similar issues? And no fixes that may have been omitted in the release notes?

m.ghilardi
Posts: 41
Joined: Thu 13 Mar 2014 11:14

Re: refresh, reopen error

Post by m.ghilardi » Fri 18 Sep 2015 08:13

ORA-00001 is "unique constraint violated". I don't know how this could be an "Unknown error".

Valgardur
Posts: 165
Joined: Tue 24 Nov 2009 19:33

Re: refresh, reopen error

Post by Valgardur » Fri 18 Sep 2015 09:31

thanks, this is something completely different, not an oracle error, as this is only on refresh.

m.ghilardi
Posts: 41
Joined: Thu 13 Mar 2014 11:14

Re: refresh, reopen error

Post by m.ghilardi » Fri 18 Sep 2015 11:44


Valgardur
Posts: 165
Joined: Tue 24 Nov 2009 19:33

Re: refresh, reopen error

Post by Valgardur » Fri 18 Sep 2015 11:48

Probably not, there is no update, only refreshing a query select

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: refresh, reopen error

Post by AlexP » Mon 21 Sep 2015 08:40

Try to reproduce the problem using the Oracle client and let us know the result.

P.S. Unfortunately, we can't give a more detailed answeк without having reproduced the problem. If you could provide us with access to your server and the query reproducing this error, we will try to reproduce it again.

Valgardur
Posts: 165
Joined: Tue 24 Nov 2009 19:33

Re: refresh, reopen error

Post by Valgardur » Mon 21 Sep 2015 09:07

thanks, but we are not using the Oracle client - and there is no way our client will grant access to their system.

This seems to have been fixed in the last two releases, though..

Valgardur
Posts: 165
Joined: Tue 24 Nov 2009 19:33

Re: refresh, reopen error

Post by Valgardur » Mon 21 Sep 2015 09:14

Actually, I got a note from the client that this is actually not solved..

But this only happens in a complex situation, and now and "Unknown error 1." message box is followed by ORA-5778 error message. And as far as I can tell, this is not a know Oracle error.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: refresh, reopen error

Post by AlexP » Mon 21 Sep 2015 11:32

As I wrote earlier, we can't provide any information concerning this behavior without a sample reproducing the problem.

P.S. Indeed, there is no such error in Oracle. Please provide the complete error text or a screenshot.

Valgardur
Posts: 165
Joined: Tue 24 Nov 2009 19:33

Re: refresh, reopen error

Post by Valgardur » Mon 21 Sep 2015 11:38

Finally I have a way to reproduce this - although it seems to require either an idle wait or an external update.

I did have a better look at the link you mentioned earlier (http://forums.devart.com/viewtopic.php? ... wn+error+1), (which I thought was unique key constraint) but according to that thread it should have been fixed.

Delphi Debugger shows EDBError with message "Unknown error 1" and the error message has

EOraError with message 'Unknown error 1'.

Then when I close the form in question..

EOraError with message 'ORA-5778'

But this is the complete message..

Valgardur
Posts: 165
Joined: Tue 24 Nov 2009 19:33

Re: refresh, reopen error

Post by Valgardur » Mon 21 Sep 2015 11:45

External update is not enough to reproduce this.. the long idle time (45-50 minutes) seems to be the key factor.

Post Reply