java.lang.reflect.InvocationTargetException

ICEsoft JIRA Issue Tracker | Greg Dick | 5 years ago
  1. 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
  2. 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
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
  6. 0

    PushRenderer issue - Server side push

    Icesoft | 5 years ago | krunalthakkar
    java.lang.RuntimeException: FacesContext is not present for thread Thread[Thread-23,5,main]

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

      FacesContext is not present for thread Thread[Non-deferrable Alarm : 9,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:48)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
      4. java.lang.reflect.Method.invoke(Method.java:600)
      4 frames
    5. org.icefaces.impl
      SessionExpiredListener.sessionDestroyed
      1. org.icefaces.impl.application.WindowScopeManager.callAnnotatedMethod(WindowScopeManager.java:256)
      2. org.icefaces.impl.application.WindowScopeManager.notifyPreDestroy(WindowScopeManager.java:189)
      3. org.icefaces.impl.application.WindowScopeManager.notifyPreDestroyForAll(WindowScopeManager.java:181)
      4. org.icefaces.impl.application.WindowScopeManager.disposeWindows(WindowScopeManager.java:175)
      5. org.icefaces.impl.application.SessionExpiredListener.sessionDestroyed(SessionExpiredListener.java:72)
      5 frames
    6. com.ibm.ws
      WsSessionInvalidator.alarm
      1. com.ibm.ws.session.http.HttpSessionObserver.sessionDestroyed(HttpSessionObserver.java:179)
      2. com.ibm.ws.session.SessionEventDispatcher.sessionDestroyed(SessionEventDispatcher.java:160)
      3. com.ibm.ws.session.StoreCallback.sessionInvalidated(StoreCallback.java:126)
      4. com.ibm.ws.session.store.memory.MemorySession.invalidate(MemorySession.java:222)
      5. com.ibm.ws.session.store.memory.MemoryStore.runInvalidation(MemoryStore.java:403)
      6. com.ibm.ws.session.WsSessionInvalidator.alarm(WsSessionInvalidator.java:64)
      6 frames
    7. com.ibm.ejs
      _Alarm.run
      1. com.ibm.ejs.util.am._Alarm.run(_Alarm.java:127)
      1 frame
    8. com.ibm.ws
      ThreadPool$Worker.run
      1. com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)
      1 frame