java.lang.IllegalArgumentException: No enum constant net.bull.javamelody.Action.

Google Groups | Varun Parakh | 8 months ago
  1. 0

    Setup Email Notification

    Google Groups | 8 months ago | Varun Parakh
    java.lang.IllegalArgumentException: No enum constant net.bull.javamelody.Action.
  2. 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
  3. 0

    Add support to GLONASS sentences

    GitHub | 3 years ago | jajberni
    java.lang.IllegalStateException: Unable to invoke parser constructor
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Reservation price request failure prevents startup

    GitHub | 2 years ago | hectcastro
    java.lang.IllegalArgumentException: No enum constant com.netflix.ice.processor.Ec2InstanceReservationPrice.ReservationUtilization.PARTIAL
  6. 0

    Counter MetricType is not defined in the rest client

    GitHub | 2 years ago | edmundoa
    java.lang.IllegalArgumentException: No enum constant org.graylog2.restclient.lib.metrics.Metric.MetricType.COUNTER

  1. linxiaolong 1 times, last 2 days ago
  2. davidvanlaatum 1 times, last 2 weeks ago
  3. MoYapro 3 times, last 2 weeks ago
  4. iridic 116 times, last 3 weeks ago
  5. maxxi 4 times, last 2 months ago
12 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 net.bull.javamelody.Action.

    at java.lang.Enum.valueOf()
  2. Java RT
    Enum.valueOf
    1. java.lang.Enum.valueOf(Enum.java:236)
    1 frame
  3. net.bull.javamelody
    MonitoringFilter.doFilter
    1. net.bull.javamelody.Action.valueOf(Action.java:47)
    2. net.bull.javamelody.Action.valueOfIgnoreCase(Action.java:123)
    3. net.bull.javamelody.MonitoringController.executeActionIfNeeded(MonitoringController.java:113)
    4. net.bull.javamelody.MonitoringController.doActionIfNeededAndReport(MonitoringController.java:136)
    5. net.bull.javamelody.MonitoringFilter.doMonitoring(MonitoringFilter.java:353)
    6. net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:169)
    6 frames
  4. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2 frames
  5. Spring Security
    FilterChainProxy$VirtualFilterChain.doFilter
    1. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    1 frame
  6. com.sabrix.te
    ContextCleanupFilter.doFilter
    1. com.sabrix.te.web.filter.ContextCleanupFilter.doFilter(ContextCleanupFilter.java:87)
    1 frame
  7. Spring Security
    FilterChainProxy.doFilter
    1. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    2. org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
    3. org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:166)
    3 frames
  8. Spring
    DelegatingFilterProxy.doFilter
    1. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
    2. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
    2 frames
  9. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2 frames
  10. Spring Security
    FilterChainProxy$VirtualFilterChain.doFilter
    1. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    1 frame
  11. org.owasp.csrfguard
    CsrfGuardFilter.doFilter
    1. org.owasp.csrfguard.CsrfGuardFilter.doFilter(CsrfGuardFilter.java:59)
    1 frame
  12. com.thomsonreuters.filter
    DelegatingMimeTypeFilter.doFilter
    1. com.thomsonreuters.filter.DelegatingMimeTypeFilter.doFilter(DelegatingMimeTypeFilter.java:98)
    1 frame
  13. Spring Security
    FilterChainProxy.doFilter
    1. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    2. org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
    3. org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
    3 frames
  14. Spring
    DelegatingFilterProxy.doFilter
    1. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
    2. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
    2 frames
  15. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2 frames
  16. com.sabrix.te
    LocaleSettingFilter.doFilter
    1. com.sabrix.te.web.filter.LocaleSettingFilter.doFilter(LocaleSettingFilter.java:173)
    1 frame
  17. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2 frames
  18. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    2 frames
  19. Glassfish Core
    StandardHostValve.invoke
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
    6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
    6 frames
  20. com.mulesoft.tcat
    Tomcat55AgentValve.invoke
    1. com.mulesoft.tcat.monitoring.tomcat.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20)
    1 frame
  21. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    2. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
    3. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    4. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
    4 frames
  22. Grizzly HTTP
    JIoEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
    2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
    3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
    3 frames
  23. Java RT
    ThreadPoolExecutor$Worker.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    2 frames
  24. Tomcat Util
    TaskThread$WrappingRunnable.run
    1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    1 frame
  25. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame