My runtime is not throwing any errors. please help.

hi this is part of my code.
try {
Runtime r = Runtime.getRuntime();
Process p = r.exec("fping -c 1 " + laten);
if ((p == null)) {
out.println("Could not connect");
catch (IOException io) {
System.err.println(io.toString());
     out.println(laten +" not a valid IP address");
the String variable laten which is an IP address is 123.123.123.wrong, i made it wrong on purpose to catch errors, but what will p equal if laten can not be fpinged? and is this code correct to catch unpingable IP addresses? thanks in advance.

The returned process is not null, you have to check the return value of the process:
Runtime r = Runtime.getRuntime();
Process p = r.exec("fping -c 1 " + laten);
int returnValue = p.waitFor();
if (returnValue != 0) {
   System.out.println("Could not connect");
}

Similar Messages

  • Hello, the 'Save As' dialog box used to allow the backspace button to go up one level in the directory when the focus is in the folder contents box but it does not work any more, please help.

    Hello, the 'Save As' dialog box used to allow the backspace button to go up one level in the directory when the focus is in the folder contents box but it does not work any more, please help. BTW the same 'Save As' dialog in other applications still allow the backspace button to go up one level in the directory.

    cor-el,
    I kept forgetting and procrastinating about following your instructions, since I have internet access only for limited amounts of time and usually I am busy with important tasks when I am.
    Out of the blue, the problem corrected itself (the Save As box started to open full screen, then shrunk down to a normal size and the edges can now be dragged to a custom size).
    Even the copy and paste problem in the filenaming area seems to have been less troublesome lately even though there have been no updates to Firefox in a few weeks.
    Even though I marked the solution as not helpful, the problem has in fact been resolved. I will save the solution instructions in case the issue returns.

  • HT204416 My safari will not upload any website please help.

    My safari will not upload any website please help.

    You may have more than one issue, but the most important one is that your internal hard drive is failing, or there is some other hardware fault.
    Back up all data on the drive immediately if you don't already have a current backup. There are ways to back up a computer that isn't fully functional—ask if you need guidance.
    Make a "Genius" appointment at an Apple Store, or go to another authorized service provider.
    If privacy is a concern, erase the data partition(s) with the option to write zeros* (do this only if you have at least two complete, independent backups, and you know how to restore to an empty drive from any of them.) Don’t erase the recovery partition, if present.
    Keeping your confidential data secure during hardware repair
    Apple also recommends that you deauthorize a device in the iTunes Store before having it serviced.
    *An SSD doesn't need to be zeroed.

  • Update row count is not working but its not throwing any error

    i m using obiee 11.1.1.6.8, where i cant do update row count in physical layer and tools---update row count...nothing was afffected
    iand i cant update rowcount option in physical layer of obieee.
    please help me

    Did u check in Physical DB whether it has data or not? If it has data,Try deleting that table from physical layer and import again.
    Thanks,

  • Cffunction, onSessionEnd throwing an error, please help

    Hello;
    I am using an application.cfc file to run my web site. I
    added an argument for onmissingtemplate and when I did that, it
    made my onSessionEnd statement throw an error:
    this is my statement:
    <cffunction name="onSessionEnd" returnType="void">
    <cfargument name="theSession" type="struct"
    required="true">
    <cfset var duration =
    dateDiff("s",arguments.theSession.created,now())>
    <cflog file="#THIS.name#" text="Session lasted for
    #duration# seconds.">
    </cffunction>
    and this is the error:
    Invalid CFML construct found on line 85 at column 1.
    ColdFusion was looking at the following text:
    <
    The CFML compiler was processing:
    < marks the beginning of a ColdFusion tag.Did you mean LT
    or LTE?
    The error occurred in C:\Websites\4npp8b\Application.cfc:
    line 85
    83 : </cfcomponent>
    84 :
    85 : <cffunction name="onSessionEnd" returnType="void">
    86 : <cfargument name="theSession" type="struct"
    required="true">
    87 : <cfset var duration =
    dateDiff("s",arguments.theSession.created,now())>
    I don't know if this will make a difference, but here is my
    onsessionstart function:
    <cffunction name="onSessionStart" returntype="any"
    output="true">
    <cfset SESSION.created = now()>
    </cffunction>
    I can't figure out what I did wrong to make it throw that
    error. Any ideas?
    CFmonger

    never mind, I figured it out. sorry to bother.

  • Folder Could Not Be Found Error - Please Help, Don't Want To Re-Edit EVERYTHING!

    So I just edited a huge set of photos.  I put them into a collection, then undid the collection.  But now when I go back to the edited photos in their original location & click develop there is an error saying ""this folder could not be found".  I can see all the pictures & the edits I made in the Library though, so I'm thinking they're still there somewhere.
    When I click on Library, it says they are located in G:\Lily\2010  (but I can't locate this folder G: on my hard drive)
    When I right click & do show in explorer it says there is no file located in this specific path
    I tried re-uploading the unedited pics from my camera into a new folder on C: & then right clicking on the G:\lily\2010 & selecting "find missing folders" & then selecting the newly uploaded unedited pics & that didn't work either.
    Is there something I'm missing here?  How can fix this so I don't have to re-edit all of these photos again?  PLEASE PLEASE HELP!!!  Thanks in advance

    There is no update folder location when I right click....  I'm using LR 3 beta if that matters.  There an update folder location on the far left scrolling menu, which I've tried to do a couple of different ways & it hasn't worked.
    Does anyone know how I can find the G: folder on my computer????  I would try to paste the photos back in that folder if I could find it.

  • After pres star, my macbook pro 15inc, making beep sound sevral times, but display remain black, and led light blink, inside fan is runing sounds starup come, but display not working :( any one please help me

    I have mac book pro, 15inch server color, 2008 modal, few days before I was watching movie at the same time I was chating on face book, suddenly my mac stuck so I just tried to force shutdown, by pressing shadown key for 7sec, and after I try to turn on, but nothing comes on display it's black ad if it's off, but laptop fan is on the led is on its heat is as if it's working, after I tried to reset then it's started making beep noses for ten times and again same thing nothing comes on display black, but sounds like fan is on and led blink, please help me

    Hi Aparana.rahul,
    The beeps during the startup of your MacBook Pro indicate that it may need to be serviced. See this article for further information -
    OS X Mavericks: If you hear beeps when your computer starts up
    http://support.apple.com/kb/PH14206
    Note that while the article title says it is for computers running Mac OS X 10.9 Mavericks, the same information applies to other versions.
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • When i rendering large table from Ajax using jquery that table not Displaying and not throwing any error also. why ? in IE 8,9,10

    Hi,
    when i rendering large HTML table from Ajax using jquery , table not displaying in browser why ? but visible in  chrome and mozilla.

    Hi,
    Post questions about html, css and scripting for website developers to the IE Web Development forum.
    http://social.msdn.microsoft.com/Forums/ie/en-US/home?forum=iewebdevelopment
    Include with your question a link to your website or a mashup that shows the issue.
    If you are using the file: protocol.... MSIE browsers have security restriction for running active content from the file system.
    Regards.
    Questions regarding Internet Explorer 8, 9 and 10 and Internet Explorer 11 for the IT Pro Audience. Topics covered are: Installation, Deployment, Configuration, Security, Group Policy, Management questions. If you are a consumer looking for answers or to
    raise a question, it's highly recommended you head on over to http://answers.microsoft.com/en-us
    Rob^_^

  • How do i download flash flyer to my mac book pro lap top it is block .it states it is outdated .i can not view any video please help .i need step by steps explanation please .

    PLeas help with detail information .Im unable to watch you tube or any video .My flash flyer need to be  update .Can i please have steps by steps how to achieve this process . I have a mac book pro .thanks in advance .I try but no sucess.desperate .All the site are asking me to pay .

    Go here -> http://www.adobe.com/software/flash/about/.
    Download the Flash player disk image and mount it by double-clicking the icon. Once the disk image is mounted, double click on the installation package. Be sure and restart your browser(s) before you try to view a YouTube video.
    Clinton

  • Not Enough Memory Error - Please Help!!!

    I can not get iTunes to start, I keep getting a "The iTunes application could not be opened. There is not enough memory available." It worked fine yesterday, and I've made no changes at all.
    PowerMac G5 1.8 Dual with 4 gigs ram and 2 160 gig drive, not even close to being maxed.

    That's what it sounds like. Not enough hard drive space...

  • HT1473 i am not able to add mp4 file to itune.What may be the issue.While adding mp4 file i am not getting any error message from itune.Please help.

    I am not able to add mp4 or mov files to my itune.itune is also not throwing any error message,I am bit confused.Which formats of video file can be added to itunes??I have itunes of 11.0.2.26 version and iphone 4s-6.1.3 version.

    I am not able to add mp4 or mov files to my itune.itune is also not throwing any error message,I am bit confused.Which formats of video file can be added to itunes??I have itunes of 11.0.2.26 version and iphone 4s-6.1.3 version.

  • I have been sent a secure CD of zip folders but double clicking only comes up with the message unable to unarchive, error 1 - operation not permitted, any ideas please?

    I have been sent a secure CD of zip folders but double clicking only comes up with the message unable to unarchive, error 1 - operation not permitted, any ideas please?

    First thing coming to mind:
    do you double-click on the zip files on the CD ?
    Maybe the "unzip" tries to write in-place to the CD which of course is not possible.
    Have you tried to copy one of them to your OSX volume/harddisk and thhen double-click the copy ?
    Stefan

  • LookupXRef not throwing any exception

    Hi All,
    We are using ESB Cross referencing out of box functionality provided with 10.1.3.3 SOA Suite.We have a case where we need to have some busineess logic when the value we are trying to look up in the Cross Ref table doesnot exists , in that case we tried to use needAnException(set to true()) field in the lookupXRef function inside the transformation.However its not throwing any exception in the BPEL Process.Instead it is avoiding other fields in getting populated underneath it in that complex type.As a result we are losing important business data inside the BPEL Process.Same is the case for PopulateXRefRow function as well while we are trying to insert a duplicate value into the Cross referencing table from BPEL Process.
    We need an exception for the above two cases.Are there any work arounds for these.
    We are in an urgent need of it.Can any one help us?
    Regards,
    Venkat.

    hi,
    after using XREFTOOL to create my cross referencing:
    D:\productORACLE\10.1.3.1\SOA\Oracle_1\integration\esb\bin>xreftool.bat -shell
    listTablesTotal number of xref tables: "1"
    No. TableName
    1. MONREF
    listColumns MONREFTotal number of columns for xref table "MONREF" : "2"
    No. ColumnName
    1. SAP
    2. SIEBEL
    >
    i try to use (after a reboot of soa suite), xpath function xref:populateXRefRow inside a assign task of my bpel 10.1.3.3.
    i have the following exception :
    Message handle error.
    An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: XPath expression failed to execute.
    Error while processing xpath expression, the expression is "xref:populateXRefRow('monref','sap','123','siebel','2','ADD')", the reason is FOTY0001: type error.
    Please verify the xpath query.
    ORABPEL-05002
    Message handle error.
    An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: XPath expression failed to execute.
    Error while processing xpath expression, the expression is "xref:populateXRefRow('monref','sap','123','siebel','2','ADD')", the reason is FOTY0001: type error.
    Please verify the xpath query.
    at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:171)
    at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
    at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
    at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    Is there a solution or did i miss something ??
    i try to use the same xpath function inside a ESB project (xslt transformation)
    <xsl:value-of select='xref:populateXRefRow("MONREF","SAP",/tns:name,"SIEBEL",ora:generateGUID(),"ADD")'/>
    and i've got the error message :
    XML-22016: (Error) Extension function namespace should start with 'http://www.oracle.com/XSL/Transform/java/'.

  • CRMXIF_ORDER_SAVE - not getting any error log

    Hi,
       I am using the FM CRMXIF_ORDER_SAVE for creating a quotation in CRM. I have poplulated all the required fileds but the FM is not returning any error value. Kindly help me in solving the problem. Please find the sample code below. Correct answers would be rewarded.
    *& Report  ZTEST_BAPI
    REPORT  ztest_bapi.
    TABLES : crmd_orderadm_h , crmd_orderadm_i.
    *DATA DECLARATION
    CONSTANTS : c_x VALUE 'X'.
    DATA : lt_header TYPE crmxif_bustrans_t.
    DATA : ls_header TYPE crmxif_bustrans.
    DATA : ls_item TYPE crmxif_bustrans_item.
    DATA : lt_item TYPE crmxif_bustrans_item_t.
    DATA : ls_orgdata TYPE crmxif_orgman.
    DATA: ls_partner TYPE crmxif_partner,
    itab_partner LIKE TABLE OF ls_partner.
    DATA: BEGIN OF wa_temp_partner,
    partner_no(10) TYPE c,
    *partner_fct(8) TYPE c,
    *partner_pft(4) TYPE c,
    *pft_subtype(4) TYPE c,
    END OF wa_temp_partner,
    itab LIKE TABLE OF wa_temp_partner.
    DATA: wa_bapiretm TYPE bapiretm,
    wa_bapireti TYPE bapireti .
    DATA: wa_bapiretc TYPE bapiretc.
    DATA : it_item TYPE STANDARD TABLE OF crmxif_bustrans_item WITH HEADER LINE ,
    wa_item TYPE crmxif_bustrans_item.
    DATA : ws_langu LIKE sy-langu.
    DATA: idx      TYPE sy-tabix.
    Parameters
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS : proc_tp LIKE crmd_orderadm_h-process_type DEFAULT 'ZSRQ',
    doc_date LIKE crmd_orderadm_h-posting_date DEFAULT sy-datum.
    *logsysfi like header-LOGICAL_SYSTEM default 'CRDCLNT220'.
    co_code like header-co_code default '0103',
    p_sold TYPE kunnr default '2000000060',
    p_ship TYPE kunnr default '2000000060'.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS : item_num LIKE it_item-item_number,
    material LIKE it_item-product_id. .
    quantity like it_ITEM-TOTAL_QUANTITY default 10.
    SELECTION-SCREEN END OF BLOCK b2.
    START-OF-SELECTION.
    *DATA POPULATION
      ws_langu = sy-langu. "Language variable
    *POPULATE HEADER DATA FOR PO
      ls_header-process_type = proc_tp .
      ls_header-object_type = 'BUS2000115'.
      ls_header-posting_date = sy-datum.
      ls_header-descr_language = 'E'.
      ls_header-posting_date = sy-datum .
    FILLING THE STRUCTURE OF THE PARTNER *
      ls_partner-partner_no = '212'.
      APPEND wa_temp_partner TO itab.
      LOOP AT itab INTO wa_temp_partner.
        MOVE-CORRESPONDING wa_temp_partner TO ls_partner.
        APPEND ls_partner TO itab_partner.
      ENDLOOP.
      MOVE itab_partner TO ls_header-partner-data.
    FILLING THE STRUCTURE OF THE ORGMAN *
      ls_orgdata-sales_org = 'QR04'.
      ls_orgdata-dis_channel = '04'.
      ls_orgdata-division = '10'.
      MOVE ls_orgdata TO ls_header-orgdata-data.
    FILLING THE STRUCTURE OF THE ITEM *
    ls_item-product_id = item_num.
      ls_item-product_id = '000000000010002311'.
      ls_item-item_type = 'SQRS'.
    crmxif_schedlin_i-order_qty = '6'
    CRMXIF_BUSTRANS-VALID_FROM_EXT = 'sy-datum'
       APPEND ls_item TO lt_item.
    APPEND ls_partner TO lt_partner.
      APPEND ls_item TO ls_header-item .
      APPEND ls_header TO lt_header.
    *BAPI CALL
      CALL FUNCTION 'CRMXIF_ORDER_SAVE'
        EXPORTING
          data   = lt_header
        IMPORTING
          return = wa_bapiretm.
      IF sy-subrc = 0.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      ENDIF.
      LOOP AT wa_bapiretm INTO wa_bapireti.
        LOOP AT wa_bapireti-object_msg INTO wa_bapiretc.
          WRITE: / wa_bapiretc-message , wa_bapiretc-type,wa_bapiretc-number.
          WRITE: / wa_bapiretc-message_v1,wa_bapiretc-message_v2.
        ENDLOOP.
      ENDLOOP.

    Hi Partha,
    Kindly check the following thread.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/406efa7e-388a-2910-f9b8-81913b0ca57f?QuickLink=index&overridelayout=true
    XIF adapter
    Hope it answers your Query
    Regards,
    Srikanth.Naga

  • I am not able to access my photos through the photo application... when I click on the photo app, I can see the camera roll but a transparent album screen is over it and I cannot click on the photos to see it... can any one please help ???

    I am not able to access my photos through the photo application... when I click on the photo app, I can see the camera roll, but a transparent "album" screen is over it and I cannot click on the photos to see it... can any one please help ???

    Known bug.  Quit the Camera App, double-tap the home key and delete Camera from the recent apps bar. Fire it up again, should be good.

Maybe you are looking for