Results 1 to 6 of 6
  1. #1
    snowjo502 is offline Member
    Join Date
    Apr 2011
    Posts
    10
    Rep Power
    0

    Question jre 7u45 Applet has an exception

    In my applet program on jre7u45,it has a problem when click the JTree in a component.
    The first time when applet started,it has no problem.
    But since the second time to start the applet,when click the JTree,the problem happens.
    Exception as follows.

    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 java.awt.Component.repaintParentIfNeeded(Unknown Source)
    at java.awt.Component.reshape(Unknown Source)
    at javax.swing.JComponent.reshape(Unknown Source)
    at java.awt.Component.setBounds(Unknown Source)
    at java.awt.Component.resize(Unknown Source)
    at java.awt.Component.setSize(Unknown Source)
    at java.awt.Component.resize(Unknown Source)
    at java.awt.Component.setSize(Unknown Source)
    at javax.swing.JViewport.setViewSize(Unknown Source)
    at javax.swing.ViewportLayout.layoutContainer(Unknown Source)
    at java.awt.Container.layout(Unknown Source)
    at java.awt.Container.doLayout(Unknown Source)
    at java.awt.Container.validateTree(Unknown Source)
    at java.awt.Container.validateTree(Unknown Source)
    at java.awt.Container.validateTree(Unknown Source)
    at java.awt.Container.validate(Unknown Source)
    at javax.swing.RepaintManager$2.run(Unknown Source)
    at javax.swing.RepaintManager$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPri vilege(Unknown Source)
    at javax.swing.RepaintManager.validateInvalidComponen ts(Unknown Source)
    at javax.swing.RepaintManager$ProcessingRunnable.run( Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(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.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)

    In fact,the problem has existed since jre7u25.
    But before jre7u25,there is no problem.

    Why the problem happen since jre7u25,anyone know how to solve?
    Last edited by snowjo502; 11-13-2013 at 03:34 AM.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,902
    Rep Power
    25

    Default Re: jre 7u45 Applet has an exception

    That's a new one. Can you make a small, complete program that compiles, executes and shows the problem?
    You should also post the html to execute it.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    snowjo502 is offline Member
    Join Date
    Apr 2011
    Posts
    10
    Rep Power
    0

    Default Re: jre 7u45 Applet has an exception

    Quote Originally Posted by Norm View Post
    That's a new one. Can you make a small, complete program that compiles, executes and shows the problem?
    You should also post the html to execute it.
    It seems difficult to make a similar program to show the problem.
    According to the exception,can you speculate why the problem happen?

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,902
    Rep Power
    25

    Default Re: jre 7u45 Applet has an exception

    Version 7u45 has closed some "security" holes. Some methods asking for URLs now return null values.
    See the link: Oracle's Java Security Mess
    If you don't understand my response, don't ignore it, ask a question.

  5. #5
    snowjo502 is offline Member
    Join Date
    Apr 2011
    Posts
    10
    Rep Power
    0

    Default Re: jre 7u45 Applet has an exception

    Quote Originally Posted by Norm View Post
    Version 7u45 has closed some "security" holes. Some methods asking for URLs now return null values.
    See the link: Oracle's Java Security Mess
    Thanks for your reply.
    the link shows the problems which seem different from the problem I posted.
    In fact, since jre 7u25,this exception has existed.
    Last edited by snowjo502; 11-13-2013 at 03:58 AM.

  6. #6
    nageshvk is offline Member
    Join Date
    Mar 2014
    Posts
    3
    Rep Power
    0

    Default Re: jre 7u45 Applet has an exception

    Quote Originally Posted by snowjo502 View Post
    Thanks for your reply.
    the link shows the problems which seem different from the problem I posted.
    In fact, since jre 7u25,this exception has existed.



    I am facing similar issue. Could you please let me know if you have resolved it. Or is there any workaround you made to code.

Similar Threads

  1. jre 7u45 Applet has an exception
    By snowjo502 in forum Java JRE
    Replies: 2
    Last Post: 03-06-2014, 05:25 PM
  2. 7u45 Java Control Panel problems
    By Lewy in forum New To Java
    Replies: 5
    Last Post: 11-16-2013, 07:06 PM
  3. java update 1.7u45
    By steve68 in forum New To Java
    Replies: 0
    Last Post: 11-03-2013, 06:45 PM
  4. jre 7u45,applet access user files is denied
    By snowjo502 in forum Java JRE
    Replies: 4
    Last Post: 10-30-2013, 01:18 PM
  5. 7u45 and remote cameras
    By fatboy999 in forum New To Java
    Replies: 12
    Last Post: 10-25-2013, 08:59 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •