Error coding question

public void run() {
  while(input.hasNextLine()){
    String firstName = input.nextString();
    String lastName = input.nextString();
    String midInitial = input.nextString();
    int emplClass = input.nextInt();
    int yrsEmplyd = input.nextInt();
    int emplSalary = input.nextInt();
    int newSalary = input.nextInt();
    input.nextLine();
    model.processEmployee(Employee empl);
    System.out.println(lastName ", " + firstName + " " + midInitial +
          "     " + emplClass + "     " + yearsEmp + "     " + salary + "     " + newSalary)
    model.averageExecRaise();
    model.averageMgmtRaise();
    model.averageLabrRaise();
  }    System.out.println(lastName ", " + firstName + " " + midInitial +
" " + emplClass + " " + yearsEmp + " " + salary + " " + newSalary)
...is giving the error ) expected...and
public String midInitial;
  return this.midInitial;...gives the error illegal start of expression

OP asked the same question, with less code, in
http://forum.java.sun.com/thread.jspa?threadID=619100
There are 11 replies in that thread.
@OP, please use one thread to avoid duplicating effort.
� {�                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Report Generation Toolkit Error Quick Question

    Hi,
         I created the most awesome LabVIEW report ever at my desk using a trial version of the RGT and Office 2003.  I took this to my production machine and ")@#(&%(*#^%()^!!!"  The production machine has office 2007 and a fully licensed version of the RGT.  Both machines have LabVIEW 8.6.0.  I've read all the stuff about these errors and something about classes and dll's and whatnot's.  So my quick question, is:  Instead of matching the versions of Microsoft Office as recommended, can I just rewrite from scratch the VI that creates this world's most awesome LabVIEW report on the production machine to create the same effect? 
    Solved!
    Go to Solution.

    Hi 
    Quick Answer: Probably
    Slower answer: Microsoft changed a lot of things behind the scenes in Office 2007, but the Report Generation toolkit version 1.1.3 supports Office 2007 so you should be good to go. Depends on what functions are included in your VI. Liek the read me says "Several default settings in Microsoft Office 2007 differ slightly from previous versions. Reports you generate using Office 2007 might look different than reports you generate from other versions of Office because font sizes, cell sizes, and so on, differ."
    Best Regards
    David
    NISW

  • Spool Error capture question

    Hi,
    I am trying to spool data from tables into flat files. I am using the following scripts to accomplish it
    1. A cmd file (windows) that makes a call to a sql file
    2. The SQL file which generates another query file at the run time, depending upon the table name passed to it
    3. The run time query file , that executes the final query and spools the data into a txt file | delimited
    For eg:
    Actual command passed C:\Spool_utility\spool_utility TABLE_NAME
    Eg of the spool utility file :
    @echo off
    SET dbuser=XX@YY
    SET dbpw=xxxx
    echo %date% - %time% - Start > %1%log.txt
    echo START
    sqlplus -s %dbuser%/%dbpw% @spool_utility.sql %1>%1.txt
    echo %date% - %time% - Done >> %1%log.txt
    echo DONE
    Eg of the spool_utility.sql
    set echo off
    SET newpage 0
    SET feedback off
    SET linesize 32767
    set pagesize 0
    SET wrap off
    SET recsep off
    SET con off
    SET trim on
    SET trims on
    set verify off
    SET doc off
    SET termout off
    SET arraysize 5000
    SET HEADING off
    set colsep "|"
    spool &1.sql;
    Prompt Select * from &1 where some condition
    spool off
    set termout ON
    @ &1
    EXIT
    The above file generates a table_name.sql file with the actual table name at run time and gets executed and the output is written to the table_name.txt file.
    This works perfectly fine. But the issue is when someone passes some wrong table name or if there is a actual run time error while executing the query , the error with details itself itself gets written to the end spool file.
    For eg : if i do this just to generate an error and execute it from command line, the query generates an error and writes the error to the spool file , but at the command prompt where I executed the command I do not see any error and the process seems to have run perfectly well
    set xxx on xxx off as above
    spool &1.sql;
    Prompt Select * from &1 where rownum><10---this will cause the issue
    spool off
    set termout ON
    @ &1
    EXIT
    Eg of spool file generated :
    from     table_name WHERE rownum><=10 *
    ERROR at line 62:
    ORA-00936: missing expression
    My question is, is there any way i can capture this runtime error and return this error to my calling sql script spool_utility.sql and then propagate it to the calling command file and do some tasks for eg removing the spool file and writing the actual error to a log file . Basically any way to know at my OS calling level that the entire spooling operation was unsuccessful.
    Thanks

    Thanks for the reply.
    Querying the data dictionary will work only when the issue is a invalid table name. My question is can i capture any run time error, not only incorrect table name.
    If there is any run time error (for eg the one I showed where I used a >< sign which is a invalid operator) the error gets written to my spool file, but there is no way I am able to capture that in my calling sql script and subsequently in the calling command file so that I can do something with the error. For eg if a spool file may get written with error messages, some batch process or user may pick up the spool file and start processing which i dont want to happen. i would like to trap that error or at least be notified of the error at my outer calling sql file or outer command file level, so that I can write the error to a log file and delete the erroneous spool file etc.

  • BW Authorization Error documentation Question

    Hi,
    I have a question, may be you can help in this:
    Q: In BW Analyzer if we get the following authorization error for some reason:
    ->Authorization Check
    You do not have authorization for Add or Create
    There is a Details tab to see the authorization error details. I need to add documentation for the naming conventions the Users need to use so that it's easy for Users to see what is the reason for the error and what naming convention do they need to use to prevent the error.
    Right now, details tab shows "No Documentation Available". How can I add documentation here? Where do I add this documentation and how do I link it to the Authorization Error Message's Details tab?
    I tried running RSRTRACE to see which function modules/programs get called but that does not help. It gives me the following two function modules which are being called when I get the error message and when I click the details tab:
    RZX0_MESSAGES_GET
    RZX0_MESSAGE_H_GET
    and surprisingly when I try to look them up in SE37 they do not exist … What can be the reason for this?
    Is there a system transaction, like .. SM02, in BW where we can define or create authorization error message documentation for BEx Analyzer? How do I link it to the Authorization Error message?
    Your help or advise will be very much appreciated.
    Thank You,
    Regards,
    Mandeep Virk

    It can be done via SE91.
    Message Class is R9 and message number is 108
    We have to define the Long Text and save it under the RSZ class.
    It works for me now.
    Thanks,
    Mandeep

  • HDD Error -36 question: Am I on the right track here?

    Hey folks,
    HDD question here.
    I have a 13” early ’11 MBP, 320 GB HDD, came with Lion, now running ML, anticipating a soon upgrade to Mavs. 16 GB of RAM. All updates current.
    Started running out of HDD space with all my photo and video work and about a year and a half ago I bought a 1 TB WD portable, used it lots, no problems.
    Last night, I bought a 2 TB WD portable. Started copying my Photo folder over, and I got lots of the dreaded Error 36, “The Finder can’t complete the operation because some data in “IMG_0596.CR2” can’t be read or written. (Error code -36)”
    This is the first time I have seen this error with either/any drive.
    So I have these two external WD drives with two cables, so I tried copying one of the offending folders to both drives
    (both the 1 TB and the 2 TB, one at a time) using both/either cables. Both drives and cables give me the same error.
    In short, either drive, in either USB slot, with either cable gets the same error.
    In shorter, I think I have eliminated the external drives as the source of the problem.
    Thoughts?
    FYI, the 1 TB is Mac OS Extended (Journaled)
    The 2 TB is MS-DOS (FAT32), though I am 99% sure I will be converting it to Extended/Journaled ASAP. (thoughts?)
    In the last 6 months I’ve noticed things running slower…a LOT slower, at least it seems like.
    Granted, my HDD has been a bit packed, but I’ve offloaded a lot too.
    More beach ball action than seems to be normal, etc etc, even with all this RAM.
    My total boot time (cold) is:
    1:30 to login screen
    1:57 to loaded desktop.
    By way of comparison, this same MBP will boot to Snow Leopard off an external drive in 1:13 to a loaded desktop.
    My question:
    I’ve HEARD that the Error -36 can be a likely precursor to drive failure.
    [U]Given what I’ve mentioned here, is the most likely candidate for a failed drive my main HDD?
    Are there other things I should check first?[/U]
    I have a chance to buy a Seagate Momentus XT 750 GB hybrid SSD drive out of a Mac, and it has very little use on it.
    (I'd be buying from a family member I trust).
    Thoughts on that?

    I might not explain my question well in my previous post -- there is no business logic involved in what I am doing to go from the first entity bean to the second entity bean and to go from the second entity bean to the third entity bean.
    Based on the login information, I have to go through those entity beans to find the very specific row in the third table in order to get the data field I need. That is to say, only thing involved is searching for rows.
    In my view, session bean -- > 1st entity bean -- > 2nd entity bean -- > 3rd entity bean
    1. session bean -- > 1st entity bean: remote call and returns the key to the 1st entity bean for locating the 2nd entity bean
    2. 1st entity bean -- > 2nd entity bean: local call and returns the key to the 2nd entity bean for locating the 3rd entity bean
    3. 2nd entity bean -- > 3rd entity bean: local call and then returns the value of the specific field to the session bean
    The alternative approach is:
    session bean
    |
    + + +
    1st entity bean 2nd entity bean 3rd entity bean
    1. session bean -- > 1st entity bean: remote call and returns the key to the session bean for locating the 2nd entity bean
    2. session bean -- > 2nd entity bean: remote call
    and returns the key to the session bean for locating the 3rd entity bean
    3. session bean -- > 3rd entity bean: remote call and the session bean can get the value of the specific field from the 3rd entity bean
    I do not know which approach to go for. Please provide guidance. Thanks.

  • BI Apps ODI Load Plan Execution Error and Question on Rerun

    I am following the technetwork Cookbook: Installing and Configuring Oracle BI Applications 11.1.1.7.1 to install and configure my first BIApps with ODI. Smooth until I execute the Load Plan.
    Following errors were found on first attempt of execution. Without doing any change, I re-executed the load plan, error again but this time the message is difference (2nd attempt)
    Question:
    - How shall I start to diagnostic the ODI error?
    - Apparently there are something left in the failure execution, how I can clean it up for reruning the Load Plan?
    Many thanks.
    ODI errors on first execution
    ODI-1519: Serial step "Start Load Plan (InternalID:1500)" failed because child step "Global Variable Refresh (InternalID:2500)" is in error.
    ODI-1519: Serial step "Global Variable Refresh (InternalID:2500)" failed because child step "1 Domain (InternalID:5500)" is in error.
    ODI-1519: Serial step "1 Domain (InternalID:5500)" failed because child step "2 Domain SDE (InternalID:35500)" is in error.
    ODI-1519: Serial step "2 Domain SDE (InternalID:35500)" failed because child step "Serial (InternalID:36500)" is in error.
    ODI-1519: Serial step "Serial (InternalID:36500)" failed because child step "3 SDE General Domain (InternalID:54500)" is in error.
    ODI-1519: Serial step "3 SDE General Domain (InternalID:54500)" failed because child step "Load Target Table (InternalID:55500)" is in error.
    ODI-1519: Serial step "Load Target Table (InternalID:55500)" failed because child step "EBS_12_1_1 - DSN 1000 (InternalID:56500)" is in error.
    ODI-1519: Serial step "EBS_12_1_1 - DSN 1000 (InternalID:56500)" failed because child step "DOMAIN (InternalID:57500)" is in error.
    ODI-1519: Serial step "DOMAIN (InternalID:57500)" failed because child step "Parallel (InternalID:58500)" is in error.
    ODI-1518: Parallel step "Parallel (InternalID:58500)" failed; 5 child step(s) in error, which is more than the maximum number of allowed errors (0) defined for the parallel step.  Failed child steps: COMMON (InternalID:59500), HUMAN_RES (InternalID:90500), FINANCIALS (InternalID:95500), SUPP_CHAIN (InternalID:122500), PROJECTS (InternalID:98500)
    ODI-1518: Parallel step "COMMON (InternalID:59500)" failed; 11 child step(s) in error, which is more than the maximum number of allowed errors (0) defined for the parallel step.  Failed child steps: SDE_ORA_DOMAINGENERAL_PRODUCT_CLASS (InternalID:69500), SDE_ORA_DOMAINGENERAL_FND_LOOKUPS PAY_GROUP (InternalID:88500), SDE_ORA_DOMAINGENERAL_FND_LOOKUPS MARITAL_STATUS (InternalID:85500), SDE_ORA_DOMAINGENERAL_PRODUCT_MASTERORG (InternalID:73500), SDE_ORA_DOMAINGENERAL_PRODUCT_CATEGORYNAME (InternalID:67500), SDE_ORA_DOMAINGENERAL_STATE (InternalID:61500), SDE_ORA_DOMAINGENERAL_FND_LOOKUPS CUSTOMER_CATEGORY (InternalID:83500), PRODCAT (InternalID:75500), SDE_ORA_DOMAINGENERAL_FLEXFIELD (InternalID:89500), SDE_ORA_DOMAINGENERAL_FND_LOOKUPS ORGANIZATION_SIZE (InternalID:82500), UOM - Serial (InternalID:78500)
    ODI-1217: Session SDE_ORAR1211_ADAPTOR_SDE_ORA_DOMAINGENERAL_PRODUCT_CLASS (38500) fails with return code 8000.
    ODI-1226: Step Run SDE_ORA_DomainGeneral_Product_Class fails after 1 attempt(s).
    ODI-1240: Flow Run SDE_ORA_DomainGeneral_Product_Class fails while performing a Integration operation. This flow loads target table W_DOMAIN_MEMBER_GS.
    ODI-1228: Task SDE_ORA_DomainGeneral_Product_Class (Integration) fails on the target ORACLE connection BIAPPS_DW.
    Caused By: java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12516, TNS:listener could not find available handler with matching protocol stack...
    ODI errors on second execution
    ODI-1519: Serial step "Start Load Plan (InternalID:1500)" failed because child step "Global Variable Refresh (InternalID:2500)" is in error.
    ODI-1519: Serial step "Global Variable Refresh (InternalID:2500)" failed because child step "1 Domain (InternalID:5500)" is in error.
    ODI-1519: Serial step "1 Domain (InternalID:5500)" failed because child step "2 Domain SDE (InternalID:35500)" is in error.
    ODI-1519: Serial step "2 Domain SDE (InternalID:35500)" failed because child step "Serial (InternalID:36500)" is in error.
    ODI-1519: Serial step "Serial (InternalID:36500)" failed because child step "3 SDE General Flexfield (InternalID:37500)" is in error.
    ODI-1519: Serial step "3 SDE General Flexfield (InternalID:37500)" failed because child step "Finalize Flexfield (InternalID:50500)" is in error.
    ODI-1519: Serial step "Finalize Flexfield (InternalID:50500)" failed because child step "EXEC_TABLE_MAINT_PROC (InternalID:51500)" is in error.
    ODI-1217: Session EXEC_TABLE_MAINT_PROC (107500) fails with return code 20000.
    ODI-1226: Step TABLE_MAINT_PROC fails after 1 attempt(s).
    ODI-1232: Procedure TABLE_MAINT_PROC execution fails.
    ODI-1228: Task TABLE_MAINT_PROC (Procedure) fails on the target ORACLE connection BIAPPS_DW.
    Caused By: java.sql.SQLException: ORA-20000: Error creating Index/Constraint : W_FLEX_SQL_G_U1 => ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found

    Hi,
    The first error happened is
    ORA-12516, TNS:listener could not find available handler with matching protocol stack...
    The above is due to the listener been disconnected while the LP is executing. This can be solved by restarting the load.
    The second error happened is
    ORA-20000: Error creating Index/Constraint : W_FLEX_SQL_G_U1 => ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
    The above is due to the duplicate records found in the table w_flex_sql_g. You can solve this by deleting the duplicated records in that table like referred in the below link
    OBIEE, Endeca and ODI: BIApps and ODI 11.1.1.7.1 Full Load
    Regards,
    Saro

  • Idoc inbound error - encoding question

    Hello,
       I receive idoc file from a parnter.
       I create a File Ports(WE21) : Non-unicode format and Checked 'Continue Despite Conversion Error'.
       The partner send to us a file with ASCII-encoding including  German NÄHER .
       In WE02, I found the line with German NÄHER disordered.  ÄH became char  腍 ,but I have set 'Continue Despite Conversion Error'.
       like this:
               PCKAR     SACK NICHT N腍ER SPEZIFIZIERT      0
               PCKNR     000SAC                            8
               ANZAR     00.000        0
               VBELN     301866818                         0
               POSNR     00060                        6
               BTGEW     000.000          0
               NTGEW     .000             1
               TARAG     .000             K
               GEWEI     GM0
               BTVOL     .000             0
       If the parnter don't want to change the encoding, Can I do something to make it worked ?
                                                                                    Thanks.

    I post the same question on Expert Forums » Application Server » Unicode
    It's OK now.
    ======================
    Good way:
    Add this code before CALL FUNCTION 'EDI_DATA_INCOMING'
    SET LOCALE LANGUAGE 'D'. "table t002
    Nils Buerckel's answer :
    Hi Harry,
    this is not a conversion error.
    The file contains Latin-1 data with the special character "Ä".
    Now I assume you use as logon language in the Unicode system ZH (or another Asian language) ... ?
    Then the system evaluates SY-LANGU and converts the Non-Unicode file based on the Asian code page.
    Then ÄH will be interpreted as 腍. Hence the system gets a word with 4 characters instead of 5.
    This can lead to shiftings in the whole idoc and the idoc might be invalid.
    Therefore I would propose to upload the idoc using logon language EN or change it via "setlocale " in abap code.
    Best regards,
    Nils Buerckel
    SAP AG
    Edited by: Harry on Jul 29, 2009 2:38 AM
    Edited by: Harry on Jul 29, 2009 2:39 AM

  • Application moved error and question marks for dock app icons - related?

    i am reposting this in the Mac Pro forum in addition to the Mountain Lion forum as i have been posting various issues on the mac pro here and i have gotten great help in solving them. also i am hoping to put a finishing touch on my computer setup after having done a FRESH INSTALL of the OS on both my computers with a manual migration of data (no Library items) so as to try and resolve old issues. i hope the experts on the list do not mind this posting and/or can offer advice on this specific issue.
    i am getting the attached error this morning on my MacBookPro (Mountain Lion) and have gotten it before on my Mac Pro (Lion). i have had to do a fresh install of the OS and a manual migration of my data (no Library settings etc) due to slightly similar issues.
    does anyone know what this errror is saying has happened?
    i /did/ have an additional internal hard drive on the MAC PRO that Spotlight was indexing and which i had to take off of the Spotlight indexing functionality but this does not explain in any way (since there are no additional HD's on my macbookpro) why it just happened this morning on the macbookpro.
    is this related to an issue where there may be QUESTION MARKS (instead of an app icon) in the dock in some of my other software?? i have one of these on my MBP and one on my MacPro even after the fresh install.
    TIA

    The Dock stores Aliases to the actual Applications. When you get a question Mark, it is caused by a Bad Link. The Application may have changed versions, moved, or been deleted. There is nothing especially magical about this. You can remove a Bad Link by dragging the link off the Dock, or add a proper link by dragging the Application Icon onto the correct area of the Dock.
    OS X Mountain Lion: Customize the Dock
    Apple-installed Applications need to remain in the Applications folder so that they remain protected and can be updated properly. The Installer will attempt to add links that point to the current Applications in the Applications folder, but if you have a pre-existing Bad Alias your bad Alias will not be Trashed. This may give you either the "moved..." message, or the Question Mark Icon in the Dock, or a grayed-out Icon with a "prohibited sign" if you have added things not appropriate for this version of Mac OS X.

  • Fault and Error handling questions

    Hi,
    I have a few of questions regarding exception handling :
    1. Where can I find documentation (i.e. details and when thrown) on all the Standard faults available with BPEL ie. those in
    http://schemas.xmlsoap.org/ws/2003/03/business-process/" and
    http://schemas.oracle.com/extension
    2. Let's say I do not know in advance what specific fault to catch. I add a catchAll inside my scope. When catchAll triggers, I want to get the detail faultmessages of whatever fault caused the catchAll.
    3. I want to use a message type from the RuntimeFault.wsdl in my project. Should I copy over the wsdl file to my project folder ? If I do not copy over and import it from it's location (integration/orabpel/system/xmllib), the console is failing runtime when I try to render the input page.
    How can I do that ?
    Thanks
    Arindam

    You can find the standard faults from the BPELspec
    1.1.
    In 10.1.2.0.2 (the latest released version), youcan
    use some system xpath functions to extract thefault
    information in <catchAll> block:
    getFaultAsString( ) returns String
    Or
    getFaultName( ) returns QName as fault name.Hi Muruga,
    Thanks for your reply.
    Can you please also let me know :
    1. what's the signature of these methods ?
    2. I have 10.1.2.0.2 local version. However under
    catchall -> assign -> xpath expression builder, I do
    not see these 2 functions.
    Can you please help.
    ThanksHi Muruga,
    I tried doing the following :
    <faultHandlers>
    <catch faultName="bpelx:bindingFault" faultVariable="bindingFaultVar">
    <assign name="assignBindingFault">
    <copy>
    <from expression="concat(bpws:getVariableData('bindingFaultVar','code'),bpws:getVariableData('bindingFaultVar','summary'),bpws:getVariableData('bindingFaultVar','detail'))"/>
    <to variable="outputVariable" part="payload" query="/ns1:TransmissionAck/ns1:StackTrace"/>
    </copy>
    </assign>
    </catch>
    <catchAll>
    <assign name="assignCatchAll">
    <copy>
    <from expression=""Unexpected Error in the BPEL Process""/>
    <to variable="outputVariable" part="payload" query="/ns1:TransmissionAck/ns1:TransmissionText"/>
    </copy>
    <copy>
    <from expression="bpws:getFaultAsString()"/>
    <to variable="outputVariable" part="payload" query="/ns1:TransmissionAck/ns1:StackTrace"/>
    </copy>
    </assign>
    </catchAll>
    </faultHandlers>
    I got the following runtime error when an actual catchAll was caught :
    [2006/02/24 17:09:36] "{http://schemas.oracle.com/bpel/extension}remoteFault" has been thrown. less
    <remoteFault>
    <part name="code" >
    <code>17410</code>
    </part>
    <part name="summary" >
    <summary>file:/C:/OraBPELPM_2/integration/orabpel/domains/default/tmp/.bpel_WshOtmSyncInboundShipment_19.0.jar/WSH_OTM_INBOUND_GRP.wsdl [ WSH_OTM_INBOUND_GRP_ptt::WSH_OTM_INBOUND_GRP(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'WSH_OTM_INBOUND_GRP' failed due to: Error while converting to a Java array object. Unable to convert the XSD element P_INT_TRIP_INFO whose collection type is WSH_OTM_TRIP_TAB. Cause: java.sql.SQLException: No more data to read from socket ; nested exception is: ORABPEL-11801 Error while converting to a Java array object. Unable to convert the XSD element P_INT_TRIP_INFO whose collection type is WSH_OTM_TRIP_TAB. Cause: java.sql.SQLException: No more data to read from socket Check to ensure that the XML data describing the collection matches the definition of the array in the XSD. Contact oracle support if error is not fixable. </summary>
    </part>
    <part name="detail" >
    <detail>No more data to read from socket</detail>
    </part>
    </remoteFault>
    WS-T Complete
    WS-T Close
    WS-T Fault
    WS-T Cancel
    WS-T Compensate
    </sequence>
    <catchAll>
    assignCatchAll (faulted)
    [2006/02/24 17:09:36] Updated variable "outputVariable" less
    <outputVariable>
    <part name="payload" >
    <TransmissionAck>
    <EchoedTransmissionHeader>
    <TransmissionHeader>
    <UserName/>
    <Password/>
    </TransmissionHeader>
    </EchoedTransmissionHeader>
    <TransmissionAckStatus/>
    <TransmissionAckReason/>
    <StackTrace/>
    <TransmissionText>Unexpected Error in the BPEL Process</TransmissionText>
    </TransmissionAck>
    </part>
    </outputVariable>
    [2006/02/24 17:09:37] "XPathException" has been thrown. less
    XPath expression failed to execute.
    Error while processing xpath expression, the expression is "bpws:getFaultAsString()", the reason is function "bpws:getFaultAsString" not registered.
    Please verify the xpath query.
    </catchAll>
    WS-T Complete
    WS-T Close
    WS-T Fault
    WS-T Cancel
    WS-T Compensate
    <scope>
    WS-T Complete
    WS-T Close
    WS-T Fault
    WS-T Cancel
    WS-T Compensate
    </sequence>
    [2006/02/24 17:09:37] "XPathException" has not been caught by a catch block.
    [2006/02/24 17:09:37] BPEL process instance "4503" cancelled
    Can you please help.
    Thanks

  • Simple Error Handling Question

    I know that in general, when you are handling an error, you can either pass the back by adding a throws declaration to the method in question, or surround with try/catch and handle the error.
    What do you do if you want the error to force the application to stop? Just send a simple output message and then stop.
    Thx,
    hqd

    What do you do if you want the error to force the
    application to stop? Just send a simple output
    message and then stop.You should stop wanting that. If the code in method X
    encounters an error it can't deal with, it should
    throw that error to whoever calls it. It is the
    responsibility of the caller to decide what to do,
    not the responsibility of method X.But the buck has to stop somewhere. Are you saying that only the main method should ever stop a program?
    Maybe this is one of the gaps in my understanding of good overall design, but it seems perfectly valid to me to have certain methods that, when they error, I know I always want my application to stop. Passing it along up the chain might involve adding a whole bunch of throws declarations.... why... just to say we have no methods that stop the application. Say this piece of code is not longer used in the spot that throws it's possible error up the chain.... now you have to remove all those throws.... isn't this ripple effect on our code bad design?
    What am I missing?
    Thanks,
    hqd

  • Project Validaation error, no question marks/exclamation point, whats wrong

    I've read the forum recommendations on addressing this error to no avail. I cant burn. I was prompted for project validation error. Checked DVD map but no question marks/exclamation points. I checked all chapter markers on iMovie and they were all correct. Everything on DVD map looks correct. Tried people's suggestion of saving as Disc Image or even as Video-TS but got the same error message on project validation. I've tried and retried for several hrs already but cant figure out what could be wrong.
    I am using iMovie HD and iDVD 08. Dragged movie into iDVD project. Have done similar projects before without problem.
    Help pls. This is so frustrating after working many hours on iDVD project.

    Yes filled all the image drop zones, no extra buttons, previewed everything in iDVD map and all ok. Used a 6.0 theme in one menu, and a 5.0 or old theme in a submenu. Have done that too before without any problem.
    How can I check if there is an extra unused "holder"? there are no blank buttons that I see.
    thanks

  • Error coding unsolve

    please help me i take whole day try to solve the problem, but the problem still cannot solve. the error come out is:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 6 in the jsp file: /send/send.jsp
    Generated servlet error:
    The method getparameter(String) is undefined for the type HttpServletRequest
    An error occurred at line: 6 in the jsp file: /send/send.jsp
    Generated servlet error:
    The method getparameter(String) is undefined for the type HttpServletRequest
    An error occurred at line: 6 in the jsp file: /send/send.jsp
    Generated servlet error:
    The method getparameter(String) is undefined for the type HttpServletRequest
    An error occurred at line: 6 in the jsp file: /send/send.jsp
    Generated servlet error:
    The method getparameter(String) is undefined for the type HttpServletRequest
    An error occurred at line: 6 in the jsp file: /send/send.jsp
    Generated servlet error:
    The method getparameter(String) is undefined for the type HttpServletRequest
    An error occurred at line: 6 in the jsp file: /send/send.jsp
    Generated servlet error:
    The method getparameter(String) is undefined for the type HttpServletRequest
    An error occurred at line: 6 in the jsp file: /send/send.jsp
    Generated servlet error:
    The method getparameter(String) is undefined for the type HttpServletRequest
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:409)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    i'm oledi put my bean file into the WEB-INF classes/common folder and my Bean CODE is:
    package common;
    import java.util.*;
    import java.io.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    public class sendMail{
         public void sending(String SMTPServer,
    String Sender,
    String Recipient,
    String CcRecipient,
    String BccRecipient,
    String Subject,
    String Body,
    String Attachments){
         // Get system properties
              Properties props = System.getProperties();
         // Setup mail server
              props.put("mail.smtp.host", SMTPServer);
         // Get session
              Session session = Session.getDefaultInstance(props, null);
         // Define message
              MimeMessage message = new MimeMessage(session);
         try
              message.setFrom(new InternetAddress(Sender));
              InternetAddress[] TheAddresses = InternetAddress.parse(Recipient);
              message.addRecipients(Message.RecipientType.TO,TheAddresses);
              if (null != CcRecipient) {
              InternetAddress[] TheAddresses = InternetAddress.parse(CcRecipient);
              message.addRecipients(Message.RecipientType.CC,TheAddresses);
              if (null != BccRecipient) {
              InternetAddress[] TheAddresses = InternetAddress.parse(BccRecipient);
              message.addRecipients(Message.RecipientType.BCC,TheAddresses);
              message.setSubject(Subject);
              // Create the Multipart to be added the parts to
    Multipart mp = new MimeMultipart();
    // Create and fill the first message part
    MimeBodyPart mbp = new MimeBodyPart();
    mbp.setText(Body);
    // Attach the part to the multipart;
    mp.addBodyPart(mbp);
    // Attach the files to the message
    if (null != Attachments) {
    int StartIndex = 0, PosIndex = 0;
    while (-1 != (PosIndex = Attachments.indexOf("///",StartIndex))) {
    // Create and fill other message parts;
    MimeBodyPart mbp = new MimeBodyPart();
    FileDataSource fds =
    new FileDataSource(Attachments.substring(StartIndex,PosIndex));
    mbp.setDataHandler(new DataHandler(fds));
    mbp.setFileName(fds.getName());
    mp.addBodyPart(mbp);
    PosIndex += 3;
    StartIndex = PosIndex;
    // Last, or only, attachment file;
    if (StartIndex < Attachments.length()) {
    MimeBodyPart mbp = new MimeBodyPart();
    FileDataSource fds = new FileDataSource(Attachments.substring(StartIndex));
    mbp.setDataHandler(new DataHandler(fds));
    mbp.setFileName(fds.getName());
    mp.addBodyPart(mbp);
    // Add the Multipart to the message
    message.setContent(mp);
    // Set the Date: header
    message.setSentDate(new Date());
    // Send the message;
    Transport.send(message);
         catch (MessagingException e)
              System.err.println("Caught Exception: "
    + e.getMessage());
    my JSP coding:
    <%@page import="java.sql.*,java.text.*,java.util.*,java.util.Vector,javax.mail.*" %>
    <%@page import="java.sql.*,java.lang.Object,java.lang.String,java.lang.Integer,java.util.*,java.text.SimpleDateFormat, java.text.*"%>
    <jsp:useBean id="send" type="common.sendMail"/>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%      String to=request.getparameter("toadd");
         String bcc=request.getparameter("bccadd");
         String cc=request.getparameter("ccadd");
         String subject=request.getparameter("sub");
         String file=request.getparameter("datafile");
         String content=request.getparameter("content");
         String host=request.getparameter("host");
         String sender="[email protected]";
    %>
    <html>
    <head>
         <title>sending mail</title>
    </head>
    <body>
    <%
    send.sending(host,sender,to,cc,bcc,subject,content,file);
    %>
    </body>
    </html>
    Any expert in this field please give me the way to go out from the problem.thank you
    regards,
    albert

    what i want this program do is:
    1. i have the form page where needed the user to type in address and so on like the send mail that will call the second jsp page that show here.
    2. the jsp page will call the bean function then send out the message
    is it my coding have problem?? is yes please tell me where the problem is and how to solve it. thank you.
    regards,
    albert

  • Booting Error: Flashing Question Mark

    I was working with iWeb today and then it beachballed like crazy... So I force quit but then that beachballed too. So I just forced a shut down. Let it rest. Turned it back on and then it came up in gray screen. Then with the OS 9 smiley logo and the folder with a flashing question mark. I followed all those steps, did the disk utility, it said it found an error with the Tree Nodes so it repaired them fine. Then I tried to restart, still nothing. I tried the Startup Manager, all it found was the CD, no hard drive... I tried PRAM. I tried it all. I am very annoyed and now frustrated that all my work on iWeb and all my files are going to have to go bye bye if I have to do an Erase and Complete REinstall. Does anyone think that my computer can be "Target Mode" mounted on my other comp. and I can drag the important files over? Help!
    PS. even tried, lifting the keyboard latches and pressed the reset button.
    Nada...

    To save myself time, I'm going to try to answer both your recent posts in this single post:
    1. You wrote: "There are two hard drives on the left column of the Disk Utility... "If we're talking about your PowerBook herre, then I think you are confusing hard drives with volumes on hard drives. Let's clarify that first:
    In case you do not understand the difference between hard drives and volumes on hard drives, here's an example illustrating the difference (note that a similar example is shown as a screen shot in my previously cited "Resolving Disk, Permission, and Cache Corruption" FAQ):
    In the column on the left in Disk Utility, you might see something like this:<pre>38.2 GB IBM-DTLA-307045
    Macintosh HD</pre>The first line ("38.2 GB..." whatever) is the disk, the actual hard drive itself, aka the device.
    The second, indented line (Macintosh HD) would be your Mac OS X startup disk, aka your boot volume.
    Volumes — partitions on a disk — appear indented below the disk on which they reside in Disk Utility.
    In Disk Utility, you can select either a volume or a hard drive for verification or repair of either the disk or permissions. However, Repair Permissions can only be used on volumes on which Mac OS X is installed. If you select a drive (vs. a volume) and use Repair Disk on such, it will attempt to repair all volumes (partitions) on that drive.
    If your LaCie FireWire drive is not connected and what you are seeing is akin to<pre>xx.xx GB FUJITSU...
    No Name item you described</pre>Where the "No Name" item is indented and directly below the Fujitsu line, I suspect that No Name line should read "Macintosh HD" and, as a result of either directory corruption or disk damage, not even the name of the volume can be read.
    2. Now, as to the specific errors you are citing: the "Invalid B Tree error" will require "stronger medicine" than Disk Utility. See the "Disk Utility cannot repair the disk" section of my — again — previously cited "Resolving Disk, Permission, and Cache Corruption" FAQ.
    3. You wrote: "Will the Archive and Install erase my iWeb files, my iCal files, my TextEdit documents? I need those the most. "If you read my previously-cited "General advice on performing an Archive and Install" FAQ, then you would know that — assuming you follow the steps in the FAQ — that none of your personal data would be lost by performing an Archive and Install. I post links to my FAQs presuming you will read them thoroughly.
    However, if the Fujitsu hard drive is the only drive in the affected Mac — and if this problem is with your PowerBook you should only have one drive installed inside the computer —  then you cannot perform an Archive and Instal at this time as the directory on the drive is corrupted. The "Invalid B Tree" errors must to be fixed before you attempt to perform an Archive and Install on that drive. Furthermore, it is possible that the directory corruption could have damaged some of your personal files, but you won't know that until you repair the directory, if possible.
    4. Later you wrote: "I went to the Apple store at the local mall. The "genius" took a look at my Powerbook and told me that my Logic board has malfunctioned and that it would cost me $400 to fix it."That's entirely possible given the errors you described and the fact that the drive could not be seen even in Target Disk mode. You may have a combination of problems, i.e. bad logic board which also lead to the corrupted drive directory. If the logic board problem is intermittent, one pass of the Apple Hardware Test might not catch it. Running the hardware test in Loop Mode overnight, again as stated in my previously-cited "Apple Hardware Test" FAQ is a good way to check for intermittent problems.
    I don't regard the price you were quoted as unreasonable for a new logic board, and certainly cheaper than a new Mac. You may be able to shop around for a lower price, but then there's the time vs. money tradeoff in doing so.
    I can neither confirm nor deny as to if the advice given at the "Genius Bar" was correct: they were able to examine your computer, whereas I can only provide advise based on what you report.
    5. Then you wrote: "is there a way for me to take out my hard drive and put it in a G5 or another computer or ext. HD that way I can transfer all my data? Any suggestions?"Yes. You will probably find instructions for removing the hard drive on the Apple Do-It-Yourself Parts & Service page. You will need to know the specific model of your PB G4 15-Inch Titanium. The AppleCare Knowledge Base document "PowerBook G4 Computers: How to Identify Different Models" can help you identify the specific model of PowerBook G4 you have. Knowing the processor type in your PowerBook would also help.
    You'd also need a FireWire enclosure for the type of drive in your PowerBook, again assuming that's the computer in question here (you mentioned a G5). AFAIK, most laptops have 2.5" hard drives vs. the 3.5" drives normally found in desktops: those are the dimensions of the platters within the drive, not the drive itself. Based on what I read here, which I believe would apply to your Mac, you'd probably need a FireWire enclosure for a 2.5" drive such as shown here. You should confirm that before purchasing an enclosure: I don't have a PowerBook.
    I've bought both FireWire drives and enclosures from OWC and have always been pleased with their products. Assuming a 2.5-inch enclosure is correct, I'd recommend one of their "On The Go" products.
    However, you're still going to be faced with the issue of attempting to repair the directory on the drive, as discussed in point 2 above. If the directory cannot be repaired, then you are going to have to resort to data recovery options, as discussed in my "Data Recovery" FAQ.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Simple Java Coding Question

    I know this is a simple question, but I can't search for the answer to this because it involves syntax that Google and the like don't seem to search for..
    I am trying to figure out some Java code that I have found. I would like to know what:
    a[--i] and a[++j] mean.
    My first thought was that they meant to look at the position in the array one less (or more) than i (j). But that doesn't seem to be the case. A is an array of Strings, if that matters...
    Thanks for you help.

    muiajc wrote:
    I know this is a simple question, but I can't search for the answer to this because it involves syntax that Google and the like don't seem to search for..
    I am trying to figure out some Java code that I have found. I would like to know what:
    a[--i] and a[++j] mean.
    It mean increase/decrease the int i/j by 1. This is done before it gets you the value of a[]. for example if i=5 and you said a[--i] it is really a[4] and i is now equal to 4;

  • Coding Question Because of Compiling Issues

    Hi there, I need help with some code, here it is.
    import java.util.*;
    import java.text.*;
    public class InvestCalc {
         //declaration of instance variables
         private double interest, principal;
         //default constructor, sets interest and principal to zero
         public InvestCalc() {
              interest = 0.0;
              principal = 0.0;
         //overloaded constructor
         public InvestCalc( double startInterest, double startPrincipal) {
              interest = startInterest;
              principal = startPrincipal;
         //accessor methods for instance variables
         public double getRate() {
              return interest;
         public double getPrincipal() {
              return principal;
         //mutator methods
         public void setRate(double newInterest) {
              interest = newInterest;
         public void setPrincipal(double newPrincipal) {
              principal = newPrincipal;
         //String toString() method
         public String toString() {
              return "Interest Rate: " + percent.format(interest) + ", Principal: " + DOLLAR_FORMAT.format(principal);     
         //futureValue(int year) method
         public double futureValue(int year) {
              double futureValue = Math.pow((1 + interest), year)*principal;
              return futureValue;
         //public static final class variables
         public static final int shortTerm = 5;
         public static final int middleTerm = 10;
         public static final int longTerm = 20;
         //public void display Table() method
         public void displayTable() {
              System.out.println("Year" + "\t" + "Interest Rate" + "\t\t" + "Principal" + "\t\t" + "Future Value");
              System.out.println(shortTerm + "\t" + percent.format(interest) + "\t\t\t" + DOLLAR_FORMAT.format(principal) + "\t\t" + DOLLAR_FORMAT.format(futureValue(shortTerm)));
              System.out.println(middleTerm + "\t" + percent.format(interest) + "\t\t\t" + DOLLAR_FORMAT.format(principal) + "\t\t" + DOLLAR_FORMAT.format(futureValue(middleTerm)));
              System.out.println(longTerm + "\t" + percent.format(interest) + "\t\t\t" + DOLLAR_FORMAT.format(principal) + "\t\t" + DOLLAR_FORMAT.format(futureValue(longTerm)));
         //formatting section
         public static final NumberFormat DOLLAR_FORMAT = NumberFormat.getCurrencyInstance();
         public static final DecimalFormat percent = new DecimalFormat("##0.00%");
    import java.util.*;
    public class InvestCalcApp {
          * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              //declare Scanner class and interest, principal vars
              Scanner input = new Scanner(System.in);          
              double interest, principal;     //vars for the interest rate and initial investment
              //instantiate a default object of the InvestCalc class
              InvestCalc value1 = new InvestCalc();
              System.out.println("Default InvestCalc Object");
              System.out.println(value1.toString()+ "\n");
              //query for interest and principal
              System.out.print("Enter an interest rate in decimal format: ");
              interest = input.nextDouble();
              System.out.print("Enter the initial investment value: ");
              principal = input.nextDouble();
              //change object and output
              value1.setRate(interest);
              value1.setPrincipal(principal);
              System.out.println("Updated InvestCalc Object");
              System.out.println(value1.toString());
              //test the futureValue method and the DOLLAR_FORMAT static class variable
              System.out.println("Value after 1 year " + InvestCalc.DOLLAR_FORMAT.format(value1.futureValue(1)) + "\n");     
              value1.displayTable();     
              //query for another interest and principal
              System.out.print("Enter another interest rate in decimal format: ");
              interest = input.nextDouble();
              System.out.print("Enter another initial investment value: ");
              principal = input.nextDouble();
              //instantiate an object of the InvestCalc class
              InvestCalc value2 = new InvestCalc(interest, principal);
              System.out.println("Non-Default InvestCalc Object");
              System.out.println(value2.toString()+ "\n");
              value2.displayTable();
    }When I compile InvestCalc.java it compiles; however, when I compile InvestCalcApp.java I receive 5 errors:
    InvestCalcApp.java:15: cannot find symbol
    symbol : class InvestCalc
    location: class InvestCalcApp
                     InvestCalc value1 = new InvestCalc();
    InvestCalcApp.java:15: cannot find symbol
    symbol : class InvestCalc
    location: class InvestCalcApp
                     InvestCalc value1 = new InvestCalc();
    InvestCalcApp.java:32: package InvestCalc does not exist
                                  System.out.println("Value after 1 year " + InvestCalc.DOLLAR_FORMAT.format(value1.futureValue(1)) + "\n");
    InvestCalcApp.java:42: cannot find symbol
    symbol : class InvestCalc
    location: class InvestCalcApp
                     InvestCalc value2 = new InvestCalc(interest, principal);
    InvestCalcApp.java:42: cannot find symbol
    symbol : class InvestCalc
    location: class InvestCalcApp
                     InvestCalc value2 = new InvestCalc(interest, principal);Sorry if that's a lot of reading, but I need help, I'm new at this and not quite sure what those errors mean. Thanks

    First of all make sure that class file for InvestCalc is in same directory, when you try to compile the second file.
    This will take away all the errors. Thats the primary issue here :
    you dont have files in the same place.

Maybe you are looking for

  • MacMini Server + TimeCapsule + Box (ADSL modem)

    Hi, I need help... I am creating my compagny and I need to configure a little server in my house. I want to use : Wiki, FTP, iCal Server, AdressBook... etc for my coworker outside my house and the lan. I want to access from outside with a domain name

  • FI_SL Balance Sheet inconsistency

    Hi, we have a "Z" report created in report painter for Special Purpose Ledger Balance Sheet. The problem is that sometimes when we run the report the Balance Sheet tallies but sometimes it does not. this is happeening very frequently. we are running

  • Cannot connect to the DTR

    I have made an install of JDI according to the installation guides After the implementation of the JDI a try to create an DTR client in Eclipse but in the DTR console in Eclipse a get following message: Ping on server http://localhost:50000/dtr/ retu

  • Best way to delete data before sale of iMac

    I have created a new user with Admin privileges but I'm not sure where to go from there. I 'think' I have to delete all other accounts on the machine? But what about my data? Can it still be accessed? Should I run a utility to get rid of the current

  • Er geht nicht mehr an

    getsern abend ist mein ipod ausgegangen, und er geht einfach nich mehr an. ich hab ihn am laptop und am adapter mit zwei verschiedenen kabeln jeweils eine stunde aufgeladen, aber er geht nicht mehr an. was soll ich machen, oder hatte jemand sconmal s