Pop -up play audioClip not in IE but Netscape--why????

Hello,
My mission is simple to call audioClip in applet from a pop up frame.
It works in Netscape (6.0) but IE.
Any ideas?
Attached please find the code:
Thanks!
import javax.swing.*;
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import java.net.*;
public class SoundApplet extends Applet implements ActionListener
String IP;
AudioClip adc;
Button playButton, loopButton, stopButton;
boolean looping = false;
public void init() {
IP = getCodeBase().getHost();
          try{
               URL url = new URL("http://" + IP +"/Goodbye.au");
               adc = getAudioClip(url);
          catch(Exception e)
               System.out.println(e.toString());
               adc = null;
     playButton = new Button(" play ");
          add(playButton);
          playButton.addActionListener(this);
public void actionPerformed(ActionEvent actionevent)
Object obj = actionevent.getSource();
if(obj == playButton)
               ByeFrame byeFrame = new ByeFrame(this);
               if (!byeFrame.isVisible())
                         byeFrame.setVisible(true);
               byeFrame.show();
     public void sayGoodbye()
               adc.play();
class ByeFrame extends Frame implements ActionListener
     public ByeFrame(SoundApplet applet)
          super();
          this.applet = applet;
          setTitle("reminder");          
     setSize(450, 200);
          setLocation(400, 200);
          setBackground(Color.blue);
          setResizable(false);
          okButton = new Button(" OK ");
          add(okButton);
          okButton.addActionListener(this);
          setVisible(false);
public void actionPerformed(ActionEvent actionevent)
          Object obj = actionevent.getSource();
if(obj == okButton)
               applet.sayGoodbye();
               this.dispose();     
     private SoundApplet applet;
     private Button okButton;
}

Hello,
I am tired of this. I tracked down to the problem and I could not found the answer.
The problem is Applet.getAudioClip().
or Applet.play(URL, name);
Both of them got:
java.lang.NegativeArraySizeException
by looking the java console.
The file at www_root with name: goodbye.au.
So the code is:
try{
AudioClip adc = getAudioClip(getCodeBase(), "goodbye.au");
          catch(Exception e)
               System.out.println("open link: " + e.toString());
               adc = null;

Similar Messages

  • IOS5 NOT ALLOWING PLAY MUSIC NOT BOUGHT FROM ITUNES. WHY?

    i can only play music that i purchased from apple store, not music i already had. is this something new or do i just have a bug i need to re sync for the 10th time?

    It might help if you told us what, exactly, is happening...

  • I purchased a song on itunes and when I play it, it says my computer is not authorized. A window pops to authorize my computer so I type in my account info and hit authorize. After that a window pops up saying it is already authorize but still won't play.

    I purchased a song on itunes and when I play it, it says my computer is not authorized. A window pops to authorize my computer so I type in my account info and hit authorize. After that a window pops up saying it is already authorized but still won't play. None of this happens with any other songs on my itunes. I would just purchase the song again but I can't because every time I try to purchase it, the song says "play" next to it instead of "buy." When I hit play no music plays it just goes back to saying my computer is not authorized so I authorize it and it says it is already authorized then I click it again and it says my computer is not authorized. It's a never ending annoying circle. How can I get the song to play?

    If you live in a Region that allows re-downloading Music...
    Delete the Song(s) and re-download...
    See Here  >  Download Past Purchases  >  http://support.apple.com/kb/HT2519
    If not... Contact iTunes Customer Service  >  Apple  Support  iTunes Store  Contact Us

  • Problem:  While creating a project in iDVD, it plays perfectly on the computer, but after burning the sound is off.  Video soundtrack is not in the right place.  HELP!

    Problem:  While creating a project in iDVD, it plays perfectly on the computer, but after burning the sound is off.  Video soundtrack is not in the right place.  HELP!

    Have you checked out the topics at the right in the More Like This section?
    OT

  • I tried to set up my new ipod shuffle and a error message popped up saying Ipod not found cannot update.  I can't sync my ipod now but it is showing on itunes.  What should I do?

    I bought a new 4th gen ipod shuffle and tried to sdet it up last night.  I installed the latest itunes software and started to sync my ipod, but error boxes kept popping up saying ipod not found cannot sync.  It was showing in itunes, then it would disappear, then it would come back.  I am not very good with computers so I don't know what to do.  Can someone help?

    Do you have an iCloud backup?  If you backed up your old phone to iCloud you can go to Settings>General>Reset>Erast All Content & Settings (which will erase your phone), then go back through the setup screens again and when prompted choose Restore From iCloud Backup.  However your backup won't contain everything in your iTunes library (such as your music) so you'll need to be able to sync with your computer unless you purchased everything from iTunes and want to redownload it to your phone.

  • I upgraded my old mac to snow lepord and now when i try to play music in my i tunes it says "file can not be located" but it still lists all of my music

    I upgraded my old mac to snow lepord and now when i try to play music in my i tunes it says "file can not be located" but it still lists all of my music

    Use Spotlight Search (the magnifying glass on the top right-hand corner of your menu bar) to locate your music files. Then point iTunes to those files.

  • I have music that is playing within the iTunes program, but not on my iPod. How can I fix this?

    I have music that is playing within the iTunes program, but not on my iPod. How can I fix this?

    Skipping songs
    The iPod seems to fail to play all of the occasional track that iTunes, and indeed other PMPs, are happy to play. There is probably some minor technical error in the internal structure of the file which is normally ignored by other playback software but causes the Classic to bail out.
    If you use Windows you may like to try scanning the files with MP3Validator which can find & fix some internal MP3 errors.
    Some users have also suggested that completely removing all id3 tags and then replacing the information can be a solution. This can be achieved in iTunes by selecting an affected track, right/control clicking and using the option Convert id3 tags> None. Since some files may mistakenly have more than one tag you may need to repeat this action. Once you have confirmed that no tag is present you can replace the tag information using Convert id3 tags > V2.3 (I believe it is recommended to avoid using V2.4).
    Personally I have found files for which these solutions don't work. In this case the workaround is either to re-rip the tracks or get iTunes to re-encode the file, e.g.convert AAC to MP3 or vice versa and sync the newly encoded file to the iPod instead. Because transcoding will cause a loss of fidelity you should keep your original file so that if a future iPod firmware resolves this issue you can put your original files back onto the iPod.
    tt2

  • I have a iPhone 4S and when watching videos on the internet sound cuts out as the video is playing. The rest of the video plays with no sound. Sometimes when I pause It and play again sound comes back but not all the time. can anyone help?

    I have a iPhone 4S and when watching videos on the internet sound cuts out as the video is playing. The rest of the video plays with no sound. Sometimes when I pause It and play again sound comes back but not all the time. can anyone help?

    The "restore disk" is built into the Mac. See About Recovery.
    Need more specifics about what error messages you got while installing Adobe Flash.
    However, you can almost avoid Flash altogether by setting YouTube to play the HTML5 version instead.
    Click the Try something new! link at the bottom of the YouTube page.
    I don't know about the sound issue. Might be hardware as you think. Try other headphones to check.

  • A mov file plays in 'Get Info' preview, but not in Quicktime

    I recorded a talk to web cam yesterday using Quicktime Pro and edited out the overlong pauses and fluffs to produce a series of .mov clips. Today I copied and pasted the clips into one .mov file in Quicktime Pro. The first 12 clips were fine.
    The 13th clip opened as if it was audio only, but when played did not give any sound. An examination of the movie properties window showed about 3 minutes of audio and video, but neither were selected and could not be selected. When I tried to extract the video thinking I could then reassemble the file, I got a message saying that one of my raw clips was missing. The file was saved as self-contained and is about 7 MBytes. When it opens with the appearance of an audio file the last part of the clip I pasted in is highlighted as if selected; this corresponds to the file it is asking for.
    Now I had deleted my raw data as my hard drive is nearly full and I was getting warnings to that effect. But as the files had been saved as self-contained rather than reference, this should surely not be a problem.
    The strange thing is that if I select the .mov file and do a 'get info' then I can play the audio and video perfectly in the 'get info' preview plan, up until that final part corresponding to the missing file.
    It looks like I have to do the last bit once more, but how can I keep the rest of it? I've tried deleting the final part and re-saving, but it still opens with the appearance of an audio file (which is silent when I play it). I can at least listen to what I said in the first recording, but it would be good to be able to keep the part that plays in 'get info'.
    Any ideas of how I can get to it?
    Any ideas.

    Solution found.
    I simply created a new .mov file and changed its name to the raw file that Quicktime told me was missing when I tried to open my edited clip.
    The edited clip now opens and I've been able to delete the final portion (which appears selected when the clip opens) and save the rest, which plays fine.
    This seems to have been a problem because in this particular clip I left the final portion I pasted in selected when I saved the file, even though I saved is as self-contained, not a reference file.

  • Hi. I have the Apple connector kit...and actually played my M-Audio Oxygen 25-keyboard thru  my iPad2--without a powered hub.  But that was two month ago.   Now...I can't get it to play.   I can hear the notes...but faintly.  And I have pushed ALL the pos

    Hi. I have the Apple connector kit...and actually played Garageband via my M-Audio Oxygen 25-keyboard thru  my iPad2--without a powered hub. 
    But that was two month ago.
      Now...I can't get it to play--with volume.   I can hear the notes...but faintly.  And I have pushed ALL possible volume controls up (Keyboard & iPad). 
      I know the keyboard is triggering, because I tested it on a MacBook: got full volume, just like before.
      But just can't get full volume from the iPad2.  I got a 4-port USB hub...and tried interfacing it between the keyboard and the connector kit/iPad2.  But still no volume.  It's almost like a switch is off in the iPad???
      Any help would be appreciated.  Dan

    hello again,
    i didn't really dare to delete the blue home folders before, just in case everything went wrong, but now i think i have so little space that i can't afford to lose 2.25gb!
    one thing that slightly worries me is the fact that the 'proper' library folder (in the home icon) is 2.09gb, whereas the 'wrong' one (from the blue folder forenamesurname) is 2.24gb - this is the one i would be deleting. just seems odd to delete a larger file than the one i presume i'm using.
    "Move everything you want to keep out of the blue folders, and then place both of the folders on your desktop. If everything works properly after a few days, delete both folders. If you are asked for your administrator password at any point or if either folder is copied instead of moved when dragged, don't delete that folder."
    by 'everything you want to keep', does this include the library folder? 'cause there doesn't seem to be much else, and i'm not sure if deleting the library folder would ruin all my preferences.
    i've put both of the folders on the desktop, it didn't ask for the admin password or try to copy them, so i guess that's good news. what kind of things should i be looking out for to act differently?
    are the folders not in use now that they are on the desktop?
    also if i put them in the trash will they have no effect? i.e. the same as permanently deleting them, so i could put them in the trash as a test.
    cheers, stephen.

  • On facebook I can play the game castle age but not Castle age heart of darkness...it won't load.How do I fix this. Thanks

    On Facebook I can play the game castle age but not Castle age heart of darkness...it won't load.How do I fix this. Thanks

    In order to load games on Facebook you need to set the Flash plugin to allow third-party content
    1. Go to the Flash player Global Storage Settings panel.
    2. Make sure '''Allow third-party Flash content to store data on your computer''' is check marked.
    See:
    '''''[[Problems using Facebook in Firefox]]'''''
    '''If this solved your issue, please select ''solved ''& chose the appropriate ''solution'' to close this ticket/question posting'''.

  • Netflix Instant Play will not work with Firefox but works fine with Internet Explorer

    When I log in to Netflix, I cannot play instant movies from my Queue. I called Netflix and they said to reset my router. I did this and now Netflix Instant play works with Internet Explorer but not Firefox.

    I am able to type a search word in but on clicking it, nothing changes. No results. the word just stays there.
    I also downloaded the https://addons.mozilla.org/firefox/addon/live-http-headers/ -- at first I wondered if it was not letting me install. So I allowed it in exceptions. But I'm not clear on what it does or what I do to use it.

  • I have an app in my app store that is requiring an update but I never purchased the app and when I click update, another apple ID pops up that is not mine.  Now i keep getting reminders to update the app and I cant get rid of it from the app store.  Help.

    I have an app in my app store that is requiring an update but I never purchased the app and when I click update, another apple ID pops up that is not mine.  Now i keep getting reminders to update the app and I cant get rid of it from the app store.  Help.

    You installed a hacked app, originally from the Mac App Store. It contains the receipt for a different app, downloaded using an account that you don't control. You need to identify and remove the hacked app.
    Important: The app you need to remove is not necessarily the one named in the App Store notice. For example, if the App Store says you need to update "Twitter," the hacked app may be "Angry Birds" or something else entirely. Don't make any assumptions about which app you're looking for. To find it, you have to carry out a systematic search.
    Triple-click anywhere in the line of text below on this page to select it:
    kMDItemAppStoreHasReceipt=1
    Copy the selected text to the Clipboard (command-C).
    In the Finder, press the key combination command-F to open a search window, or select
    File ▹ Find
    from the menu bar. In the search window, select
    Search: This Mac
    from the row of tokens below the toolbar. Below that is a popup menu initially showing Kind. From that menu, select  Other...
    A sheet will drop down. In that sheet, select Raw Query and click OK or press return.
    Now there will be a text box to the right of popup menu. Click in that box and paste (command-V).
    The search window will show all the App Store products you've installed. Compare those search results with the list of your purchases from the App Store. To see the complete list, you may need to unhide hidden purchases. If any apps were download from the App Store using other Apple ID accounts that you control, sign in to the store under each of those ID's and check the purchases.
    At least one of the items listed in the search window is not among your purchases in the App Store. Move each such item to the Trash. You may be prompted for your administrator password. Empty the Trash.
    Log out and log back in. Test.

  • I purchased flip player to convert wma files i have from a previous laptop and it played some of my music but not some of the others this error msg came up, i payed 30.00 so it could convert? The operation couldn't be completed. (OSStatus error -19000.)

    I purchased flip player to convert wma files i have from a previous laptop and it played some of my music but not some of the others this error msg came up, i payed 30.00 so it could convert? The operation couldn’t be completed. (OSStatus error -19000.)

    Dear Nay2000,
    I have the same problem, my girl-friend saved a bigger Gigabyte library from her old laptop before she sold it, then at some point she realized that she couldn't play many songs that she had transfered. Now, I paid those 30 quid as well, and it doesn't play 99% of the files, that is very frustrating, is there any way you got it revived?
    Regards.

  • HTML5 quiz project plays if published with CP8, but not CP7

    I have a project that only consists of a title page and quiz questions that is published to HTML5 with CP7.  It plays fine on an iPad, but will not load on a desktop browser like IE and Chrome; the wheel spins for a second and then just a blank page.
    What's funny is that I just tried publishing the same project with the trial version of CP8 and now the project plays fine from my LMS.  What's even more bizarre is that I have other project files that are a mix of regular pages and quiz questions, and they play fine in HTML5 on the iPad and desktop, all published with CP7; it's just this one project file that consists of quiz questions that's causing problems.
    Any clues on how to get the project running in HTML5 on desktop when publishing with CP7?

    Sounds to me like you need to reinstall your FTP program instead.
    If the exact same files that you publish can be uploaded by your colleague and will work, then the problem is not with Captivate's output but in the transfer method.
    Perhaps your FTP program is messed up or perhaps you are uploading the files to the server with the wrong file permission settings.
    /Michael
    Click here to visit the www.captivate4.com blog

Maybe you are looking for

  • Itunes issues on Windows 7

    Every time I download itunes onto my new PC using windows 7 itunes takes over all my icons. If I try to open google chrome for instance it goes to itunes, if i try and go into any programme in fact only itunes opens. all my Icons now also show the it

  • Copy-Pasted Object Reopening Original Document

    Ok. I made an object with rollover and click states in one document, then copied it into another document. I did a bunch of futsing to make it work as a multi-state object (since my on-click states got lost when transfered to digital publishing, whic

  • Uninstalling Flex 4 Beta 1

    This is my first time working with a beta copies of software. I would like to upgrade to Flex 4 Beta 2. I do not see an uninstall for Flex 4 Beta 1. Will Flex 4 Beta 2 install in the same directory as Flex 4 Beta 1?

  • How to avoid a SocketException: Connection reset by peer

    Hi, My problem sounds very simple at first, but I couldn't figure out how to get out of it. It's tricky. A have a JSP page which makes some processing and yields output to the user. Everything runs OK, until the user decide to stop the window (or to

  • Workflow Administrator other then SYSADMIN

    We need to have people working in the system as Workflow Admin but not logging in as SYSADMIN. We have placed an "*" in the "Workflow Configuation" -> "Workflow System Administrator" but when someone logs in as a user with "Workflow Administror Web A