What is the exact type of the input tensor buffer that you’re using in the Java code?
Based on the error message, your Java buffer size is 576 bytes, which suggests that your buffer type / size doesn’t match what’s expected by your model.