Strange prob... to get correct o/p we have to run this prog twice ?????????

hi,
my problem is that i have created one bat file and i want to run that file in java but it is not running properly. the problem is .......
i have created one bat file named "file1.bat" & content of this file is as follows :-
[ ag > b.txt]
(and content of file "ag" is "aaaaaaa" )
now i am trying to run this bat file in java and want to read this b.txt in which i have redirected the content of file "ag".
for that i have written the code like this:-file name is "runbf.java"
import java.awt.*;
import java.lang.Runtime;
import java.io.*;
public class DriveVol
public static void main(String args[]) throws IOException
int volumn;
Runtime r = Runtime.getRuntime();
r.exec("ss.bat");
FileInputStream fp;
fp = new FileInputStream("b.txt");
flush();
do
volumn = fp.read();
System.out.print((char)volumn);
}while(volumn != -1);
fp.close();
when i am running this programme first it is not displaying the content of b.txt. but when u run this prog twice then only it 'll give the correct ans. what i mean is, i'll explain that stepwise.
1. as per my prog. -- r.exec("aa.bat") -- this line 'll execute first. so content of ag 'll redirect to file "b.txt"
2. now i am trying to read the file "b.txt" using FIleInputStream...
3. but first time it is giving some garbbage value.when i give --c:jdk1.3\bin>java runbf
4. but the very next moment when again i run that file - c:jdk1.3\bin>java runbf
it 'll give the correct value.
5. again when i change the content of file ag(suppose "bbbbbbb"). & try to run "runbf.java" like this-
-- c:jdk1.3\bin>java runbf --
6. then it 'll display the value "aaaaaa". now when again i run that file
it 'll give the correct value "bbbbbb"
7. so every time i have to run that "runbf.java" twice for printing the correct
value of file "b.txt"
so what i think is that, it is not refreshing the data of file "b.txt". after executing this line
r.exec("aa.bat");
so is there any method to refresh the data of file "b.txt"??????
i think u 'll try to understand my problem...
so please help me to get the ans.......
thx.........

Cuz r.exec is asynchronous, dummy. Read the friggin API. It starts a background process. If you wanna wait for it to finish, then call
Process p = r.exec(...);
p.waitFor(whatever).

