java.lang.reflect.UndeclaredThrowableException

JBoss Issue Tracker | Richard Achmatowicz | 7 years ago
  1. 0

    The shell script ./shutdown.sh can be used to shut down a remote EAP instance. For example: ./shutdown.sh -s jnp://<AS bind address>:1099 -S will cause the server to shutdown cleanly. It may also be used to terminate the JVM directly, through the use of the org.jboss.Shutdown arguments -e and -H: // force the VM to exit with exit code ./shutdown.sh -s jnp://<AS bind address>:1099 -e <exit code> // force the VM to halt, with exit code ./shutdown.sh -s jnp://<AS bind address>:1099 -H <exit code> These latter two functions are broken. For example, after starting an EAP instance on bind address 192.168.0.100, the following call to shutdown has no visible effect on the server and the following exception is generated: [nrla@localhost bin]$ ./shutdown.sh -s 192.168.0.100 -e 1 Exception in thread "main" java.lang.reflect.UndeclaredThrowableException at $Proxy1.exit(Unknown Source) at org.jboss.Shutdown.main(Shutdown.java:234) Caused by: javax.management.ReflectionException at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:231) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:266) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138) at org.jboss.mx.server.Invocation.invoke(Invocation.java:90) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140) at org.jboss.jmx.connector.invoker.SerializableInterceptor.invoke(SerializableInterceptor.java:74) at org.jboss.mx.server.Invocation.invoke(Invocation.java:90) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:855) at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:422) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305) at sun.rmi.transport.Transport$1.run(Transport.java:159) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:155) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.IllegalArgumentException: Unable to find operation exit(int) ... 46 more I have performed the same operation on EAP 4.2 and the operation works as expected.

    JBoss Issue Tracker | 7 years ago | Richard Achmatowicz
    java.lang.reflect.UndeclaredThrowableException
  2. 0

    Can JMX operations take interfaces as parameters?

    Stack Overflow | 4 years ago | Thor84no
    javax.management.ReflectionException
  3. 0

    [groovy-user] mbean invocation issue

    Google Groups | 6 years ago | Mustafa Kuscu
    javax.management.ReflectionException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    {noformat} 2006-12-20 14:42:44,860 ERROR CRCSCU2->IMPAX5018RKKCS (TCPServer-2) [org.dcm4chex.archive.dcm.storescp.StoreScpService] Query for matching worklist entries for received Series[1.2.392.200036.9125.3.112193711940.64508363123.22165187] failed: javax.management.ReflectionException at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:228) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.dcm4chex.archive.dcm.storescp.StoreScpService.findMWLEntries(StoreScpService.java:720) at org.dcm4chex.archive.dcm.storescp.StoreScp.mergeMatchingMWLItem(StoreScp.java:538) at org.dcm4chex.archive.dcm.storescp.StoreScp.doCStore(StoreScp.java:483) at org.dcm4che.net.DcmServiceBase.c_store(DcmServiceBase.java:116) at org.dcm4cheri.net.ActiveAssociationImpl.run(ActiveAssociationImpl.java:215) at org.dcm4cheri.util.LF_ThreadPool.join(LF_ThreadPool.java:174) at org.dcm4cheri.net.ActiveAssociationImpl.run(ActiveAssociationImpl.java:148) at org.dcm4cheri.server.DcmHandlerImpl.handle(DcmHandlerImpl.java:249) at org.dcm4cheri.server.ServerImpl.run(ServerImpl.java:263) at org.dcm4cheri.util.LF_ThreadPool.join(LF_ThreadPool.java:174) at org.dcm4cheri.server.ServerImpl$1.run(ServerImpl.java:217) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.NoSuchMethodException: Unable to find operation findMWLEntries(org.dcm4che.data.Dataset) ... 14 more {noformat} Broken by modification in MWL SCU service by DCMEE-184: Support forward of MWL FIND RQ to external MWL SCU by MWLFindScp.

    JIRA | 10 years ago | Peter Heiles
    javax.management.ReflectionException
  6. 0

    An mwl-item created by HL7 ORM message is not displayed in MWL-console (webinterface). Error is thrown when query for mwl-entry in mwl-console: {noformat} ERROR -> (http-10.231.162.191-8080-6) [org.dcm4chex.archive.web.maverick.mwl.MWLScuDelegate] Exception occured in findMWLEntries: null javax.management.ReflectionException at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:228) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.dcm4chex.archive.web.maverick.mwl.MWLScuDelegate.findMWLEntries(MWLScuDelegate.java:111) at org.dcm4chex.archive.web.maverick.mwl.model.MWLModel.filterWorkList(MWLModel.java:265) at org.dcm4chex.archive.web.maverick.mwl.model.MWLModel.getModel(MWLModel.java:125) at org.dcm4chex.archive.web.maverick.mwl.MWLConsoleCtrl.makeFormBean(MWLConsoleCtrl.java:79) at org.dcm4chex.archive.web.maverick.Dcm4cheeFormController.go(Dcm4cheeFormController.java:122) at org.infohazard.maverick.ctl.Throwaway2.go(Throwaway2.java:47) at org.infohazard.maverick.flow.ThrowawayControllerAdapter.go(ThrowawayControllerAdapter.java:54) at org.infohazard.maverick.flow.CommandBase.go(CommandBase.java:66) at org.infohazard.maverick.Dispatcher.service(Dispatcher.java:345) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:420) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.NoSuchMethodException: Unable to find operation findMWLEntries(org.dcm4che.data.Dataset,java.util.List) ... 32 more {noformat}

    JIRA | 6 years ago | Simon Schlosser
    javax.management.ReflectionException

    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

      Unable to find operation halt(int)

      at org.jboss.mx.server.AbstractMBeanInvoker.invoke()
    2. JBoss Application Server J2SE
      MBeanServerImpl.invoke
      1. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:231)
      2. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
      2 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    4. JBoss Application Server Server
      InvokerAdaptorService.invoke
      1. org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:266)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    6. org.jboss.mx
      ReflectedDispatcher.invoke
      1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
      1 frame
    7. JBoss Application Server J2SE
      Invocation.dispatch
      1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
      1 frame
    8. org.jboss.mx
      AbstractInterceptor.invoke
      1. org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
      1 frame
    9. JBoss Application Server J2SE
      Invocation.invoke
      1. org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
      1 frame
    10. org.jboss.mx
      ModelMBeanOperationInterceptor.invoke
      1. org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
      1 frame
    11. JBoss Application Server Server
      SerializableInterceptor.invoke
      1. org.jboss.jmx.connector.invoker.SerializableInterceptor.invoke(SerializableInterceptor.java:74)
      1 frame
    12. JBoss Application Server J2SE
      MBeanServerImpl.invoke
      1. org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
      2. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      3. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
      3 frames
    13. JBoss Application Server Server
      JRMPProxyFactory.invoke
      1. org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:180)
      1 frame
    14. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    15. org.jboss.mx
      ReflectedDispatcher.invoke
      1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
      1 frame
    16. JBoss Application Server J2SE
      MBeanServerImpl.invoke
      1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
      2. org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      3. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      4. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
      4 frames
    17. JBoss Application Server Server
      JRMPInvoker.invoke
      1. org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:855)
      2. org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:422)
      2 frames
    18. Java RT
      Thread.run
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      5. sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
      6. sun.rmi.transport.Transport$1.run(Transport.java:159)
      7. java.security.AccessController.doPrivileged(Native Method)
      8. sun.rmi.transport.Transport.serviceCall(Transport.java:155)
      9. sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
      10. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
      11. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
      12. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      13. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      14. java.lang.Thread.run(Thread.java:619)
      14 frames