-
Notifications
You must be signed in to change notification settings - Fork 15
UTPLSQL CLI Error: Detected Oracle driver stuck during Statement initialization after 4 retries and Erro #191
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
Comments
Seems like there is a general problem with Oracle on AWS. |
@pesse I don't think it's a general AWS related issue. I have a customer who's using the utPLSQL CLI connecting to AWS instances. No issues AFAIK. |
Thanks for that information. Can you reach out to them and ask for their combination of jdbc driver/java version etc? |
I can find out next week. Will update this issue then. |
I've seen similar issues in AWS and we managed to get around them. |
Oh, this is an awesome hint, @jgebal ! @venkat-kasula can you access the file Alternatively it should be possible to pass the necessary JVM arguments with setting the following environment variable:
|
The error we saw was:
|
This kind of error would result in the "Detected Oracle driver stuck" generic error in CLI, because we abort the connection before we hit the timeout. |
I tried to add a User env variable JAVA_TOOL_OPTIONS and tried to re-exeute. i did face below issue
|
Did you try it with a different (non-coverage) reporter? |
i did not try with any other non - coverage reporter tool . Any specific report you want to run and verify??? After setting up the Variable, i ran in debug mode and shared the complete log here. But one thing i observed is it did not go into retry loop 4 times. That's the difference i observed when i executed after setting up the JAVA_TOOL_OPTIONS. |
UT_DOCUMENTATION_REPORTER would be a good start
|
I tried and got below connection error.
|
That doesn't look like it's running on a linux system 🤔 |
i m using windows machine to run it on my local.. is this is the issue ? |
You have AWS RDS instance on your local machine?
Unfortunately the "User requested cancel operation" happened before we would even get to the Stuck handling (during reporter initialization), so this looks like a new, probably unrelated issue and doesn't tell us anything about the retry/stuck problem. It would be very helpful if you could state as precisely as possible what you do, whether something is reproducable and on which system environment you are experiencing it. |
I dont hvae AWS RDS Instance on my local. It was provided by my manager for testing purpose. so i got the user access to it & connecting it via SQL developer (18.4.0.376) like any other oracle instance using user name and password. Note: i was using the windows 10 machine Below are the ones which i have done.
|
Okay, so you are connecting from a windows 10 machine to the AWS instance. Thanks for clarifying :)
|
You have no space between "ORCL" and "-p=venkat"... |
I have the executed the script and below are the logs generated. Note:
|
Hey @venkat-kasula , it seems like you didn't add the |
Please find the execution logs of the command
|
Thanks. This is strange, because it happens at a totally different place. The reporters don't even get initialized. |
Sure .. please let me know when i can try again , so that i can give it a shot. |
I will move this to the utPLSQL-cli project |
@pesse Sure, once done committing, please do let me know, so that i can try again and share the result |
Hi. I have found that TestRunner.initStatementWithTimeout method in utPLSQL-java-api has a hardcoded timeout of 2 seconds. If I increase the timeout, the problem dissapears and all works right. Could I parameterize that timeout and open a pull-request? |
Absolutely! |
Works fine for me too! :-) |
Is there any update on this issue . We are also facing the same issue of time out. The solution what ever is given of changing the parameter TestRunner.initStatementWithTimeout to more than 2 , we could not do as it is a jar file java-api. Where do we give this value ? |
@pesse - is there a chance to make a new release of cli and java-api, where we:L
|
I'm on it |
I will work on java-api and cli tonight, trying to create a new Release. The timeout was originally introduced to work around a problem with Oracle 11g. I will leave it in, but as an opt-in option via parameter (where you can also set the time). @francisco-palma-m sorry if that interrupts your efforts. If you'd like to, it would be awesome if you could step into development of java-api and cli, since my focus and time budget keep being very limited. |
Ok. No problem, but it's necessary create a new release on utplsql-maven-plugin that use the new timeout parameter. |
@francisco-palma-m can you take care of the maven-plugin after I change java-api? |
@pesse Of course |
Thanks for the release . the timeout issue is gone now . |
Describe the bug
Hi All,
I m using the AWS RDS oracle instance currently for trying out the UTPLSQL POC demo.
When i m trying out in the UTPLSQL CLI, using command "utplsql run /@host:1521/ORCL -p=venkat.ut_add_contestant -f=ut_coverage_html_reporter -o=run.log -s -f=ut_coverage_html_reporter -o=coverage1.html"
while generating report, my execution is terminated after 4 retries. I m getting error as "Detected Oracle driver stuck during Statement initialization
WARNING: Caught Oracle stuck during creation of Runner-Statement. Retrying (1)"
Information about client software
I m using the UTPLSQL CLI for execution and using odjbc8.jar and orai18n.jar 19.9.0.0
Kindly help me in resolving the issue.
The text was updated successfully, but these errors were encountered: