java.lang.reflect.InvocationTargetException

ICEsoft JIRA Issue Tracker | Carmen Cristurean | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Showcase application -> ace:progressBar. A JS error occurred when after starting the progressBar on the Polling page, I ckicked on the 'Push' left side link to go to ace:progressBar -> Push page. (IE8). I re-tested several times and this JS error does not happen consistently. Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDS; .NET4.0C) Timestamp: Tue, 31 Jan 2012 16:54:10 UTC Message: Object required Line: 65 Char: 13 Code: 0 URI: http://localhost:8080/showcase/javax.faces.resource/bridge.js.jsf?v=703175318 At the same time there was a server error in the log: 31-Jan-2012 9:55:54 AM org.icepush.servlet.EnvironmentAdaptingServlet service INFO: Falling back to Thread Blocking environment 31-Jan-2012 9:56:06 AM org.icefaces.impl.application.WindowScopeManager callAnnotatedMethod WARNING: Failed to invokeinterface javax.annotation.PreDestroy on class org.icefaces.samples.showcase.example.compat.progress.LongTaskManager java.lang.reflect.InvocationTargetException 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.icefaces.impl.application.WindowScopeManager.callAnnotatedMethod(WindowScopeManager.java:252) at org.icefaces.impl.application.WindowScopeManager.notifyPreDestroy(WindowScopeManager.java:185) at org.icefaces.impl.application.WindowScopeManager.notifyPreDestroyForAll(WindowScopeManager.java:177) at org.icefaces.impl.application.WindowScopeManager.access$1800(WindowScopeManager.java:42) at org.icefaces.impl.application.WindowScopeManager$AllWindowsClosedNotifier.run(WindowScopeManager.java:582) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) Caused by: java.lang.RuntimeException: FacesContext is not present for thread Thread[WindowScopeManager timer,5,main] at org.icefaces.application.PushRenderer.missingFacesContext(PushRenderer.java:226) at org.icefaces.application.PushRenderer.removeCurrentSession(PushRenderer.java:121) at org.icefaces.samples.showcase.example.compat.progress.LongTaskManager.deinit(LongTaskManager.java:61) ... 11 more

    ICEsoft JIRA Issue Tracker | 5 years ago | Carmen Cristurean
    java.lang.reflect.InvocationTargetException
  2. 0

    Showcase application -> ace:progressBar. A JS error occurred when after starting the progressBar on the Polling page, I ckicked on the 'Push' left side link to go to ace:progressBar -> Push page. (IE8). I re-tested several times and this JS error does not happen consistently. Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDS; .NET4.0C) Timestamp: Tue, 31 Jan 2012 16:54:10 UTC Message: Object required Line: 65 Char: 13 Code: 0 URI: http://localhost:8080/showcase/javax.faces.resource/bridge.js.jsf?v=703175318 At the same time there was a server error in the log: 31-Jan-2012 9:55:54 AM org.icepush.servlet.EnvironmentAdaptingServlet service INFO: Falling back to Thread Blocking environment 31-Jan-2012 9:56:06 AM org.icefaces.impl.application.WindowScopeManager callAnnotatedMethod WARNING: Failed to invokeinterface javax.annotation.PreDestroy on class org.icefaces.samples.showcase.example.compat.progress.LongTaskManager java.lang.reflect.InvocationTargetException 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.icefaces.impl.application.WindowScopeManager.callAnnotatedMethod(WindowScopeManager.java:252) at org.icefaces.impl.application.WindowScopeManager.notifyPreDestroy(WindowScopeManager.java:185) at org.icefaces.impl.application.WindowScopeManager.notifyPreDestroyForAll(WindowScopeManager.java:177) at org.icefaces.impl.application.WindowScopeManager.access$1800(WindowScopeManager.java:42) at org.icefaces.impl.application.WindowScopeManager$AllWindowsClosedNotifier.run(WindowScopeManager.java:582) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) Caused by: java.lang.RuntimeException: FacesContext is not present for thread Thread[WindowScopeManager timer,5,main] at org.icefaces.application.PushRenderer.missingFacesContext(PushRenderer.java:226) at org.icefaces.application.PushRenderer.removeCurrentSession(PushRenderer.java:121) at org.icefaces.samples.showcase.example.compat.progress.LongTaskManager.deinit(LongTaskManager.java:61) ... 11 more

    ICEsoft JIRA Issue Tracker | 5 years ago | Carmen Cristurean
    java.lang.reflect.InvocationTargetException
  3. 0

    I've seen this on session expiry, and on application redeployment when the original application is unloaded. Application throws the following exception: [21/02/12 9:19:58:017 PST] 00000054 WindowScopeMa W Failed to invokeinterface javax.annotation.PreDestroy on class org.icefaces.samples.showcase.example.compat.progress.LongTaskManager java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:600) at org.icefaces.impl.application.WindowScopeManager.callAnnotatedMethod(WindowScopeManager.java:256) at org.icefaces.impl.application.WindowScopeManager.notifyPreDestroy(WindowScopeManager.java:189) at org.icefaces.impl.application.WindowScopeManager.notifyPreDestroyForAll(WindowScopeManager.java:181) at org.icefaces.impl.application.WindowScopeManager.disposeWindows(WindowScopeManager.java:175) at org.icefaces.impl.application.SessionExpiredListener.sessionDestroyed(SessionExpiredListener.java:72) at com.ibm.ws.session.http.HttpSessionObserver.sessionDestroyed(HttpSessionObserver.java:179) at com.ibm.ws.session.SessionEventDispatcher.sessionDestroyed(SessionEventDispatcher.java:160) at com.ibm.ws.session.StoreCallback.sessionInvalidated(StoreCallback.java:126) at com.ibm.ws.session.store.memory.MemorySession.invalidate(MemorySession.java:222) at com.ibm.ws.session.store.memory.MemoryStore.runInvalidation(MemoryStore.java:403) at com.ibm.ws.session.WsSessionInvalidator.alarm(WsSessionInvalidator.java:64) at com.ibm.ejs.util.am._Alarm.run(_Alarm.java:127) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550) Caused by: java.lang.RuntimeException: FacesContext is not present for thread Thread[Non-deferrable Alarm : 9,5,main] at org.icefaces.application.PushRenderer.missingFacesContext(PushRenderer.java:226) at org.icefaces.application.PushRenderer.removeCurrentSession(PushRenderer.java:121) at org.icefaces.samples.showcase.example.compat.progress.LongTaskManager.deinit(LongTaskManager.java:61) ... 17 more

    ICEsoft JIRA Issue Tracker | 5 years ago | Greg Dick
    java.lang.reflect.InvocationTargetException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I've seen this on session expiry, and on application redeployment when the original application is unloaded. Application throws the following exception: [21/02/12 9:19:58:017 PST] 00000054 WindowScopeMa W Failed to invokeinterface javax.annotation.PreDestroy on class org.icefaces.samples.showcase.example.compat.progress.LongTaskManager java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:600) at org.icefaces.impl.application.WindowScopeManager.callAnnotatedMethod(WindowScopeManager.java:256) at org.icefaces.impl.application.WindowScopeManager.notifyPreDestroy(WindowScopeManager.java:189) at org.icefaces.impl.application.WindowScopeManager.notifyPreDestroyForAll(WindowScopeManager.java:181) at org.icefaces.impl.application.WindowScopeManager.disposeWindows(WindowScopeManager.java:175) at org.icefaces.impl.application.SessionExpiredListener.sessionDestroyed(SessionExpiredListener.java:72) at com.ibm.ws.session.http.HttpSessionObserver.sessionDestroyed(HttpSessionObserver.java:179) at com.ibm.ws.session.SessionEventDispatcher.sessionDestroyed(SessionEventDispatcher.java:160) at com.ibm.ws.session.StoreCallback.sessionInvalidated(StoreCallback.java:126) at com.ibm.ws.session.store.memory.MemorySession.invalidate(MemorySession.java:222) at com.ibm.ws.session.store.memory.MemoryStore.runInvalidation(MemoryStore.java:403) at com.ibm.ws.session.WsSessionInvalidator.alarm(WsSessionInvalidator.java:64) at com.ibm.ejs.util.am._Alarm.run(_Alarm.java:127) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550) Caused by: java.lang.RuntimeException: FacesContext is not present for thread Thread[Non-deferrable Alarm : 9,5,main] at org.icefaces.application.PushRenderer.missingFacesContext(PushRenderer.java:226) at org.icefaces.application.PushRenderer.removeCurrentSession(PushRenderer.java:121) at org.icefaces.samples.showcase.example.compat.progress.LongTaskManager.deinit(LongTaskManager.java:61) ... 17 more

    ICEsoft JIRA Issue Tracker | 5 years ago | Greg Dick
    java.lang.reflect.InvocationTargetException

    Root Cause Analysis

    1. java.lang.RuntimeException

      FacesContext is not present for thread Thread[WindowScopeManager timer,5,main]

      at org.icefaces.application.PushRenderer.missingFacesContext()
    2. org.icefaces.application
      PushRenderer.removeCurrentSession
      1. org.icefaces.application.PushRenderer.missingFacesContext(PushRenderer.java:226)
      2. org.icefaces.application.PushRenderer.removeCurrentSession(PushRenderer.java:121)
      2 frames
    3. org.icefaces.samples
      LongTaskManager.deinit
      1. org.icefaces.samples.showcase.example.compat.progress.LongTaskManager.deinit(LongTaskManager.java:61)
      1 frame
    4. 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
    5. org.icefaces.impl
      WindowScopeManager$AllWindowsClosedNotifier.run
      1. org.icefaces.impl.application.WindowScopeManager.callAnnotatedMethod(WindowScopeManager.java:252)
      2. org.icefaces.impl.application.WindowScopeManager.notifyPreDestroy(WindowScopeManager.java:185)
      3. org.icefaces.impl.application.WindowScopeManager.notifyPreDestroyForAll(WindowScopeManager.java:177)
      4. org.icefaces.impl.application.WindowScopeManager.access$1800(WindowScopeManager.java:42)
      5. org.icefaces.impl.application.WindowScopeManager$AllWindowsClosedNotifier.run(WindowScopeManager.java:582)
      5 frames
    6. Java RT
      TimerThread.run
      1. java.util.TimerThread.mainLoop(Timer.java:512)
      2. java.util.TimerThread.run(Timer.java:462)
      2 frames