AudioSystem sometimos doens't accept file

Hello!
I'm trying to work with the Sound API.
I'm have some trouble with the getAudioinputStream method of the AudioSystem class. Sometimes it works, sometimes it doesn't (for the same files).
I have no idea why. I'm feeding it a wav file (he complains it's a WAV PCM stream).
try{
        InputStream is = new FileInputStream(filename);
     debug("Base input stream is: " + is.toString());
     BufferedInputStream bis = new BufferedInputStream(is);
     AudioInputStream ais = getAudioInputStream(bis);
        // don't mark it like this because it means the entire
        // file will be loaded into memory as it plays. this
        // will cause out-of-memory problems with very large files.
     // ais.mark((int)ais.available());
     debug("Acquired AudioInputStream.\n" + "It is "
               + ais.getFrameLength() + " frames long.\n"
               + "Marking support: " + ais.markSupported());
catch (IOException ioe){
     error("IOException: " + ioe.getMessage());
catch (UnsupportedAudioFileException uafe){
     error("Unsupported Audio File: " + uafe.getMessage());
}

kotoko wrote:
..I have no idea why. ..To start finding out why, change the code ..
try{
catch (IOException ioe){
     error("IOException: " + ioe.getMessage());
catch (UnsupportedAudioFileException uafe){
     error("Unsupported Audio File: " + uafe.getMessage());
}..to..
try{
catch (IOException ioe){
     ioe.printStackTrace();
     error("IOException: " + ioe.getMessage());
catch (UnsupportedAudioFileException uafe){
     uafe.printStackTrace();
     error("Unsupported Audio File: " + uafe.getMessage());
}

Similar Messages

  • LSMW accept file from logical path?

    Dear All,
    Can LSMW designs for conversions accept file from logical path?
    The requirement is during actual conversion execution -the conversion team can store files anywhere they want, configure logical file names/paths and use our LSMWs without needing program modifications.
    Kindly let me know.
    Thanks in Advance
    Ranjan

    Hai KCR
    Using Tcode MM01 -- Maintain the source fields are
    1) mara-amtnr  char(18)
    2) mara-mbrsh  char(1)
    3) mara-mtart  char(4)
    4) makt-maktx  char(40)
    5) mara-meins  char(3)
    the flate file format is like this as follows
    MAT991,C,COUP,Srinivas material01,Kg
    MAT992,C,COUP,Srinivas material02,Kg
    AMT993,C,COUP,Srinivas material03,Kg
    MAT994,C,COUP,Srinivas material04,Kg
    MAT995,C,COUP,Srinivas material05,Kg
    goto Tcode LSMW
    give Project Name
         Subproject Name
         object Name
    Press Enter -
    Press Execute Button
    It gives 13 radio-Button Options
    do the following 13 steps as follows
    1) select radio-Button 1 and execute
       Maintain Object Attributes
    select Standard Batch/Direct Input
       give Object -- 0020
           Method -- 0000
       save & Come Back
    2) select radio-Button 2 and execute
       Maintain Source Structures
       select the source structure and got to click on create button
       give source structure name & Description
       save & Come Back
    3) select radio-Button 3 and execute
       Maintain Source Fields
       select the source structure and click on create button
       give
       first field
            field name    matnr
            Field Label   material Number
            Field Length  18
            Field Type    C
       Second field
            field name    mbrsh
            Field Label   Industrial Sector
            Field Length  1
            Field Type    C
       Third field
            field name    mtart
            Field Label   material type
            Field Length  4
            Field Type    C
       fourth field
            field name    maktx
            Field Label   material description
            Field Length  40
            Field Type    C
       fifth field
            field name    meins
            Field Label   base unit of measurement
            Field Length  3
            Field Type    C
      save & come back
    4) select radio-Button 4 and execute
       Maintain Structure Relations
       go to blue lines 
          select first blue line and click on create relationship button
          select Second blue line and click on create relationship button
          select Third blue line and click on create relationship button
      save & come back
    5) select radio-Button 5 and execute
       Maintain Field Mapping and Conversion Rules
       Select the Tcode and click on Rule button there you will select constant
       and press continue button
       give Transaction Code : MM01 and press Enter
       after that
       1) select MATNR field click on Source filed(this is the field mapping) select MATNR and press Enter
       2) select MBRSH field click on Source filed(this is the field mapping) select MBRSH and press Enter
       3) select MTART field click on Source filed(this is the field mapping) select MTART and press Enter
       4) select MAKTX field click on Source filed(this is the field mapping) select MAKTX and press Enter
       5) select MEINS field click on Source filed(this is the field mapping) select MEINS and press Enter
      finally     
      save & come back
    6) select radio-Button 6 and execute
       Maintain Fixed Values, Translations, User-Defined Routines
       Create FIXED VALUE Name & Description as MM01
       Create Translations Name & Description as MM01
       Create User-Defined Routines Name & Description as MM01
       after that delete  all the above three just created in the 6th step
       FIXED VALUE --MM01
       Translations --MM01
       User-Defined Routines --MM01
       come back
    7) select radio-Button 7 and execute
       Specify Files
       select On the PC (Frontend) -- and click on Create button(f5)
                                      give the path of the file like "c:\material_data.txt"
                                      description : -
                                      separators as select comma radiao- button
       and press enter   save & come back
    8) select radio-Button 8 and execute
       Assign Files
       Save & come back
    9) select radio-Button 9 and execute
       Read Files
       Execute
       come back
       come back
    10) select radio-Button 10 and execute
        Display Imported Data
        Execute and press enter
        come back
        Come back
    11) select radio-Button 11 and execute
        Convert Data
        Execute
        come back
        Come back
    12) select radio-Button 12 and execute
        Display Converted Data
        Execute & come back
    13) select radio-Button 13 and execute
        Start Direct Input Program
       select the Program
       select continue button
    go with via physical file
    give the lock mode as 'E'
    and execute
    Thanks & regards
    Sreenivasulu P

  • In Messages I'm getting "The recipient of this conversation doesn't accept file transfers." Does anyone know how to rectify this issue?

    In Messages I'm getting "The recipient of this conversation doesn't accept file transfers." Does anyone know how to rectify this issue?

    Hi,
    I am reading your post that those are your specs.
    Is that correct ?
    How are they logged in ?
    PDF link to the Snow Leopard server info
    As you may know you have to set your server to Federate to other servers and may need to invoke the port 7777 for the Proxy65 File Transfer port to allow Server to Server File Transfers.
    See this Flash based view of page 17
    To clarify that:
    The app can do App to App File Transfers (most Jabber apps use port 1080 for this).
    It can be assisted by the Server port if required using the Proxy65 File Transfer item.
    However the other end still needs to be logged in to an App rather than  Web Login (Google, Facebook) and be an App that can do File Transfers.
    7:39 pm      Friday; June 20, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Why does it say "doesn't accept file transfers"?

    when I try to send a file over ichat I keep getting the message that "ichat doesn't accept file transfers"  What am I doing wrong?

    HI,
    It can depend on which Jabber server you are using and what has been enabled on that particular Server.
    That's one possible.
    Another is that the Applications at the other end is not set up to accept File Transfers, such as someone logged in to AIM Express in a web browser will have limited abilities.
    Finally, AIM file transfers are on a different port and or internet protocol and this port (and or the Protocol) may not be allowed though your Mac settings in.
    Lets start with the last.
    AIM Logins in version up to and including version 5 are on port 5190 by default using the TCP Protocol.
    We (The regular posters) have been suggesting using port 443 for this for a long time. Now iChat 6 and Messages in Mountain Lion actually use port 443.
    File Transfers on on Port 5190 but use the UDP Protocol.
    It always uses this and this cannot be changed.
    In the Mac Firewall in some versions of the OS UDP traffic can be blocked.
    Check the Advanced Button settings.
    Of course the port has to be opened in the modem (if it routes) or your router.
    In some cases such as the Port Forwarding method you can have models that specify Protocol as well as ports.  Opneing it for 5190 and TCP can block it being opened for 5190 and UDP.
    If you are using UPnP (Or Apple's Port Mapping Protocol) you should not have problems.
    With the second option above you can pull down the Video Menu and open Connection Doctor.
    This will tell you your Capabilities.
    In a Buddy List highlight a Buddy.
    Use the CMD and i keys together (Get Info)
    The Capabilities tab in here will tell you whether the Buddy has the abilities to File Transfer.
    The first option I suggested can only really be checked using a Third Party Jabber app such as Psi
    Basically after you set up an Account  in Psi you can access an option called Service Discovery that iChat (and Messages in Mountain Lion) does not do.
    This will tell you if the server is set up for File Transfers or Group chats plus things called Transports.
    With some servers you will need to (sub) register for the Services you also want to be active.
    Using this method to view Google's GoogleTalk server tells you nothing about the Services they have active.
    As you may have worked out you may need to check out the server's ability if you are using a Jabber servers even if the symptom looks more like reason two.
    12:01 PM      Saturday; December 1, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • HELP: Flash Drive accepts files when I run them files corrupted

    So I have my flash drive partitioned in the Master Boot Record because in all other forms it will not appear on my computer. However, when it is partitioned like this, it will appear to accept files when I transfer them, but when I run them I receive a files corrupted message or error-43.
    I understand the Master Boot record is intended for windows, but when I partition the drive in GPT or Apple Partition Map the drive is inaccessible on my computer completely. I do not care about being able to transfer files to a PC, I just want to use my flash drive back-up and save files too. If anyone knows how I could do this I would really appreciate it.
    I searched the forums and could not find anything that has worked for me so if someone knows where it is I would appreciate a link, or if you know how to do it, I would appreciate the advice!
    Thanks

    thebigwillyp wrote:
    I know my flash drive worked on a mac because it worked months ago, it just will not now for some reason.
    Nearly everything that stops working used to work at some point. If you cannot format the drive on either a Mac (why not go back to that Mac it worked on "months ago?") or a PC, then for all practical purposes it's dead. Return if under warranty, or get a new one.

  • Xerox Phaser 4500 : "remote host did not accept file (32)"

    Am trying to print to our networked Xerox Phaser 4500DT at work. Set it up as an LPR printer as I did with Tiger (setting it up as IPP gives a permission denied error when you try to print), and printed a test page. Worked fine.
    Try to print any sort of useful document, however, and I get a "remote host did not accept file (32)" error, when it's spooled about 20% of the document. Anybody run into this, or have any ideas?
    I've tried Leopard's built-in 4500 driver, and the Leopard driver from the Xerox website (which seems to be the same version anyway). I've also tried the trick of putting "lp" in the queue name field, which seems to have been the cause of this error for some people. No joy for me, though.

    That seems to be an LPD error message, so you could try setting the printer up as either IPP or JetDirect, if the interface supports either one.

  • How do you accept files over and IR port?

    I am trying to accept files over and IR port and trigger another vi every time a file is received. Has anyone had any luck doing this? I read that you can use the ws2_32.dll to do this but I'm new to calling libraries.

    It depends on the protocol that the sender is using. I've used IR, but it simply acted like a serial port. Even if you know that much, you'll want to know how it sends the files. So, a header explaining the number of bytes, filename, and following the data. That would be pretty simple.
    I looked at the ws2_32.dll and it appears to be winsock (tcp/ip) and nothing to do with IR.
    The LabVIEW Advanced course has a very good section about using Call Library Function nodes. If you find out more about your application, hardware (IR) and communication protocol, we might end up figuring out if we need to use an existing DLL.

  • Messages cannot accept file transfers

    Communicating just fine between two computers on Messages, but one of the computers gets an error message when we try to attach a small picture of any kind.  It says that the intended recipient cannot accept file transfers, yet the other user can send them to that user just fine.  Both computers in the same room on the same wifi network (doing that to test, not to avoid talking to each other in the same room!) 
    The computer that is getting the error message can't send to other users either.  Same error message, so it's not just one recipient that "cannot accept file transfers", which makes me feel that it's an issue with the sending computer.

    Hi,
    In the Window Menu use the File Transfer option to display the File Transfer Window.
    Does this give any further Info ?
    What sort of Account is this chat taking place on ?
    AIM, Bonjour, iMessages or Jabber.
    Not all Jabber servers allow File Transfers.
    AIM Transfers need port 5190 on the UDP protocol to be Open. (preferably your router should be using UPnP to allow two computers to use the same ports)
    If iMessages open the Activity Monitor in Applications/Utilities
    Does this list URLFileTransferAgent ?  (It should not - and the File transfer window probably says "waiting")
    Does it list IMFileTransferAgent ?
    This is used by AIM and Jabber transfers.
    If either are present highlight them and then use the Quit Option top left and confirm Force Quit.
    From the way you post the details I am thinking it is more likely to be an AIM transfer you are talking about.
    If this is the case then  try a PRAM reset.
    Shut down the computer.
    Restart it holding down Apple/CMD ( or ⌘)+ALT( ⌥)+P+R Keys until you have heard three Start Up Bongs.
    10:02 PM      Friday; August 30, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.4)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • JFileChooser Listing Acceptable File Types

    How do you display to the user the acceptable file types in JFileChooser.

    The getDescription method of the FileFilter should return the list of file types that the filter accepts. If you create a filter that only takes jpg and bmp files, then the getDescription should return something like "*.jpg, *.bmp"When you add the filter to the filechooser, it's decription get's displayed when it's chosen.

  • Bluetooth File Exchange - Accept Files Always

    When setting up Bluetooth File Exchange to send files from one PowerBook to another, it is necessary to accept the incoming file before it is transfered.
    Is there a way to always accept incoming files.
    I am sending files to a 12 inch PowerBook with Mac OS X 10.4.11 Tiger. The files are being sent from a 17 inch PowerBook with Mac OS X 10.3.9 Panther.
    jessetyler.photo

    This was resolved by selecting Sharing in Bluetooth preferences in System Preferences, selecting Bluetooth File Exchange, and under the - When receiving files tab, choosing - Accept files without warning.
    jessetyler.photo

  • -Auto Accept Files- APPLE?

    What is Apple's problem? We need Auto Accept files transfers.
    I don't see a problem with this. What is the the concern? All they have to do is set up a security policy. In such a policy a user sets a list of people ONLY in their list for us to auto accept and block anyone NOT in the list from being able to automatically send anything.
    For the seriously paranoid, a user could always create a 250meg DMG image, mount it and set as the Location for iChat downloaded files to be saved to.
    So here are very simple and easy solutions for every argument i have read.

    Does me good to have a rant too but suggest it here:
    http://www.apple.com/feedback/ichat.html
    Maybe someone here knows an AppleScript meanwhile:
    http://discussions.apple.com/forum.jspa?forumID=724

  • How can I auto accept file transfers in Messages?

    There used to be a setting to enable an auto-accept of file transfers in Messages.app (desktop version). This looks to be gone in Mavericks. I use Messages for work and need the ability to just auto accept files that my team sends me via IM. Thanks.

    Hi,
    That is because it is only now linked to the Messages Received option in the section at the top.
    The actual Script (Messages app Right click > Show Packages Contents > Contents/Resources/Scripts) still contains the info to Auto Accept any invite.
    The new script contains some lines to prevent errors.
    You would probably need to extract the bits you needed and run the AppleScript all the time.
    i.e. someone has changed the Script for Messages 8 but  has not allowed the same access to the Script by the app for the things it is supposed to do.
    If enough people complain or give Feedback hopefully the Alerts pane will come back
    http://www.apple.com/feedback/ichat.html
    I use this page as Messages is built on the iChat Engine.
    The page has never been brilliant at keeping up to date (it does not even list iChat 6 for Lion) so put you specs in the free text area.
    9:01 pm      Sunday; November 3, 2013
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • TS1702 My i phone is number three version and it doen't accept the new what'sapp version anymore, does anybody know what to do?

    My i phone is number three version and it doen't accept the new what'sapp version anymore, does anybody know what to do?

    Try checking the WhatsApp FAQ and support site -> WhatsApp iPhone FAQ

  • MSI KT6-Delta FIS2R Broadcom doen't accept any driver

    I've problem with MSI KT6-Delta FIS2R networkcard Broadcom doen't accept any driver, anyone help me.

    I've got the same problem with the 4401 onboard lan of my Kt6 delta lsr.
    I ran the dos-diag tool from the broadcom website and it reported an error
    in the 3. test.
    It reported an invalid  mac-address (ff-ff-ff-ff-ff-ff) as well.
    I can't get it to work in linux either.
    Either the board is damaged or the bios is buggy (v3.4).
    I would really appreciate if someone could tell me how to fix this.
    Are there different verisons of the kt6?
    I've got version 2.0.

  • My iphoto wont download photos from iphone or camera, and wont accept files in jpeg from my mac

    working in mac os x version 10.7.4
    my iphoto wont accept photos from my iphone, camera or even files i tried dragging into it..
    something about permissions comes up sometimes... but not even all the times
    don´t know qhat else to do
    :S

    What version of iPhoto?
    As a Test:
    Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

