Playing a sound file more than once in a row?

OK, so I got the PlayWavFile code from the Internet, and I've modified it a bit so that it has a play method, but I'm trying to get it to play 5 times in a row. The thing is, I can't seem to get a for loop to work around it. Also, since I've never messed with sound before, I'm wondering: What is a line in reference to sound? I don't understand the comments.
Here is the code I'm trying to execute (Note: I used skype-ringer.wav as an example, but any wav file will do):
SSCCE Class
package sscce;
public class SSCCE
    public static void main(final String args[])
        final PlayWavFile wavFile = new PlayWavFile("skype-ringer.wav");
        for (int p = 0; p < 5; p++)
            wavFile.play();
PlayWavFile Class
package flashcards;
import java.io.File;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.DataLine;
import javax.sound.sampled.SourceDataLine;
public class PlayWavFile
    AudioInputStream audioInputStream = null;
    SourceDataLine auline = null;
    AudioFormat format = null;
    DataLine.Info info = null;
    public PlayWavFile(final String soundFileName)
        final File soundFile = new File(soundFileName);
        if(!soundFile.exists())
            System.err.println("Wave file not found: " + soundFile);
            return;
        try
            audioInputStream = AudioSystem.getAudioInputStream(soundFile);
        catch(final Exception e)
            e.printStackTrace();
            return;
        format = audioInputStream.getFormat();
        info = new DataLine.Info(SourceDataLine.class,format);
        // Describe a desired line
    public void play()
        for (int i = 0; i < 5; i++)
            final int EXTERNAL_BUFFER_SIZE = 524288;
            final byte[] abData = new byte[EXTERNAL_BUFFER_SIZE];
            int nBytesRead = 0;
            try
                auline = (SourceDataLine)AudioSystem.getLine(info);
                auline.open(format); // Opens the line with the specified
                                        // format, causing the line to acquire
                                        // any required system resources and
                                        // become operational.
            catch(final Exception e)
                e.printStackTrace();
                return;
            auline.start(); // Allows a line to engage in data I/O
            try
                while (nBytesRead != -1)
                    nBytesRead = audioInputStream.read(abData,0,abData.length);
                    if(nBytesRead >= 0)
                        auline.write(abData,0,nBytesRead); // Writes audio data
                                                            // to the mixer (an
                                                            // audio device with
                                                            // one or more
                                                            // lines) via this
                                                            // source data line
                Thread.sleep(1000);
            catch(final Exception e)
                e.printStackTrace();
                return;
            finally
                auline.drain(); // Drains queued data from the line by
                                // continuing data I/O until the data line's
                                // internal buffer has been emptied
                auline.close(); // Closes the line, indicating that any system
                                // resources in use by the line can be released
}I've tried putting the for loop around the try block in the PlayWavFile.play method, but nothing works so far. What am I supposed to do if I want the file to play multiple times?

I don't know if this will help. It's old - I haven't looked at it in at least five years - when I used to use hungarian notation
What might help is using "m_SourceDataLine.isRunning()" in your for loop.
private     SourceDataLine      m_SourceDataLine    = null;
private     boolean             m_bOk;
private     AudioInputStream    m_AudioInputStream     = null;
private     int                 m_iBytesRead      = 0;
private     byte []             m_bytesToWrite;
if ( AudioSystem.isLineSupported( Port.Info.SPEAKER ) )
    String     strFile     = "SOUND528.WAV";
    File f = new File ( strFile );
    if ( f != null  &&  f.isFile() == true )
        m_AudioInputStream = AudioSystem    .getAudioInputStream    ( f );
        if ( m_AudioInputStream != null )
            //     more than enough to hold the complete file.
            m_bytesToWrite           = new byte[ 10000 ];
            //     Read the file and remember how many bytes were actually read.
            m_iBytesRead          = m_AudioInputStream     .read     ( m_bytesToWrite, 0, m_bytesToWrite.length );
            //     Now that you have read the file find out its format.
            AudioFormat          AF     = m_AudioInputStream     .getFormat     ();
            //     Clips don't allow pre-loading.  You must load it and play it at the same time.
            //DataLine.Info     info     = new DataLine               .Info           ( Clip.class, AF );
            //m_Clip                    = (Clip) AudioSystem     .getLine     ( info );                                   
            //m_Clip     .open          ( AIS );
            //     SourceDataLine's allow you to pre-read and play later.
            DataLine.Info     info     = new DataLine          .Info                ( SourceDataLine.class, AF );
            m_SourceDataLine          = (SourceDataLine)     AudioSystem          .getLine     ( info );
            //     The most important improvement is using open with the buffer size to use.
            //     Otherwise, if the buffer is too small the write function will block until
            //     the requested amount of data is written.  This then delays the video.
            m_SourceDataLine          .open     ( AF, m_iBytesRead );
            m_SourceDataLine          .start     ();
            //m_SourceDataLine     .write     ( m_bytesToWrite, 0, m_iBytesRead );
            //m_SourceDataLine     .isRunning()
}

