java.lang.reflect.UndeclaredThrowableException

JIRA | Matt Warhaftig | 7 years ago
  1. 0

    In the Heritrix 2.0.2 Web UI when attempting to copy a Profile or Job (via do_show_copy.jsp) and the name entered for the copy matches an already existing Job/Profile a "java.lang.reflect.UndeclaredThrowableException" error occurs when 'Copy' is clicked. No real harm is done as the copy doesn't overwrite the existing Profile/Job that already has the name. However, it would be better to display a proper error message in the Web UI notifying the user why the copy was prevented. Full error message for an attempted copy is: java.lang.reflect.UndeclaredThrowableException null java.lang.reflect.UndeclaredThrowableException at $Proxy9.copy(Unknown Source) at org.archive.crawler.webui.CrawlerArea.copy(CrawlerArea.java:265) at org.apache.jsp.crawler_005farea.do_005fcopy_jsp._jspService(do_005fcopy_jsp.java:45) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:459) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1054) at org.archive.crawler.webui.AuthFilter.doFilter(AuthFilter.java:79) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:358) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:231) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:629) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:453) at org.mortbay.jetty.handler.HandlerList.handle(HandlerList.java:49) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141) at org.mortbay.jetty.Server.handle(Server.java:303) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:452) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:735) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:636) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:349) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:217) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) Caused by: javax.management.ReflectionException at org.archive.settings.jmx.LoggingDynamicMBean.dealWithException(LoggingDynamicMBean.java:77) at org.archive.settings.jmx.LoggingDynamicMBean.invoke(LoggingDynamicMBean.java:160) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) at org.archive.openmbeans.annotations.BeanProxy.invoke(BeanProxy.java:87) ... 27 more Caused by: java.lang.IllegalStateException ... 34 more

    JIRA | 7 years ago | Matt Warhaftig
    java.lang.reflect.UndeclaredThrowableException
  2. 0

    In the Heritrix 2.0.2 Web UI when attempting to copy a Profile or Job (via do_show_copy.jsp) and the name entered for the copy matches an already existing Job/Profile a "java.lang.reflect.UndeclaredThrowableException" error occurs when 'Copy' is clicked. No real harm is done as the copy doesn't overwrite the existing Profile/Job that already has the name. However, it would be better to display a proper error message in the Web UI notifying the user why the copy was prevented. Full error message for an attempted copy is: java.lang.reflect.UndeclaredThrowableException null java.lang.reflect.UndeclaredThrowableException at $Proxy9.copy(Unknown Source) at org.archive.crawler.webui.CrawlerArea.copy(CrawlerArea.java:265) at org.apache.jsp.crawler_005farea.do_005fcopy_jsp._jspService(do_005fcopy_jsp.java:45) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:459) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1054) at org.archive.crawler.webui.AuthFilter.doFilter(AuthFilter.java:79) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:358) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:231) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:629) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:453) at org.mortbay.jetty.handler.HandlerList.handle(HandlerList.java:49) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141) at org.mortbay.jetty.Server.handle(Server.java:303) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:452) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:735) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:636) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:349) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:217) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) Caused by: javax.management.ReflectionException at org.archive.settings.jmx.LoggingDynamicMBean.dealWithException(LoggingDynamicMBean.java:77) at org.archive.settings.jmx.LoggingDynamicMBean.invoke(LoggingDynamicMBean.java:160) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) at org.archive.openmbeans.annotations.BeanProxy.invoke(BeanProxy.java:87) ... 27 more Caused by: java.lang.IllegalStateException ... 34 more

    JIRA | 7 years ago | Matt Warhaftig
    java.lang.reflect.UndeclaredThrowableException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Create a new job. Click 'launch'. Reload the page you just landed on (to check to see if it has started). Receive the following error: HTTP ERROR: 404 /heritrix/error.jsp RequestURI=/heritrix/error.jsp Caused by: javax.management.ReflectionException at org.archive.settings.jmx.LoggingDynamicMBean.dealWithException(LoggingDynamicMBean.java:77) at org.archive.settings.jmx.LoggingDynamicMBean.invoke(LoggingDynamicMBean.java:160) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) at org.archive.openmbeans.annotations.BeanProxy.invoke(BeanProxy.java:87) at $Proxy9.launchJob(Unknown Source) at org.archive.crawler.webui.CrawlerArea.launch(CrawlerArea.java:155) at jsp.crawler_005farea.do_005flaunch_jsp._jspService(jsp.crawler_005farea.do_005flaunch_jsp:45) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:459) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1054) at org.archive.crawler.webui.AuthFilter.doFilter(AuthFilter.java:71) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:358) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:231) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:629) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:453) at org.mortbay.jetty.handler.HandlerList.handle(HandlerList.java:49) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141) at org.mortbay.jetty.Server.handle(Server.java:303) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:452) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:721) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:509) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:349) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:217) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) Caused by: java.lang.IllegalStateException ... 30 more Caused by: java.lang.IllegalStateException at org.archive.settings.jmx.LoggingDynamicMBean.dealWithException(LoggingDynamicMBean.java:77) at org.archive.settings.jmx.LoggingDynamicMBean.invoke(LoggingDynamicMBean.java:160) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) at org.archive.openmbeans.annotations.BeanProxy.invoke(BeanProxy.java:87) at $Proxy9.launchJob(Unknown Source) at org.archive.crawler.webui.CrawlerArea.launch(CrawlerArea.java:155) at jsp.crawler_005farea.do_005flaunch_jsp._jspService(jsp.crawler_005farea.do_005flaunch_jsp:45) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:459) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1054) at org.archive.crawler.webui.AuthFilter.doFilter(AuthFilter.java:71) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:358) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:231) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:629) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:453) at org.mortbay.jetty.handler.HandlerList.handle(HandlerList.java:49) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141) at org.mortbay.jetty.Server.handle(Server.java:303) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:452) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:721) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:509) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:349) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:217) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) Powered by Jetty://

    JIRA | 9 years ago | Erik Hetzner
    javax.management.ReflectionException
  5. 0

    To reproduce: Create a new job. Create a sheet (other than the global sheet). "add" processors - map of Processor click "details", enter a name and pick and object to create, "submit". click the "Move Up" link next to that processor in the list. (gives exception below) Given the restrictions on Heritrix 1.x configuration, I suspect that this is something that I'm not supposed to do. However, the user interface is letting me do it... (Oops, I just noticed I'm using 2.0.0, not 2.0.0 RC1 -- I'll try it again with that and confirm it is still an issue.) java.lang.reflect.UndeclaredThrowableException at $Proxy11.moveElementUp(Unknown Source) at org.archive.crawler.webui.Sheets.moveElement(Sheets.java:478) at org.archive.crawler.webui.Sheets.moveElementUp(Sheets.java:452) at jsp.sheets.do_005fmove_005felement_005fup_jsp._jspService(jsp.sheets.do_005fmove_005felement_005fup_jsp:45) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:459) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1054) at org.archive.crawler.webui.AuthFilter.doFilter(AuthFilter.java:79) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:358) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:231) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:629) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:453) at org.mortbay.jetty.handler.HandlerList.handle(HandlerList.java:49) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141) at org.mortbay.jetty.Server.handle(Server.java:303) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:452) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:721) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:509) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:349) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:217) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) Caused by: javax.management.ReflectionException at org.archive.settings.jmx.LoggingDynamicMBean.dealWithException(LoggingDynamicMBean.java:77) at org.archive.settings.jmx.LoggingDynamicMBean.invoke(LoggingDynamicMBean.java:160) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) at org.archive.openmbeans.annotations.BeanProxy.invoke(BeanProxy.java:87) ... 24 more Caused by: java.lang.IllegalStateException ... 31 more

    JIRA | 9 years ago | Michael Magin
    java.lang.reflect.UndeclaredThrowableException

    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.IllegalStateException

      No message provided

      at org.archive.settings.jmx.LoggingDynamicMBean.dealWithException()
    2. org.archive.settings
      LoggingDynamicMBean.invoke
      1. org.archive.settings.jmx.LoggingDynamicMBean.dealWithException(LoggingDynamicMBean.java:77)
      2. org.archive.settings.jmx.LoggingDynamicMBean.invoke(LoggingDynamicMBean.java:160)
      2 frames
    3. Java RT
      JmxMBeanServer.invoke
      1. com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
      2. com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
      3. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
      4. com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
      4 frames
    4. org.archive.openmbeans
      BeanProxy.invoke
      1. org.archive.openmbeans.annotations.BeanProxy.invoke(BeanProxy.java:87)
      1 frame
    5. Unknown
      $Proxy9.copy
      1. $Proxy9.copy(Unknown Source)
      1 frame
    6. org.archive.crawler
      CrawlerArea.copy
      1. org.archive.crawler.webui.CrawlerArea.copy(CrawlerArea.java:265)
      1 frame
    7. org.apache.jsp
      do_005fcopy_jsp._jspService
      1. org.apache.jsp.crawler_005farea.do_005fcopy_jsp._jspService(do_005fcopy_jsp.java:45)
      1 frame
    8. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      1 frame
    9. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
      1 frame
    10. GWT dev
      JspServlet.service
      1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
      2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      3 frames
    11. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
      1 frame
    12. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:459)
      2. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1054)
      2 frames
    13. org.archive.crawler
      AuthFilter.doFilter
      1. org.archive.crawler.webui.AuthFilter.doFilter(AuthFilter.java:79)
      1 frame
    14. Jetty Server
      SocketConnector$Connection.run
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:358)
      3. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:231)
      4. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:629)
      5. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:453)
      6. org.mortbay.jetty.handler.HandlerList.handle(HandlerList.java:49)
      7. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
      8. org.mortbay.jetty.Server.handle(Server.java:303)
      9. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:452)
      10. org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:735)
      11. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:636)
      12. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
      13. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:349)
      14. org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:217)
      14 frames
    15. Jetty Util
      BoundedThreadPool$PoolThread.run
      1. org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
      1 frame