Trying to interpret error message...

Can anyone help me make some sence of this message:
StorageBusiness.java:49: cannot find symbol
symbol : method add(java.lang.Object)
location: class java.util.ArrayList<Customer>
return getCustomer().add(inCustomer);
_______________^_________________
It's obviously expecting something other than what I have.
Thank you

of course ....you need to add . Other thing is from your code , it seems that you have deined an arraylist of customers. if you want to add it ot the arraylist then , you can add it to Arraylist directly because add is pre-defiend method of ArrayList . But in that case you should add object to List not to the customer oject. For example if you ahve
ArrayList<Customer> a1=new ArrayList();
then you can a1.add(Obj); directly if Obj is of type Customer. I hope you need this kind of code

Similar Messages

  • Getting error message when trying to display error messages on a ProfilePage

    Hi All,
    I'm getting following error message when trying to display error on a Profile page.
    On page i'm seeing this:
         org.apache.jasper.JasperException: java.lang.IllegalStateException: getOutputStream() has already been called for this response
              org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:515)
              org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:405)
    In condole, i'm seeing this:
         18:23:00,206 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
              java.lang.IllegalStateException: getOutputStream() has already been called for this response
                 at org.apache.catalina.connector.Response.getWriter(Response.java:621)
                 at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
    Please let me know what could be the reason.
    Thanks,
    Vishnu

    HI David And Nitin,
    Here is the code using which i'm trying to display the error messages on registration page, but this code fragment is outside registration form will that cause any problem?
    <dsp:droplet name="Switch">
      <dsp:param name="value" bean="ProfileFormHandler.formError"/>
      <dsp:oparam name="true">
      <table>
      <dsp:droplet name="ProfileErrorMessageForEach">
      <dsp:param name="exceptions" bean="ProfileFormHandler.formExceptions"/>
      <dsp:oparam name="output">
      <tr style="color: red">
      <td><dsp:valueof param="message"></dsp:valueof></td>
      </tr>
      </dsp:oparam>
      </dsp:droplet>
      </table>
      </dsp:oparam>
      </dsp:droplet>
    Thanks,
    Vishnu

  • Trying to produce error message

    Hi
    Im fairly new to Java programming and am in the middle of completing a small assignment.
    I'm trying to get the program to produce an error message after it asks a user to "Press 'Q' to Quit or 'P' to Print". Although the prog doesn't carry on if any other keys are pressed it doesnt actually produce an error message but thats what i want it to do.
    Can someone please help!
    public void display(){
      String printQuitResponse;
      int printBook;
      try {
       do {
        int bookChoice = 0;
        System.out.println("\nPress 'Q' to Quit or 'P' to Print details of a book.");
        printQuitResponse = reader.readLine();
          if (printQuitResponse.equalsIgnoreCase("P")) {
            System.out.println(
                "\nWhich book would you like to see the details of (1, 2, 3)");
            try {
              bookChoice = Integer.parseInt(reader.readLine());
            } catch (IOException ioe) {
            } catch (NumberFormatException nfe) {
              System.out.println("Invalid entry, please try again.");
             if (bookChoice == 1 || bookChoice == 2 || bookChoice == 3){
               System.out.println("\nTitle: " + title[bookChoice-1] +
                                  "\nAuthor: " + author[bookChoice-1] +
                                  "\nShelf Location: " + sLocation[bookChoice-1]);
               if (availability[bookChoice-1] == true) {
                 System.out.println("Available: Yes");
               else if (availability[bookChoice-1] == false) {
                System.out.println("Available: No");
       }while (!printQuitResponse.equalsIgnoreCase("Q"));
       catch (IOException ioe) {
          System.out.println("Invalid entry, please try again");
    [\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    printQuitResponse = reader.readLine();you are waiting for any key followed by a "\r" | "\n" | "\r\n"
    i.e. your program never leaves the readLine as long as the user
    does not type <AnyKey><ENTER>

  • My iPod won't sync to iTunes because my computer is not authorized. Tried authorizing and error message pops up?

    Just noticed an error when syncing my iPod touch to iTunes...
    Tried authorising and this message pops up...
    After that, I tried to sync again and the same message pops up (1st one)...
    Do you know any ways to fix/resolve this issue?

    Try DFU mode and then restore               
      How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    iTunes: Restoring iOS software
    - New cable and different USB port
    - Run this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests
    Also see:
    iPod not recognised by windows iTunes
    Troubleshooting issues with iTunes for Windows updates
    - Try on another computer to help determine if computer or iPod problem

  • Can't interpret error message from applescript

    I've got a simple little applescript that is supposed to trash the currently playing song in iTunes (see below).
    It used to work just fine.
    Now i get this error message:
    The track could not be deleted. iTunes got an error: some track of current playlist whose database ID of it = 3805 doesn't understand the delete message.
    I have no idea what could have caused this.
    Any ideas? hints? suggestions?
    Best regards,
    Gabriel.
    --- the applescript:
    -- Original is from http://www.dougscripts.com/itunes/
    -- Modified by me, GZ, 2006
    -- Deletes currently played track from the current playlist and from the library.
    -- Also, moves the file to the Trash.
    -- Finally, starts playing the next track.
    -- Displays info message very briefly if iTunes is front window.
    -- Doesn't do anything, if no track is playing.
    -- Put this script into ~/Library/iTunes/Scripts.
    -- Optionally, assign keyboard shortcut with:
    -- System Preferences -> Keyboard -> Keyboard Shortcuts -> "+" at bottom of list
    -- then select iTunes, type the name of this script exactly as it appears in iTunes' Script menu,
    -- then type the key combo for it.
    global addenda
    set addenda to ""
    tell application "iTunes"
    if player state is not playing then
    set addenda to "No track is playing."
    else
    set ofi to fixed indexing
    set fixed indexing to true
    try
    set dbid to database ID of current track
    set floc to (get location of current track)
    -- goto next track before deleting current track
    next track
    -- set trackn to (get track of current playlist whose database ID is dbid)
    -- display dialog "trackn = " & (trackn as string) buttons {"OK"} default button 1
    delete (some track of current playlist whose database ID is dbid)
    delete (some track of library playlist 1 whose database ID is dbid)
    set addenda to "removed"
    if floc is not missing value then
    set my addenda to "trashed"
    my deletethefile(floc)
    end if
    on error errmesg
    set addenda to "The track could not be deleted." & return & errmesg
    end try
    set fixed indexing to ofi
    end if
    -- if frontmost then
    if addenda = "removed" or addenda = "trashed" then
    set showtime to 2
    else
    set showtime to 5
    end if
    if addenda = "removed" or addenda = "trashed" then
    display dialog "Done. The track has been " & addenda & "." buttons {"Thanks"} default button 1 with icon 1 giving up after showtime
    else
    display dialog addenda buttons {"OK"} default button 1 with icon 1 giving up after showtime
    do shell script "logger -i -t TrashCurrentTrack " & quoted form of addenda
    end if
    end tell
    to deletethefile(floc)
    try
    tell application "Finder" to delete floc
    on error
    set addenda to "Done. However, the file could not be moved to the Trash."
    try
    tell application "Finder" to open container of floc
    end try
    end try
    end deletethefile

    delete (some track of current playlist whose
    database ID is dbid)
    If iTunes is NOT playing , current playlist has no
    i did check for iTunes not playing right at the beginning of my script.
    However, i think it must have something to do with the playlist that is currently on. If the track is selected in the "recently added" playlist or in "library" then i get the error essage. If it is selected in the playlist "podcasts", everything is fine.
    I also did this in my script,
    return (some track of library playlist 1 whose database ID is dbid)
    and this does actually exhibit a problem, because i get as output "" !
    How is that?
    Best regards,
    Gabriel.

  • When trying to install error message says not a win 32 application

    downloaded ff4 from ff website and previously ff4 beta from ff and cnet same error message stating not a win32 application

    Have you had a look at this troubleshooting page? iTunes: Windows reports that iTunesSetup.exe is not a "valid Win32 application"

  • Unable to interpret error message

    I am unable to make PDF files from my CS3 program to Acrobat Distiller 8. There is an error message I don't understand and am unable to correct the issue. It works if I send it to my coworkers Distiller, but our settings seem to be the same. I have researched Help and User references, but don't have an idea which program is causing the issue. Please help!

    I work in InDesign (CS3 version) and go through file; print; my preset is
    custom, (printer is PostScript File, PPD is Adobe PDF 8.0) and then I
    usually open my PDF in Acrobat Distiller 8.0. It goes through the regular
    process (a bit slow), but then flushes rest of job, the error is as follows:
    %%[ Error: typecheck; OffendingCommand: cshow ]%%
    Stack:
    /T
    {pop pop ct_str1 exch 0 exch put ct_str1 show
    {_ct_na cti get} stopped {pop pop} {_ct_x cty
    moveto 0 rmoveto} ifelse /_ct_i cti 1 add def
    currentpoint /_ct_y exch def /_ct_x exch def}
    %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
    %%[ Warning: PostScript error. No PDF file produced. ] %%
    I am thinking it is font related, but am not sure which one as none of my
    Design files will PDF. Preflight shows no issues. I ensure each of my files
    goes to my watched folder...so I am really confused.

  • Lost itunes on pc after an update. Message said iTunes not installed.. Please reinstall. Tried to and error message "app failed because MSVCR80,dll was not found. Tried several times...same response. Finally uninstalled itunes and tried to reinstall . No

    Lost iTunes on pc after an update (Neighbor has same problem) Tried to open and message said " iTunes not installed correctly,Please reinstall itunes" . Tried to do so and same message with another message"application failed because MSVCR890.dll was not found.Re-installing may fix this problem" Tried several times and same message. Finally uninstalled itunes from computer and tried unsucessfully several times to re-install...Same messages as above appear when install looks like it's done......Help !

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • Trying to update "error message 20"

    I am getting an error message
    There was an error in the App Store. Please try again later. (20)
    when updating through the app store

    Sign out of the App Store and sign back in. Try to update again.

  • Interpreting error message; insight into data problems?

    I own a 8310 on AT&T running OS 4.5.011.  I have been having intermittent data problems that have gotten worse over the last week; e.g., the connection box autonomously becomes unchecked, the browser cannot find a connection, data randomly goes form GSM to edge and back, Vlingo cannot find its server.
    AT&T Service suggested a "Master Reset" and I have backed up my data with BB Desktop Mgr. as a first step.  I got the following error message:
    "Uncaught Exception:Application net_rim_bb_app(53) is not responding; process terminated"
    Please help me 1) translate and 2) does that suggest a source of my problems?
    Regards
    Rob 

    You need to enclose carData[0],carData[1] etc in single quotes, if they are String(s). Otherwise you can use PreparedStatement.
    PreparedStatement ps = con.prepareStatement("Insert into car values(22 questions marks)");
    ps.setInt(1,temp);
    for(int i=0;i<21;i++) ps.setString(i+2,carData[ i ]);
    int count=ps.executeUpdate();
    Sudha

  • Trying to update: error message

    I was attempting to update today and somewhere in the process I had to disconnect my Iphone because it wouldn't sync. Now when I try to finish the process I keep getting the message "An unknown error occurred(6) what should I do?
    Thanks

    BTW each time I connect it to the PC it says "Iphone in recovery mode. You must restore this iPhone before it can be used with iTunes.

  • My iphone 4 gsm stuck in recovery loop and I get error message when trying to recover thru itunes, error message 1602. help!!!!

    I removed the battery in my att iphone 4 (gsm) osi 6.2? when i turned phone on i got pug into itunes screen. I did that and it said phone detected in  recovery mode click update recover butten so i did. everything started liek t was working, i tunes showes verifing with apple but never make it past that point. itunes gives error message 1602. tried fixes, got error 22 tried fixes got error 11, tried fixesand got error message 1602. i then got advice from friend who wrks with iphones. told me get inrecovery, turn off. take out battery for  min at least and put back together nad then try. i could not turn it on so plugged into wll charger and screen showed osi 6 and slide bar. slid bar and asked for my pw. put in and low and behold icon on screen telling me to plug into itunes. Did that and got error messge 1602 again and itunes neer went past verifing with apple.

    Error 1600, 1601, 1602
    Follow the steps listed above for Error 1604. This error may also be resolved by disabling, deactivating, or uninstalling third-party security, antivirus, and firewall software. See steps in this article for details on troubleshooting security software.
    Error 1604
    This error is often related to USB timing. Try changing USB ports, using a different dock connector to USB cable, and other available USB troubleshooting steps (troubleshooting USB connections. If you are using a dock, bypass it and connect directly to the white Apple USB dock connector cable. If the issue persists on a known-good computer, the device may need service.
    If the issue is not resolved by USB isolation troubleshooting, and another computer is not available, try these steps to resolve the issue:
    Connect the device to iTunes, confirm that the device is in Recovery Mode. If it's not in Recovery Mode, put it into Recovery Mode.
    Restore and wait for the error.
    When prompted, click OK.
    Close and reopen iTunes while the device remains connected.
    The device should now be recognized in Recovery Mode again.
    Try to restore again.
    If the steps above do not resolve the issue, try restoring using a known-good USB cable, computer, and network connection.

  • How to raise error message in MB_DOCUMENT_BEFORE_UPDATE?

    Dear Friends,
    I have a situation like, need to thro an error Message inside the BADI: MB_DOCUMENT_BEFORE_UPDATE.
    Based on some validations on XMSEG parameter inside the above BADI, I am raising an Error Message as usual.
    Message E208(00) with 'Posting error..'.
    When I raise the above error, the system ends with Short Dump.
    Could anyone please let me know, how to handle the above?
    Thanks in advance,
    Ramani N

    >
    Gaurav Gupta wrote:
    > Hi
    > I would like to suggest you to check whether you have used MESSAGE-ID addition in your REPORT statement or not. We are supposed to use it whenever we are trying to display error messages like *Message E208(00) with 'Posting error..' *.
    > Hope this solves your Problem.
    >
    > Regards
    > Gaurav.
    Hi Gaurav,
    My query is about BADI.  Hence, we can not use REPORT statement.
    Rgds,
    Ramani N

  • Need help in displaying error message on the same screen

    Hi Experts,
    I have written a report which gets called from IW52 by clicking one of the action items. Now in my report when I am trying display an error message it is getting displayed at the bottom of a blank screen. My requirement is to display it at the bottom of the IW52 screen, so that user can rectify the error.
    Please help.
    Regards,
    Sambaran Ray.

    Hi,
    Probably you need to find a way to enhance the standard code.
    But make one thing sure that the code (included bu you) gets fired only when that specific report is being executed. Else it may harm the standard functionality.
    Hope this helps you.
    Regards,
    Tarun

  • Display error message in WEBUI using BADI - ORDER_SAVE-CHECK_BEFORE_SAVE

    Hi,
    I am trying to display error message using BADI - ORDER_SAVE (Method-CHECK_BEFORE_SAVE) based on certain conditions when the document is saved from WEB UI.
    I have written it like below:
    If (some conditions).
    Message E000 with 'Error in SAVE' RAISING DO_NOT_SAVE.
    endif.
    I mentioned my message class everything in class, and it is fine.
    However, it is not displaying my error message. It is displaying standard information message saying "Document Could not be saved'.
    Could you please help me out, how can I display my custom message.
    Thanks,
    Sandeep

    Hi Sandeep,
    U can use FM to raise a message from order save badi.
    Inside the if condition, u can raise do_not_save.
    If (some conditions)
          CALL FUNCTION 'CRM_MESSAGE_COLLECT'
            EXPORTING
              iv_caller_name = 'ORDERADM_H'
              iv_ref_object  = iv_guid
              iv_ref_kind    = 'A'
              iv_msgno       = '000'
              iv_msgid       = 'zcrm'
              iv_msgty       = 'A'
              iv_msgv1       = c_text1
              iv_msgv2       = c_text2
              iv_msgv3       = c_text3
            EXCEPTIONS
              not_found      = 1
              appl_log_error = 2
              OTHERS         = 3.
          IF sy-subrc NE 0.
          ENDIF.
          RAISE do_not_save.
    ENDIF.

Maybe you are looking for

  • Ipod isnt recognized with new charger.

    i have a belkin ipod charger. it will charge my ipod touch (1st gen), but the ipod icon wil not appear in itunes, and i dont think my computer is even recognizing it, but it still charges. how can i get it to work?

  • Unit test with Dynamic Value Query

    Hi, I am planing a function which should return a table name for a given ROWID. The ROWID will be selected from a view. Now I am trying to setup a unit test which consists of Startup and Teardown Process as well as a Dynamic Value Query. During Start

  • Aperture 3.4 crashes on startup how do I downgrade?

    after upgrading to 3.4 (from 3.3.x) Aperture crashes on startup.  the install was done from the manual download from the apple site, since the app store does not recognize my pre appstore install. running 10.8.2 on a MacPro

  • JavaMenuBar ?? won't show up

    I have a programming assignment where I need to add a JMenuBar at the top with very basic functions File - Query - Help I believe all of my code is correct, but no menu bar shows up when I try to: frame.setJMenuBar(JMB); I've been looking on the net

  • Layout displayed by Dreamweaver not even close to Firefox

    As a long-time Dreamweaver user, back to Dreamweaver 3, I'd been used to the layout displayed by Dreamweaver being close to that displayed by browsers. With Dreamweaver 8, it's often not even close. Typical problems: - Vertical line spacing is differ