java.lang.IllegalArgumentException: No enum constant com.manydesigns.portofino.pages.NavigationRoot.

Google Groups | Leslie Rohde | 4 months ago
  1. 0

    4.2.1 not working correctly on OSX 10.10.5

    Google Groups | 4 months ago | Leslie Rohde
    java.lang.IllegalArgumentException: No enum constant com.manydesigns.portofino.pages.NavigationRoot.
  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 4 days ago
  2. davidvanlaatum 1 times, last 2 weeks ago
  3. MoYapro 3 times, last 3 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 com.manydesigns.portofino.pages.NavigationRoot.

    at java.lang.Enum.valueOf()
  2. Java RT
    Enum.valueOf
    1. java.lang.Enum.valueOf(Enum.java:236)[na:1.7.0_79]
    1 frame
  3. com.manydesigns.portofino
    DispatcherLogic$2.load
    1. com.manydesigns.portofino.pages.NavigationRoot.valueOf(NavigationRoot.java:29)[portofino-pageactions-4.2.1.jar:4.2.1]
    2. com.manydesigns.portofino.pages.Page.init(Page.java:93)[portofino-pageactions-4.2.1.jar:4.2.1]
    3. com.manydesigns.portofino.dispatcher.DispatcherLogic.loadPage(DispatcherLogic.java:352)[portofino-pageactions-4.2.1.jar:4.2.1]
    4. com.manydesigns.portofino.dispatcher.DispatcherLogic$2.load(DispatcherLogic.java:235)[portofino-pageactions-4.2.1.jar:4.2.1]
    5. com.manydesigns.portofino.dispatcher.DispatcherLogic$2.load(DispatcherLogic.java:231)[portofino-pageactions-4.2.1.jar:4.2.1]
    5 frames
  4. Guava
    LocalCache$LocalLoadingCache.get
    1. com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3527)[guava-18.0.jar:na]
    2. com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2319)[guava-18.0.jar:na]
    3. com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2282)[guava-18.0.jar:na]
    4. com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2197)[guava-18.0.jar:na]
    5. com.google.common.cache.LocalCache.get(LocalCache.java:3937)[guava-18.0.jar:na]
    6. com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3941)[guava-18.0.jar:na]
    7. com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4824)[guava-18.0.jar:na]
    7 frames
  5. com.manydesigns.portofino
    RootChildrenAction.pageChildren
    1. com.manydesigns.portofino.dispatcher.DispatcherLogic.getPage(DispatcherLogic.java:367)[portofino-pageactions-4.2.1.jar:4.2.1]
    2. com.manydesigns.portofino.actions.admin.page.PageAdminAction.setupChildPagesForm(PageAdminAction.java:665)[portofino-admin-4.2.1.jar:4.2.1]
    3. com.manydesigns.portofino.actions.admin.page.RootChildrenAction.setupChildPages(RootChildrenAction.java:72)[portofino-admin-4.2.1.jar:4.2.1]
    4. com.manydesigns.portofino.actions.admin.page.PageAdminAction.pageChildren(PageAdminAction.java:630)[portofino-admin-4.2.1.jar:4.2.1]
    5. com.manydesigns.portofino.actions.admin.page.RootChildrenAction.pageChildren(RootChildrenAction.java:56)[portofino-admin-4.2.1.jar:4.2.1]
    5 frames
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.7.0_79]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[na:1.7.0_79]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_79]
    4. java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_79]
    4 frames
  7. Stripes
    ExecutionContext.proceed
    1. net.sourceforge.stripes.controller.DispatcherHelper$6.intercept(DispatcherHelper.java:456)[stripes-1.6.0.jar:1.6.0]
    2. net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:176)[stripes-1.6.0.jar:1.6.0]
    2 frames
  8. com.manydesigns.portofino
    GuardsInterceptor.intercept
    1. com.manydesigns.portofino.interceptors.GuardsInterceptor.intercept(GuardsInterceptor.java:61)[portofino-base-4.2.1.jar:4.2.1]
    1 frame
  9. Stripes
    DispatcherServlet.service
    1. net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:173)[stripes-1.6.0.jar:1.6.0]
    2. net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercept(BeforeAfterMethodInterceptor.java:113)[stripes-1.6.0.jar:1.6.0]
    3. net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:173)[stripes-1.6.0.jar:1.6.0]
    4. net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java:86)[stripes-1.6.0.jar:1.6.0]
    5. net.sourceforge.stripes.controller.DispatcherHelper.invokeEventHandler(DispatcherHelper.java:454)[stripes-1.6.0.jar:1.6.0]
    6. net.sourceforge.stripes.controller.DispatcherServlet.invokeEventHandler(DispatcherServlet.java:278)[stripes-1.6.0.jar:1.6.0]
    7. net.sourceforge.stripes.controller.DispatcherServlet.service(DispatcherServlet.java:160)[stripes-1.6.0.jar:1.6.0]
    7 frames
  10. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)[servlet-api.jar:na]
    1 frame
  11. com.manydesigns.portofino
    SimpleDynamicMappingFilter.doFilter
    1. com.manydesigns.portofino.stripes.SimpleDynamicMappingFilter.doFilter(SimpleDynamicMappingFilter.java:60)[portofino-stripes-4.2.1.jar:4.2.1]
    1 frame
  12. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[catalina.jar:8.0.30]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:8.0.30]
    2 frames
  13. com.manydesigns.portofino
    I18nFilter.doFilter
    1. com.manydesigns.portofino.servlets.I18nFilter.doFilter(I18nFilter.java:60)[portofino-base-4.2.1.jar:4.2.1]
    1 frame
  14. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[catalina.jar:8.0.30]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:8.0.30]
    2 frames
  15. Stripes
    StripesFilter.doFilter
    1. net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:260)[stripes-1.6.0.jar:1.6.0]
    1 frame
  16. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[catalina.jar:8.0.30]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:8.0.30]
    2 frames
  17. com.manydesigns.portofino
    CleanupFilter.doFilter
    1. com.manydesigns.portofino.servlets.CleanupFilter.doFilter(CleanupFilter.java:46)[portofino-database-4.2.1.jar:4.2.1]
    1 frame
  18. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[catalina.jar:8.0.30]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:8.0.30]
    2 frames
  19. com.manydesigns.portofino
    DispatcherFilter.doFilter
    1. com.manydesigns.portofino.servlets.DispatcherFilter.doFilter(DispatcherFilter.java:61)[portofino-pageactions-4.2.1.jar:4.2.1]
    1 frame
  20. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[catalina.jar:8.0.30]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:8.0.30]
    2 frames
  21. Shiro
    OncePerRequestFilter.doFilter
    1. org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)[shiro-web-1.2.3.jar:1.2.3]
    2. org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)[shiro-web-1.2.3.jar:1.2.3]
    3. org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)[shiro-core-1.2.3.jar:1.2.3]
    4. org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)[shiro-core-1.2.3.jar:1.2.3]
    5. org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)[shiro-core-1.2.3.jar:1.2.3]
    6. org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)[shiro-web-1.2.3.jar:1.2.3]
    7. org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)[shiro-web-1.2.3.jar:1.2.3]
    7 frames
  22. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[catalina.jar:8.0.30]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:8.0.30]
    2 frames
  23. com.manydesigns.elements
    ElementsFilter.doFilter
    1. com.manydesigns.elements.servlet.ElementsFilter.doHttpFilter(ElementsFilter.java:132)[elements-4.2.1.jar:4.2.1]
    2. com.manydesigns.elements.servlet.ElementsFilter.doFilter(ElementsFilter.java:83)[elements-4.2.1.jar:4.2.1]
    2 frames
  24. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[catalina.jar:8.0.30]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:8.0.30]
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)[catalina.jar:8.0.30]
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)[catalina.jar:8.0.30]
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)[catalina.jar:8.0.30]
    6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)[catalina.jar:8.0.30]
    7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)[catalina.jar:8.0.30]
    8. org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)[catalina.jar:8.0.30]
    9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)[catalina.jar:8.0.30]
    10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:521)[catalina.jar:8.0.30]
    10 frames
  25. Grizzly HTTP
    NioEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1096)[tomcat-coyote.jar:8.0.30]
    2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)[tomcat-coyote.jar:8.0.30]
    3. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)[tomcat-coyote.jar:8.0.30]
    4. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)[tomcat-coyote.jar:8.0.30]
    4 frames
  26. Java RT
    ThreadPoolExecutor$Worker.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_79]
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[na:1.7.0_79]
    2 frames
  27. Tomcat Util
    TaskThread$WrappingRunnable.run
    1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)[tomcat-util.jar:8.0.30]
    1 frame
  28. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)[na:1.7.0_79]
    1 frame