Help with playing sound in applications

im new to java and i was practicing playing sound in a swing application but the problem is that when i press the play button no sound is played...here is my code
import javax.swing.*;
import java.applet.AudioClip;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.MalformedURLException;
import java.net.URL;
import java.io.File;
public class JukeBox extends JFrame {
    private JLabel label;
    private JPanel panel, buttonPanel;
    private JComboBox playList;
    private JButton play, stop;
    private URL url1, url2, url3, url4, url5, url6;
    private AudioClip[] musicList;
    private AudioClip current ;
    public JukeBox() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setSize(500, 120);
        setLocation(50, 50);
        setTitle("JAVA JukeBox");
        url1 = url2 = url3 = url4 = url5 = url6 = null;
        current = null;
        try {
            url1 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\bottle-open.wav");
            url2 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\BP2.mp3");
            url3 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\fhm.aiff");
            url4 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\jungle.rmf");
            url5 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\spacemusic.au");
            url6 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\trippygaia.mid");
        } catch (MalformedURLException e) {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        musicList = new AudioClip[7];
        musicList[0] = null;
        musicList[1] = JApplet.newAudioClip(url1);
        musicList[2] = JApplet.newAudioClip(url2);
        musicList[3] = JApplet.newAudioClip(url3);
        musicList[4] = JApplet.newAudioClip(url4);
        musicList[5] = JApplet.newAudioClip(url5);
        musicList[6] = JApplet.newAudioClip(url6);
        label = new JLabel("JAVA JukeBox", JLabel.CENTER);
        String[] musicList = {"select a track..."
                , "bottle open"
                , "bitch please II"
                , "flutte, harmonica, mambo"
                , "jungle"
                , "spacemusic"
                , "trippygaia"};
        playList = new JComboBox(musicList);
        playList.addActionListener(new ListListener());
        play = new JButton("Play");
        play.setActionCommand("play");
        play.addActionListener(new ButtonListener());
        stop = new JButton("Stop");
        stop.addActionListener(new ButtonListener());
        buttonPanel = new JPanel();
        buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS));
        buttonPanel.add(play);
        buttonPanel.add(stop);
        panel = new JPanel();
        panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
        panel.add(label);
        panel.add(Box.createRigidArea(new Dimension(0, 5)));
        panel.add(playList);
        panel.add(Box.createRigidArea(new Dimension(0, 5)));
        panel.add(buttonPanel);
        getContentPane().add(panel);
    private class ButtonListener implements ActionListener {
        public void actionPerformed(ActionEvent e) {
            if(current != null){
                current.stop();
            if(e.getActionCommand().equalsIgnoreCase("play")){
                if(current != null){
                    current.play();
    private class ListListener implements ActionListener {
        public void actionPerformed(ActionEvent e) {
            if (current != null) {
                current.stop();
            current = musicList[playList.getSelectedIndex()];
    public static void main(String[] args) {
        setDefaultLookAndFeelDecorated(true);
        JukeBox jb = new JukeBox();
        jb.setVisible(true);
        jb.setResizable(false);
}can u please tell me whats wrong with my code coz i cant hear no sound when i press the play button and can u please tell me why i cant simply put the file name in the URL instead of the complete path although the files are in the same directory of the source code and can i play mp3 using this little program ???
plz help...im a newbie so plz explain as much as u can...

After
musicList = new AudioClip[7];
        musicList[0] = null;
        musicList[1] = JApplet.newAudioClip(url1);
        musicList[2] = JApplet.newAudioClip(url2);
        musicList[3] = JApplet.newAudioClip(url3);
        musicList[4] = JApplet.newAudioClip(url4);
        musicList[5] = JApplet.newAudioClip(url5);
        musicList[6] = JApplet.newAudioClip(url6);initialise the variable current with
current = musicList[1];or similar because the AudioClip current always == null in your code so your listener blocks don`t execute.
regards

Similar Messages

  • Please.. need help!! Problem with playing sounds

    Hello, any help at all greatly appreciated.
    I need a dead-certain way of playing sounds with my java application.
    Java media player doesn't seem to be working with sound files with a duration of longer than 30 seconds.
    I need a way of accessing the windows sound API from inside my java app.
    Anyone have any ideas??????

    Hello, any help at all greatly appreciated.
    I need a dead-certain way of playing sounds with my java application.
    Java media player doesn't seem to be working with sound files with a duration of longer than 30 seconds.
    I need a way of accessing the windows sound API from inside my java app.
    Anyone have any ideas??????

  • Help with port forwarding to application

    Help needed to Port Forward on to my PS3. 
    I need to forward the following ports: 
    UDP: 3074; 3659; 6000
    TCP: 80; 443; 3659; 10000 - 10099; 42127
    Have previously given the PS3 a static IP, set the port forwarding rules and then forwarded to the IP address, but it appears the ports have not opened as expected.
    Help Keith

    I can only see one image which just shows the application mapping, but no indication as to whether you had clicked the "apply" button.
    Why are you forwarding ports 80 and 443, are you running a webserver on the PS3, as those ports are used for web serving.
    As a matter of interest, your port 80 is showing as open at the moment, so is the PS3 turned on, or is port 80 mapped to something else instead?
    What I would like you to do is to start from the beginning, with just the single TCP port number 3659 assigned to the PS3.
    It will mean removing the other assignments, but it will make things a bit easier.
    If you could do that please, and then we can do some tests.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Need some help with strange sounds in Logic Pro 8

    Hi!
    I need some help with a problem I have in Logic Pro 8.
    When I have arrange window open, suddley strange high tones starts to make noise in my headphones. I don't know where these sounds comes from or why, but I need some help to get them away. Should I just try to contact Apple?
    Martin

    Hi Martin
    Welcome to the forum. Give everyone here some more info about your set up otherwise it may be difficult to figure out what is wrong.
    Which mac?
    Which OS?
    any hardware devices?
    if you are listening through headphones using the built in audio from the mac, you may be hearing fan noise or a hard drive spin noise.
    Don

  • Help on Play Sound File.vi - file format

    Hello,
    My request is quiet simple but I don't understand why it doesn't work.
    I want read a .wav sound file with the Play Sound File vi. But when I run the vi, an error message appears " Cannot recognize sound format"
    I have tried with different .wav sound files but nothing works.
    Do you know why this error happens ?
    Thanks
    Attachments:
    Sound_Labview.png ‏142 KB

    Ok thanks.
    Since the last time I posted I've tried many other wav sounds but nothing works I still had the same Labview error.
    I join you few of my wav files and maybe you can try it.
    Thanks
    Attachments:
    wav.zip ‏160 KB

  • Help with after effects cc application manager error

    ok i have a issue when i install adobe after effects cc it comes up with cant start trial application manager is damaged or corrupted and i downloaded adobe aplication manger 8 and it gives me this error
    does anyone have any ideas as i lost on what to do now
    thanks in advance elfen

    After checking we performed the test Next:
              Remove all fonts except the original.
              Test opening After Effects project => OK
              Then we submitted the most used by the graphics progessivement fonts.
    The problems is many Fonts, Thanks for your help Will  
    Cdlt

  • Please help with developing a simple application

    I have small reference book that is falling apart, that I can no longer get a copy of, and would like to get it put onto my iphone. It's a book I use often.
    I just want to be able to put in a number or title name and have the app find the text. I'm prepared to enter all the text, but have no idea where to go from there. It's only for mine and my brother's use, so not worth paying for it to be done.
    Can anyone help me?
    Thanks in advance,
    Kerrie.

    Hi Kerrie,
    The resources provided here: http://developer.apple.com/ will help you create an iPhone application.
    If you don't want to create the app yourself, you can look for a consultant here: http://consultants.apple.com/
    -Jason

  • [help]ABOUT play sound

    CFURLRef myURLRef;
    myURLRef = CFURLCreateWithFileSystemPath (kCFAllocatorDefault,
    CFSTR("/aif.aif") ,
    kCFURLPOSIXPathStyle,
    FALSE);
    OSStatus error = AudioServicesCreateSystemSoundID (myURLRef, &mySSID);
    this code can play sound in the root directory.
    but how can I play the sound in the resource Bundle?
    thanks a lot

    OK, I find it
    CFBundleRef mainBundle = CFBundleGetMainBundle();
    // Look for a resource in the main bundle by name and type.
    myURLRef = CFBundleCopyResourceURL( mainBundle,
    CFSTR("fun"),
    CFSTR("aif"),
    NULL );
    if you have some question, MSN me: [email protected]

  • Need help with adding sound

    I want to add a short soundclip that plays when my nav bar
    loads. I edited down a song in Garageband to 3 seconds, then I
    exported it to iTunes. I assume I have to convert it to mp3 to put
    it into my Flash file, so my first question is this... how many
    kbps should I save the mp3 at? Normally I have mp3's in iTunes that
    are 128 or 192, but would this make my swf filesize too big? Can
    anyone suggest a setting?
    Then, once I convert my mp3 in iTunes, how would I bring it
    into my flash file and trigger it so it plays when the nav bar
    loads? Thanks!

    I don't know much about actionscript so please bear with me.
    When you say create the sound object, what exactly does that mean?
    Where do I put that code? I'd like the sound to trigger after the
    preloader loads everything and while the animation plays (logo
    flies in, nav bar swoops in from the right, pretty basic). Does
    this mean I should put the trigger on frame 3 since the preloader
    is taking up the first 2 frames? And does the sound object code go
    somewhere different or do I add it above the trigger code on frame
    3?
    Also, the way I'm setting up my Flash animation is that I'm
    going to put the same swf on the top of every one of my html
    tables, so every time the user clicks a button in the nav, the nav
    bar animation will reload and show the proper page (I'm not doing
    my whole site in Flash, just the nav and bringing into
    Dreamweaver). It might get a little annoying if the sound plays
    each time the user clicks a button, so is there any way to set it
    up with Actionscript that the sound only plays when the user
    initially goes to the index page? Or will I have to make a separate
    swf without the sound and put that on the top of all the other
    pages beside the homepage?
    With the mp3, I encoded it at 128 and it sounds really good,
    I was just wondering if it's overkill just for a 3 second byte.
    Does anyone else have any experience with this? I'm really not sure
    of what is an appropriate file size, is there a number where I
    shouldn't go over? It's a nav bar animation so I'd like it to load
    pretty fast. Right now the file is around 85 KB without the sound,
    I have no idea whether this is high or low...
    Thanks for your help!

  • Urgent need of help with a java WSDL application

    Hello,
    I'm trying to turn a WORKING java application which uses some webservices, into a JAR file.
    Somehow i keep on getting the same errors all the time.
    I added all the necessary jar files, which are used in the program, in the global JAR file, but still the error remains.
    Can anyone help me with this error? (Error see below, WARNING EXTREMELY LONG!)
    ---------------------------------------------------------------- ERROR MESSAGE --------------------------------------------------------------------
    standard type mapping initialization error: javax.xml.rpc.JAXRPCException: javax
    .xml.soap.SOAPException: Unable to create SOAP Factory: Provider com.sun.xml.mes
    saging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
    at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
    .java:282)
    at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
    BasicService.java:244)
    at test.proxy.runtime.RegistrationWS_Service_SerializerRegistry.getRegis
    try(RegistrationWS_Service_SerializerRegistry.java:26)
    at test.proxy.runtime.RegistrationWS_Service_Impl.<init>(RegistrationWS_
    Service_Impl.java:26)
    at java.lang.Class.newInstanceImpl(Native Method)
    at java.lang.Class.newInstance(Class.java:1300)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
    Impl.java:92)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
    pl.java:121)
    at test.Main.test(Main.java:21)
    at test.Main.<init>(Main.java:10)
    at test.Main.main(Main.java:14)
    CAUSE:
    javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable to create SO
    AP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl n
    ot found
    at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
    .java:282)
    at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
    BasicService.java:244)
    at test.proxy.runtime.RegistrationWS_Service_SerializerRegistry.getRegis
    try(RegistrationWS_Service_SerializerRegistry.java:26)
    at test.proxy.runtime.RegistrationWS_Service_Impl.<init>(RegistrationWS_
    Service_Impl.java:26)
    at java.lang.Class.newInstanceImpl(Native Method)
    at java.lang.Class.newInstance(Class.java:1300)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
    Impl.java:92)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
    pl.java:121)
    at test.Main.test(Main.java:21)
    at test.Main.<init>(Main.java:10)
    at test.Main.main(Main.java:14)
    Caused by: javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable t
    o create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFacto
    ry1_1Impl not found
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
    t>(LiteralFragmentSerializer.java:95)
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
    t>(LiteralFragmentSerializer.java:62)
    at oracle.j2ee.ws.common.encoding.literal.StandardLiteralTypeMappings.<i
    nit>(StandardLiteralTypeMappings.java:198)
    at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
    .java:280)
    ... 10 more
    Caused by: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider
    com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
    at javax.xml.soap.SOAPFactory.newInstance(SOAPFactory.java:33)
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
    t>(LiteralFragmentSerializer.java:93)
    ... 13 more
    CAUSE:
    javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable to create SO
    AP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl n
    ot found
    at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
    .java:282)
    at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
    BasicService.java:244)
    at test.proxy.runtime.RegistrationWS_Service_SerializerRegistry.getRegis
    try(RegistrationWS_Service_SerializerRegistry.java:26)
    at test.proxy.runtime.RegistrationWS_Service_Impl.<init>(RegistrationWS_
    Service_Impl.java:26)
    at java.lang.Class.newInstanceImpl(Native Method)
    at java.lang.Class.newInstance(Class.java:1300)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
    Impl.java:92)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
    pl.java:121)
    at test.Main.test(Main.java:21)
    at test.Main.<init>(Main.java:10)
    at test.Main.main(Main.java:14)
    Caused by: javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable t
    o create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFacto
    ry1_1Impl not found
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
    t>(LiteralFragmentSerializer.java:95)
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
    t>(LiteralFragmentSerializer.java:62)
    at oracle.j2ee.ws.common.encoding.literal.StandardLiteralTypeMappings.<i
    nit>(StandardLiteralTypeMappings.java:198)
    at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
    .java:280)
    ... 10 more
    Caused by: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider
    com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
    at javax.xml.soap.SOAPFactory.newInstance(SOAPFactory.java:33)
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
    t>(LiteralFragmentSerializer.java:93)
    ... 13 more
    ---------------------------------------------------------------- ERROR MESSAGE --------------------------------------------------------------------

    I face this same problem too, I have a jar which calls a webservice and I want to execute it from windows command , I get the following error when I use the command : java -cp Has.jar moicr.Main
    standard type mapping initialization error: javax.xml.rpc.JAXRPCException: javax
    .xml.soap.SOAPException: Unable to create SOAP Factory: Provider com.sun.xml.mes
    saging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
    at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
    .java:282)
    at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
    BasicService.java:244)
    at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
    ry(JoPayWebServiceService_SerializerRegistry.java:26)
    at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
    ervice_Impl.java:26)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
    Impl.java:92)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
    pl.java:121)
    at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
    at moict.Main.confirmPayment(Main.java:142)
    at moict.Main.main(Main.java:93)
    CAUSE:
    javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable to create SO
    AP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl n
    ot found
    at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
    .java:282)
    at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
    BasicService.java:244)
    at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
    ry(JoPayWebServiceService_SerializerRegistry.java:26)
    at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
    ervice_Impl.java:26)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
    Impl.java:92)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
    pl.java:121)
    at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
    at moict.Main.confirmPayment(Main.java:142)
    at moict.Main.main(Main.java:93)
    Caused by: javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable t
    o create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFacto
    ry1_1Impl not found
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
    t>(LiteralFragmentSerializer.java:95)
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
    t>(LiteralFragmentSerializer.java:62)
    at oracle.j2ee.ws.common.encoding.literal.LiteralAnyElementSerializer.<i
    nit>(LiteralAnyElementSerializer.java:16)
    at oracle.j2ee.ws.common.encoding.literal.StandardLiteralTypeMappings.<i
    nit>(StandardLiteralTypeMappings.java:198)
    at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
    .java:280)
    ... 14 more
    Caused by: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider
    com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
    at javax.xml.soap.SOAPFactory.newInstance(SOAPFactory.java:33)
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
    t>(LiteralFragmentSerializer.java:93)
    ... 18 more
    CAUSE:
    javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable to create SO
    AP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl n
    ot found
    at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
    .java:282)
    at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
    BasicService.java:244)
    at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
    ry(JoPayWebServiceService_SerializerRegistry.java:26)
    at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
    ervice_Impl.java:26)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
    Impl.java:92)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
    pl.java:121)
    at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
    at moict.Main.confirmPayment(Main.java:142)
    at moict.Main.main(Main.java:93)
    Caused by: javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable t
    o create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFacto
    ry1_1Impl not found
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
    t>(LiteralFragmentSerializer.java:95)
    at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
    t>(LiteralFragmentSerializer.java:62)
    at oracle.j2ee.ws.common.encoding.literal.LiteralAnyElementSerializer.<i
    nit>(LiteralAnyElementSerializer.java:16)
    at oracle.j2ee.ws.common.encoding.literal.StandardLiteralTypeMappings.<i
    nit>(StandardLiteralTypeMappings.java:198)
    at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
    .java:280)
    ... 14 more
    Caused by: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider
    com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
    C:\>

  • Can anyone help with my sound :(

    Hello,
    On September 4th of this year I was listening to a song on my macbook, no speakers in, just my laptop.
    It was at full volume the sound output was decent. Then all of a sudden in the middle of the song, without the volume being lowered, its almost like the volume got cut in half. The macbook still recognizes the internal speakers, but its almost like the sound is at such a level now with max volume that I can barely hear it...where before it was fine. There seems to be like no way to find out how to fix this problem on the internet, everyone keeps losing the internal speakers thats not my problem its almost like the speakers crapped out, or decided to go lazy with sound output level.
    Someone help my laptop is like pointless without my regular output level!!!!!! thanks

    Hi Matt,
    Try navigating to the audio preference files and move them to the trash:
    com.apple.audio.DeviceSettings.plist
    com.apple.audio.SystemSettings.plist
    The files are located here:
    Macintosh HD > Library > Preferences > Audio
    (Not Macintosh HD > Users > "Your User Name" > Library > Preferences >)
    After trashing these files restart your Mac and see if this helps.

  • Can anyone help with my sound query?

    Hi all
    I need to load from a file a sound clip and for it to play when a button is pressed- the difficult bit is without referencing Applet.
    Can anyone help?
    Thanks

    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.net.*;
    import java.io.*;
    public class JFrameTest extends JFrame implements ActionListener {
         public JFrameTest() {
         super("Hey");
              setSize(100,100);
              JButton btn = new JButton("Press to play");
              btn.addActionListener( this );
              getContentPane().add( btn );
         public void actionPerformed( ActionEvent ae ) {
              try {
             URL url = new File("1.wav").toURL();
                   AudioClip ac = Applet.newAudioClip(url);
                   ac.play();
        } catch (MalformedURLException e) {
                   e.printStackTrace();
         public static void main(String[] args) {
              JFrameTest f = new JFrameTest();
              f.show();
    }Those tab-indentations get really messed up...

  • Help with speeding up Hadoop application with Jrockit vm

    Hi all,
    This is Grace. I am using JRockit JVM to run some Hadoop tests. In the test, there are many short time(within 1 minute) processes running. Comparing with the Sun JVM (with -Xmx option only), the test is completed much more slowly by Jrockit JVM. I have already tried to adjust some of the Jrockit basic options, such as –Xmx, -XXaggressive and etc. But there is no big difference. Have anyone seen this problem before? And does anyone can offer some advices about optimization or tuning? Thanks a lot for your time and help.
    Here is some basic information of the testing environment:
    OS: Redhat 5.3 x86_64
    Sun vm version is 1.6.0_11 (64bits), Jrockit vm version is 3.1.0-1.6.0(64bits)
    Regards, Grace

    Most of your objects are large and goes to the old space. When you are running with a nursery all large objects are allocated in the old space. (An object larger than 2k is typically considered large). This will result in a lot of GC of the old space. I guess that this is causing a lof of memCopyBlock() which is the performance blocker.
    So, I have a few suggestions:
    * Always set initial heap size equal to maximum heap size. -Xms=Xmx (1024m in your case) Set the maximal heap size as large as possible (without resulting in page faults).
    * With such high amount of large objects you could profit a static GC, for example -Xgc:singlepar (or -Xgc:genpar with a very small nursery).
    * If the large objects in your application live shortly then you may still profit from using a nursery.
    ** Set GC strategy to -Xgc:genpar (or -Xgc:gencon) to get a nursery.
    ** You will also need to modify the threshold for large objects by setting: -XXlargeObjectLimit="a limit, a little larger than the size of your objects".
    ** Tune nursery size. You will probably have to test a few nursery sizes before you find the best suited nursery size
    ** I see that you tune TLA. TLA tuning is preferably combined with tuning the large object limit for example: -XXtlasize:min=4k, preferred=128k - XXlargeObjectLimit=4k
    I would not use -XXaggressive if it does not give you performance improvements. The same for LazyUnlcoking - it gives a performance boost for some applications, but not all.
    Edited by: TuvaPalm on May 12, 2009 6:08 AM

  • Help with updating and Adobe Application Manager (Max OS X)

    Hi,
    I am a resent new customer of the cloud (student and teachers) service. I have started encounter some minor but kind of annoying technical problems. Before I registered for a cloud account I was running the Adobe Master Collection (trial) version on my MacBook Pro (Mac OS X 10.8.2). I successfully completed the registration to cloud and began to download and updated the app's. It went fine, until I came across a small little problem with Premier Pro. I was trying to import a few *.MOV files for a uni video that I have to do over Xmas.
    Instead of spending time trying to figure out the problem I decide to uninstall and download/install all of the app on the my cloud hub, just incase it was something to so with my pervious installations. I couldn't directly re-download the apps via the cloud hub, so I had to re-download another trial version. However, now I can not get the Adobe Application Manager to work, I keep saying "Download Error, Please try again" I have tried it load of time, but keep getting the same message.
    Please Help,
    Damien

    Moshpit84 did you utilize the uninstallers located in Applications/Utilities/Adobe Installers to remove your installation of Premiere Pro?  Also what version of the Adobe Application Manager are you currently using?

  • NEED HELP WITH VIDEO SOUND PLS

    just bought a 30 GB ipod, updated itunes to make the videos compatible. uploaded 3 music videos, they work perfect except they have no sound. dont know what the problem is. i havent' restarted my compute yet, maybe that's it but i highly doubt it. anyones opinion would be highly appreciated. thanks for your help guys.
    -MIKE

    Neither Quicktime Pro or iTunes have the ability to successfully encode a muxed video file with audio. You'll end up with video and no audio.
    You'll need to use some other third-party software to do the conversion. There's a handful of software available. Just search the forums and you'll find many titles mentioned.
    Videora iPod Converter seems to be popular amongst Windows users, although I've read that you might get mixed results using it.

Maybe you are looking for

  • No disk found error while install Solaris 8 intel on Compaq

    I use the interactive installation method to install Solaris 8 02/02 intel platform on Compaq DL380 G2 with 4*36.4 GB harddrive and 2G memory. After I configue the network and time, an error message comes up: "No disk found. Check to make sure disks

  • Complete Guide to iPad in France

    So this past week, I was in France with my new iPad with 4G LTE. I was worried about getting 3G service beforehand due to a few threads I saw posted here. I've decided that after coming back, I would help out any future travellers who would want 3G s

  • Header Image File - Wrong Aspect Ratio in PDF

    I imported a picture into a form and it looks great in the FormsCentral editor.  But when I export the form, the aspect ratio is all wrong.  The Form Setup is 700 pixels, letter, Portrait.  I don't see many setting options to play with.  See attached

  • Loss of Collections and imported photos with LR 1.3 on Leopard

    Using LR 1.1, I painstakingly imported approximately 5000 photos off my hard drive, applied keywords and sorted them into collections. I upgraded to Leopard and then later downloaded 1.3. I do not recall whether it was after this download or later, b

  • Using Crystal Reports for Ad-Hoc reporting

    Is Crystal Reports capable of ad-hoc reporting? If so what of the myriad of products is the minimum that I would need to get started?