-2

I got the following exception when call java.nio.ByteBuffer.put(ByteBuffer.java)

11-09 22:11:55.631 E/AndroidRuntime( 1616): FATAL EXCEPTION: Thread-701
11-09 22:11:55.631 E/AndroidRuntime( 1616): Process: com.jerikc.demo, PID: 1616 
11-09 22:11:55.631 E/AndroidRuntime( 1616): java.lang.IllegalArgumentException: src == this 
11-09 22:11:55.631 E/AndroidRuntime( 1616):     at java.nio.ByteBuffer.put(ByteBuffer.java:749)

What does that mean? How to fix it?

Jerikc XIONG
  • 3,517
  • 5
  • 42
  • 71

1 Answers1

0

If the source buffer is this buffer you see this message

you are putting an object to itself

see line 734 http://www.jsourcecode.com/class.php?proj=jdk%5Copenjdk&jar=openjdk-6-b14&class=java.nio.ByteBuffer