Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2003
    Posts
    1

    Unhappy Unanswered: java.sql.SQLException ..

    i faced this error while using Applet to acess to Mysql.

    java.sql.SQLException: Unable to connect to any hosts due to exception: java.security.AccessControlException: access denied (java.util.PropertyPermission file.encoding read) at com.mysql.jdbc.Connection.createNewIO(Connection.j ava:1622) at com.mysql.jdbc.Connection.<init>(Connection.java:4 91) at com.mysql.jdbc.NonRegisteringDriver.connect(NonReg isteringDriver.java:346) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at PickDraw.paint(PickDraw.java:210) at sun.awt.RepaintArea.paint(Unknown Source) at sun.awt.windows.WComponentPeer.handleEvent(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.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierar chy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unkn

    i sign and jar the applet.. but oso have this error..
    can somebody tell me how should i solve this errors...

    thanks in advance.

  2. #2
    Join Date
    Oct 2003
    Location
    Slovakia
    Posts
    482

    Re: java.sql.SQLException ..

    Originally posted by eunice
    i faced this error while using Applet to acess to Mysql.

    java.sql.SQLException: Unable to connect to any hosts due to exception: java.security.AccessControlException: access denied (java.util.PropertyPermission file.encoding read) at com.mysql.jdbc.Connection.createNewIO(Connection.j ava:1622) at com.mysql.jdbc.Connection.<init>(Connection.java:4 91) at com.mysql.jdbc.NonRegisteringDriver.connect(NonReg isteringDriver.java:346) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at PickDraw.paint(PickDraw.java:210) at sun.awt.RepaintArea.paint(Unknown Source) at sun.awt.windows.WComponentPeer.handleEvent(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.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierar chy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unkn

    i sign and jar the applet.. but oso have this error..
    can somebody tell me how should i solve this errors...

    thanks in advance.
    Could you post the source code here?

Posting Permissions

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