AWT event queue NullPointerException while using JRE 1.7.51

  • (2 Pages)
  • +
  • 1
  • 2

21 Replies - 3883 Views - Last Post: 06 March 2014 - 01:27 AM Rate Topic: -----

#1 Nageshvk   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 28-February 14

AWT event queue NullPointerException while using JRE 1.7.51

Posted 28 February 2014 - 03:42 AM

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

Is This A Good Question/Topic? 0
  • +

Replies To: AWT event queue NullPointerException while using JRE 1.7.51

#2 g00se   User is offline

  • D.I.C Lover
  • member icon

Reputation: 3744
  • View blog
  • Posts: 17,121
  • Joined: 20-September 08

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
Was This Post Helpful? 1
  • +
  • -

#3 Nageshvk   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 28-February 14

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?
Was This Post Helpful? 0
  • +
  • -

#4 andrewsw   User is offline

  • no more Mr Potato Head
  • member icon

Reputation: 6957
  • View blog
  • Posts: 28,696
  • Joined: 12-December 12

Re: AWT event queue NullPointerException while using JRE 1.7.51

Posted 28 February 2014 - 06:24 AM

View Postg00se, 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

Just to let you know that the images seem to have disappeared from this page.
Was This Post Helpful? 0
  • +
  • -

#5 Nageshvk   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 28-February 14

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
Was This Post Helpful? 0
  • +
  • -

#6 andrewsw   User is offline

  • no more Mr Potato Head
  • member icon

Reputation: 6957
  • View blog
  • Posts: 28,696
  • Joined: 12-December 12

Re: AWT event queue NullPointerException while using JRE 1.7.51

Posted 28 February 2014 - 06:30 AM

I was advising g00se that the images aren't working in the page he linked to.
Was This Post Helpful? 0
  • +
  • -

#7 Nageshvk   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 28-February 14

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
Was This Post Helpful? 0
  • +
  • -

#8 g00se   User is offline

  • D.I.C Lover
  • member icon

Reputation: 3744
  • View blog
  • Posts: 17,121
  • Joined: 20-September 08

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.
Thanks for the heads up Andrew - fixed
Was This Post Helpful? 0
  • +
  • -

#9 g00se   User is offline

  • D.I.C Lover
  • member icon

Reputation: 3744
  • View blog
  • Posts: 17,121
  • Joined: 20-September 08

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?
Was This Post Helpful? 0
  • +
  • -

#10 Nageshvk   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 28-February 14

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.
Was This Post Helpful? 0
  • +
  • -

#11 g00se   User is offline

  • D.I.C Lover
  • member icon

Reputation: 3744
  • View blog
  • Posts: 17,121
  • Joined: 20-September 08

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
Was This Post Helpful? 0
  • +
  • -

#12 Nageshvk   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 28-February 14

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
Was This Post Helpful? 0
  • +
  • -

#13 g00se   User is offline

  • D.I.C Lover
  • member icon

Reputation: 3744
  • View blog
  • Posts: 17,121
  • Joined: 20-September 08

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
Was This Post Helpful? 0
  • +
  • -

#14 Nageshvk   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 28-February 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?
Was This Post Helpful? 0
  • +
  • -

#15 Nageshvk   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 28-February 14

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.
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2