-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
ArrayIndexOutOfBoundsException occurred when i was serializing data from redis with quarkus redis extension #42131
Comments
/cc @Ladicek (redis), @cescoffier (redis), @machi1990 (redis) |
Do you have some code reproducing this issue? Also, check your redis server version. |
Here was my test code HashCommands<String, String, String> infoHashCommands = redisDs.hash(String.class, String.class, String.class);
infoHashCommands.hmget("", code, code2); Pass the code parameter as null object, you can reproduce this issue |
Ah ok, you pass 'null'. I don't believe it should be possible (I will check). Anyway, the error message is incorrect. |
So as indicated on https://redis.io/docs/latest/commands/hmget/, fields cannot contain null values. I will update the code to check for that and throw a more accurate error message. |
Opened #42142 to improve the error message. |
Describe the bug
As the title, when i was serializing data from redis, i got an excetion, i found that there were sth wrong with Marshaller while JDK compiles the code.
Here is the sourece code of Marshaller
The JDK compiles code as
Here is my test code
if the
code
parameter isnull
,it will caused ArrayIndexOutOfBoundsExceptionExpected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: