This content has been marked as final.
Show 4 replies
-
1. Re: Getting java.lang.NegativeArraySizeException exception when reading hornetQ message
gaohoward Jun 9, 2013 8:23 AM (in response to 123avi)Do you have the test? Maybe you can try the latest version of hornetq.
-
2. Re: Getting java.lang.NegativeArraySizeException exception when reading hornetQ message
123avi Jun 9, 2013 8:40 AM (in response to gaohoward)I am using latest version 2.3.0
-
3. Re: Getting java.lang.NegativeArraySizeException exception when reading hornetQ message
123avi Jun 9, 2013 9:05 AM (in response to gaohoward)also tried with 2.2.14-Final
-
4. Re: Getting java.lang.NegativeArraySizeException exception when reading hornetQ message
borges Jun 11, 2013 5:43 AM (in response to 123avi)1 of 1 people found this helpfulHi,
Honestly after a first look in the code, from the looks of it, I think the bug is inside your code.
It seems that at
{code}com.gamescale.messaging.hornetQ.HornetQMessageConverter$.extractGSMessage(HornetQMessageConverter.scala:68){code}
, you are calling
{code}HornetQBuffer.readNullableString(){code}
in the wrong order perhaps?
Something along the lines of:
{code}writeInteger(-13);
writeNullableString("foo123");
{code}
then at your conversion code you are doing:
{code}// not reading the negative integer separately...
String foo = readNullableString();
{code}