java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Error using sstableloader on cassandra
    via Stack Overflow by springnoob
    ,
  • A DESCRIPTION OF THE REQUEST : The message included in the IllegalArgumentException thrown from Java.nio's Buffer class is "null". JUSTIFICATION : A message in the exception thrown would make it easier to understand what went wrong when trying to set the position or the limit of the Buffer. EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - Simple message describing what went wrong. ACTUAL - "null" message. ---------- BEGIN SOURCE ---------- Not in a test case format, but you'll get the idea... public static void main(String[] args) throws InterruptedException { System.out.println("Java version: " + System.getProperty("java.version")); System.out.println("==== Test #1 ===="); try { ByteBuffer bb = ByteBuffer.allocateDirect(1024); bb.position(1025); } catch (IllegalArgumentException e) { System.out.println("Caught exception of type : " + e.getClass()); System.out.println("With Message: " + e.getMessage()); e.printStackTrace(); } Thread.sleep(100); System.out.println("==== Test #2 ===="); try { ByteBuffer bb = ByteBuffer.allocateDirect(1024); bb.limit(1025); } catch (IllegalArgumentException e) { System.out.println("Caught exception of type : " + e.getClass()); System.out.println("With Message: " + e.getMessage()); e.printStackTrace(); } } Which outputs: Java version: 1.8.0_25 ==== Test #1 ==== Caught exception of type : class java.lang.IllegalArgumentException With Message: null java.lang.IllegalArgumentException at java.nio.Buffer.position(Buffer.java:244) at BufferEnhTest.main(BufferEnhTest.java:13) ==== Test #2 ==== Caught exception of type : class java.lang.IllegalArgumentException With Message: null java.lang.IllegalArgumentException at java.nio.Buffer.limit(Buffer.java:275) at BufferEnhTest.main(BufferEnhTest.java:26) ---------- END SOURCE ----------
    via by Webbug Group,
    • java.lang.IllegalArgumentException at java.nio.Buffer.limit(Buffer.java:275) at kafka.message.Message.sliceDelimited(Message.scala:237) at kafka.message.Message.key(Message.scala:224) at kafka.message.MessageAndMetadata.key(MessageAndMetadata.scala:30) at kafka.consumer.OldConsumer.receive(BaseConsumer.scala:84) at kafka.tools.ConsoleConsumer$.process(ConsoleConsumer.scala:109) at kafka.tools.ConsoleConsumer$.run(ConsoleConsumer.scala:69) at kafka.tools.ConsoleConsumer$.main(ConsoleConsumer.scala:47) at kafka.tools.ConsoleConsumer.main(ConsoleConsumer.scala)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    rprp
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    1 more bugmates