Tag Info Not Being Written to File

Some of my MP3's have comments that I would like to remove.
For example, let's say one of my MP3's in Itunes shows the comment "How are you?"...
When I right click on the song, click GET INFO, select INFO and delete the comments, the comments are no longer visible in Itunes however, when I go to the file directly and right click and select properties, the comments that I deleted in ITunes are still showing in the files properties.
Even weirder, if instead of deleting the comments "How are you?" I just over-write the comment with "This is a test", that comment will show when I go directly to the file and look at its properties however, if I go back into Itunes and then delete the comments "This is a test", the original comments "How Are you?" show back up in the file properties.
Any ideas?

your code...
for(int i=0;i==FileData.length;i++)// this is a VERY odd looking loop
  WriteBuff.write(FileData[i]+"\r\n");shouldn't that be i<FileData.length? if FileData is indeed an array you
will get an ArrayIndexOutOfBoundsException...
anyway it doesn't seem to be an IO problem so the difficulty is probably
in your loop. try this for starters...
for(int j=0;j<FileData.length;j++){
  System.out.println("Looping "+j);
  WriteBuff.write(FileData[j]+"\r\n");// not sure about this either maybe use PrintWriter and println instead?

Similar Messages

  • Ocrfile is not being written to.  open file issues.  Help please.

    I've been troubleshooting an open file issue on our Test environment for quite a while now. Oracle has had me update to latest CRS bundle for 10.2.0.3, then upgrade to 10.2.0.4, then two more patches via OPatch to bring 10.2.0.4 RAC to it's most recent patch. None of these patches resolved our problem. We have ~8700 datafiles in the database and once the database is started, we're at ~11k on Production but on Test we're at ~37K or higher. It takes 1-2 days to hit the 65536 limit before it crashes. I have to 'bounce' the database to keep it from crashing. Yes, I could raise the ulimit but that isn't solving the problem.
    Over the weekend I noticed that on Production and DEV, the ocrfile is being written to constantly and has a current timestamp but on Test, the ocrfile has not been written to since the last OPatch install. I've checked the crs status via 'cluvfy stage -post crsinst -n all -verbose' and everything comes back as 'passed'. The database is up and running, but the ocrfile is still timestamped at April 14th and open files jump to 37k upon opening the database and continue to grow to the ulimit. Before hitting the limit, I'll have over 5,000 open files for 'hc_<instance>.dat, which is where I've been led down the path of patching Oracle CRS and RDBMS to resolve the 'hc_<instance>.dat bug which was supposed to be resolved in all of the patches I've applied.
    From imon_<instance>.log:
    Health check failed to connect to instance.
    GIM-00090: OS-dependent operation:mmap failed with status: 22
    GIM-00091: OS failure message: Invalid argument
    GIM-00092: OS failure occurred at: sskgmsmr_13
    That info started the patching process but it seems like there's more to it and this is just a result of some other issue. The fact that my ocrfile on Test is not being written to when it updates frequently on Prod and Dev, seems odd.
    We're using OCFS2 as our CFS, updated to most recent version for our kernel (RHEL AS 4 u7 -- 2.6.9-67.0.15.ELsmp for x86_64)
    Any help greatly appreciated.

    Check Bug... on metalink
    if Bug 6931689
    Solve:
    To fix this issue please apply following patch:
    Patch 7298531 CRS MLR#2 ON TOP OF 10.2.0.4 FOR BUGS 6931689 7174111 6912026 7116314
    or
    Patch 7493592 CRS 10.2.0.4 Bundle Patch #2
    Be aware that the fix has to be applied to the 10.2.0.4 database home to fix the problem
    Good Luck

  • IO Labels are NOT being written to prefs!

    I've followed all the advice on existing threads about this and it's definitely a serious bug for me. IO Labels are not being written to prefs for me.
    Any ideas? Already tried deleting prefs, creating new blank project and not saving, nothing has worked.

    I found a workaround for anyone having this issue - and this is the ONLY thing that has worked after a week of trying everything on several forums.
    Open Logic, set your labels how you want.
    While Logic is open go to ~/Library/Preferences and delete com.apple.logic.pro.plist
    Quit Logic. I don't think it matters whether you save your project or not. When Logic quits a new plist will be written, and this one WILL have your labels!
    Seems on my machine Logic would not update the IO labels bit of the prefs unless it was writing a complete new prefs file.

  • DHCP Option Tags are not being applied...

    Hi,
    About to loose my mind... basically we are working towards a small WYSE Thin Client deployment in our environment.  The WYSE clients require to receive certain DHCP Option Tags to find the WCM server of which they receive their configuration from.  Same
    applies to the WDM Server as well.  The problem is no matter what we do, our test client is not receiving the custom option tags we've defined in our DHCP server.  
    DHCP Servers:
    vlan41
    10.40.1.206
    10.40.1.207
    Test Client:
    vlan46 - ip helpers defined on the switch
    Set to receive the same ip address from the DHCP server through the reservation route.
    Option Tags:
    186 - WDM Server - 10.40.1.184
    195 - WCM Server - 10.40.1.185
    196 - WCM Path - / 
    I've installed Wire Shark on the test client to monitor the DHCP activity.  The above custom options tags are not being pushed on to the client.  
    The Router, DNS Server and Domain Tags are being pushed.  So it's working but also not working????!!!
    Anybody with some insight to this problem?

    Hi hpaul_p
    In all fairness I'm about to give up... the vendor is not coming up with a solution and constantly blaming Microsoft.  To further test and confirm this wasn't a network issue, I've setup a secondary test environment using a 4 port switch, a client and
    a DHCP server.  Same results!!!  I'm really running out of time, so my work around is this:  I've setup a SRV records pointing to the WCM server... in your case this would be SRV record for the WDM server.  I've disabled the auto
    discovery functionality of the WDM Agent, for some reason it seems to be clashing with the WCM agent.  Since you will be using WDM only, don't disable auto discovery, tick the DNS SRV record from the Discovery Settings under the client agent. 
    I'm going to add the clients to the WDM server manually through their ip addresses so don't need auto discovery. From what I gather from the manuals the WCM searches for the repository or conifg servers in this order:  1. SRV 2.DNS (A record)
    3.DHCP (Options), I bet it's the same with WDM.  Though SRV and DNS methods has their limitations, if you will be using the default paths and credentials it shouldn't be a problem.  This is all I have have.  Steven Song I've forwarded you the
    DHCP database, if you find any problems with it please let me know.

  • Hprof heap dump not being written to specified file

    I am running with the following
    -Xrunhprof:heap=all,format=b,file=/tmp/englog.txt (java 1.2.2_10)
    When I start the appserver, the file /tmp/englog1.txt gets created, but
    when I do a kill -3 pid on the .kjs process, nothing else is being written to
    /tmp/englog1.txt. In the kjs log I do see the "Dumping java heap..." message
    and a core file is generated.
    Any ideas on why I'm not getting anything else written to /tmp/englog1.txt?
    Thanks.

    Hi
    It seems that the option you are using is correct. I may modify it to something like
    java -Xrunhprof:heap=all,format=a,cpu=samples,file=/tmp/englog.txt,doe=n ClassFile
    This seems to work on 1.3.1_02, so may be something specific to the JDK version that
    you are using. Try a later version just to make sure.
    -Manish

  • Opmn logs not being written

    Hi All,
    We are facing an issue.
    No logs are being written to the opmn/logs directory. It was being written correctly till 4th December and then stopped all of a sudden.
    Are there any configuration files which may have been affected.
    Best regards,
    Brinda

    To clarify.
    We are now rotating the logfiles with the linux/unix command logrotate. I suspect that this is what is causing the issue that the logs are note being filled after rotation and we need to restart opmn for the logs to start getting populated.
    So I think we need to configure rotating logs in opmn.xml.
    The Application server version is 10.1.3. This is the log line in our opmn.xml.
    <log path="$ORACLE_HOME/opmn/logs/opmn.log" comp="internal;ons;pm" rotation-size="1500000"/>
    So the question is how do we activate opmn to rotate the log so that we do not need to use logrotate.
    In this document it says that you have to activate ODL for log rotation to work:
    http://download.oracle.com/docs/cd/B25221_04/web.1013/b14432/logadmin.htm#sthref370
    Is this true or can we rotate text logs as well. This is what we would prefer.
    Best regards,
    Gustav

  • Podcast explicit tags are not being recognized

    I'm using Squarespace as my website host, and have followed their instructions to insert the iTunes Explicit tag into our feed before submitting to the iTunes store. Unfortunately, after extensive testing with Squarespace support, the tags are being read properly in the XML feed, but each time I attempt to submit via iTunes, the Explicit tag is not recognized. Any help would be greatly appreciated.
    Here is a copy of the XML output (provided by Squarespace support)
    https://img.skitch.com/20120328-t5g175qa2mf3wr3t86ay7rtmwr.png

    1. Try resetting your SMC.
    Resetting the System Management Controller >>
    2. Your laser pickup could be dirty. You can buy a cleaner disc for that.
    3. It may be the media you're using, but it nothing is recognized, it may be hardware related.
    4. Run your hardware tester.
    5. Is your optical drive being recognized in your System Profiler?
    -Bmer
    Mac Owners Support Group - Join us @ MacOSG.com
      Mac611 Mobile Mac Support - about.Mac611.com
       iTunes:MacOSG Podcast | YouTube.MacOSG.com
                       An Apple User Group 
    Have an iPhone or iPod touch? Enter Mac611.com in Safari on it for 'mobile Mac support.'

  • Flash CC crashes after publishing iOS app + publish settings are not being saved to file

    I have two issues:
    1. Flash CC crashes every time I publish an iOS app
    2. My Publish Settings are not being saved
    1. Flash CC crashes every time I publish an iOS app
    Since yesterday Flash CC keeps crashing right after I publish an iOS app. The app is published correctly though. I tried everything from restarting my MAC, reinstalling Flash, removing the folder "Flash CC 2014" inside Application Support/Adobe. But all this did not work.
    2. My Publish Settings are not being saved
    Since the first day I installed Flash CC, it did not save my publish settings along with the .fla-file. I never had this issue with Flash CS 5.5. This was not a very big issue, but now every time I publish an app and Flash CC crashes I have to fill in all the publish settings manually. Now I'm getting frustrated. Even saving my settings as a preset, storing it inside a folder and importing it again, won't help. Then I will get the message: "Import failed: invalid profile file."
    Can please anyone help me with these issues? It is quite time consuming to continuously enter the settings manually after every crash.
    Thanks!

    reset your preferences -
    after effects:  http://helpx.adobe.com/after-effects/using/preferences.html
    dreamweaver:  https://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs6-cc.html
    flash:  http://helpx.adobe.com/flash/kb/re-create-preferences-flash-professional.html
    illustrator:  http://helpx.adobe.com/illustrator/using/setting-preferences.html
    indesign:  https://forums.adobe.com/thread/526990
    photoshop:  https://forums.adobe.com/thread/375776
    photoshop elements:  http://www.photokaboom.com/photography/learn/Photoshop_Elements/troubleshooting/1_delete_p references_file.htm
    premiere pro: http://www.mediacollege.com/adobe/premiere/pro/troubleshooter/trash-preferences.html

  • Why ADF tags are not being renderered ?

    Hi,
    I am trying to create a jsp file with adf tags, but I am getting the following warnings in the server and as a result the tags are not renderered .
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for HtmlHtml[UIXFacesBeanImpl, id=_id0], rendererType = oracle.adf.Html
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for HtmlHtml[UIXFacesBeanImpl, id=_id0], rendererType = oracle.adf.Html
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for HtmlHead[UIXFacesBeanImpl, id=_id1], rendererType = oracle.adf.Head
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for HtmlHead[UIXFacesBeanImpl, id=_id1], rendererType = oracle.adf.Head
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for HtmlBody[UIXFacesBeanImpl, id=_id2], rendererType = oracle.adf.Body
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for HtmlBody[UIXFacesBeanImpl, id=_id2], rendererType = oracle.adf.Body
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreForm[FormFacesBean, id=_id3], rendererType = oracle.adf.Form
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreForm[FormFacesBean, id=_id3], rendererType = oracle.adf.Form
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreMessages[MessagesFacesBean, id=_id4], rendererType = oracle.adf.Messages
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreMessages[MessagesFacesBean, id=_id4], rendererType = oracle.adf.Messages
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CorePanelGroup[UIXFacesBeanImpl, id=_id5], rendererType = oracle.adf.Group
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CorePanelGroup[UIXFacesBeanImpl, id=_id5], rendererType = oracle.adf.Group
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreCommandLink[CommandLinkFacesBean, id=_id7], rendererType = oracle.adf.Link
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreCommandLink[CommandLinkFacesBean, id=_id7], rendererType = oracle.adf.Link
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreCommandLink[CommandLinkFacesBean, id=_id8], rendererType = oracle.adf.Link
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreCommandLink[CommandLinkFacesBean, id=_id8], rendererType = oracle.adf.Link
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreOutputFormatted[UIXFacesBeanImpl, id=_id9], rendererType = oracle.adf.Formatted
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreOutputFormatted[UIXFacesBeanImpl, id=_id9], rendererType = oracle.adf.Formatted
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreTable[UIXFacesBeanImpl, id=_id10], rendererType = oracle.adf.Table
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreTable[UIXFacesBeanImpl, id=_id25], rendererType = oracle.adf.Table
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreOutputFormatted[UIXFacesBeanImpl, id=_id36], rendererType = oracle.adf.Formatted
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreOutputFormatted[UIXFacesBeanImpl, id=_id36], rendererType = oracle.adf.Formatted
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreTable[UIXFacesBeanImpl, id=_id37], rendererType = oracle.adf.Table
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreOutputFormatted[UIXFacesBeanImpl, id=_id45], rendererType = oracle.adf.Formatted
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreOutputFormatted[UIXFacesBeanImpl, id=_id45], rendererType = oracle.adf.Formatted
    Jun 3, 2008 9:02:17 AM oracle.adf.view.faces.component.UIXComponentBase _getRendererImpl
    WARNING: Could not find renderer for CoreTable[UIXFacesBeanImpl, id=_id46], rendererType = oracle.adf.Table
    Any help will be appreciated,
    Thanks.

    I Found the problem :)
    The faces-config.xml file was missing the following:
    <application>
    <default-render-kit-id>oracle.adf.core</default-render-kit-id>
    </application>

  • Finder data not being written to .DS_Store file

    The symptom of the problem I am experiencing is that the position of icons on my desktop (as well as icons in other folders in my home directory, as well as Finder window settings for folder in my home directory) are lost every time I log out. On a subsequent login, all of the icons "reflow" starting from the top right corner of the screen, just below the boot volume icon. I have been able to determine that this has to do with the .DS_Store file(s) in the Desktop folder and other folders of my home directory. If a .DS_Store file exists, the timestamp does not change when I change the icon layout and logout. If I delete the .DS_Store file, it is not re-created.
    In my case, my home directory (and the child Desktop folder) is being mounted off an SMB share on a Windows 2003 server. My Mac is using AD authentication to the same Windows 2003 server, which is the domain controller. I'm logging in with my AD credentials, and my home directory mapping is picked up from the home directory field in AD.
    Now, Googling this problem, I found a lot of people complaining about wanting to suppress the use/creation of the .DS_Store files on Windows network volumes. This led to an Apple KB article (http://support.apple.com/kb/HT1629) on how to modify a default to prevent the creation of .DS_Store files on network volumes--essentially the very behavior I am experiencing. The upshot of the KB article is to us the following command in terminal:
    *defaults write com.apple.desktopservices DSDontWriteNetworkStores true*
    I did a 'defaults read' to confirm this default isn't set on my install of Mac OS X 10.5.6--and it isn't. I then tried using the following variation in the hope I could force the behavior I wanted:
    *defaults write com.apple.desktopservices DSDontWriteNetworkStores false*
    Predictably, this had to effect.
    The upshot is, NONE of the Finder data for files and folders in my home directory (icon positions, Finder view window defaults, etc.) is preserved between logons. And this is driving me nuts! I've spent several hours over the past two evening trying to troubleshoot this, and I've had no luck.
    As a footnote, I'll mention that if I drag a folder from my home directory onto the local hard disk, the .DS_Store file is created/updated and things behave as expected (icon position and Finder window defaults are preserved). But, if I then drag the folder back over to my home directory, the values in the .DS_Store file become "frozen" and don't change.

    Hey, try this:
    1.
    Put a file in a folder on your Desktop.
    Edit: not your Desktop, but rather a typical local home on an HFS+ volume ~/Desktop
    2.
    Use "Get Info" to add a "Comment".
    The comment can be up to somewhere between 700 and 800 characters.
    3.
    Copy the folder to a FAT formatted flash drive, SMB share, etc.
    4.
    Create a new folder on the flash drive.
    5.
    Move the file from the first folder to the second folder.
    Confirm that the "Finder" shows the comment to be there.
    6.
    Quit the "Finder" - in 10.4 and earlier, this action would ensure that all .DS_Store files get updated, including transfer of comments. I.e. don't "relaunch" or "kill", etc. Enable and user the "Quit" menu, or use:<pre>
    osascript -e 'tell application "Finder" to quit</pre>
    7.
    Now where's the comment?
    In step 2, you could also have just created a file on the non-HFS volume and wasted your time typing in a 700 character comment.
    In step 6, a more real-world scenario is ejecting the drive or logging out, but deliberately quitting the "Finder" is the most conservative way to ensure that changes get written to .DS_Store files and comments survive. In 10.5.6, even under these conditions, comments are lost.
    Icon positions and view preferences are one thing, but with comments - that's real user-inputted data that Apple is playing fast and loose with. And if they no longer support comments on non-HFS volumes, the "Finder" shouldn't be showing you the comments when you double-check them in step 5, or allow them to be added in the alternate version of step 2.
    ..."C'mon Apple... what gives here?"...
    Unfortunately, this "Discussions" site is not frequented by Apple devs. Have you considered filing a bug report? I wonder what they would tell you, eg. if the treatment of .DS_Store files actually does turn out to be a bug or is intentional as it suspiciously seems...
    http://developer.apple.com/bugreporter/index.html

  • "Sidecar file has conflict", keyword changes in LR not being written to JPEGs

    I am new to Lightroom and evalutating 3.6 on a trial.
    I performed the following test:
    1. Imported 3 pictures into Lightroom from my hard drive
    2. In Lightroom, I made a keyword change to one photo (removed a keyword).
    3. All three photos' Metadata icon show the arrow, indicating that there has been a change. (I only changed the keyword on one photo.)
    4. I click the icon for the photo whose keyword I changed.
    5. I get the message "The metadata for this photo has been changed in Lightroom. Save the changes to disk?"
    6. I click "Yes".
    7. The photo's Metadata icon shows an exclamation point. When you hover over the exclamation point, it shows the message "Sidecar has conflict".
    I have two questions:
    1. My expectation is that when I changed a keyword, or any other metadata, in LR, it will show up on the photo outside of LR. My understanding is that this is a functionality of LR. Am I wrong? (The Help files seem to indicate that this is a reasonable expectation.)
    2. I am assuming, having read many posts on the forum, that the error message "Sidecar has conflict" is a bug. Am I right? (My understanding is that JPEGs don't have sidecar files, which just makes this message even more odd.)
    I am on Windows 7 Home Premium (upgraded from Vista Home Premium), 32 bit.
    Thanks for your help,
    --Elisabeth.

    Beat, Thanks for taking the time to answer.
    Your expectation is not quite right:
    Any change to metadata will primarily be recorded in your catalog, and nowhere else. Only if you perform "Save Metadata to File" (which can be set to be done automatically in your catalog settings) or "Save the Changes to Disk" after pressing the arrow, the changes will be written into your JPEGs (or into *.xmp sidecard files for Raw images) and can be seen from outside of LR.
    Yes, you are right. What I should have written was: My expectation is that when I change a keyword, or any other metadata in LR, the change will show up outside of LR, after I "Save Metadata to File". This is not happening, instead I get the error message and different keywords in LR than outside.
    Where do your originals reside? Could it be you don't have the proper authority to rewirte the JPEGs?
    My originals reside on my Public drive: I definitely have rights. In fact, I did many other change to photos in the same drive after I posted this on the forum.

  • File not being written!! really weird! help!!

    Hello everyone.
    My problem is very strange.
        private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
            fc.setFileFilter(new MLPfilter());         // my own custom file filter
            int returnVal = fc.showSaveDialog(this);
            if (returnVal == JFileChooser.APPROVE_OPTION)
                file = fc.getSelectedFile();
            else return;
            try{
                outFile=new PrintWriter(new FileWriter(file.getName()+".mlp"));    // DOESNT SAVE!
                outFile.println(jTextArea1.getText());
            catch (Exception edfgfd){}
            outFile.close();
        }Everything compiles fine. But, when I try to write it wont write!
    The problem lies in this line:
    outFile=new PrintWriter(new FileWriter(file.getName()+".mlp"));
    Whats funny is that if I replace "file.getName()+".mlp" with "file" it works! >.<
    But, I want my files to be saved with a ".mlp" extension.
    HALP!

    For the future why don't you simplify your code by using:
    String fileName = file.getName() + ".mlp";
    System.out.println(fileName);
    outFile=new PrintWriter(new FileWriter(fileName));
    This way you can display the actual name of the file and make sure it is what you are expecting. Basic Debugging 101.

  • Bug: NULL bytes being written to file on SMB volumes

    This is a 100% reproducable bug.
    When writing to files that are on a Samba (SMB) volume, if you are overwriting a file and making it smaller than it previously was, then OSX is writing NULL bytes to the end fo the file, which produce all sorts of problems, especially for software developers.
    How to reproduce:
    Open Terminal, navigate to a SMB volume and do the following:
    # echo "test" > test.txt
    # more test.txt
    test
    # echo "test test test test" > test.txt
    # more test.txt
    test test test test
    # echo "test" > test.txt
    # more test.txt
    "test.txt" may be a binary file.  See it anyway?
    test
    ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
    This is 100% reproducable every time.  As you can see, when you overwrite a file with a larger version, the NULL bytes are not written to the file.  But when you overwrite with a smaller version, NULL bytes are written to the end of the file.
    This problem is especially a problem for developers.  I came across this bug because I had a git repository on an SMB share/volume.  Whenever I would try to commit changes to the repository, if the git commit log file was shorter than it was in the previous commit, then git threw the error:
    error: a NULL byte in commit log message not allowed.
    fatal: failed to write commit object
    You can see this issue being discussed and reported in several places:
    http://stackoverflow.com/questions/20696643/how-do-i-keep-nul-bytes-from-appeari ng-throughout-my-git-repository-and-commit-m
    http://stackoverflow.com/questions/19705825/error-a-nul-byte-in-commit-log-messa ge-not-allowed
    https://netbeans.org/bugzilla/show_bug.cgi?id=237766
    This bug was introduced in Mavericks.  Also, remounting the volume using cifs:// doesn't make a difference.
    Does anyone have any solutions for this problem?  Has this been reported to Apple?  Does Apple know about this problem?

    Apple doesn’t routinely monitor the discussions.
    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Feedback
    Or you can use your Apple ID to register with this site and go the Apple BugReporter. Supposedly you will get an answer if you submit feedback.
    Feedback via Apple Developer

  • Sequential Access Problem - Nothing is being written to file.

    Okay, quick introduction. I am a student and am in an intro Java class. I am understanding most of it; however, I am having one issue with an exercise that I am working on.
    Here is the purpose:
    To create a simple car reservation application that stores the reservation information in a sequential access file.
    In the code what I need to happen is when the user clicks the Reserve Car button, the application needs to first check to see if there are cars already reserved for that day (there is a limit of 4 which is taken care of in the While statement). If the file content is null, it skips this while first.
    If the content is null, then I need to open the file for writing, which is taken care of using FileWriter. The program is then to write the date information using the currentDate variable created before the while statement. Next, it is supposed to write the name entered and display a message box stating that the car has been reserved (which it does display).
    However, I can add an infinate amount of reservations without getting the error message box stating that the max has been reached. So, I checked the reservations.txt file (which was intially created as a blank file) and I see that nothing at all is getting written to it. Here is the code, can anyone offer any insight into what I am missing. I am not getting any compliation or run-time errors, so I am sure this is just a simple problem I am overlooking. Thanks!
    // This application allows users to input their names and
    // reserve cars on various days.
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.Date;
    import javax.swing.*;
    import javax.swing.event.*;
    public class CarReservation extends JFrame
       // JLabel and JSpinner to display date
       private JLabel selectDateJLabel;
       private JSpinner dateJSpinner;
       // JLabel and JTextField to display name
       private JLabel nameJLabel;
       private JTextField nameJTextField;
       // JButton to reserve car
       private JButton reserveCarJButton;
       // Printwriter to write to files
       private PrintWriter output;
       //BufferedReader to read data from file
       private BufferedReader input;
       // file user will select
       private File reserveFile;
       // no-argument constructor
       public CarReservation()
          createUserInterface();
       // create and position GUI components
       public void createUserInterface()
          // get content pane for attaching GUI components
          Container contentPane = getContentPane();
          // enable explicit positioning of GUI components
          contentPane.setLayout( null );
          // set up selectDateJLabel
          selectDateJLabel = new JLabel();
          selectDateJLabel.setBounds( 16, 16, 96, 23 );
          selectDateJLabel.setText( "Select the date:" );
          contentPane.add( selectDateJLabel );
          // set up dateJSpinner
          dateJSpinner = new JSpinner( new SpinnerDateModel() );
          dateJSpinner.setBounds( 16, 43, 250, 23 );
          dateJSpinner.setEditor( new JSpinner.DateEditor(
             dateJSpinner, "MM/dd/yyyy" ) );
          contentPane.add( dateJSpinner );
          dateJSpinner.addChangeListener(
             new ChangeListener() // anonymous inner class
                // event handler called when dateJSpinner is changed
                public void stateChanged( ChangeEvent event )
                   dateJSpinnerChanged( event );
             } // end anonymous inner class
          ); // end call to addActionListener           
          // set up nameJLabel
          nameJLabel = new JLabel();
          nameJLabel.setBounds( 16, 70, 100, 23 );
          nameJLabel.setText( "Name: " );
          contentPane.add( nameJLabel );
          // set up nameJTextField
          nameJTextField = new JTextField();
          nameJTextField.setBounds( 16, 97, 250, 23 );
          contentPane.add( nameJTextField );
          // set up reserveCarJButton
          reserveCarJButton = new JButton();
          reserveCarJButton.setBounds( 16, 130, 250, 23 );
          reserveCarJButton.setText( "Reserve Car" );
          contentPane.add( reserveCarJButton );
          reserveCarJButton.addActionListener(
             new ActionListener() // anonymous inner class
                // event handler called when reserveCarJButton is clicked
                public void actionPerformed( ActionEvent event )
                   reserveCarJButtonActionPerformed( event );
             } // end anonymous inner class
          ); // end call to addActionListener
          // set properties of application's window
          setTitle( "Car Reservation" ); // set title bar string
          setSize( 287, 190 );           // set window size
          setVisible( true );            // display window
       } // end method createUserInterface
       // write reservation to a file
       private void reserveCarJButtonActionPerformed( ActionEvent event )
       try
           // get file
           reserveFile = new File( "reservations.txt" );
           // open file
           FileReader currentFile = new FileReader( reserveFile );
           input = new BufferedReader( currentFile );
           // get date from dateJSpinner and format
           Date fullDate = ( Date ) dateJSpinner.getValue();
           String currentDate = fullDate.toString();
           String monthDay = currentDate.substring( 0 , 10 );
           String year = currentDate.substring( 24, 27 );
           currentDate = ( monthDay + " " + year );
           // declare variable to store number of people who reserve a car
           int dateCount = 1;
           // read a line from the file and store
           String contents = input.readLine();
           // while loop to read file data
           while ( contents != null )
               // if contents equal currentDate
               if ( contents.equals( currentDate ) )
                   // check reservation number
                   if ( dateCount <4 )
                       dateCount++;
                   else
                       // display error message
                       JOptionPane.showMessageDialog( this,
                          "There are no more cars available for this day!",
                          "All Cars Reserved", JOptionPane.ERROR_MESSAGE );
                       // disable button
                       reserveCarJButton.setEnabled( false );
                       // exit the method
                       return;
                   } // end else                
               } // end if
             // read next line of file
             contents = input.readLine();
           } // end while
           // close the file
           input.close();
           FileWriter outputFile = new FileWriter( reserveFile, true );
           output = new PrintWriter( outputFile );
           // write day to file
           output.println( currentDate );
           // write reserved name to file
           output.println( nameJTextField.getText() );
           // display message that car has been reserved
           JOptionPane.showMessageDialog( this, "Your car has been reserved",
                   "Thank You", JOptionPane.INFORMATION_MESSAGE);
       } // end try
       catch ( IOException exception )
           JOptionPane.showMessageDialog( this, "Please make sure the file exists " +
                   "and is of the right format.", "I/O Error",
                   JOptionPane.ERROR_MESSAGE );
           // disable buttons
           dateJSpinner.setEnabled( false );
           reserveCarJButton.setEnabled( false );
       } // end catch
       // clear nameJTextField
       nameJTextField.setText( "" );
       } // end method reserveCarJButtonActionPerformed
       // enable reserveCarJButton
       private void dateJSpinnerChanged( ChangeEvent event )
          reserveCarJButton.setEnabled( true );
       } // end method dateJSpinnerChanged
       // main method
       public static void main( String[] args )
          CarReservation application = new CarReservation();
          application.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
       } // end method main

    Thank you. Sorry about all the code. I have never posted in this forum before and was unsure what all you needed.
    This was the problem though. Right after I posted my question, I went back and looked at the code over again and realized that I left that part out! I added it in and it works perfectly. I came back to update my post but you had already answered it!
    I really appreciate the quick response.
    Mike

  • Start/End Tags are not being accepted by parse if null.

    The is my database version:
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0      Production
    TNS for Solaris: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - ProductionWe have a new application that pretty much generates the xml tags. The sending system uses two tags even when a NULL value is being sent. However the Oracle parser does not like it. We get this error:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00231: invalid character 47 ('/') found in a Name or Nmtoken
    Error at line 1When I receive a list of parameters as a clob, I then cast it as xml for processing. When I use a tag like <phase/>, the xml parser accepts it. However, when I put into the format being sent <phase></phase> to signify a NULL value. The following is the code snippet that generates the error.
    vXmlDoc := XMLTYPE(pSearchParams_Tx);My question is there any way to allow the xml parser to accept the default format that is being sent in? Perhaps is the some sort of pre-processing that would allow the sent in format to be used? Thank you.

    I'm not sure I follow fully. I don't have 11.2.0.2 to test against, but I do not encounter any issue with this simple example
    Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.3.0
    SQL> set serveroutput on;
    SQL>
    SQL> declare
      2    pSearchParams_Tx   CLOB;
      3    vXmlDoc            XMLTYPE;
      4  begin
      5    pSearchParams_Tx := '<phase/>';
      6    vXmlDoc := XMLTYPE(pSearchParams_Tx);
      7    dbms_output.put_line('Done 1');
      8    pSearchParams_Tx := '<phase></phase>';
      9    vXmlDoc := XMLTYPE(pSearchParams_Tx);
    10    dbms_output.put_line('Done 2');
    11  end;
    12  /
    Done 1
    Done 2
    PL/SQL procedure successfully completed I get the same thing on 11.1.0.6 as well.
    Do you have a code example that demonstrates the error?

Maybe you are looking for