Similar Messages

  • Using firefox 5 - when ever I try to use the same key more than once in a row, it does not work. Hitting the multiple times does nothing at all. How can this be corrected. HELP!!!

    everything that needs to be done on the keyboard is effected - letters, numbers, backspace, directionals, delete, home, end, page up, page down, '''all keys that are pressed more than once''' It does not matter what webpage I am on.
    PLEASE HELP
    this is very frustrating

    You may have switched on an accessibility feature called FilterKeys by keeping the Shift key pressed for too long.
    * http://www.microsoft.com/enable/products/windowsxp/default.aspx
    *http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/access_filterkeys_turnon.mspx?mfr=true

  • Why cant poll a file more than once using File Adapter..

    Hi All,
    When we run webservice, as I am using File Adapter to read/write the file information.
    Usually, File Adapter reads once every file and it wont read again the same file whcih already red.
    Where and How this status maintained by File Adapter/BPEL in the system.
    Where this will be avvailable and why cant File Adapter read/poll the same file.
    Pls can any one of you share your ideas on the same.
    Thanks.

    Hi,
    Tried to get some information around where ftp adapter stores the timestamp but couldnt find anything useful.
    But we have a table for File adapter which captures the processing information (FILEADAPTER_IN )
    I dont have the setup for FTP adapter to run an example. If you could try the below we can clarify that the timestamp is not stored in memory.
    Configure as usual for a folder with a file pattern for FTP adapter.
    Drop a file to process it and then restart the SOA Suite and try to drop the same file with same timestamp to see wheather FTP adapter picks up or not.
    Ideally i feel once you restart the SOA Suite it should pick up the file, if still not picks up the file for second time then we need to dig indepth to see where this information is stored.
    btw what is your usecase ?
    Thanks,
    Vijay
    Edited by: veejai24 on 11-Apr-2012 03:43

  • How can I Append the same (altered) web page to the same Acrobat 9 Pro PDF file more than once

    The Acrobat 9 Pro utility in IE 8 of the Windows 7 Pro OS has a selection to "Append to Existing PDF," however it only allows appending the same web page one time only.  if the majoriety of the page data content is changed by selecting list item at the top of the page, I need to (re-)add the page with new content to the same (selected) PDF file, however the utilitiy does not allow this due to its maintaining a special index of each page base on the page URL or name.  Can the this index or the page itself be changed whenever the page is altered to make Acrobat think it is a new page? 

    I don't use IE, but I would suspect you can clear the cache or such to reset this option. You could also just open the web site directly in Acrobat and play the game there.

  • Not to upload the same file more than once from legacy thru BAPI

    i have a BAPI program for uploading datas to ME21N transaction code.the values are getting stored in structure table only
    to upload the values under one header, i have declared one constant serial number, in which that is the main identification to upload the various line items in one header.
    if i uploaded the data once again , the data must not be uploaded, even if a different user tries to upload. The serial number will be same for all the items and also the supplying plant also will be same for all line items.how will i identify or store the serial number and plant , in such a way that the same plant for this combination must not be uploaded again. i have created a ztable and stored the serial num and plant.if this two fields are getting repeated for the same plant then the action must not occur else if for a diff plant the bapi program has to create a PO.
    can anybody give me a solution for this. how to make this simpler and identify the already uploaded data.

    hi
    when u r about to upload query ur main table ekko or ekpo if the entries already exist.
    if yes then issue an error message.
    Regards
    Sajid

  • Play audio more than once on a button

    I have a need to configure the audio placed on the success status of the button to play more than once.  My users may need to hear it again but when clicking it the second time the only thing you hear is the click sound, not the audio.  I am using Captivate CS5 and have it set to infinite. 
    Thanks for any assistance! 

    Hi there
    I seem to make it work as follows:
    Configure a Success caption for the button that is transparent and has no text. Then assign the desired audio clip to the caption.
    Now configure a simple Advanced Action that is a Standard action of Assign. Assign the variable rdcmndGotoFrame with rdinfoCurrentFrame. Assign this action to the Button. This keeps the slide from progressing when the button is clicked.
    In my test, the audio played over and over without fail. The only down-side is if you repeatedly click the button too soon. Sometimes you would get just a click. But if you paused briefly between clicks, things sort of "reset" and the audio consistently played.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Hello, I have installed Reader, Adobe Acrobat, trial versions of Photoshop and Illustrator. Some more than once. They work for a few days at most then I am told to re-install. I cant look at any pdf file even though I can still see reader in my programs.

    Hello, I have installed Reader, Adobe Acrobat, trial versions of Photoshop and Illustrator. Some more than once. They work for a few days at most then I am told to re-install. I cant look at any pdf file even though I can still see reader in my programs. What is going on and what can I do to fix this?

    Unfortunately no, It says "Adobe not responding" as well when I try to open a pdf. It has done this a few times where I had to uninstall and reinstall. Also, Illustrator tells me to uninstall/reinstall as well.

  • Hello. My iPhone 4s when recieving message plays the tone more than once. How to stop that?

    It plays the tone more than once and it's not playing the tone fully. It plays like it is "stuck". Like CDs play when they are scratched. How can I stop that?

    Pause and off are the same thing.   This is how you stop the music.
    iPhone User Guide (For iOS 5.0 Software)

  • LSMW error: Field name '' used more than once in file"

    Hi,
    I am doing a sample vendor master load with LSMW but while reading data I am getting an error
    "Field name '' used more than once in file
    'C:\Users\sdurgia\Desktop\LSMW\MM\vendor_master_te
    s'."
    Not getting proper reason.Can you please guide?
    Urgent please help.
    BR
    Sumeet

    Hi,
    FYI.
    LIFNR
    BUKRS
    EKORG
    KTOKK
    NAME1
    NAME2
    SORT1
    SORT2
    STREET
    HOUSE_NUM1
    STR_SUPPL1
    STR_SUPPL2
    CITY2
    CITY1
    REGION
    POST_CODE1
    LAND1
    TAXJURCODE
    PFACH
    PSTL2
    REMARK
    TEL_NUMBER
    TEL_EXTENS
    MOB_NUMBER
    FAX_NUMBER
    FAX_EXTENS
    SMTP_ADDR
    DEFLT_COMM
    KUNNR
    VBUND
    KONZS
    BEGRU
    STCD1
    STCD2
    STCD3
    STCD4
    SCACD
    SFRGR
    DLGRP
    BANKS
    BANKL
    BANKN
    KOINH
    BKONT
    LNRZA
    XZEMP
    AKONT
    ZUAWA
    FDGRV
    BEGRU1
    QSSKZ
    QSZNR
    QSZDT
    ALKTN
    ZTERM
    TOGRU
    REPRF
    KULTG
    ZWELS
    ZAHLS
    LNRZB
    HBKID
    TOGRR
    EIKTO
    WAERS
    ZTERM1
    INCO1
    INCO2
    EIKTO1
    WEBRE
    XERSY
    XERSR
    VSBED
    NAMEK
    J_1IPANO
    QLAND
    LFBW-QSREC
    XVERR
    FYTYP
    STCDT
    BKREF
    4000048674
    2550
    M004
    DHL EXPRESS (USA) INC
    PAY
    4000069273
    PO BOX 4723
    HOUSTON
    TX
    US
    77210-4723
    CONTAC: IRMA MURILLO
    800-225-5345
    281-874-0678
    [email protected]
    94-3380425
    US
    11000536
    999999
    ACCOUNT HOLDER
    221300
    1
    AP VEND
    Z011
    X
    T
    B
    USD
    Z011

  • Button/click box click more than once

    Hi, I'm hoping you guys can point out what I'm doing wrong...
    I have an image where the user can click on certain parts of
    it to display a callout. However, I want them to be able to click
    on the area of the image more than once if requried. I suppose you
    can say it's a bit like an image map.
    First I used click boxes to achieve this, then I tried using
    transparent buttons. However for both of these methods you can only
    click on each part once during playback. Clicking again does not
    show the callout.
    I thought about copying the contents to another slide and add
    a 'Reset' button the user could click on. This would move to the
    other slide, but this seems a bit on the 'clunky' side, so I
    thought there must be a setting or something really obvious that I
    have missed. I was unable to find the relevant informaiton in the
    help file or elsewhere in the forum, so if it does exist I would
    appreciate someone pointing me in the right direction.
    How can I allow the user to click on parts of the image more
    than once to show the callout?
    Thanks for your help,
    Liz

    Thanks for your reply Rick.
    I started the activity using rollovers, but I wanted the user
    to do something more definite than just hovering over each part of
    the image. So essentially, I want the rollover functionality but
    with the ability to click instead of just hovering the cursor over.
    I thought this would be easy!
    I've tried using both buttons and click boxes without any
    success. I ventured a little into slidelets, but I want the callout
    to appear in a very specific place and this did not appear to
    satisfy my requirements. The 'click to stick' sounds intriguing so
    I'll take a look into this, but I'm not convinced it's what I want.
    Any more suggestions are most welcome.
    Regards
    Liz

  • Can you create a form in which its never possible for the same person te sign the form more than once.

    Hi, I've been looking into this for awhile and believe the answer is 'no' but was just wondering if anyone here would know of a solution.
    The company I work for has a formulier on which a number of Excel files are placed. This form is then sent to a five (often different) people who are then required to open the Excel files and if accord to place their digital signature. We would like to make sure that no one is able to sign the form more than once and also if possible to make sure they have opened the Excel files. It would be great if anyone had any tips...
    All the very best,
    Martin Angell

    I am not an Excel or Excel-to-PDF conversion expert, so I do not know how Excel forms are converted to PDF form fields. With this caveat here's what I do know.
    In Acrobat It is possible to create a PDF form in which there are JavaScripts associated with fields (any fields, including signature fields). These JavaSripts can do a lot of things, including checking the signer's certificates on the already signed signature fields. Then you can make all unsigned signature fields read-only, in which case the user will not be able to actually sign them. After that you can overlay a button field on top of each unsigned signature field with exactly the same dimensions and associate a JavaAcript with this button field. This JavaScript would put up an UI asking the user for the signing certificate and its password, check this certificate's CN against the list of already signed signature fields and initiate the signing of the unsigned signature field behind this button if your condition is satisfied.
    I never tried that myself but it could work. This looks complicated and it is but if you really want it you can try.

  • Inbound interface was found more than once

    Hi All,
    Currently I'm working on a scenario wherein an invoice file is generated and created on FTP server, PI system picks up invoice (xml file) and sends to customer via EDI 810. The scenario failed in sxmb_moni and below is the error message.
    <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="IF_DETERMINATION">CX_ID_PLSRV</SAP:Code>
      <SAP:P1>Inbound interface was found more than once (for same sender and receiver) for outbound interface urn:xyz:sap:components. 810_Outbound_Async_MI</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error when determining the inbound interface: Inbound interface was found more than once (for same sender and receiver) for outbound interface urn:xyz:sap:components. 810_Outbound_Async_MI Inbound interface was found more than once (for same sender and receiver) for outbound interface
    Can anyone help me out and provide some valuable suggestions.
    Regards
    Faisal

    Hi Abdul,
    Try to run the scenario in the ID.
    There is one test tool to in directory for this, login to ID --> go to Tools --> Test configuration.
    This will show you the error in the exact step.
    -Supriya.

  • QuickTime DOM Events called more than once?

    I am in the process of writing code in JavaScript that will track the interaction on a embedded QuickTime video.
    function ew_addImage(v) {
    trackImg=new Image(1,1);
    trackImg.src=v;
    function ew_pauseTrk() {
    var imgStr='http://www.sldkfjsldfjk.com/200125/EWTRACKNEW_VINT?ewadid=751801&ewbust='ewbust'&eid=1078554&file=$VIDEO$&bw=56&vlen=3:00&vint=PAUSED';
    ew_addImage(imgStr);
    if (document.addEventListener)
    document.getElementById("mov1").addEventListener("qt_pause", ew_pauseTrk, false);
    Everything works correctly. I am able to see the image being called when I am looking at Wireshark. The problem is when I click pause more than once.. It seems like the QuickTime DOM Events can only be called once.. Is that true?
    Thanks

    -(void) flipToEditView {
    [self populateTheList]; // populate an array
    EditViewController *anEditVC = [[EditViewController alloc] initWithNibName:@"EditView" bundle:nil];
    [self setEditVC:anEditVC];
    [viewController.view removeFromSuperview];
    [self.window addSubview:[editVC view]];
    [anEditVC release]; }
    }<---- is this } matched elsewhere?

  • Custom Administrative Template Error 53 Key name specified more than once

    Hi All,
    Hope I've picked the correct forum. I am making my first foray into setting up a custom administrative template for some software that is developed in house. The current deployment method is to merge a reg file on each computer that requires the registry
    settings. I am trying to set this up so that it is controlled via GPO.
    My idea is that in the a GP can set the registry settings for one or more areas that are controlled by the software. 
    The problem I have - I get Error 53 Keyname specified more than once on Line 9 (second KEYNAME). In total I will have about 30 different sites this needs to be set up for.
    Does this mean that I can't set more than one registry key per "Policy" setting in the GPO?
    The adm file I have so far is below
    TIA
    Jason
    ---------------------------------------------CUT---------------------------------------------
    CLASS User
    CATEGORY "App Site Settings"
    POLICY !!Site1Policy
    EXPLAIN !!Site1Explain
    KEYNAME "Software\ApplicationCompany\Site1\Access"
    VALUENAME "SystemDatabase"
    VALUEON "D:\\App\\Data\\App.mdw"
    VALUEOFF DELETE
    KEYNAME "Software\ApplicationCompany\Site1\Arbitration"
    VALUENAME "ConfigPath"
    VALUEON "D:\\Site1\\Data"
    VALUEOFF DELETE
    KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
    VALUENAME "ConfigFile"
    VALUEON "D:\\App\\Data\\App_Comms.mdb"
    VALUEOFF DELETE
    VALUENAME "SysConfig"
    VALUEON "D:\\Site1\\Data\\SITE1_SYS.mdb"
    VALUEOFF DELETE
    END POLICY
    POLICY !!Site2Policy
    EXPLAIN !!Site2Explain
    KEYNAME "Software\ApplicationCompany\Site2\Access"
    VALUENAME "SystemDatabase"
    VALUE "D:\\App\\Data\\App.mdw"
    KEYNAME "Software\ApplicationCompany\Site2\Arbitration"
    VALUENAME "ConfigPath"
    VALUE "D:\\Site2\\Data"
    KEYNAME "Software\ApplicationCompany\Site2\Common Settings"
    VALUENAME "ConfigFile"
    VALUE "D:\\App\\Data\\App_Comms.mdb"
    VALUENAME "SysConfig"
    VALUE "D:\\Site2\\Data\\Site2_SYS.mdb"
    END POLICY
    END CATEGORY
    [strings]
    Site1Policy = "Site1 settings"
    Site1Explain = "Enabling this setting configures the registry settings for dummy Site1."
    Site2Policy = "Site2 settings"
    Site2Explain = "Enabling this setting configures the registry settings for dummy Site2."

    Well - I ended up sorting this out - and no - you can't have the Keyname keyword twice - unless you enclose the the setting in a PART statement. Below is what I ended up with:
    ---------------------------------------------CUT---------------------------------------------
    CLASS USER
    CATEGORY "ApplicationSettings"
    KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
    POLICY !!SITE1Policy
    #if version >= 3
    EXPLAIN !!PolicyExplain
    #endif
    KEYNAME "Software\ApplicationCompany\Site1\Access"
    PART !!ConfigFilePolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
    VALUENAME ConfigFile
    DEFAULT !!ConfigFileDefault
    END PART ;!!ConfigFilePolicy
    PART !!SystemDBPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site1\Access"
    VALUENAME SystemDatabase
    DEFAULT !!SystemDBDefault
    END PART ;!!SystemDBPolicy
    PART !!SysConfigPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site1\Common Setting"
    VALUENAME SysConfig
    DEFAULT !!SysConfigDefault
    END PART ;!!SysConfigPolicy
    PART !!ArbitrationPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site1\Arbitration"
    VALUENAME ConfigPath
    DEFAULT !!ArbitrationDefault
    END PART ;!!ArbitrationPolicy
    END POLICY
    POLICY !!SITE2Policy
    #if version >= 3
    EXPLAIN !!PolicyExplain
    #endif
    KEYNAME "Software\ApplicationCompany\Site2\Access"
    PART !!ConfigFilePolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site2\Common Settings"
    VALUENAME ConfigFile
    DEFAULT !!ConfigFileDefault
    END PART ;!!ConfigFilePolicy
    PART !!SystemDBPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site2\Access"
    VALUENAME SystemDatabase
    DEFAULT !!SystemDBDefault
    END PART ;!!SystemDBPolicy
    PART !!SysConfigPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site2\Common Setting"
    VALUENAME SysConfig
    DEFAULT !!SysConfigDefault
    END PART ;!!SysConfigPolicy
    PART !!ArbitrationPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site2\Arbitration"
    VALUENAME ConfigPath
    DEFAULT !!ArbitrationDefault
    END PART ;!!ArbitrationPolicy
    END POLICY
    END CATEGORY
    [Strings]
    ArbitrationDefault =D:\SITE\Data
    ArbitrationPolicy =Arbitration path
    ConfigFileDefault =D:\App\Data\App_Comms.mdb
    ConfigFilePolicy =Application configuration file
    PolicyExplain =Enter Explainition of the Registry settings here
    SysConfigDefault =D:\SITE\Data\SITE1_SYS.mdb
    SysConfigPolicy =Application site system configuration file
    SystemDBDefault =D:\App\Data\App.mdw
    SystemDBPolicy =Application system database path
    SITE1Policy =Site1 Application Settings
    SITE2Policy =Site2 Application Settings

  • Bug! Hot-deploying the same bean more than once results in a DeploymentException!

    Hi all,
    Anyone else having this problem? When re-deploying an EJB within a
    running WL server 4.5.1 w/ sp9 more than once results in the following
    DeploymentException. The first time we re-deploy it works fine, but any
    re-deployments after that fail.
    This is potentially fatal in that if we have to make more than one
    change to a bean over time and re-deploy those changes, we have to cycle
    the server, which is NOT acceptable for a production environment!
    Any clues or workarounds would be greatly appreciated.....Thanks!
    BP
    [xxxx.xxxx.com] < /pkg/bea > java -classpath
    /pkg/bea/classes:/pkg/bea/lib/weblogicaux.jar weblogic.deploy -redeploy
    xxxxxxx file:/pkg/bea/classes/OurSessionBean.jar
    weblogic.ejb.common.DeploymentException: Unable to create bean
    classloader:
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    /local/pkg/bea/depot/weblogic-4.51/classes/OurSessionBean.jar; nested
    exception is:
    java.io.EOFException
    java.io.EOFException
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.io.IOException.<init>(IOException.java:35)
    at java.io.EOFException.<init>(EOFException.java:43)
    at java.io.DataInputStream.readUnsignedShort(Compiled Code)
    at
    weblogic.utils.classfile.LineNumberTable_attribute$line_num_struct.read(Compiled
    Code)
    at
    weblogic.utils.classfile.LineNumberTable_attribute.read(Compiled Code)
    at weblogic.utils.classfile.AttributeTable.read(Compiled Code)
    at weblogic.utils.classfile.Code_attribute.read(Compiled Code)
    at weblogic.utils.classfile.AttributeTable.read(Compiled Code)
    at weblogic.utils.classfile.ClassMember.read(Compiled Code)
    at weblogic.utils.classfile.MethodTable.read(Compiled Code)
    at weblogic.utils.classfile.ClassFile.read(Compiled Code)
    at weblogic.utils.classfile.ClassFile.<init>(Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.computeExclude(Compiled
    Code)
    at weblogic.ejb.internal.EJBJarLoader.initialize(Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.<init>(Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.<init>(Compiled Code)
    at weblogic.ejb.internal.EJBJarDeployment.setup(Compiled Code)
    at weblogic.ejb.internal.EJBJarDeployment.redeploy(Compiled
    Code)
    at
    weblogic.ejb.internal.EJBJarDeployment.redeploy(EJBJarDeployment.java:629)
    at
    weblogic.ejb.internal.EJBManagerImpl.redeploy(EJBManagerImpl.java:266)
    at
    weblogic.ejb.common.EJBManager_WLSkel.invoke(EJBManager_WLSkel.java:169)
    at
    weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(Compiled Code)
    at
    weblogic.rmi.extensions.BasicRequestHandler.handleRequest(Compiled Code)
    at
    weblogic.rmi.extensions.BasicRequestDispatcher$BasicExecuteRequest.execute(Compiled
    Code)
    at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at
    weblogic.rmi.extensions.BasicRequest.sendReceive(BasicRequest.java:44)
    at
    weblogic.ejb.common.EJBManager_WLStub.redeploy(EJBManager_WLStub.java:312)
    at weblogic.deploy.deploy(deploy.java:129)
    at weblogic.deploy.runBody(deploy.java:79)
    at weblogic.utils.compiler.Tool.run(Tool.java:55)
    at weblogic.deploy.main(deploy.java:140)

    how about undeploy an already deployed bean first and then trying to redeploy.
    becoz i know there's an option like that with DDDeploy. I am talking of 5.1 but the
    logic should probably work in 4.5 too.
    Try doing it and see what happens.
    -Vikas
    Blah Blah wrote:
    Hi all,
    Anyone else having this problem? When re-deploying an EJB within a
    running WL server 4.5.1 w/ sp9 more than once results in the following
    DeploymentException. The first time we re-deploy it works fine, but any
    re-deployments after that fail.
    This is potentially fatal in that if we have to make more than one
    change to a bean over time and re-deploy those changes, we have to cycle
    the server, which is NOT acceptable for a production environment!
    Any clues or workarounds would be greatly appreciated.....Thanks!
    BP
    [xxxx.xxxx.com] < /pkg/bea > java -classpath
    /pkg/bea/classes:/pkg/bea/lib/weblogicaux.jar weblogic.deploy -redeploy
    xxxxxxx file:/pkg/bea/classes/OurSessionBean.jar
    weblogic.ejb.common.DeploymentException: Unable to create bean
    classloader:
    weblogic.ejb.common.DeploymentException: loading EJB JAR
    /local/pkg/bea/depot/weblogic-4.51/classes/OurSessionBean.jar; nested
    exception is:
    java.io.EOFException
    java.io.EOFException
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.io.IOException.<init>(IOException.java:35)
    at java.io.EOFException.<init>(EOFException.java:43)
    at java.io.DataInputStream.readUnsignedShort(Compiled Code)
    at
    weblogic.utils.classfile.LineNumberTable_attribute$line_num_struct.read(Compiled
    Code)
    at
    weblogic.utils.classfile.LineNumberTable_attribute.read(Compiled Code)
    at weblogic.utils.classfile.AttributeTable.read(Compiled Code)
    at weblogic.utils.classfile.Code_attribute.read(Compiled Code)
    at weblogic.utils.classfile.AttributeTable.read(Compiled Code)
    at weblogic.utils.classfile.ClassMember.read(Compiled Code)
    at weblogic.utils.classfile.MethodTable.read(Compiled Code)
    at weblogic.utils.classfile.ClassFile.read(Compiled Code)
    at weblogic.utils.classfile.ClassFile.<init>(Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.computeExclude(Compiled
    Code)
    at weblogic.ejb.internal.EJBJarLoader.initialize(Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.<init>(Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.<init>(Compiled Code)
    at weblogic.ejb.internal.EJBJarDeployment.setup(Compiled Code)
    at weblogic.ejb.internal.EJBJarDeployment.redeploy(Compiled
    Code)
    at
    weblogic.ejb.internal.EJBJarDeployment.redeploy(EJBJarDeployment.java:629)
    at
    weblogic.ejb.internal.EJBManagerImpl.redeploy(EJBManagerImpl.java:266)
    at
    weblogic.ejb.common.EJBManager_WLSkel.invoke(EJBManager_WLSkel.java:169)
    at
    weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(Compiled Code)
    at
    weblogic.rmi.extensions.BasicRequestHandler.handleRequest(Compiled Code)
    at
    weblogic.rmi.extensions.BasicRequestDispatcher$BasicExecuteRequest.execute(Compiled
    Code)
    at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at
    weblogic.rmi.extensions.BasicRequest.sendReceive(BasicRequest.java:44)
    at
    weblogic.ejb.common.EJBManager_WLStub.redeploy(EJBManager_WLStub.java:312)
    at weblogic.deploy.deploy(deploy.java:129)
    at weblogic.deploy.runBody(deploy.java:79)
    at weblogic.utils.compiler.Tool.run(Tool.java:55)
    at weblogic.deploy.main(deploy.java:140)

Maybe you are looking for

  • Windows 7 Pro recovery DVD for T420 laptop?

    Can you get a recovery DVD from Lenovo for the T420 laptop.  I created the recovery media, and then had the OS remove the recovery partition after the creation of the discs. I just found that there is a problem with the disc and can't restore the sys

  • Short dump in VF01 transaction with error id SAPSQL_ARRAY_INSERT_DUPREC

    Hi, We are getting shortdump SAPSQL_ARRAY_INSERT_DUPREC when running VF01 transaction. The ABAP/4 Open SQL array insert results in duplicate database records. The termination occurred in the ABAP/4 program "SAPLV60U " in "VBUK_BEARBEITEN". Line Numbe

  • Table control in Custom infotype 9008

    Hi, I need to create a custom infotype with table control in it. Normally after going to PM01 and genetete it will display all the field as individual field. Here i need to use 4 of those field into table control format. Is ther any special process t

  • Zero Excise duty appeared in J1IIN_Excise Invoice

    We are facing issue in excise invoice in domestic sale scenario. We are doing following process- 1) Create sales order VA01 2) Delivery VL01N 3) Billing document VF01 now when we do J1IIN, system shows zero value in BED, Ed Cess and higer ed Cess fie

  • Idoc going into eror

    Hi, I am creating vendors through XI for normal company code 1000 in ides system. I have set a polling interval of 35 seconds, and placed the XML file in the XI path. Now when the file is picked up, the idoc is posted, but goes into error saying that