My web application will load an applet with SWING components (Menu bar) on successful login to application.
Once page is loaded, i choose a menu item from the menu bar and click on it. Dynamic menu bar is loaded for the selected menu item. After that i am not able to perform any action on menu bar. Ending up with below error.
Note: My Application is absolutely working fine till JRE 1.7.17. But when i upgarde to higher version of JRE like 1.7.25 and above i am getting below error.
Exception in thread "AWT-EventQueue-4" java.lang.NullPointerException
at javax.swing.RepaintManager.scheduleProcessingRunna ble(Unknown Source)
at javax.swing.RepaintManager.addDirtyRegion0(Unknown Source)
at javax.swing.RepaintManager.addDirtyRegion(Unknown Source)
at javax.swing.JComponent.repaint(Unknown Source)
at java.awt.Component.repaint(Unknown Source)
at javax.swing.AbstractButton$Handler.stateChanged(Un known Source)
at javax.swing.DefaultButtonModel.fireStateChanged(Un known Source)
at javax.swing.DefaultButtonModel.setRollover(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsMenuUI$Wind owsMouseInputHandler.mouseEntered(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent( Unknown Source)
at java.awt.LightweightDispatcher.trackMouseEnterExit (Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(U nknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unkno wn Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPri vilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPri vilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPri vilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(U nknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Please help me or atleast give me lead when this issue occur. Your help is much appreciated.
Regards
Nagesh
21 Replies - 3883 Views - Last Post: 06 March 2014 - 01:27 AM
#1
AWT event queue NullPointerException while using JRE 1.7.51
Posted 28 February 2014 - 03:42 AM
Replies To: AWT event queue NullPointerException while using JRE 1.7.51
#2
Re: AWT event queue NullPointerException while using JRE 1.7.51
Posted 28 February 2014 - 06:00 AM
That's tricky. First i'd bring up the console and empty the cache. Then reload the page
http://technojeeves....-applet-console
http://technojeeves....-applet-console
#3
Re: AWT event queue NullPointerException while using JRE 1.7.51
Posted 28 February 2014 - 06:05 AM
Thanks for your reply. I have already enabled the console and cleared the cache.The error still persist.
May i know why this error occur. What could be the root cause and how to proceed further?
May i know why this error occur. What could be the root cause and how to proceed further?
#4
Re: AWT event queue NullPointerException while using JRE 1.7.51
Posted 28 February 2014 - 06:24 AM
g00se, on 28 February 2014 - 01:00 PM, said:
That's tricky. First i'd bring up the console and empty the cache. Then reload the page
http://technojeeves....-applet-console
http://technojeeves....-applet-console
Just to let you know that the images seem to have disappeared from this page.
#5
Re: AWT event queue NullPointerException while using JRE 1.7.51
Posted 28 February 2014 - 06:28 AM
Hi Andrew,
I am sorry. I didnt get any thing from you. Can you give more explanation?
Regards
Nagesh
I am sorry. I didnt get any thing from you. Can you give more explanation?
Regards
Nagesh
#7
Re: AWT event queue NullPointerException while using JRE 1.7.51
Posted 28 February 2014 - 07:17 AM
Guys, Could you please help me for the above exception. It has became big show-stopper at the front-end. Even when we move the mouse over on menu bar, it is throwing exception.
1. I have given all permissions in manifest file and signed the jar that contaings UI Classes.
2. I have put a NULL check for getCodeBase object across the code.
3. Compiled the code with java1.5, java 1.6 and tested the application.
It is absolutely working fine with JRE 1.7.17, but any higher versions like JRE 1.7.21 and above this is throwing the error.
Regards
Nagesh
1. I have given all permissions in manifest file and signed the jar that contaings UI Classes.
2. I have put a NULL check for getCodeBase object across the code.
3. Compiled the code with java1.5, java 1.6 and tested the application.
It is absolutely working fine with JRE 1.7.17, but any higher versions like JRE 1.7.21 and above this is throwing the error.
Regards
Nagesh
#8
Re: AWT event queue NullPointerException while using JRE 1.7.51
Posted 28 February 2014 - 07:27 AM
Quote
Just to let you know that the images seem to have disappeared from this page.
#9
Re: AWT event queue NullPointerException while using JRE 1.7.51
Posted 28 February 2014 - 07:40 AM
Can you give us the url to test it?
#10
Re: AWT event queue NullPointerException while using JRE 1.7.51
Posted 28 February 2014 - 07:43 AM
I am sorry goose. It is a customer application and can not be disclosed.
#11
Re: AWT event queue NullPointerException while using JRE 1.7.51
Posted 28 February 2014 - 08:44 AM
Difficult to say without seeing it. Perhaps worthwhile turning up the full trace on the console, reloading and posting the trace here. Check it for sensitive info first
#12
Re: AWT event queue NullPointerException while using JRE 1.7.51
Posted 28 February 2014 - 08:56 AM
This is the only exception i am receiving from Java Console. Atleast if you could share some headsup on it like possible factors that could cause this issue. I will start debugging source code in that direction.
Error says unknown source code, thats the reason i am not getting any lead on it.
More over when does RepaintManager.scheduleProcessingRunnable(unknown source) will be thrown by the Event Dispath Thread.
I have already posted some prototype code please find the thread information below.
http://stackoverflow...tion-with-jre-1
Regards
Nagesh
Error says unknown source code, thats the reason i am not getting any lead on it.
More over when does RepaintManager.scheduleProcessingRunnable(unknown source) will be thrown by the Event Dispath Thread.
I have already posted some prototype code please find the thread information below.
http://stackoverflow...tion-with-jre-1
Regards
Nagesh
#13
Re: AWT event queue NullPointerException while using JRE 1.7.51
Posted 28 February 2014 - 09:00 AM
Well a trace is something different.
Looks like a jvm bug to me
Looks like a jvm bug to me
#14
Re: AWT event queue NullPointerException while using JRE 1.7.51
Posted 28 February 2014 - 09:04 AM
How to turn up full stack trace on the console? What is sensitive information?
#15
Re: AWT event queue NullPointerException while using JRE 1.7.51
Posted 28 February 2014 - 09:12 AM
If it is a JVM bug, how to resolve it? Users are clicking on the JRE upgrade button on the launch of applicaion, Once JRE is update to latest version, they are not able to access the menu items of the application. I have tested with JRE 1.7.25, JRE 1.7.51 the exception exists.
If you need any trace i will share it... but let me know how to generate at UI level.
If you need any trace i will share it... but let me know how to generate at UI level.

New Topic/Question
Reply


MultiQuote


|