-
Notifications
You must be signed in to change notification settings - Fork 171
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
SNOW-1423466: Snowflake JDBC driver not working with Spring Boot 3.2.0 (Throws NegativeArraySizeException) #1755
Comments
@dsinghal-nice I'm not sure this is necessarily a JDBC driver issue. That exception you're sharing looks like an issue with Spring boot's code when it's trying to unpack the JARs on the classpath looking for a class to load:
I did a quick search in their project and I see the following issue which seems to be the problem you're running into: Can you refer to the conversation there and see if there's anything in there that can help you address the problem? If not, then I would suggest you first raise this issue with the Spring Boot team. If they need any information or they suspect there's a problem with our JAR, then just let us know and we'll take a look. |
Hi @sfc-gh-wfateem, The snowflake-jdbc version (3.14.1) with Spring Boot 3.2.0 has this issue, and with Spring Boot 3.2.5 it is throwing another exception: ERROR c.n.s.w.q.a.ser.utils.SnowflakeCommonUtils [] [] [] [] [] Error connecting to Snowflake: |
@dsinghal-nice Do you know what you have in this file? |
@sfc-gh-wfateem, I checked the .jar, this file doesn't even exist at the location. With version 3.13.30 this error does not come when I use Spring Boot 3.2.5. With version above 3.13.30 it starts to come. This looks like the same issue mentioned here: |
Thanks !! @sfc-gh-dszmolka |
Please answer these questions before submitting your issue.
In order to accurately debug the issue this information is required. Thanks!
What version of JDBC driver are you using?
Starting from 3.14.0, this issue is coming
What operating system and processor architecture are you using?
Windows 11
What version of Java are you using?
Java 17
What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
I recently upgraded my project from Spring boot 2 to Spring boot 3, this exception started to come after that.
What did you expect to see?
What should have happened and what happened instead?
My application should have started without any issue, but failing to even load at boot. Below is the exception:
Can you set logging to DEBUG and collect the logs?
https://community.snowflake.com/s/article/How-to-generate-log-file-on-Snowflake-connectors
The application doesn't even load the class files at the startup, it fails when Spring Boot 3 tried to load class so debug logs gets created. The same upgrade is working 3.13.34 but giving me another error
Illegal char <:> at index 6:sf_client_config.json
What is your Snowflake account identifier, if any? (Optional)
The text was updated successfully, but these errors were encountered: