Why my self-signed applet could not read local disk but could write?

I used a self-signed certificate for the applet yesterday and it worked
fine at the beginning time, that is, it could write/read file to/from
local disk, and it could connect to other MDS servers. But later, a
problem happens. It could write file to local disk(I tested it and created
files to C:/ under windows) but when it try to read that file, it got a
io acessing exception. It could connect to other servers. I am puzzled
about this problem, and I wonder why I could write but could not
read. Need I deal with any policy file issue here?

hi,
i 'am doing something which is similar to the stuff ur doing .I wanted to write into file on the local disk on which the applet is running.for this i have signed the applet .do i need to make it self signed wat is difference between the self signed and signed applet .The problem which i facing is that it still gives me the security exception even if i define the policy file for that applet............Can u help me reagrding this
Thanks in advance
your great help would be apprecriated
rao_lavs

Similar Messages

  • Self signed applets are not supported by plug-in

    I am using Windows 2000.I am using self signing applet which i have signed with the help of netscape signing tool with test certificate.I have put the zip file in "c:\program Files\netscape\users\default " directory
    after signing..While opening it is giving some exception
    "java.lang.SecurityException: cannot verify signature block file META-INF/ZIGBERT".
    please help me regarding this.
    ashok das
    otlsoft, bangalore.

    First you need to install your self signed sertificat into system - only then you'll be able to start applet without problem.

  • Boot Camp - Windows can read Mac disk, but cannot write to it

    iMac OSX Snow Leopard. Windows XP.
    Can anyone help me resolve this. I have installed Windows XP using Boot Camp. The Windows folder is 31GB using FAT32.
    Windows can read from the Mac disk, but cannot write to it (I get an ACCESS DENIED) error.
    I have checked that permissions are set to Read/Write on the Mac, and have run permissions manager to check all is well. I have also tried deleting and reinstalling Windows, and creating a second User on the Mac.
    When I boot into OsX then I can write to the Mac hard disk from another (Windows) computer on a network.
    I think this did work initially, and it stopped working when I changed the computer name on the Mac (though this might be a red herring -- but it did definitely work OK yesterday).
    I'm a new convert to Macs, but am experienced with Windows machines, and I would appreciate any pointers.

    This is by design. The driver that allows access to the HFS partition is read-only. This prevents any possibility that Windows viruses could become an attack vector against the Mac OS. If you need to transfer files between Mac and Windows, you can always use an external hard disk or memory stick formatted as FAT.

  • AccessControlException in signed applet for simply reading local file

    I have a simple applet that reads specified local image files and uploads them to our server. On both Mac OS X and WinXP (firefox and IE7), I get the following error. I signed the applet using an InstantSSL code signing certificate (not so easy getting this to work, but I'm pretty confident I did it correctly).
    java.security.AccessControlException: access denied (java.io.FilePermission /Users/scott/Documents/photos/Ken_and_Scott.jpg read)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
         at java.security.AccessController.checkPermission(AccessController.java:427)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
         at java.io.File.length(File.java:813)
         at org.apache.http.entity.mime.content.FileBody.getContentLength(FileBody.java:89)So just on getting the file length, it's throwing this exception. Interestingly, this file passed both file.exists() and file.canRead() checks within the applet (in windows the path is a bit different of course but also passes both those checks). Also, that file has no read restrictions and I can load it in a browser no problem.
    I assume I'm missing a step in the applet code signing process, maybe a step that says I'm allowed to read local files?

    I figured out my issue, the apache HttpClient library needed to be signed too apparently.

  • Self signed applet problem

    Hello java gurus,
    I have a self signed applet which must read and write from mysql DB.
    The sign is OK, the popup "warning security" is here but I still have a SQL Exception :
    java.security.AccessControlException: access denied (java.util.PropertPermission file.encoding read)
    I don't want to change the java policy and I work on plugin 1.4.1_02.
    I think the problem is with the certificate cause it should give permission to applet, but it doesn't.
    Any help will be very pleasant

    From the plug-in control panel, click certificates
    then the Signer CA radio button. These are the
    certifying authorities that the client plug-in will
    accept as valid for signed code. Obviously, if any
    client would just accept self-signed code as trusted,
    it wouldn't provide much security. For a purely
    internal app, you can generate a cert and install it
    on the clients which will accept your own signing as
    trustworthy.I think I can deal with this properly if you just clear up one thing for me: when you say 'install it on the clients' do you mean use the Plug-In Control Panel to load the certificate using the "Certificates" tab? From there click the "Signed Applet" radio button and "Import" and browse for the cert file? Or does creating this HTML file and clicking on a link to the certificate do something else? I think I am generating my self-signed certificate correctly and signing my jar correctly, but my applet is failing to initialize. Any further help on this much-maligned topic? :)
    Thanks,
    B. Rintoul

  • What are the default permissions for "self-signed" applets?

    Hello!
    I have a self-signed applet (=signed with a self made certificate) and under most plugin-enviroments java asks the user if it accepts this certificate as trustworth.
    On my linux-box I do not have any problems to write files to the local filesystem after I accepted this self-signed applet.
    However I've often read that users must grant some permissions even for signed applets, so is there a list of permissions that are denied by default?
    Are there differences between java releases starting with 1.2.2?
    Thanks in advance, lg Clemens

    Default settings are like you said, jre asks the user and everything will work.
    Unless.your applet uses classes that are not signed like with calls from javascript to your applet the plugin.jar is used and you'll get an exception when writing to files.
    When writing to files the OS might not allowe the user to write to a certain file or folder.
    Don't know what type of exception will be thrown if the OS doesn't allowe it but it has
    nothing to do with applet permissions.
    To change the default setting you can add the following line in the grant { bit of the
    java.policy
    permission java.lang.RuntimePermission "usePolicy";
    When this line is there all signatures will be ignored and an applet can only do extra
    things (like access to local files) if a policy is set up for this applet.
    To find out what's wrong at your clients site you should ask them to send a full trace
    and check that. I hope you did a .printStacktrace() on the exception in your code so
    you can see if any other classes are involved when the exception is thrown.
    To turn the full trace on (windows) you can start the java console, to be found here:
    C:\Program Files\Java\j2re1.4...\bin\jpicpl32.exe
    In the advanced tab you can fill in something for runtime parameters fill in this:
    -Djavaplugin.trace=true -Djavaplugin.trace.option=basic|net|security|ext|liveconnect
    if you cannot start the java console check here:
    C:\Documents and Settings\userName\Application Data\Sun\Java\Deployment\deployment.properties
    I think for linux this is somewhere in youruserdir/java (hidden directory)
    add or change the following line:
    javaplugin.jre.params=-Djavaplugin.trace\=true -Djavaplugin.trace.option\=basic|net|security|ext|liveconnect
    for 1.5:
    deployment.javapi.jre.1.5.0.args=-Djavaplugin.trace\=true -Djavaplugin.trace.option\=basic|net|security|ext|liveconnect
    The trace is here:
    C:\Documents and Settings\your user\Application Data\Sun\Java\Deployment\log\plugin...log
    I think for linux this is somewhere in youruserdir/java (hidden directory)

  • The name of my wireless network in the form of my modem router is not read from the iPhone, while the first era.Il my ipad does not read the network but I surf the internet. Why? What can I do?

    The name of my wireless network in the form of my modem router is not read from the iPhone, while the first era.Il my ipad does not read the network but I surf the internet. Why? What can I do?

    Can I use this DIR-635 to extend the WiFi network of the "Belgacom" WiFi?
    To answer this question correctly, a user would need to have a DIR-635 router connected by Ethernet to a Belgacom router.
    If you think about it, the chances of another user who has these two same devices configured this way and also being on an Apple support forum to see your post are about zero.
    The following might work, but you will not know until you try.
    Configure the DIR-635 to provide a wireless network that uses the exact same wireless network name, exact same wireless security and exact same password as the Belgacom wireless router. Make sure that the DIR-635 is configured in Bridge Mode.
    Can I purchase and set-up an Apple Airport Express or Apple Airport Extreme on my level 1 (the ethernet cable running from level 2 to level 1 could plug-into either of those)
    The AirPort Express or AirPort Extreme would need to be configured exactly the same way as mentioned above.
    (What is the difference in the 2 -- one is about twice the price of the other…)
    http://www.apple.com/wifi/

  • Qosmio DX1210 - ODD does not read any disks

    Hello, I have been asked to help fix a friends computer its an
    Toshiba All-in-one desktop DX1210.
    its approximately 1 year old with no problems till today the disk drive has suddenly stopped reading disks completely it wont even recognise that there's a disk inside.
    i know there's a possibility that the laser is broken but i want to eliminate everything before i suggest replacing the ODD.
    ODD:
    HL-DT-ST BD-RE BT11F
    I have searched everywhere for an answer and done everything I have learnt to do in the past but nothing has worked.
    I have used restore points.
    Uninstalled the driver then rebooted to reinstall it (the installation is a breeze and says everything is working).
    Reformatted the whole computer (created a backup and restored everything after it did not succeed).
    I am 100% stuck on this and would really love anyone who could have the answer for me or even suggests something that might be of little help.
    Regards Ur friendly IT Junkie
    Msg to Moderators if this is the wrong thread for this please direct me to the correct one

    In my case the CD/DVD drive did not read the disk because there was a conflict with the 3rd part disk burning software.
    In my case there was a conflict between Nero and the other preinstalled tool.
    I had to uninstall both
    Then I have edited the registry. I removed the Upperfilters and Lowerfilters values completely from the following registry key:
    HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control\Class \ {4D36E965-E325-11CE-BFC1-08002BE10318}
    Then I had to reboot the notebook.

  • Why 127.0.0.1 can not receive any data,but MulticastAddress can?

    Why 127.0.0.1 can not receive any data,but MulticastAddress(224.123.111.101) can? I use jmfstudio to tansport media and set the dest address to 127.0.0.1.I use anther jmfstudio,and fail to receive it.(ps:wo jmfstudio runs in the same machine at the same time).But after I change the dest addrest to 224.123.111.101,it receive data.Can any one tell me why?

    The origin code is to transmit stream is(ip 127.0.0.1 ,port 22222)
    localAddr = new SessionAddress(InetAddress.getLocalHost(), port);
    destAddr = new SessionAddress(ipAddr, port);
    As you said,the receiver reports 22222 is used.
    But After I change it to
    localAddr = new SessionAddress(InetAddress.getLocalHost(), port+10);
    destAddr = new SessionAddress(ipAddr, port);
    It says waiting for "Waiting for RTP data to arrive..."

  • My Mac Mini will not read TDK disks from my iMac G3.

    My Mac Mini will not read TDK disks from my iMac G3.
    I used an iMac G3 (2001) -- the ones that looked like a big pod -- running on OS X and saved files to TDK  CD-R, 700 MB disks, which worked fine. Now that I have a Mac Mini (model number  A1347) I cannot get this computer to read those disks, made on the iMac G3.  Once inserted each disk will open and I can retrieve files for a short period, then the problems start. The computer makes some noises, the beach-ball/pinwheel goes around and I cannot get the files to open or the disk to eject. After a while the disk does eject -- to my relief. I keep using Control+E until ejection happens.
    My Mac Mini (2010-2011) is hooked up to a View Sonic HDMI LED monitor, an iOmega external hard-drive for backing up, an Epson Stylus C88 Plus printer and to the internet by a fibre 10MB feed. The Mac Mini runs on OS X version 10.6.8 Snow Leopard: Processor Speed:2.66 GHz
    I took the Mac Mini to an Apple retailer and he hooked the computer up to one of his monitors and it read the TDK disks just fine. I am now using Sony CD-RW, 700 MB disks, but I would prefer to use my TDKs because I have such a large pile of blank ones to use and there are those TDK disks with information that I want to look at from time to time. Can anyone tell me what to do?
    DJG

    Try disconnecting everything attached to the Mini except the monitor.
    If that doesn't work, try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work. The intent is to see if it is specific to one account or a system wide problem. This account can be deleted later. If successful, copy the files to the original account Public/Dropbox.
    Isolating an issue by using another user account
    If the problem is still there, try booting into the Safe Mode using your normal account.  Disconnect all peripherals except those needed for the test. Shut down the computer and then power it back up after waiting 10 seconds. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. When you reboot normally, the initial reboot may be slower than normal. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application un-installer. For each disable/delete, you will need to restart if you don't do them all at once.
    Safe Mode - About
                    Safe Mode

  • I installed Photoshop Elements 11 on a new computer a month ago. It opened several times until yesterday. I uninstalled it and now am trying to reinstall from the CDs that I own and it will not read the disk. Nothing happens. I had previously downloaded i

    I installed Photoshop Elements 11 on a new computer a month ago. It opened several times until yesterday. I uninstalled it and now am trying to reinstall from the CDs that I own and it will not read the disk. Nothing happens. I had previously downloaded it to my laptop and work computer. How do I install it again?

    You can't run PSE from a USB drive, nor can you transfer PSE to a different computer via a USB drive. PSE must be installed on a computer using the installer program provided by Adobe.

  • Hello there, am new here and very stressed, i have an Imac core i3 which is logging off itself after a few seconds of login, it goes back to the login menu where i put the password. I have tried to repair the os but my pioneer rom is not reading the disk.

    Hello there, am new here and very stressed, i have an Imac core i3 which is logging off itself after a few seconds of login, it goes back to the login menu where i put the password. I have tried to repair the os but my pioneer rom is not reading the disk. I press the :c" button on startup but its not picking up the disk in the rom, i have tried to put the disk in an external rom but same answer, am starting to think that my os disk is bad. Please help me.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of this exercise is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login. Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    *Note: If FileVault is enabled under Mac OS X 10.7 or later, or if a firmware password is set, you can’t boot in safe mode.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • My brother uses Jaws, a braille device to read his computer and Iphone. Jaws does not read a .pdf but it will read a .doc.  What do you seggest?

    My brother uses Jaws, a braille device to read his computer and Iphone.  Jaws does not read a .pdf but it will read a .doc.  What do you suggest?

    PDFs are notorious for being difficult to navigate with a screen reader, because nearly all PDFs are either not remediated for accessibility or poorly remediated. Hopefully that landscape is changing with the proposed new 508 rules, which substantially raise the bar for high quality document accessibility and hopefully will have some legal teeth. Still, JAWS should at least attempt to read any PDF that is not image-only. It should infer the tags if no tags are present. I am not at all familiar with JAWS but it sounds to me like the software may not be configured properly for reading PDFs. The JAWS company Freedom Scientific may be able to help, or posting in a JAWS support forum may yield useful information, or maybe a JAWS expert will chime in here. Sorry I am not able to be of help. 
    a 'C' student

  • Imac dvd drive, will not read games disks

    imac dvd drive, will not read games disks whilst running in windows 7, cd and film dvd run ok. Can not believe Apple care who told me I cannot run pc games on iMac EVEN under windows 7. Any help please.

    Zap the PRAM and Reset the SMC, then try again.

  • DVDRAM will not read data disks

    I have a A215-S4697 with a HL-DT-ST GSA T20n DVDRAM.  The drive will read CD and DVD audio and video disks.  It will not read data disks.  The driver says it is a CD-ROM.  Is there a better driver I need?  Has anyone had the same problem and found a solution?
    Thanks 

    Cory K wrote:
    Is the file open in Excel, or is it open because your VI is writing data to it somewhere in your code?
    If the latter case is true, you can use a semaphore to ensure that a read and write operation are not trying to occur simultaneously.
    The file is open in Excel.

Maybe you are looking for

  • How to get the values of last selected row in Table?

    Hi, I have one editable table , where i have Create, Delete and Commit operation on it. When i am clicking on Create button it add new row to my table. But I want the value of my last selected row from the table in my Bean. Can anyone suggest me plea

  • Help with Printing on a JSP dynamically

    Hi I am using a bean to list customer information like this on a JSP page The bean has different customer information and the products purchased I iterate thru the bean on the jsp and i need to print it in the following format Customer Price CUstomer

  • Adding HTML to a "start" page

    Hi, Opening iWeb, I am now getting a template "start" page as if it's my first time, so somehow I've lost all of my preferences after juggling a recent upgrade (am I correct that this would be the "com.apple.iWeb.plist" file?). I'm wondering if there

  • My itunes wont play any movies ive purchased, just crashes it, what will stop this?

    ive reinstalled twice and keeps happening.

  • PS/BRIDGE CS5 multi-page PDF + selectable text

    since i started using CS5 i cant figure out how to make multi-page PDF's  and selectable text i know that now bridge does the job with PDF's but i  dnt know how to make text selectable, ive noticed that doing file ->  automate -> batch then save as p