java.lang.IllegalArgumentException: No enum constant org.jivesoftware.smack.packet.Message.Type.replyroom

GitHub | hdghg | 3 months ago
  1. 0

    GitHub comment 1#241200335

    GitHub | 3 months ago | hdghg
    java.lang.IllegalArgumentException: No enum constant org.jivesoftware.smack.packet.Message.Type.replyroom
  2. 0

    Exception while parsing message type

    GitHub | 3 months ago | hdghg
    java.lang.IllegalArgumentException: No enum constant org.jivesoftware.smack.packet.Message.Type.replyroom
  3. 0

    XMPP Server Connection Error

    Stack Overflow | 1 year ago | Sujewan
    java.lang.IllegalArgumentException: servertime is not a constant in org.jivesoftware.smack.packet.Message$Type
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Recently, we saw the following scenario: 1. The user setup a cluster of hadoop 2.3., which contains YARN 2.3 and MR 2.3. 2. The user client on a machine that MR 2.2 is installed and in the classpath. Then, when the user submitted a simple wordcount job, he saw the following message: {code} 16:00:41,027 INFO main mapreduce.Job:1345 - map 100% reduce 100% 16:00:41,036 INFO main mapreduce.Job:1356 - Job job_1396468045458_0006 completed successfully 16:02:20,535 WARN main mapreduce.JobRunner:212 - Cannot start job [wordcountJob] java.lang.IllegalArgumentException: No enum constant org.apache.hadoop.mapreduce.JobCounter.MB_MILLIS_REDUCES at java.lang.Enum.valueOf(Enum.java:236) at org.apache.hadoop.mapreduce.counters.FrameworkCounterGroup.valueOf(FrameworkCounterGroup.java:148) at org.apache.hadoop.mapreduce.counters.FrameworkCounterGroup.findCounter(FrameworkCounterGroup.java:182) at org.apache.hadoop.mapreduce.counters.AbstractCounters.findCounter(AbstractCounters.java:154) at org.apache.hadoop.mapreduce.TypeConverter.fromYarn(TypeConverter.java:240) at org.apache.hadoop.mapred.ClientServiceDelegate.getJobCounters(ClientServiceDelegate.java:370) at org.apache.hadoop.mapred.YARNRunner.getJobCounters(YARNRunner.java:511) at org.apache.hadoop.mapreduce.Job$7.run(Job.java:756) at org.apache.hadoop.mapreduce.Job$7.run(Job.java:753) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:415) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1491) at org.apache.hadoop.mapreduce.Job.getCounters(Job.java:753) at org.apache.hadoop.mapreduce.Job.monitorAndPrintJob(Job.java:1361) at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1289) . . . {code} The problem is that the wordcount job was running on one or more than one nodes of the YARN cluster, where MR 2.3 libs were installed, and JobCounter.MB_MILLIS_REDUCES is available in the counters. On the other side, due to the classpath setting, the client was likely to run with MR 2.2 libs. After the client retrieved the counters from MR AM, it tried to construct the Counter object with the received counter name. Unfortunately, the enum didn't exist in the client's classpath. Therefore, "No enum constant" exception is thrown here. JobCounter.MB_MILLIS_REDUCES is brought to MR2 via MAPREDUCE-5464 since Hadoop 2.3.

    Apache's JIRA Issue Tracker | 3 years ago | Zhijie Shen
    java.lang.IllegalArgumentException: No enum constant org.apache.hadoop.mapreduce.JobCounter.MB_MILLIS_REDUCES
  6. 0

    Add support to GLONASS sentences

    GitHub | 3 years ago | jajberni
    java.lang.IllegalStateException: Unable to invoke parser constructor

  1. davidvanlaatum 1 times, last 1 week ago
  2. MoYapro 3 times, last 2 weeks ago
  3. iridic 116 times, last 3 weeks ago
  4. maxxi 4 times, last 1 month ago
  5. kuldeep 4 times, last 3 months ago
11 more registered users
12 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    No enum constant org.jivesoftware.smack.packet.Message.Type.replyroom

    at java.lang.Enum.valueOf()
  2. Java RT
    Enum.valueOf
    1. java.lang.Enum.valueOf(Enum.java:236)
    1 frame
  3. Smack
    AbstractXMPPConnection.parseAndProcessStanza
    1. org.jivesoftware.smack.packet.Message$Type.valueOf(Message.java:607)
    2. org.jivesoftware.smack.packet.Message$Type.fromString(Message.java:644)
    3. org.jivesoftware.smack.util.PacketParserUtils.parseMessage(PacketParserUtils.java:229)
    4. org.jivesoftware.smack.util.PacketParserUtils.parseStanza(PacketParserUtils.java:151)
    5. org.jivesoftware.smack.AbstractXMPPConnection.parseAndProcessStanza(AbstractXMPPConnection.java:955)
    5 frames
  4. org.jivesoftware.smack
    XMPPTCPConnection$PacketReader$1.run
    1. org.jivesoftware.smack.tcp.XMPPTCPConnection.access$500(XMPPTCPConnection.java:140)
    2. org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1001)
    3. org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPConnection.java:956)
    4. org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:971)
    4 frames