Hi, i changed policy file.. still this exception but file wrote plz...plz..

hi,
i have done one applet to write file in local system. i allowed thorugh policy file...
i was done well.
i DIDNOT MENSION ANY CODEBASE IN POLICY FILE JUST TARGET FULL C:
but , one applet write mov file this exception i got i posted both code as well as code
plz ... plz........
SOURCE CODE
import javax.media.*;
import javax.media.protocol.*;
import javax.media.format.*;
import java.security.*;
import java.io.*;
import java.util.*;
import java.awt.*;
import java.net.*;
public class VideoWriteApplet extends java.applet.Applet {
Panel window = null;
VideoStore videoStore = null;
public void start() {
window = new Panel();
videoStore = new VideoStore(this);
public void stop(){
videoStore.stop();
class VideoStore implements ControllerListener,Runnable {
Processor processor =null;
DataSource source = null;
DataSink ds = null;
Thread t = null;
VideoWriteApplet applet = null;
public VideoStore(VideoWriteApplet applet){
this.applet = applet;
t= new Thread(this,"child");
t.start();
public void run() {
done();
public void done(){
MediaLocator ml = new MediaLocator("vfw://0");
try{
processor = Manager.createProcessor(ml);
}catch(Exception e){
System.out.println(" "+e);
processor.addControllerListener(this);
boolean result = waitForState(processor, Processor.Configured);
     if (result == false) System.out.println("Couldn't configure processor");
FileTypeDescriptor avOutputType = new FileTypeDescriptor( FileTypeDescriptor.QUICKTIME );
     processor.setContentDescriptor(avOutputType);
result = waitForState(processor, Controller.Realized);
     if (result == false) System.out.println("Couldn't realize processor");
try{
source = processor.getDataOutput();
}catch(Exception e) {
System.out.println("|||||||| Exception getouptut "+e);
System.out.println("out data source got "+source);
URL url = null;
try{
url = new URL("file://c:/gg.mov");
}catch(Exception e){
System.out.println(" Exception "+e);
MediaLocator outfile = null;
try{ 
outfile = new MediaLocator(url);
}catch(Exception e){
System.out.println("|||||||| output locator "+e);
System.out.println("protcocol "+ outfile.getProtocol());
try{
ds = Manager.createDataSink(source,outfile);
}catch(Exception e){
System.out.println(" |||||||| Exception create datasink "+e);
System.out.println("data sink created "+ds);
try{
ds.open();
}catch(Exception e){
System.out.println("|||||||| Exception data sink open "+e);
System.out.println("data sink opened ");
try{
ds.start();
}catch(Exception e){
System.out.println("Exception data sink starat "+e);
System.out.println("data sink started ");
try{
processor.start();
}catch(Exception e){
System.out.println("|||||||| Exception processor starat "+e);
System.out.println("processor starated ");
public void stop(){
try{
t.stop();
processor.stop();
processor.deallocate();
processor.close();
}catch(Exception e){
System.out.println("Exception "+e);
System.out.println("processor disposed ");
try{
ds.close();
}catch(Exception e){
System.out.println("Exception "+e);
System.gc();
System.out.println("data sink disposed ");
private Integer stateLock = new Integer(0);
private boolean failed = false;
Integer getStateLock() {
     return stateLock;
void setFailed() {
     failed = true;
private synchronized boolean waitForState(Processor p, int state) {
     //p.addControllerListener(new StateListener());
     failed = false;
     // Call the required method on the processor
     if (state == Processor.Configured) {           
p.configure();
} else if (state == Processor.Realized) {           
p.realize();
     while (p.getState() < state && !failed) {
     synchronized (getStateLock()) {
          try {
          getStateLock().wait();
          } catch (InterruptedException ie) {
          return false;
     if (failed)
     return false;
     else
     return true;
public void controllerUpdate(javax.media.ControllerEvent controllerEvent) {
if (controllerEvent instanceof ControllerEvent) {
          synchronized (getStateLock()) {
          getStateLock().notifyAll();
//System.out.println(" incomming event "+controllerEvent);
if(controllerEvent instanceof ConfigureCompleteEvent)
processor.realize();
if(controllerEvent instanceof RealizeCompleteEvent)
System.out.println( "processor Realized " );
OUTPUT OF APPLET COSOLE
out data source got com.sun.media.multiplexer.BasicMux$BasicMuxDataSource@3caa4b
protcocol file
processor Realized
data sink created com.sun.media.datasink.file.Handler@969c29
|||||||| Exception data sink open java.lang.RuntimeException: No permission to write files from applets
data sink opened
data sink started
processor starated

Double post, answered here:
http://forum.java.sun.com/thread.jspa?threadID=577937&tstart=0

Similar Messages

  • HT1694 I'm having a lot of problems with the hotmail account, regularly is indicating an error in the server, that I have to introduce the password again that late that this is wrong. I have changed the password making this shorter but it does not work.

    I'm having a lot of problems with the hotmail account, regularly is indicating an error in the server, that I have to introduce the password again that late that this is wrong. I have changed the password making this shorter but it does not work.

    bump? Is bumping allowed? Lol.
    I just really need some help here.

  • Syn read file adapter throwing exception when file is not present directory

    Hi Team,
    Requirment is to check for a file is present in a soa directory .If present delete the existing and write a new one.
    Syn read file adapter is throwing errors when file is not present in the directory soa local.
    Any paramter we can add to skip this exception.
    any help is appreciated.
    Thanks all
    Swetha H.

    Hi:
    An alternative is that , before u try to read it, u make a list directory, and search for ur file, if it is not in the list, then u don't read; otherwise, u do.
    The list operation is part of the file adapter.
    hope this helps
    best

  • Sync - shows files up to date, but files aren't syncing?

    I have pretty little green checkmarks everywhere, and when I open Creative Cloud app, it says "All files up to date" but when I save a file from Photoshop or any other application into my Creative Cloud folder on my desktop, it doesn't sync online at all. If I go into the folder that the file in question is in, that one file does not have a checkmark. I have to manually view my assets on the web and drag them from my Creative Cloud Folder into the web based folder. How do I get my syncing kickstarted again?
    Mac OS 10.9.5

    File Sync Links that may help... all the links I have, since I don't know the cause of your specific problem
    -https://forums.adobe.com/community/creative_cloud/host_sync
    -http://helpx.adobe.com/creative-cloud/help/sync-settings.html
    -http://helpx.adobe.com/creative-cloud/kb/arent-my-files-syncing.html
    -Size Limits https://forums.adobe.com/thread/1488242
    -sync and email link http://forums.adobe.com/thread/1427516?tstart=0
    -Phantom folder problem https://forums.adobe.com/thread/1490445

  • Final Cut Pro X: cancelled exporting process, file still on computer, but where?

    HI!
    I was exporting a project  from Final Cut Pro X, but I cancelled to process. I had chosen to save the file to external storage. My computer was processing the file to my computer and now after canceling  there is file with size over 30 gigabytes  on my computer but I don't have any idea where it is?
    I was exporting the project using compressor settings -not the best one choice, but the only thing I want now is to find the missing file and delete it.
    Share monitor gives me message: 3x Source file /var/folders/b4/y9pp857j2dx5mq4yp6nw3gqm0000gn/T/259EE137-52C2-47CD-AA69-DFAEB7 37E3B7.export-seq-id not found 
    Thanks a lot of your help!
           Christer 

    Hi,
    I didn't change the file name in the Save dialogue box and yes -I have certainly searched with spotlight and used all kind of methods to find the file.
    And there hasn't ever been any problems when canceling the process before this time.
    But I know much more after diagnostics in Apple repair service in Apple Authorized Service Provider (or what ever is the right term...). Like I wrote before, it's possible there are failures on hard drive and if the file has somehow got to the damaged place on hard drive, it's may be impossible to find the file without professional help. That's maybe not
    very common issue, but still possible. It will take week or more before I get their answer.
    I just hope I would have Final Cut on my iPhone....
                        Christer

  • Lost files after Mavericks upgrade but files still present in System Info app.

    I upgraded to Mavericks but after the install I did not have any of my files. I tried to login under the original user but there is no other User to login. Although, my files are not lost. They are hidden or something like that because when I try to recover files; from my time machine backup I did prior to the upgrade, it says I only have 12gb available out of 160gb. It shows in System Information that the files are still there and I was able to navigate to select my iTunes and iPhoto libraries.
    How can I get ALL my files and applications back to being recognized like it was before I upgraded?

    If all your files are missing
    You may have logged in as a different user, such as Guest. Open the Users & Groups pane in System Preferences. Your name should be at the top of the user list, under Current User. See also this support article.
    If files are missing from one folder
    Change the Finder view mode; for example, from icon view to list view, or vice versa.

  • 40D raw .CR2 files still causing 'Unsupported Image File' error

    I have the most recent version of Leopard 10.5.1 and the newest version of Aperture 1.5.6 (2J2). Often times I open a RAW image shot with a Canon 40D (.cr2 file), I get the red screen "unsupported Image File" error message. Color mode is RGB. These were shot with RAW plus JPEG (not SRAW). It doesn't happen on every image shot at the same time in the same way, just some of the images. Can anyone advise why I would still be having this issue so long after Apple is offering 40D support? I've tried rebuilding my library data base to no success. I've tried reinstalling aperture. What next? Getting very frustrated, thanks!

    hi, sazer01
    sazer01 wrote:
    I have the most recent version of Leopard 10.5.1 and the newest version of Aperture 1.5.6 (2J2). Often times I open a RAW image shot with a Canon 40D (.cr2 file), I get the red screen "unsupported Image File" error message. Color mode is RGB. These were shot with RAW plus JPEG (not SRAW).
    I use Nikons and sometimes get a message like that. This might not be Aperture causing this. Blow out the connector holes on your memory cards and pins inside the cameras where the card connects. If the error is on the same frames all the time reformat your card a couple of times before using and make sure the card is seated properly. Don't turn off the camera immediately after taking the shot but let the camera finish the process of writing the photo frame onto the card.
    Have you opened the frames in Preview to check if it see it?
    victor

  • I did the recommended re-install to resolve the missing MSVCR80.dll file. This worked, but I am now stymied by two error messages: "Apple Mobile Device failed to start" and "Apple application support not found". How to overcome?

    That worked, however I now get two error messages when I install I Tunes:
    o  Apple Mobile Device failed to start.
    o  Apple Application Support not found.
    This were of course deleted in the recommended re-install procedure to resolve the dll file, but repeated uninstalls and installs simply bring up these two error messages with a recommendation to install I Tune again. Installing the new I Tunes version seems to be problematic per the discussion groups and has no simple solution. SHould not the Genius bar be able to resolve this at an Apple Store? Want to buy a new I Phone 5S, but this problem effectively stymies this.

    See Troubleshooting issues with iTunes for Windows updates.
    tt2

  • ADOBE SEND advise it cannot send file at this time, will file be sent eventually?

    adobe send advises it cannot send the message at this time, will it eventual upload it for sending?

    I'm not sure what happened, but it sounds like you need to try Sending the files again.

  • How come I can't compile this file in this folder,but can in others

    import java.util.*;
    public class AlphabeticComparator
    implements Comparator{
    public int compare(Object o1, Object o2) {
    String s1 = (String)o1;
    String s2 = (String)o2;
    return s1.toLowerCase().compareTo(
    s2.toLowerCase());
    this code can be compiled in any folders except
    e:\java\
    why??? the error is:
    --------------------Configuration: j2sdk1.4.0 <Default>--------------------
    E:\java\AlphabeticComparator.java:3: AlphabeticComparator should be declared abstract; it does not define compare(java.lang.Object,java.lang.Object) in AlphabeticComparator
    public class AlphabeticComparator
    ^
    E:\java\AlphabeticComparator.java:6: inconvertible types
    found : Object
    required: java.lang.String
    String s1 = (String)o1;
    ^
    E:\java\AlphabeticComparator.java:7: inconvertible types
    found : Object
    required: java.lang.String
    String s2 = (String)o2;
    ^
    3 errors
    Process completed.

    It looks like you have a class called "Object" in that same directory that the compiler is using when you use "Object", and then the compiler complains because it wasn't "java.lang.Object". Get rid of it -- you should have called it something else, anyway.

  • On one website I go to for work, it says connection reset while page was loading. I was trying to change the permissions for this website but it doesn't even show up in my permission list. Help please. I need this website for work.

    I have contacted this website tech support and they say this issue is on my end. On certain pages on their web site I try go to it will say connection reset. Connection reset while page was loading. I was trying to do anything and everything I can to make sure firefox is allowing access to all pages on this website. I use this website for work I do.

    The "The connection was reset" error message can be caused by a bug fix for the BEAST (Browser Exploit Against SSL/TLS) attack that the server doesn't handle.
    *[[/questions/918127]]
    *[[/questions/918028]]
    See comment 60 in this bug report for workaround, but be aware that this makes you vulnerable to that BEAST attack.
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=702111 bug 702111] - Servers intolerant to 1/n-1 record splitting. "The connection was reset"

  • IDoc-to-File: Status=processed succesfully but file is not always delivered

    Hi Experts,
    I have a problem with a IDoc-to-File scenario. I generate an IDoc and send it to the XI-System. Afterwards a XML-file is created which should be transmitted to a filesystem or to a ftp server (I tested with both). In the SXMB_MONI the Message has the Status "Processed Succesfully" and the Acknowledgement-Status "Still awaiting acknowledgement". The problem is that not all files arrive the destination succesfully. sometimes they arrive and sometimes not. and always the same status in the sxmb_moni.
    if a message not arrived the destination, in the message monitoring in the runtime workbench there is the status "To Be Delivered". If one Message has the status "To Be Delivered" the following messages get this status too.
    the communication-channel-monitoring says that "the communication channel is correctly configured and started"
    Can you help me? I don't know where the problem is. could it be that the adapter-engine has some problems?
    Thanks and best regards
    Christopher

    hi,
    I clicked on details in the message monitoring but the fields "error category" and "error code" are empty. Then I checked the audit log in the message monitoring. there are the following three entries
    2008-01-28 14:08:56 Success Message successfully received by messaging system.
    2008-01-28 14:08:56 Success Using connection File_http://sap.com/xi/XI/System. Trying to put the message into the receive queue.
    2008-01-28 14:08:57 Success Message successfully put into the queue.
    and here the audit log of a message which could be transmitted correctly:
    2008-01-28 10:33:10 Success Message successfully received by messaging system.
    2008-01-28 10:33:10 Success Using connection File_http://sap.com/xi/XI/System. Trying to put the message into the receive queue.
    2008-01-28 10:33:10 Success Message successfully put into the queue.
    2008-01-28 10:33:10 Success The message was successfully retrieved from the receive queue.
    2008-01-28 10:33:10 Success The message status set to DLNG.
    2008-01-28 10:33:10 Success Delivering to channel: FILEPORT_TO_PICC
    2008-01-28 10:33:10 Success MP: entering
    2008-01-28 10:33:10 Success MP: processing local module localejbs/CallSapAdapter
    2008-01-28 10:33:10 Success File adapter receiver: processing started; QoS required: ExactlyOnce
    2008-01-28 10:33:10 Success File adapter receiver channel FILEPORT_TO_PICC: start processing: party " ", service "X22_PICC"
    2008-01-28 10:33:10 Success Write to file "/tmp/xi/PICC/INV_5075_4000102108_20070109_103310.XML" as binary, size 410 bytes
    2008-01-28 10:33:10 Success File processing complete
    2008-01-28 10:33:10 Success MP: leaving
    2008-01-28 10:33:10 Success The message was successfully delivered to the application using connection File_http://sap.com/xi/XI/System.
    2008-01-28 10:33:10 Success The message status set to DLVD.
    2008-01-28 10:33:10 Success Acknowledgement creation triggered for type: AckNotSupported
    2008-01-28 10:33:10 Success Acknowledgement sent successfully for type: AckNotSupported
    can you say me where the problem is?
    thanks and regards
    chris

  • Maverick OS: file index preview, delete but file image remains in preview.

    Anyone having same issue? Or have I found a bug?
    In 'Folder' file view lists, which there are 4 options to view, found in 'top left corner' of folder view: '4 square' - 'Stack' - '3 Coloumn' and 'Index file preview'.
    In the 'Index file preview' setting where the highlighted file appears in the preview window at the top of folder.
    If I delete a sleceted file, the deleted file image remains in 'file viewer window' above! (the file is sent to trash).
    This deleted file then throws ones highlighted slected file names out of sync with what image appears in the 'preview window'.
    This can lead to a mis deletation if you dont keep an eye on file name and corosponding preview image above.
    If I select file 'ascending or desending' in any of the file properties like 'name - date or kind' this does 'correct - reset' preview stacking images - but I'm sure this isnt how it should be?
    Thoughts?
    Jpvfx

    Hi tonmeno,
    Yes this is a hard issue to explain in words alone, but you sound like you are having the same concerns.
    Have I found a solution? No, not really.
    However, I think it only affects those files that were copied across in the Maverick update - this does not affect new folders generated after the Mavericks install. (?)
    What I did find was, lets says I'm in one of those old folders. I delete images or files not required (as we note the preview image remains) if I then go to the 'Change item arrangement' the (six tiny squares with a down arrow icon button), next to the '4 in a line viewing option' buttons (top left of finder window). Then select say arrange as 'name' I now get a reshuffled list of true files contents (previews corrected). But this is no way a fix.
    Not sure I can say the Finder is slow? 
    This sure is a strange one - And as we've both noted this can lead to unnecessary file deletion!
    Come-on Apple :-) we can't be the only ones? I'm running 2010 Macbook pro - on 10.9 with everything else up to date.
    I believe its a bug. 

  • Nsurlstoraged - DiskCookieStorage continuously changing policy of File binary

    I am having a problem with "nsurlstoraged - DiskCookieStorage changing policy" continuously when Safari is being used. This problem was recently discussed in this forum by Linc Davis in response to a question by Dreaming void. I checked the box to follow the thread and indicated I had this problem, too. Inadvertently, as I received emails on the thread, I thought the emails were directed to me and I "thought" I was participating in the thread. I am sort of new to this and I misinterpreted what was happening. Finally, I received an email from Linc Davis explaining that I was not part of the thread, and that I should start my own. I apologize for my error. I do need help.
    I have a Mac Pro late 2013 and about 2 days ago the console started filling up with thousand of messages: "nsurlstoraged[286]: DiskCookieStorage changing policy from 0 to 2, cookie file: file:///Users/fwolfe/Library/Cookies/Cookies.binarycookies"  The CPU load becomes very heavy in the activity monitor and it is difficult to use the system.
    I have been doing the suggestion Linc Davis (in error, as I explained). I wonder if it would be possible to start this new thread with link Davis.
    I have tested the system as a guest and in "safe mode" with problem continuing during and after these tests.
    Thanks, and my apologies for misunderstanding.
    Fred

    I am having a problem with "nsurlstoraged - DiskCookieStorage changing policy" continuously when Safari is being used. This problem was recently discussed in this forum by Linc Davis in response to a question by Dreaming void. I checked the box to follow the thread and indicated I had this problem, too. Inadvertently, as I received emails on the thread, I thought the emails were directed to me and I "thought" I was participating in the thread. I am sort of new to this and I misinterpreted what was happening. Finally, I received an email from Linc Davis explaining that I was not part of the thread, and that I should start my own. I apologize for my error. I do need help.
    I have a Mac Pro late 2013 and about 2 days ago the console started filling up with thousand of messages: "nsurlstoraged[286]: DiskCookieStorage changing policy from 0 to 2, cookie file: file:///Users/fwolfe/Library/Cookies/Cookies.binarycookies"  The CPU load becomes very heavy in the activity monitor and it is difficult to use the system.
    I have been doing the suggestion Linc Davis (in error, as I explained). I wonder if it would be possible to start this new thread with link Davis.
    I have tested the system as a guest and in "safe mode" with problem continuing during and after these tests.
    Thanks, and my apologies for misunderstanding.
    Fred

  • I would like to make one file and add several related files of photos in the one event.  Keeping photos in seperate event files in one large event file.  Is this possible?

    I would like to make one event file and add several realted event files in this one event file without putting all photos together.  Can this be done?

    Files and events ahve nothing to do with each other
    If you are looking for "sub-events" that is not a feature of iPhoto
    you can use albums and folders - albums hold photos and folders hold albums or other folders
    If thsi does not answer your queation please ask it again - it is not clear
    LN

Maybe you are looking for