Could not create enum

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web419

  • via Unknown by Unknown author,
  • Stack trace

    • java.lang.IllegalArgumentException: Could not create enum at com.hankcs.hanlp.corpus.util.EnumBuster.make( at com.hankcs.hanlp.corpus.util.EnumBuster.make( at com.hankcs.hanlp.corpus.util.CustomNatureUtility.addNature( at com.hankcs.hanlp.corpus.tag.Nature.create( at com.hankcs.demo.DemoCustomNature.main( Caused by: java.lang.IllegalArgumentException: Could not create the class at com.hankcs.hanlp.corpus.util.EnumBuster$Memento.<init>( at com.hankcs.hanlp.corpus.util.EnumBuster$Memento.<init>( at com.hankcs.hanlp.corpus.util.EnumBuster.make( ... 4 more Caused by: java.lang.NoSuchFieldException: $VALUES at java.lang.Class.getDeclaredField( at com.hankcs.hanlp.corpus.util.EnumBuster.findValuesField( at com.hankcs.hanlp.corpus.util.EnumBuster.values( at com.hankcs.hanlp.corpus.util.EnumBuster.access$0( at com.hankcs.hanlp.corpus.util.EnumBuster$Memento.<init>(

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Hiren AmaliyarHiren Amaliyar
    1836 times, last one
    Unknown visitor
    Unknown visitorOnce,
    andreeaa marinandreeaa marin
    2 times, last one
    57 more bugmates