Similar Messages

  • Getting a message that I can't run this app on my PC and to contact the pulisher to get a version that I can run

    getting a message that I can't run this app on my PC and to contact the pulisher to get a version that I can ru

    Which Adobe product?
    Which operating system?

  • TS1702 I've purchased a book in iBook but every time I go to download it, I get a message saying you have already purchased this book go to purchases to download, please help me as I am getting beyond frustrated!!!!!

    I have purchased a book on iBooks, every time I try to download it I get a message saying you have already purchased this item go to purchases and click on download. This is what I am doing every single time but cannot get the book, please help!

    Your UserAgent indicates that you used Firefox 3.6.17 to post here. <br />
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.17) Gecko/20110420 Firefox/3.6.17
    What does it say about the version of Firefox you have in '''Help > About Firefox'''?
    If it says Firefox 4.0 or 4.0.1, see if this helps you: <br />
    https://support.mozilla.com/en-US/kb/Websites+or+add-ons+incorrectly+report+incompatible+browser

  • Getting the name of the Action that runs this script

    If I create a action in photoshop to run a script called "test script", How can I determine within the "test script" what action name started running this script?  I'm trying to write a script to scale my images.  The scaling will be determined by what Action ran this script.
    Example
    Action Names are 5x7, 4x6, 8x10
    Eash action above will run the same script called "scale me"
    Within "scale me", the java code will determine that 4x6 started running "scale me"
    "scale me" will go to the section within the java code to scale the image loaded in Photoshop to a 4x6 size.
    The reason for writing the "scale me" code this way is that I can maintain only one script to scale my images.
    Any suggestions or help would be appreciated.
    Raymond

    Thanks for all your comments.  Micheal, I took your code for the "ActionReference()" object and it works great!  I completed my code and it is working okay (some more testing needed).
    *  My Scaling Impage Script  */
    var docRef = app.activeDocument;  //Pointer to current opened document
    finish:
    if (documents.length == 0)      // Check to see if image opened if not, error message
                alert('There are no opened images\r\r' +"Exiting Script");
                break finish;
    var savedState = docRef.activeHistoryState      // Save the history state
    var originalUnit = preferences.rulerUnits   // Save the existing ruler perferences - units
    var ref = new ActionReference();  //Pointer to current selected Action
    ref.putEnumerated( charIDToTypeID("Actn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );  // Point to selected Action
    var desc = executeActionGet(ref);
    var actionName = desc.getString( charIDToTypeID("Nm  ") );  // Get Name of seclected Action
    var actionSetName = desc.getString( charIDToTypeID("PrNm") ); // Get Group the selected Action belongs to
    var actionnumber = 100;    //actionname =  100  (No Action Defined as default)
    var portraitorienation = 0;  // Orientation default to portrait
    var resolutions = 300;  // resolution default to 300
    var sizeh = 999999;  // default size
    var sizew = 999999;  // default size
    var resolution = 300;
    var scaleup1 = 0;  //enlargement
    var scaleup2 = 0;  //enlargement
    var scaleflag = 0;
    var scaleflagg = 0
    //  Assumption is the long side is always defined in sizeh
    if (actionName=="4 x 5") { actionnumber =0;  sizeh = 1535; sizew = 1228;}
    if (actionName=="4 x 6") { actionnumber =1;  sizeh = 1842; sizew = 1228;}
    if (actionName=="5 x 7") { actionnumber =2;  sizeh = 2149; sizew = 1535;}
    if (actionName=="6 x 9") { actionnumber =3;  sizeh = 2127; sizew = 1842;}
    if (actionName=="8 x 10") { actionnumber =4;  sizeh = 3020; sizew = 2416;}
    if (actionName=="8 x 12") { actionnumber =5;  sizeh = 3624; sizew = 2416;}
    if (actionName=="11 x 14") { actionnumber =6;  sizeh = 4228; sizew = 3322;}
    if (actionName=="12 x 18") { actionnumber =7;  sizeh = 5436; sizew = 3624;}
    if (actionName=="12 x 24") { actionnumber =8;  sizeh = 7248; sizew = 3624;}
    if (actionName=="12 x 36") { actionnumber =9;  sizeh = 10872; sizew = 3624;}
    preferences.rulerUnits = Units.PIXELS
    var doch = parseInt (docRef.height);
    var docw = parseInt (docRef.width);
    scaleflag = doch-docw;
    if ( doch > docw ) { scaleflagg =1}
    if  (scaleflagg == 0)
                    portraitorienation = 1;  // Landscape Orientation
                    //alert("Seclected Landscape")
                    //alert(doch+" Height" +docw +" Width")
    var scale1 = docw - sizeh
    var scale2 = doch - sizeh
    if (docw > sizeh) {scaleup1=1}
    if (doch > sizeh) {scaleup2=1}
    // We know know what action was started (What size to scale to and the orientation - Landscape or Portrait)
          //      alert ( "Current selected action is: "+actionName+"\r\rin the action set: "+actionSetName +"\r\rAction Number is " +actionnumber +"\r\rDeminsions are (HxW):  "  +sizeh +", "+sizew );
            if (portraitorienation == 1)   //landscape if true
                            if (scaleup1 == 1)
                                            alert ( "This Photo is landscape\r\r"+ "The doc H x W are:  " +doch +" x " + docw +"\r\r" +"Resizing to (H X W:  " +sizew +", "+ sizeh + "\r\r"  + "Reduction");                               
                                            docRef.resizeImage (sizeh, undefined, resolution, ResampleMethod.BICUBICSHARPER)  // Reduction in size
                            else
                                            alert ( "This Photo is landscape\r\r"+ "The doc H x W are:  " +doch +" x " + docw +"\r\r" +"Resizing to (H X W:  " +sizew +", "+ sizeh + "\r\r"   + "Enlargement");                                       
                                            docRef.resizeImage (sizeh, undefined, resolution, ResampleMethod.BICUBICSMOOTHER)  //Enlargement in size
            else  // portrait
                        if (scaleup2 ==1)
                                            alert ( "This Photo is Portrait\r\r"+ "The doc H x W are:  " +doch +" x " + docw +"\r\r" +"Resizing to (H X W:  " +sizeh +", "+ sizew + "\r\r"  + "Reduction");                                                 
                                           docRef.resizeImage (undefined, sizeh, resolution, ResampleMethod.BICUBICSHARPER)
                            else
                                            alert ( "This Photo is Portrait\r\r"+ "The doc H x W are:  " +doch +" x " + docw +"\r\r" +"Resizing to (H X W:  " +sizeh +", "+ sizew + "\r\r"   + "Enlargement");
                                            docRef.resizeImage (undefined, sizeh, resolution, ResampleMethod.BICUBICSMOOTHER)
    preferences.rulerUnits = originalUnit  // Restore ruler perferences - units
    My script is a single file that is run by the Actions, I've created for each size and each action runs the same script.  When the script runs, it determines via "ActionReference();" what the current selected Action name is and then applies the scaling.  This script has logic for landscape and portrait and will scale using the different algorithms (bicubic xxxx) depending if it is reducing the image or enlarging.   The parametersfor the scaling is long side and constraint proportions.
    So if I have to add another size to the code, all I need to do is to add one line of code to the script, copy any of the existing Actions and rename the copied Action to the size and I am done.
    I'm not a experience programmer so pls don't laugh at my coding but have done some C, C++, Fortran (Yes I'm an electrical engineer) in my days.  A number of things has stumped me abit and one of them was the use of arrays which didn't work for me too well.  I was to use the array for storing my parameters of each size.  Another one that really got me puzzled was the use of the docRef = activeDocument object.  The docRef.height and docRef.width will tell you the dimensions of the document based on the units set for rules.  I set mine for pixels.  The problem I had was the statement if(docRef.height > docRef.width) { do some stufff}.  If I change the  > to < for the same document it alway gives me a "true" logical.  After some thoughts today, I suspect that true is anything not 0 and false is only 0.  I will try this out tonight.  This theory does not fit well with my understanding on how the if statement works in other languages.  Any comments on this would be appreciated.
    Oh and I noticed some extra code var declarations that is not needed such as the activeHistoryState - was determining if I need to use this or the perferences.rulerunits to restore my ruler perferences and apparently the activeHistoryState does not and forgot to remove from the code.

  • When I open an email with images, Outlook Express keeps defaulting to Internet Explorer rather than FireFox to get the image, since I have IE disabled this means that I see no image. I have FF set as my default browser. Please can you help?

    I first noticed the problem 3 months ago when a virus set a proxy on Internet Explorer. Removal of the proxy brought the image back, but this showed that Outlook Express uses IE to get images even when FF is set as default browser

    I might be able to experiment with this a little.
    Are you running a recent version of Outlook Web App (i.e., Exchange 2010)?
    When you save files using IE, what format are they in (e.g., EML, RTF, HTML)?

  • Is version 7 available anywhere for download? I am trying to install the Selenium IDE but get an error that it is not compatible with Firefox 8. Others in my team have been running this IDE with Firefox 7.

    None.

    Many Thanks, Kurt.
    I knew I'd seen the solution you've provided somewhere - either in MacWorld or MacFormat - but couldn't remember the Gatekeeper bit!
    I shall save it somewhere VERY safe now in case this happens again …
    You have made an old man very happy and saved me from worrying that senile decay had suddenly set in. (I was 70 last week so you might understand the situation from that.)
    Best wishes
    OllyanDinah

  • Problem getting correct data from MS Access after doing an Update

    Hi all,
    I have a problem getting correct data after doing an update. This is the scenario
    I am selecting some(Eg: All records where Column X = �7� ) records and update a column with a particular value (SET Column X = �c� ) in all these records by going through a while loop. In the while loop I add these records to a vector too, and pass it as the return value.
    After getting this return value I go through a for loop and get each record one by one from the DB and check if my previous update has actually happened. Since No errors were caught while updating DB, I assume all records are updated properly but my record set shows one after another as if it has not been updated. But if I open the DB it is actually updated.
    This does not happen to all records, always it shows like this
    1st record     Mode = �c�
    2nd record     Mode = �7�
    3st record     Mode = �c�
    4nd record     Mode = �7�
    9th record     Mode = �c�
    10th record     Mode = �7�
    I am relatively new to java and this is someone elses code that I have to modify,So I am not sure if there some thing wrong in the code too
    //Here is the method that gets records and call to update and add to vector
    public static Vector getCanceledWorkOrders() throws CSDDBException{
    //Variable declaration
      try {
        objDBConn = DBHandler.getCSDBCon();
        strSQL  = "SELECT bal bla WHERE [Detailed Mode])=?)";
        objStmt = objDBConn.prepareStatement(strSQL);   
        objStmt.setString(1, '7');
        objWOPRs = objStmt.executeQuery();
        while (objWOPRs.next()) {
         //Add elements to a vector by getting from result set
          //updating each record as PROCESSING_CANCELLED_WO(c)
          iRetVal = WorkOrderDetailingPolicy.updateRecordStatus(objPWODP.iWorkOrderNumber, objPWODP.strPersonInformed, EMSConstants.PROCESSING_CANCELLED_WO);
          if (iRetVal == -1) {
            throw new NewException("Updating failed");
      catch (Exception e) {
        vecWONumbers = null;
        throw new CSDDBException(e.getMessage());
      }finally{
        try {
          objWOPRs.close();
          objStmt.close();
          DBHandler.releaseCSDBCon(objDBConn);
        catch (Exception ex) {}
      //return vector
    //here is the code that actually updates the records
    public static int updateRecordStatus(int iWONumber, String strPerInformed , String strStatus) throws CSDDBException{
       PreparedStatement objStmt = null;
       Connection objDBConn  = null;
       String strSQL = null;
       int iRetVal = -1;
       try{
         objDBConn  = DBHandler.getCSDBCon();
         objDBConn.setAutoCommit(false);
         strSQL = "UPDATE Table SET [Detailed Mode] = ? WHERE bla bla";
         objStmt = objDBConn.prepareStatement(strSQL);
         objStmt.setString(1, strStatus);    
         objStmt.execute();
         objDBConn.commit();
         iRetVal = 1;
       }catch(Exception e){
         iRetVal = -1;
       }finally{
         try{
           objStmt.close();
           DBHandler.releaseCSDBCon(objDBConn);
         }catch(Exception ex){}
       return iRetVal;
    //Here is the code that call the records again
      public static WorkOrderDetailingPolicy getWorkOrders(int iWorkOrderNo) throws CSDDBException{
        Connection objDBConn = null;
        PreparedStatement objStmt = null;
        ResultSet objWOPRs = null;
        WorkOrderDetailingPolicy objPWODP = null;
        String strSQL = null;
        try {
          objDBConn = DBHandler.getCSDBCon();    
          strSQL = "SELECT * FROM [Work Order Detailing] WHERE [Work Order No] = ?";
          objStmt = objDBConn.prepareStatement(strSQL);
          objStmt.setInt(1, iWorkOrderNo);
           objWOPRs = objStmt.executeQuery();
          if (objWOPRs.next()) {
            objPWODP = new WorkOrderDetailingPolicy();
            objPWODP.iWorkOrderNumber = objWOPRs.getInt("Work Order No");
            //......Get Record values
        catch (Exception e) {
          objPWODP = null;
          throw new CSDDBException(e.getMessage());
        }finally{
          try {
            objWOPRs.close();
            objStmt.close();
            DBHandler.releaseCSDBCon(objDBConn);
          catch (Exception ex) {}
        return objPWODP;
      }

    Hello,
    Can you put an example of your problem online?
    Are you sure you're not having problems with case sensitive data?
    Thanks,
    Dimitri

  • HT1725 When I click on a Movie I get the following "You have already purchased this item but it has not been downloaded. To download it, select Check For Available Downloads from the Store menu." Then get err = 11111

    iTunes quit unexpectedly during the download of a movie.  When I click on that movie now I get the following message: "You have already purchased this item but it has not been downloaded. To download it, select Check For Available Downloads from the Store menu."
    I follow the instructions, but the download still doesn't resume - err = 11111
    Any advice?

    Yeah, I am going to blast my iPhone for the 4th time today and pray this goes away. I had 6 apps showing updates, the 6 badge icon shows on the App Store on my iPhone and, having run them all, the 6 apps have two copies each on my iPhone: one that is the old version of the app and will not run and the other is a faded version of the app with an empty progress bar on the icon. Click those and you get an error message about connecting to iTunes, etc. as described in the article I linked to above.
    It gets stranger than this. If I install a completely NEW app, the 6 that are stuck mid-update heal themselves and appear with the new version only, however now completely different apps (Hold Em for instance - which I did not update and didn't need an update) will not launch "app name Cannot Launch" message comes up.
    Agh!

  • Not getting correct values in ODS

    BW gurus
      when i do delta loads for ODS i am getting strange values into my ods.How ever if i do full loads on ods ,i am getting correct values(same values as RSA3).
    1 .Any idea why i am getting wrong values if i do delta   loads .
    2.If i make this ods as full load(currently delta) ,there are already few reports on this ods ,Will there be any effect on those reports?

    Riccardo,Tony
    Thanks for your quick reply.
    I have in ods as follows
    Asset  fisper   qty
      1     006.2006   2
      1     007.2006   3
    Now i have added 2 more assets to period 6
    in RSA3 is ok as follows
    Asset  fisper   qty
      1     006.2006   4
      1     007.2006   3
    In ods with delta load is  not ok as follows
    Asset  fisper   qty
      1     006.2006   9
      1     007.2006   3
    In ods with full load is OK as follows
    Asset  fisper   qty
      1     006.2006   4
      1     007.2006   3
    any advice greatly appreciated

  • Strange prob with calander

    I m facing really strange prob with calendar --- it is showing all the days of the March 1st to 31st correct but on the top in place of month it is showing February 2008 instead of March 2008. How can Feb has 31 days. I hv checked all the other settings.
    This is happening in every month i.e it is showing the previous months name.
    PLS HELP.

    The standard troubleshooting procedures for the phone are to power the phone off/on. If that doesn't correct the issue, then do a reset. This is accomplished by holding down the home buttong and the sleep/wake button until you see the Apple logo, then release the buttons. Ignore the slide to turn off message. If that does not correct the issue, then connect to iTunes and restore the phone.
    Hope these help you.

  • When I attempt to open a PDF file I saved from a website, I get the message "There was an error opening this document. The file is damaged and could not be repaired." Is there any way to correct this problem?

    When I attempt to open a PDF file I saved from a website using Safari, I get the message "There was an error opening this document. The file is damaged and could not be repaired." When I save the same PDF file using FireFox it opens up immediately. Is there any way to correct this problem with Safari?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • I have a Samsung HD TV and I purchased a Mini Display port to HDMI Adapter today. For some strange reason I get no display on my HD tv. I even tried switching a few HDMI cables and nothing popped up. I made sure my computer was updated. Help pls

    I have a Samsung HD TV and I purchased a Mini Display port to HDMI Adapter today. For some strange reason I get no display on my HD tv. I even tried switching a few HDMI cables and nothing popped up. I made sure my computer performed all software updates, and I even tried calling Apple Support. They just told me to keep trying different hdmi cables and see if anything pops up. Does anybody know what the problem is? My HDMI cable is from "rocketfish" also my display port is too.

    You may have the screen refresh rate set higher than the TV is generally able to track reliably. It may be able to get there most times, but occasionally loses sync because it is out of its nominal range.
    I suggest you sit down with the manual for the TV and find out what resolutions at what refresh rates it intends to support through VGA, and make sure your screen settings are near (or below) those limits.

  • After the latest update, all my apple products reverted to an old icloud account.  As it no longer exists, I cannot get into it to delete it and add the correct id.  How can I change this, especially on my Macbook pro?

    After the latest update, all my apple products reverted to an old icloud account.  As it no longer exists, I cannot get into it to delete it and add the correct id.  How can I change this, especially on my Macbook pro?  There is no p/w related to it and even though I tried to reset "password" it won't allow as the id does not exist, neither does the email associated with the old id.  How do I switch it to a newer id?

    It's all rather odd because the old account cannot 'no longer exist' - if you don't have the correct password you won't be able to get into it, but you can't actually delete an iCloud account from the server.
    I'm afraid you will need the services of iCloud Support. If you currently happen to have AppleCare, either because you recently bought Apple hardware or have paid to extend the inititial period, you can contact them here:
    http://www.apple.com/support/icloud/contact/
    You will need the serial number of the covered hardware.
    If you are not covered by AppleCare, then - in common with other free email services - there is no free support and you may be asked to pay a fee.

  • Strange prob, can login only at the end of install, it fails after restart

    Hi Every body
    I have this strange problem, i don't know where i'm making mistake.
    I installed EBS more than 5 times, thought i have made some mistake with pre-installation requirement or post installation requireement, but every time i'm faced with the same problem.
    My machine configuration is P4, 3.0GHz, Ram 1 GB, 240 GB HD. with RHEL4 installed. Have created dba usergroup and created user oracle and applmgr made them part of dba group.
    I'm doing multi-user installation for Vision Demo data. Logged in as root.
    i created a top level directory /sz1/oracle and changed the permission as chmod -R 777 /sz1/oracle
    applied pre-installation patch 4198954 as root
    verified other pre-installation requirements as per installation guide.
    downloaded latest rapidwiz as per note p4159029.
    Started installation as root
    specified 'oracle' as owner for DATABASE
    specified 'applmgr' as owner for APPLICATION
    the installation completed with successfull checks on pre-installation requirements and post-installation checks.
    After the completion of installation, i logged in from windows client using the path,
    http://sri.shan.com:8001
    i get the installer home page, i chose the application links and logged in to OAM as sysadmin, verified the status. found concurrent manager was not started.
    started the concurrent manager manually by running the script sh adcmctl.sh as root. the service started successfully.
    then i re-started the Linux box, logged in as root and tried to run the script adstrtal.sh like
    <COMN_TOP>/admin/scripts/VIS_<hostname>/sh adstrtal.sh APPS/APPS
    i get the following error message, it is same in all 5 times of installation
    You are running adstrtal.sh version 115.14
    Executing service control script:
    /sz1/oracle/viscomn/admin/scripts/VIS_sri/adapcctl.sh start
    script returned
    ERROR:
    Exception in TimedProcess...Failed to execute command = /sz1/oracle/viscomn/admin/scripts/VIS_sri/adapcctl.sh start APPS/APPS
    Executing service control script:
    /sz1/oracle/viscomn/admin/scripts/VIS_sri/adalnctl.sh start
    script returned
    ERROR:
    Exception in TimedProcess...Failed to execute command = /sz1/oracle/viscomn/admin/scripts/VIS_sri/adalnctl.sh start APPS/APPS
    Executing service control script:
    /sz1/oracle/viscomn/admin/scripts/VIS_sri/adcmctl.sh start
    script returned
    ERROR:
    Exception in TimedProcess...Failed to execute command = /sz1/oracle/viscomn/admin/scripts/VIS_sri/adcmctl.sh start APPS/APPS
    Executing service control script:
    /sz1/oracle/viscomn/admin/scripts/VIS_sri/adfrmctl.sh start
    script returned
    ERROR:
    Exception in TimedProcess...Failed to execute command = /sz1/oracle/viscomn/admin/scripts/VIS_sri/adfrmctl.sh start APPS/APPS
    Executing service control script:
    /sz1/oracle/viscomn/admin/scripts/VIS_sri/adrepctl.sh start
    script returned
    ERROR:
    Exception in TimedProcess...Failed to execute command = /sz1/oracle/viscomn/admin/scripts/VIS_sri/adrepctl.sh start APPS/APPS
    Executing service control script:
    /sz1/oracle/viscomn/admin/scripts/VIS_sri/adfmcctl.sh start
    script returned
    ERROR:
    Exception in TimedProcess...Failed to execute command = /sz1/oracle/viscomn/admin/scripts/VIS_sri/adfmcctl.sh start APPS/APPS
    Executing service control script:
    /sz1/oracle/viscomn/admin/scripts/VIS_sri/adfmsctl.sh start
    script returned
    ERROR:
    Exception in TimedProcess...Failed to execute command = /sz1/oracle/viscomn/admin/scripts/VIS_sri/adfmsctl.sh start APPS/APPS
    Executing service control script:
    /sz1/oracle/viscomn/admin/scripts/VIS_sri/jtffmctl.sh start
    script returned
    ERROR:
    Exception in TimedProcess...Failed to execute command = /sz1/oracle/viscomn/admin/scripts/VIS_sri/jtffmctl.sh start APPS/APPS
    Executing service control script:
    /sz1/oracle/viscomn/admin/scripts/VIS_sri/addisctl.sh start
    script returned
    ERROR:
    Exception in TimedProcess...Failed to execute command = /sz1/oracle/viscomn/admin/scripts/VIS_sri/addisctl.sh start APPS/APPS
    Check logfile /sz1/oracle/viscomn/admin/log/VIS_sri/10301137.log for details
    Exiting with status 9
    when i tried to run these scripts individually,
    all the scripts started successfully except adalnctl.sh failed
    the error message is
    adalnctl.sh version
    Checking for FNDFS executable.
    Starting listener process APPS_VIS.
    adalnctl.sh: exiting with status 1
    Then i logged in as applmgr, i can run the script adstrtal.sh successfully
    at this stage tried to login from windows client using following link,
    http://sri.shan.com:8001/oa_servlets/AppsLogin
    on the browser i get the following error message
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log
    I stuck at this stage and do not know how to proceed.
    Verified the Jserv status as per the metalink note 204123.1, 230688.1. and 311932.1
    I get the 'IsItworking' page and 'Hello' page with out any trouble.
    When i checked the mod_jserv.log file(located at APPL_TOP/Apache/Jserv/logs)
    i get the following data
    [30/10/2005 11:19:24:439] (ERROR) ajp12: Servlet Error: java.lang.NullPointerException: null
    [30/10/2005 11:19:24:456] (ERROR) an error returned handling request via protocol"ajpv12"
    [30/10/2005 11:19:24:456] (ERROR) balance : 4552 internal servlet error in server sri.shan.com:16010
    [30/10/2005 11:19:24:456] (ERROR) an error returned handling request via protocol "balance"
    Any guidance on this issue will be highly appreciable and helpful for me to proceed.
    Thanks in Advance to All..
    shan

    Hello Yogi
    Tried as you have suggested
    Following is the outcome..
    The Adconfig script did not succeed.
    Following is the response i got..
    error while running adconfig.sh as applmgr
    updating context file... completed
    upload of context file and templates to database... completed
    configuring templates from all of the producttops...
    all with status completed
    Autoconfig completed with errors.
    the logfile for this session is located at APPL_TOP/admin/VIS_<hostname>/log/11031117/adconfig.log
    While checking for this log file i found one more on the same path.
    It is named 'NetServiceHandler.log'
    I have provided a Patial Content of the 'adconfig.log' file
    as below
    I think i'm making a mistake of running this script with out starting the db..
    But i don't know where to find the script to start the db..
    Starting AutoConfig at Thu Nov 3 11:17:39 2005
    No Version conflict encountered
    using context file : /sz1/oracle/visappl/dmin/VIS_sri_xml
    Starting synchronization of file system context file and its templates with those in the database
    Database connection : Failed
    OAM Context editing support feature: Unverified
    OAM Customization support feature ; Unverified
    File system template : APPL_TOP/ad/11.5.0/admin/template/adxmlctx.tmp
    Checking for customization to Context template
    Warning: Unable to connect to Database
    Config Tool CVMHelper started at Thu Nov 03 11:17:47 IST 2005
    Making database connection using DBUtil
    ADX Database Utility
    getConnectionUsingAppsJDBCConnector()-->
    APPS_JDBC_URL='jdbc:orale:thin:@(DESCRIPTION=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=SRI.shan.com)(PORT=1522)))(CONNECT_DATA=(SID=VIS)))'
    Trying to connect using APPS_JDBC_URL
    Exception occured: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Trying to get connection using SID based connect descriptor
    getConnection()-->
    sDbHost : sri
    sDbDomain : shan.com
    sDbPort : 1522
    sDbSid : VIS
    sDbUser : APPS
    Trying to connect using SID...
    getConnectionUsingSID()-->
    JDBC URL: jdbc:oracle:thin:@sri.shan.com:1522:VIS
    Exception occured: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    for all the remaining connections also got similar error
    Connection could not be obtained; returning null
    ----------ADX Database Utility Finished----------
    StackTrace:
    java.sql.SQLException: Could not get connection to the database
    Starting synchronization of product tops
    AutoConfig Setup Phase
    Running Setup Process 5 of 13 for AD_TOP
    Executing script in InstantiateFile:
    COMN_TOP/admin/install/VIS_sri/adgendbc.sh
    script returned:
    adgendbc.sh started at Thu nov 3 11:18::14 IST 2005
    SQL*Plus: Release 8.0.6.0.0 - Production on Thu nov 3 11:18:44 IST 2005
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    ERROR:
    ORA-12224: TNS:no listener
    [AutoConfig Error Report]
    all the filenames in Setup phase and Profile phase has error code 1
    apply pahse files has the error code 256
    Autoconfig is exiting with status 49
    The error in all the places points to absence of TNS listener
    Can you please advice on this....
    Thanks in Advance
    shanmugam

  • TS3276 Mail Services - Mavericks this is new OS to me.I am having trouble with attachments to my e-mails.  The attachments were not large (single sheet typed).  Getting message file to large.  Never had this before.  Please advise correct procedure to att

    Some of the attachments were only a couple of typed pages.  I saved them as pdf format so receiver could read.  The pdf file would not attach.  Program gave message file to large for attachment to e-mail.  Perhaps I am not doing correct procedure to attaching a file to an e-mail.  I tried typing the document and saving it in pdf format to the desktop.  Opened the e-mail on Safarii - typed a quick message and then tried to drop /drag attachment from desktop to e-mail. Up pops the stupid message.  Would someone give me the step by step procedure for adding attachments to an e-mail being sent via Safari.  Also is there a way to send large files as an attachment.  I was able to do this when I was using mountain lion.  Help please.

        I can see that this issue has been quite extensive, and frustrating, and I am so sorry for all that has happened societygirl! I would like to help you work this issue out. Please follow & send me a Direct Message, so I can get your account specifics and help finally bring this to a resolution.
    Thank you,
    MichelleH_VZW
    Follow us on Twitter @VZWSupport

Maybe you are looking for