Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. GradleStart.main() has thrown an IllegalArgumentException
  2. UnsafeFieldAccessorImpl.throwSetIllegalArgumentException() has thrown an IllegalArgumentException
    Java Runtime

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.lang.IllegalArgumentException: Can not set static cpw.mods.fml.common.Mod$Metadata field com.myfirstmod.MyFirstMod.MyFirstMod.meta to cpw.mods.fml.common.ModMetadata
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(
    at sun.reflect.UnsafeStaticObjectFieldAccessorImpl.set(
    at java.lang.reflect.Field.set(
37 frames hidden


Nwabunnia10 months ago

Thrown to indicate that a method has been passed an illegal or inappropriate argument. Make sure your getter and setter methods have the same return/parameter types (that is, String for String, Integer for Integer).

External results for this pattern (10)

  1. Miroslav Genovvia Google Groups6 days ago
    Could not set value [$Bar@e4600c0] to field private java.util.Set$Foo.bars
    Show stack trace
  2. Horsmannvia GitHub1 week ago
    Can not set java.util.Collection field to
    Show stack trace
  3. Connor Brezinskyvia Google Groups1 week ago
    Error during deserialization.
    Show stack trace
  4. nanshandashanvia GitHub2 weeks ago
    com.baomidou.mybatisplus.core.conditions.segments.MergeSegments.normal: java.util.ArrayList ([]) cannot be assigned to 'com.baomidou.mybatisplus.core.conditions.segments.NormalSegmentList'
    Show stack trace
  5. BenjaminHoeghvia GitHub3 weeks ago
    java.lang.IllegalArgumentException: Can not set double field net.minecraft.server.v1_13_R2.AxisAlignedBB.a to net.minecraft.server.v1_13_R2.VoxelShapeCube
    Show stack trace
  6. wonderflyvia GitHub4 weeks ago
    Can not set java.lang.String field$A.b to java.lang.Integer
    Show stack trace
  7. RuslanYaniukvia GitHub1 month ago
    Can not set$ByteBuddy$udyJSO0Y field$ByteBuddy$deJKZlZ0.field to$ByteBuddy$udyJSO0Y
    Show stack trace
  8. brobeevia GitHub1 month ago
    Can not set com.codeborne.selenide.SelenideElement Element to com.sun.proxy.$Proxy85
    Show stack trace
  9. jellonekvia GitHub1 month ago
    Ticking entity
    Show stack trace
  10. FrozenBeardvia GitHub1 month ago
    Can not set int field com.boydti.fawe.config.Settings$EXPERIMENTAL.DYNAMIC_CHUNK_RENDERING to java.lang.Boolean
    Show stack trace