Missing file read/write feature on Mac OS X?

HI,
i am missing the file read/write statistics on Mac OS X. First i thought i just need to enable it in the template editor under "Advanced -> Java Application" but the two list items are simple not there. I ve seen a screenshot somewhere from the JMC where the two options are present but not for me. Can anyone tell me if this is a platform issue or how to enable it?
Thx
Marc

You didn't say which version you are using, but I think what you are seeing is that the file and socket events are not available in JDK 8 only in JDK 7. This is a known regression that will be fixed in the next update to JDK 8.

Similar Messages

  • Formatted on  XP - EXTREMELY SLOW read/write on the Mac !!!!

    Man this iPod is wack!! Im using the iPod mini in Disk Mode to transfer bits (updaters since my XP machine is NEVER connected to the net) back and forth between my PowerBook and my XP Intel based machine. Obviously i set up and formatted the iPod Mini on the XP machine.
    Observation, file read/write times are unacceptably SLOW on Mac and the PC. Did Apple deliberately make this thing unusable in this situation? This thing has a transfer speed as if it were connected to a USB 1.1 port but it is NOT, on any of my machines. I format my USB Flash Drive (SanDisk Cruzer Titanium) on the same XP machine, use the same ports and it's read/write times are at least 5 times faster than the Mini !!!
    When i format and setup the iPod Mini on the Mac then install MacDrive on the PC astonishingly the read/write times significantly increase on BOTH Mac and the PC. As i suggested i think there is something drastically wrong with Apple's PC iPod setup, there is NO way my other devices formatted on the PC have such abysmal performance . Man i click on a folder in the Finder of the PC formatted iPod and it take about 3 seconds until the files inside are displayed...this is also the case on the PC.
    Anyone else experienced this?
    I was going to buy another iPod specifically for transferring data between my Mac's and my colleagues PC's, but there is no way i will with such severely degraded read/write performance.
    Best

    Apparently this is not a single isolated case.
    Scott Aronian Posts :
    "On Mac FAT32 Format Slower Than HFS "
    My 60GB iPod came in Windows FAT32 format which I liked since I could use it in disk mode on both Mac & Windows. However it seemed slow to start playing video and when switching between video files.
    I did some timing tests and on the Mac FAT32 was much slower than HFS.
    FAT32
    Start playing movie = 12s
    Stop movie and restart at same location = between 12-30s
    HFS
    Start playing movie = 5s
    Stop movie and restart at same location = between 6s
    If you have a Mac and your new 5G iPod is formatted for Windows, you may want to use the iPod Updated to restore and make the drive HFS.
    There is NO such performance problems with USB Flash drives when formatted to Fat32 on PC's i have tested many and they perform similar on BOTH platforms.
    Something fishy goin on here

  • File read/write in Oracle JVM

    Are there any known issues around file read/write in Oracle JVM. I finally got around the issue of getting the error that says no permission is there by giving <<ALL FILES>> option, but still I don't see a file being created. Any help is appreciated.
    Code:
    try{
    fwriter = new PrintWriter(new FileOutputStream("debugLog.txt",true));
    } catch (IOException ioe) {
    System.err.println("IO Exception for Output File" + ioe.getMessage());
    Thanks.
    -Mujib

    A couple of suggestions:
    1. (Please don't be offended...) I assume you have some stuff like:
    fwriter.println("hello");
    fwriter.flush();
    fwriter.close();
    in your try block?
    2. Try catching FileNotFoundException and SecurityException also.
    3. Try providing a full path on the file just to make sure it's not buried somewhere odd.
    John H.

  • Can I batch change user access to folders & file read-write permissions?

    I had a corrupted user account on my iMac and after weeks of trying repairs I followed a forum suggestion to delete my account.
    Before doing so I synced all my document folders and files (since 2004) over my LAN to an external hard drive that was attached to my MacMini. I then deleted the iMac account.
    Next I backed up my Mac Mini user account with Time Machine. I then created a new iMac User account on the iMac and let the iMac access Time Machine to bring over all my MacMini preferences, settings, desktop, etc. I now have a fully functioning iMac user account.
    Here is the problem. I attached the USB external drive directly to my iMAC. I can access some of the folders and files on the external hard drive. Most of them refuse to let me acces the folder or open a file. If I use the GET INFO command I see an "_unknown" user with "read and write". I see an "everyone" with "no access". I can individually change each folder and file to allow my user account access and give myself permission to read and write the files. I cannot delete delete the "_unknown" account.
    It will take me days to individually change each folder and file manually like I am now doing.
    Is there a way to use Automator to add my user account to the folder or file and give me read and write folder and file permissions?
    Or is there any other way to do this in a batch change?
    Is there something I need to do to the external files right now that will ensure that I can access them if either computer crashes and I need to replace the MAC? I would hate to have to go through this again. Would having a MAC server instead of an external drive solve this?
    I am using MAC OS 10.6.8 with the most recent updates installed (as of today).
    Thanks,
    Sandi Dickenson

    Select the icon of the external drive in the sidebar of a Finder window, and open the Info window. In the "Sharing & Permissions" section of the window, click the lock icon and authenticate. Make sure you have read & write access to the volume by changing the settings if necessary. Then, from the action menu (gear icon), select "Apply to enclosed items."
    The "_unknown" user and group are assigned automatically to files on a volume with the "Ignore permissions" option set.

  • Getting file read/write/execute permissions.

    How can I get the read, write, and execute permissions for either a named file, or a File? I'm only interested in the permissions exposed to whatever user is running the VM.
    System.getSecurityManager() either returns null or some default SecurityManager that denies everything... I guess you have to set that explicitly, which doesn't really help me here.
    I've been browsing through the docs but I can't find anything that returns a FilePermission. It's highly possible that I missed something, though.
    Thanks in advance,
    Jason Cipriani
    [email protected]
    [email protected]

    Thanks for replying.
    That was the first thing I looked out. As it turns out, FilePermissions aren't for getting permissions on named files. Rather, they are for dealing out permissions that you set yourself, or representing permissions internally. If you look at the constructor for java.io.FilePermission, you'll see that, in addition to a file name (which, btw, can be anything since the constructor throws no IOException), you must also provide a list of permissions.
    So, unfortunately, that class can't take a file name and provide you with a permission list... it's just there for you to use to store permission information.
    That frustrates me a lot, because the name, FilePermissions, makes it seem like the most promising class to use for my application.
    Thanks, though,
    Jason.

  • Read/write access for mac mini server

    I am having issues that users on my network have read/write permission, but if one saves a file to the network others can't open the file until I go to the mac mini to reset and allow all users to have these permissions again.  How can I set this so that I am not going to the server anytime a user creates a new file.

    Sounds like you are not using ACLs.  When you set up your shares, there are three permission sets by default.  They are the owner, the group, and other.  These are the POSIX permissions and they do not inherit.  You need to edit your share and add at least one more permission entry.  This one will be your ACL (Access Control List).  Use a group and set the group to the permission you want, likely read/write.
    Now once this is done, you will need to propagate these permissions through the existing files.  To do this, you need to open Server.app > choose your server from the left sidebar > select the Storage tab > drill down to your shared folder > use the Gear menu to use propagate.  Then send all the ACLs through all your files.
    Unmount all shares on workstations and connect again.
    R-
    Apple Consultants Network
    Apple Professional Services
    Author "Mavericks Server – Foundation Services" :: Exclusively available in Apple's iBooks Store

  • Blob for binary file, read/write problems

    Hi,
    I am relatively new to this type of development so apologies if this question is a bit basic.
    I am trying to write a binary document (.doc) to a blob and read it back again, constructing the original word file. I have the following code for reading and writing the file:
    private void save_addagreement_Click(object sender, EventArgs e)
    // Save the agreement to the database
    int test_setting = 0;
    // create an OracleConnection object to connect to the
    // database and open the connection
    string constr;
    if (test_setting == 0)
    constr = "User Id=royalty;Password=royalty;data source=xe";
    else
    constr = "User ID=lob_user;Password=lob_password;data source=xe";
    OracleConnection myOracleConnection = new OracleConnection(constr);
    myOracleConnection.Open();
    // create an OracleCommand object to hold a SQL statement
    OracleCommand myOracleCommand = myOracleConnection.CreateCommand();
    myOracleCommand.CommandText = "insert into blob_content(id, blob_column) values 2, empty_blob())";
    OracleDataReader myOracleDataReader = myOracleCommand.ExecuteReader();
    // step 2: read the row
    OracleTransaction myOracleTransaction = myOracleConnection.BeginTransaction();
    myOracleCommand.CommandText =
    "SELECT id, blob_column FROM blob_content WHERE id = 2";
    myOracleDataReader = myOracleCommand.ExecuteReader();
    myOracleDataReader.Read();
    Console.WriteLine("myOracleDataReadre[\"id\"] = " + myOracleDataReader["id"]);
    OracleBlob myOracleBlob = myOracleDataReader.GetOracleBlobForUpdate(1);
    Console.WriteLine("OracleBlob = " + myOracleBlob.Length);
    myOracleBlob.Erase();
    FileStream fs = new FileStream(agreement_filename.Text, FileMode.Open, FileAccess.Read);
    Console.WriteLine("Opened " + agreement_filename.Text + " for reading");
    int numBytesRead;
    byte[] byteArray = new byte[fs.Length];
    numBytesRead = fs.Read(byteArray, 0, (Int32)fs.Length);
    Console.WriteLine(numBytesRead + " read from file");
    myOracleBlob.Write(byteArray, 0, byteArray.Length);
    Console.WriteLine(byteArray.Length + " written to blob object");
    Console.WriteLine("Blob Length = " + myOracleBlob.Length);
    fs.Close();
    myOracleDataReader.Close();
    myOracleConnection.Close();
    This gives the following console output:
    myOracleDataReadre["id"] = 2
    OracleBlob = 0
    Opened D:\sample_files\oly_in.doc for reading
    56832 read from file
    56832 written to blob object
    Blob Length = 56832
    My write to file code is:
    private void save_agreement_to_disk_Click(object sender, EventArgs e)
    string filename;
    SaveFileDialog savedoc = new SaveFileDialog();
    if (savedoc.ShowDialog() == DialogResult.OK)
    filename = savedoc.FileName;
    // create an OracleConnection object to connect to the
    // database and open the connection
    OracleConnection myOracleConnection = new OracleConnection("User ID=royalty;Password=royalty");
    myOracleConnection.Open();
    // create an OracleCommand object to hold a SQL statement
    OracleCommand myOracleCommand = myOracleConnection.CreateCommand();
    myOracleCommand.CommandText =
    "SELECT id, blob_column " +
    "FROM blob_content " +
    "WHERE id = 2";
    OracleDataReader myOracleDataReader = myOracleCommand.ExecuteReader();
    myOracleDataReader.Read();
    Console.WriteLine("myOracleDataReader[id] = " + myOracleDataReader["id"]);
    //Step 2: Get the LOB locator
    OracleBlob myOracleBlob = myOracleDataReader.GetOracleBlobForUpdate(1);
    Console.WriteLine("Blob size = " + myOracleBlob.Length);
    //Step 3: get the BLOB data using the read() method
    byte[] byteArray = new byte[500];
    int numBytesRead;
    int totalBytes = 0;
    FileStream fs = new FileStream(filename, FileMode.OpenOrCreate, FileAccess.Write);
    while ((numBytesRead = myOracleBlob.Read(byteArray, 0, 500)) > 0)
    totalBytes += numBytesRead;
    fs.Write(byteArray, 0, byteArray.Length);
    Console.WriteLine("numBytes = " + numBytesRead + " totalBytes = " + totalBytes);
    Console.WriteLine((int)fs.Length + " bytes written to file");
    fs.Close();
    myOracleDataReader.Close();
    myOracleConnection.Close();
    This gives the following console output:
    myOracleDataReader[id] = 2
    Blob size = 0
    0 bytes written to file
    If I manually add the blob file using the following:
    DECLARE
    my_blob BLOB;
    BEGIN
    -- load the BLOB
    my_bfile := BFILENAME('SAMPLE_FILES_DIR', 'binaryContent.doc');
    SELECT blob_column
    INTO my_blob
    FROM blob_content
    WHERE id = 1 FOR UPDATE;
    DBMS_LOB.FILEOPEN(my_bfile, dbms_lob.file_readonly);
    DBMS_LOB.LOADFROMFILE(my_blob, my_bfile, DBMS_LOB.GETLENGTH(my_bfile), 1, 1);
    DBMS_LOB.FILECLOSEALL();
    COMMIT;
    END;
    COMMIT;
    The write to file works perfectly. This tells me that there must be something wrong with my code that is writing the blob to the database. I tried where possible to following the Oracle article using large objects in .NET but that (along with most things on the internet) focus on uploading text files.
    Thanks in advance.
    Chris.

    myOracleCommand.CommandText = "insert into blob_content(id, blob_column) values 2, empty_blob())";
    OracleDataReader myOracleDataReader = myOracleCommand.ExecuteReader();
    This looks wrong, you shouldn't be using ExecuteReader unless you expect to get a result back. Try using ExecuteNonQuery to do the insert.

  • File read write

    Hi guys:
    its an easy question so i will explain as simply and as elborately as possible:
    i am reading from a file
    public void appendFile() {
        try {
          BufferedReader in = new BufferedReader(new FileReader("temp\\text.txt"));
          BufferedWriter out = new BufferedWriter(new FileWriter("temp\\text.txt", true));
          String str;
          String res;
          while ( (str = in.readLine()) != null) {
            res = process(str);
            if (res != null) {
              try {
                out.write(res);
                out.close();
              catch (IOException e) {
                log.info(e.toString());
          in.close();
        catch (IOException e) {
      }what i am trying to do is : read a file read though and where i get a certain string i replace it with another string :
    no looking at this code tell me if i will be writing at the same position or not.. i dont really remember if the cursor for readline and write line is the same :
    forexample : i read through ten lines and find the string i am looking for and i write at that moment witha new strinmg:
    1) will it write on the same line and write over the text that is already written
    OR
    2) will it write on the same line and move the text on that (that i am intending to replace) line to the next..
    OR
    3) will it write in the beginning of the file

    found the error i think : in FileWriter ("",true);
    the true defind that it hould be written in the end of file ... and not the begiining
    now i will see if the flase will write to the beginning or where the readline was done...

  • Can I use a USB superdrive DVD reader/writer with a mac pro?

    The internal CD/DVD read/writer in my macpro (2 x 2.66 ghz dual-core xeon) broke, so I purchased an external USB superdrive, thinking I could use it as an external drive. It does nothing when plugged into the mac pro, I cant even insert a disk. It seems to not even have power.    
    Anyway I now see the device (superdrive) is intended for a macbook air or mac mini.
    Am I toast? Is there no way I can get this thing to work with the mac pro?
    I dont think I can return it, I've already discarded all the packaging.
    Thanks for any advice.

    I agree it would not take a lot of time, 2 minutes perhaps for the world record holder, for me more like 10 perhaps, not including the time involved in purchasing the drive, figuring out how to recycle the old broken one that comes out, etc.
    However the key point is that if I can get this drive to work, the cost will be $0, as I've already paid for it. So I would be most interested in doing that, if possible. If it's not possible, then I'll have no choice to pay $30 or however much, for a new one.

  • Help with the missing file in iTunes library on Mac

    My recent purchase, a movie, from iTunes does not appear in the library.  It shows up on my other devices, iPhone and Apple TV, though. There's an exclamation mark next to the movie file in the libaray and I did try to locate the missing file but it didnt work out. It seems that it hasnt even downloaded the pertaining *.m4v file. I also checked for any incomplete downloaded file, but there wasn't any... Is there any other way I can retrieve/redownload the missing file from my Apple ID account (because I have the movie on my other devices) to my library on Mac?

    Well it started working for me today, out of the blue.
    The only thing that I think could be a coincidence is that I recently installed Adobe CS6 on my Mac (it's likely that this is when the problem started), but today I had to open a CS5 product. The next time I looked at iTunes everything was working.
    I doubt that has anything to do with it, but hey maybe! I hope others are experiencing the fix too

  • Urgent!!! Need help in file read/write data to a serial port

    Hi,
    I really need someone's help in order for me to complete my project. I have attached a vi which I have taken from an example and integrate to my project. In the vi, I have managed to get the encoder counts using Ni 9411. I need to read/write that data from ni9411 to ni9870 without using any serial port as they are connected to a NI 9104 chasis. May I know whether I am correct in writing the data to my ni9870 port using the vi I have attached? Does anyone know how i can convert the number of counts to a 8-bit data/byte so that I can send the data through the RS232 port? I really need someone's help as I need to finished in 2 weeks time.
    I have also attached an vi on controlling the epos2 controller using instrument driver. Does anyone know how can i integrate this vi to the fpga vi (the one which I need to read/write data to 9870) as I need to send those data to control my epos2 controller.
    Please help me!!!
    Attachments:
    Encoder Position & Velocity (FPGA).vi ‏23 KB
    SINGLEMOTORMODIFIED.vi ‏17 KB

    Afai,
    As I allready suggested you here, call your local NI Office and ask for assistance!
    You really need assistence in a higher level that we can provide via the forums. Otherwise I don't see a chance for you to finish your project in time.
    1. Convert I32 to U8 to write it to the 9870 could be done like this:
    2. The vi to control the epos2.
    There is NO way ( absolutely NO way) to port this vi to FPGA. It's based on VISA calls, uses an event-structure, both are not available at the FPGA.
    The only thing you could do is to analyze the VI, the instruction set and design an FPGA vi which handles the specific instructions you would need.
    I have no experience with epos2 and I'm not 100% sure if this would work as you would like to use it. And doing this needs deep knowledge of LabVIEW, VISA, Instrument Drivers, the epos hardware, FPGA programming, and so on... 
    Christian

  • Reconnect missing files in photoshop elements 11 mac

    How do I reconnect missing files in photoshop elements 11 on mac

    Please see steps mentioned on my blog: Photoshop Elements (PSE) knowledge base.
    ~Surendra

  • File read write program output not coming correct

    this code is compiling without issues but the output is not what i am expecting .. the contents of delta.txt are as follows
    *4014254420*
    *2897449776*
    *4207405601*
    and the output thats coming is
    +4014254420+
    +40142544204207405601+
    +4207405601+
    its not reading the 2nd line somehow
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.File;
    import java.io.*;
    import java.io.FileWriter;
    import javax.swing.*;
    import java.util.Scanner;
    public class testloop
              static int i;                                             
               static char c;                                               
               static int j = 1;     
                    static String filename;                                                  
      public static void main(String[] args)  throws IOException 
    try {
         FileReader fmi = new FileReader("delta.txt");
         FileWriter fmo = new FileWriter("Updated.txt");
         BufferedReader br = new BufferedReader(fmi);
                   String temp=null;
                        do{
                        temp = br.readLine();
                        if(temp.startsWith("*"))
                             String tempc = temp.substring(1);                         
                             System.out.print(tempc+"\n");
                            long tp = Long.valueOf(tempc);
                             System.out.print(tp);                    
                   else
                   fmo.write(temp);
                        }while((temp=br.readLine()) != null);
                   fmi.close();
                   fmo.close();
                   }catch (FileNotFoundException e){ System.out.print("not found");     }
                   catch (IOException e){System.out.print("io"+e);
                   e.printStackTrace();
        also if i use the following delta.txt
    **4014254420*
    **2897449776*
    **4207405601*
    mmm+
    i get the output as
    +4014254420+
    +40142544204207405601+
    +4207405601Exception in thread "main" java.lang.NullPointerException+
    at testloop.main(testloop.java:33)*
    its not writing the text to the file updated.txt
    Edited by: adhiraj on Nov 27, 2007 6:58 AM

    You are getting the next line twice.
    do{
                        temp = br.readLine();
                        if(temp.startsWith("*"))
                             String tempc = temp.substring(1);                         
                             System.out.print(tempc+"\n");
                            long tp = Long.valueOf(tempc);
                             System.out.print(tp);                    
                   else
                   fmo.write(temp);
                        }while((temp=br.readLine()) != null);You need to change your code around so that you only call
    temp=br.readLine();once per iteration of the loop.

  • File Read/Write Help Please!

    Hi,
    I am trying to get my program to write an object (or just its varibles) to a file and then be able to read them out again and assign them to their title. i.e be able to read String bo, int car, and int[][] cost to a file (doesn't matter what as long as I can save it and then open it at a later date).
    I really can not figure it out, but I will include my simple test code.
    public class Bob//contains the stuff I want to save
         int car= 10;
         int cost[][]= {{1000,10},{1744,47733}};
         String bo = "Bob";
    import java.io.*;
    import java.util.*;
    public class ObjectS
         public static void main(String args[])
              new ObjectS();
         public ObjectS()
              Bob abc = new Bob();
              try
              {//This code is most likely crud, so I really need help here.
                   FileOutputStream out = new FileOutputStream("theTime");
                   ObjectOutputStream s = new ObjectOutputStream(out);
                   s.writeObject("Today");
                   s.writeObject(abc);
                   s.flush();
              catch(FileNotFoundException e){}
              catch(IOException e){}
    }

    It has already been pointed out that you need to use 'Serializable' and that you need to do more than just ignore exceptions. SO, to spell it out
    public class Bob//contains the stuff I want to saveshould be
    public class Bob implements Serializable //contains the stuff I want to save
    int car= 10;
    int cost[][]= {{1000,10},{1744,47733}};
    String bo = "Bob";
    import java.io.*;
    import java.util.*;
    public class ObjectS
    public static void main(String args[])
    new ObjectS();
    public ObjectS()
    Bob abc = new Bob();
    try
    {//This code is most likely crud, so I really need
    help here.
    FileOutputStream out = new
    FileOutputStream("theTime");
    ObjectOutputStream s = new ObjectOutputStream(out);
    s.writeObject("Today");
    s.writeObject(abc);
    s.flush();and this might be better as
    s.close();
    catch(FileNotFoundException e){}
    catch(IOException e){}and these should do more than just ignore the exceptions! Exception are your freinds so as a very minimum you need something like
    catch(FileNotFoundException e){
    e.printStackTrace();
    catch(IOException e){
    e.printStackTrace();

  • File read/write contention?

    Hi!
    Can a file be written to ... the same time another thread is checking for a change of this same file? (ie: long timeStamp = file.lastModified();)
    ...without contention.
    Thanks!

    Brutal Juice!! : ) ....OK you explained that very well. Thank-you!
    I just now realized that I don't need to write this data to a file anyway (no need to) ....... In my app I just need to direct incoming data to my jTextArea window (visual storage of this data)for later processing by another thread.
    I'll explain,
    I read data in from my serial com port (port must be monitored 24/7)
    This serial com port data is directed to a jTextArea(so I can see, store and process this data)
    Another thread will process this data(stored in the jTextArea), extracting the data(line for line) of interest to me then deleting this data out of the jTextArea forever.
    My question now is:
    How do I store my newly arriving serial com port data if the other thread is currently processing the stored data in my jTextArea? .... I need to have it stored to an appendable storage buffer some how ..... then to have this data copied into my jTextArea when the other thread is finished with data already in the jTextArea.
    My data coming in on the com port is a low duty, single line "call record" after someone ends their telephone conversation.
    (can you tell I'm very new to JAVA) : )
    Thanks!

Maybe you are looking for