java.lang.RuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • PushRenderer issue
    via by krunalthakkar,
  • PushRenderer issue - Server side push
    via by krunalthakkar,
  • Re:Server stops pushing after some time.
    via by LexHax,
  • 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
    via by Carmen Cristurean,
  • 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
    via by Greg Dick,
  • 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
    via by Greg Dick,
  • 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
    via by Carmen Cristurean,
    • java.lang.RuntimeException: FacesContext is not present for thread Thread[pool-1-thread-1,5,main] at org.icefaces.application.PushRenderer.missingFacesContext(PushRenderer.java:182) at org.icefaces.application.PushRenderer.render(PushRenderer.java:131) at com.icesoft.faces.facelets.component.progress.ProgressAsyncBean.afterExecute(ProgressAsyncBean.java:79) at com.icesoft.faces.facelets.component.progress.AfterExecuteThreadPoolExecutor.afterExecute(AfterExecuteThreadPoolExecutor.java:39) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:888) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)
    No Bugmate found.