Maybe you are looking for

  • Upgrade 10g to 11g

    We are upgrading 10G to 11g on the same box(UNIX). I just wanted to what are files I have to take back up before Upgrade. Below are the files I know..Please let me know if any extra RPP Catalog NQSconfig Instanceconfig I need to replace those files a

  • Bluetooth versus airplay speakers

    Hi, I have an hifi that supports airplay and it is absolutely brilliant. Now I'm looking for something smaller for my bedroom. Basically all I need are speakers because my ipad deals with the rest. But I can't find airplay speakers. All that seem to

  • Samsung t509

    I now have a Samsung t509, but I cannot seem to isync my address book info onto this phone. I followed all the steps, for both phone and computer, to make a bluetooth connection. The phone recognizes the comuter and the computer recognizes the phone.

  • How can I install 3rd party apps , not thru Apple store

    My MBP got Mountain lion as OS. I want to install Kies of Samsung so that I can xfr pix from Samsung Galaxy camera to my MBP. Is it possible??

  • Select stmt offset - how can I use select stmt to fetch data.

    kna1-name2 contains store#XXXXXXX where XXXXXXX is a store number.  example : store#3564261. I must fetch this.  how can i fetch this ? Can I use WHERE substr(name2,7,10) CS gt_soldto1-store_no or can I use WHERE name2+7(10) CS gt_soldto1-store_no al