I need help with what I believe to by a syntax error.

The following snippet is from a class that extends AbstractTableModel.
dataSource is an ArrayList, containing instances of a class for which getDescription() is a valid method.
Line six is giving me an error. Maybe someone can tell me how to do this properly.
Aside from that, I do have more code to insert. I just want to get this part right before adding the rest.
@Override
public Object getValueAt(int rowIndex, int columnIndex) {
Object budgetDatum = null;
switch(columnIndex){
case 0:
budgetDatum = dataSource.get(rowIndex).getDescription();
return budgetDatum;
}

>
By line six, I am referring to the following, which is the sixth line of my code:
budgetDatum = dataSource.get(rowIndex).getDescription();
The method, "getDescription()", is not recognized as a valid method, which leads me to believe I am accessing the member of dataSource incorrectly.
>
You still aren't providing all of the information needed.
What type of object does 'dataSource.get' return?
You probably need to cast the object to the proper type and call 'getDescription on that type.
If it returns a BudgetDatum class object then cast it as that
BudgetDatum budgetDatum;
budgetDatum = ((BudgetDatum) dataSource.get(rowIndex)).getDescription();If you aren't using generics the 'get' method is probably just returning an Object.

Similar Messages

  • HOW CAN I SPEAK WITH A LIVE HUMAN? I need help with what I just purchased.

    I just bought something which is suppose to allow me to convert a PDF file on line to a word document and I do not know enough about computers to understand what you require me to do. Please help.
    Thank you,
    Paul

    Hi Paul,
    I would be happy to help you here. Please see Getting Started with ExportPDF | Adobe Community to information on converting your PDF files to Word format.
    And, if you'd rather, you can Contact Customer Care. Just click the blue Still Need Help button at the bottom of the page to find phone and chat options.
    Best,
    Sara

  • Please Help With : XVM-01003: [XPST0003]/LPX-00801: XQuery  Syntax error at

    Hi gurus,
    I need your help on using the XMLQuery function. We are FINALLY in the processing of migrating from 10g to 11gR2! Oracle says that we should replace extracValue with XMLQuery, so I am trying to do that but I am getting the errors below,
    XVM-01003: [XPST0003] Syntax error at (if I use a PL/SQL variable).
    LPX-00801: XQuery syntax error at (if I use the literals).
    I have read through many of the posts related to XMLQuery and its default element namespace, but I have no luck on that. I have an example that has this kind prefix (a part of the xml is posted here):
    <soap:Body>
    <soap:Fault xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Code>
    <soap:Value>soap:Sender</soap:Value>
    <soap:Subcode>
    <soap:Value>soap:InvalidMessage</soap:Value>
    </soap:Subcode>
    </soap:Code>
    <soap:Reason>
    <soap:Text xml:lang="en">UpdateCaseDetentionStatus does not apply to this case&apos;s type.</soap:Text>
    </soap:Reason>
    <soap:Node>CourtFileNumber</soap:Node>
    I need to get the Text inside the Reason node. No matter what I do with the default namespace (and if I don't declare one I also get an error), I get the following error:
    XMLQuery ('declare default element namespace s="http://www.w3.org/2003/05/soap-envelope" ; /s:Envelope/s:Body/s:Fault/s:Reason/s:Text'):
    LPX-00801: XQuery syntax error at 's'
    1 declare default element namespace s="http://www.w3.org/2003/05/soap-envelop
    - ^
    ORA-06512: at line 103
    XMLQuery('declare default element namespace xmlns:soap="http://www.w3.org/2003/05/soap-envelope" ; /soap:Envelope/soap:Body/soap:Fault/soap:Reason/soap:Text'):
    LPX-00801: XQuery syntax error at 'xmlns:soap'
    1 declare default element namespace xmlns:soap="http://www.w3.org/2003/05/soa
    - ^
    ORA-06512: at line 103
    Using the XMLTable function does not have any problems.
    What do I do wrong here? I could just use the XMLTable to replace all the extractValue(s) that I have, but I really want to learn how to make the XMLQuery correct. Please help!
    I just tried this and I got the same error:
    XMLQuery('declare default namespace s="http://www.w3.org/2003/05/soap-envelope" ; (::) $p/s:Envelope/s:Body/s:Fault/s:Reason/s:Text' passing p_XMLDoc as "p"
    Thank you.
    Ben
    Edited by: myora9i on Apr 22, 2011 1:42 PM

    Hi Ben,
    Can someone please explain to me when should I use the default key word and when I should not use it?If you declare a default namespace then all unqualified (= unprefixed) elements will be considered belonging to that namespace.
    If you declare a namespace with a prefix, you'll have to qualify each element in the XQuery.
    See below example based on your XML sample :
    DECLARE
      soap_doc xmltype := xmltype(
      '<soap:Body xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Fault>
    <soap:Code>
    <soap:Value>soap:Sender</soap:Value>
    <soap:Subcode>
    <soap:Value>soap:InvalidMessage</soap:Value>
    </soap:Subcode>
    </soap:Code>
    <soap:Reason>
    <soap:Text xml:lang="en">UpdateCaseDetentionStatus does not apply to this case''s type.</soap:Text>
    </soap:Reason>
    <soap:Node>CourtFileNumber</soap:Node>
    </soap:Fault>
    </soap:Body>'
      v_text  varchar2(100);
    BEGIN
      -- with a default namespace,
      -- no need to prefix each element :
      SELECT XMLCast(
        XMLQuery(
          'declare default element namespace "http://www.w3.org/2003/05/soap-envelope"; (::)
           /Body/Fault/Reason/Text'
          passing soap_doc
          returning content
        as varchar2(100)
      INTO v_text
      FROM dual;
      dbms_output.put_line(v_text);
      -- with a declared namespace prefix,
      -- each element must be qualified with the prefix :
      SELECT XMLCast(
        XMLQuery(
          'declare namespace s = "http://www.w3.org/2003/05/soap-envelope"; (::)
           /s:Body/s:Fault/s:Reason/s:Text'
          passing soap_doc
          returning content
        as varchar2(100)
      INTO v_text
      FROM dual;
      dbms_output.put_line(v_text);
    END;
    /

  • I need help with motion control. I am programming in Visual Basic. I will need help with what parts I need to purchase from NI, along with help on the code.

    I am using a Papst servo motor and I need to know where to start and what to purchase to get this motor to spin. I am using visual basic and in my program I calculate the direction and RPM's needed from the motor. It will spin anywhere from 1 to 10000 RPM's. It seems rather easy, but I have no idea on how to spin the motor at the specific RPM, and stop it with a command stop in the program. Please help.

    We really should know a little more about your intended uses for this system, but assuming you want to do relatively simple (or even not so simple!) motion, you'll need a few components...
    A motion controller, such as the PCI-7342, can take your VB commands and turn them into the commands needed to "run" the motor. Next you'll need a drive, such as the MID-7342. This includes the servo amplifier that actually powers the motor. It also has connections to "pass through" the encoder signals from the motor back to the motion controller.
    The above-named pieces assume one or two axes of motion. You'll also need a cable to connect the two (can't remember the model right now). You can use MAX to configure the motion controller, and there are just a few VB calls you
    'll need to make using NI-Motion functions to define the motion and get it going.
    Hope this helps!

  • Cleaning up my new Thinkpad need help with what to Uninstall

    So I finally got my new thinkpad T520 set up with Windows 7 and I currently have all the prepackaged Lenovo Programs and thinkvantage tools installed. I am trying to optimize my system right now and I am wondering which programs I should keep and which I should delete.
    I already have Revo uninstaller, CCleaner, and ESET NOD32 smart security antivirus so I already have some good utilities to clean my system.
    Basically if anyone could help me determine which lenovo programs to keep and which to uninstall I would be very greatful. I dont need this computer to be a screamer, but I would like a stable computer that is as fast as possible.
    Thanks

    from your list, i don't use the following:
     Screen reading optimizer
     Simple tap
     Solution Center
     AutoLock
     Communications utility
    truthfully, Lenovo's factory load is lighter than most every other OEM load i've worked with.
    if you want to further optimize your machine's running state, you should have a look at the blackviper site to dig through your running Windows services. even if you choose not to modify anything, it's quite educational. http://www.blackviper.com/
    you can also go through your system's start-up programs and what-not. apps like acrobat reader install update checkers that load at every boot and run in the background. i like a Microsoft tool named Autoruns for this task. it's part of the Sysinternals suite. http://technet.microsoft.com/en-US/sysinternals
    hth.
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество
    Community Resources: Participation Rules • Images in posts • Search (Advanced) • Private Messaging
    PM requests for individual support are not answered. If a post solves your issue, please mark it so.
    X1C3 Helix X220 X301 X200T T61p T60p Y3P • T520 T420 T510 T400 R400 T61 Y2P Y13
    I am not a Lenovo employee.

  • Need help with what to do if I want to change my apple id but my id is my icloud e-mail address

    Hello,
    I have spent days and hours trying to find a definite answer on what I can do with my situation.  I have been able to figure out that I cannot change my apple id because my apple id is my icloud e-mail address.  But does that leave me no option?  Does that mean that I will have to create a new apple id and subsequently I will also get a new icloud e-mail address?  If so, then how will I retain all of my purchases?  Is it possible to delete my icloud account and then change my apple id?
    I would really appreciate anyone that can give me a clear answer on this.  Thanks!!

    Sorry I missed this post earlier.  For some reason I didn't get an email alert that you had posted.
    If you want to want to change your Apple ID and your iCloud email address, you'll need to create a new Apple ID using the name you want, then create a new iCloud account with it and migrate your data to the new account.  After creating your new Apple ID, save any photo stream photos on your iOS device that you want to keep to your camera roll (unless already there) by opening your my photo stream album, tapping Select, tapping the photos, tap the share icon (box with upward facing arrow), then tapping Save to Camera Roll.  If you are syncing notes with iCloud that you want to keep, you'll need to open each of your notes and email them to yourself so you can later copy and paste the text into new notes created in your new account.  Then go to Settings>iCloud, tap Delete Account, provide the password to turn off Find My iDevice and choose Keep on My iDevice when prompted.  Then sign back in with a new Apple ID to create your new account and choose Merge to upload your data to the new account.  You will then have to recreate your notes in the new account from the emails you sent earlier.  When you turn on Mail in Settings>iCloud you will choose your new @icloud.com email address.
    Once this is done on the first device, if you have other devices, you can just save any photo strema photos, delete the existing account, then choose Delete from My iDevice (since the data is already in the new account) and sign back in with the new ID to download the data.
    You'll then have to decide if you want to keep using the old ID for iTunes or not.  Personally, I wouldn't recommend changing it to a new ID for several reasons.  First, all of your current purchased media is tied to the current ID and cannot be moved to your new ID.  This means that you will end up with different things purchased with different IDs over time, which can make things complicated.  Secondly, if you have already enabled automatic downloads, or have downloaded previous purchased using your old ID, you cannot change it to your new ID for 90 days from the time you first did this.  Once this waiting period expires you can then change to the new ID and access previous purchases with your new ID, but you would not be able to access previous purchased from the old ID again for another 90 days.  (This is what I mean by it being complicated to have multiple Apple IDs for iTunes purchases.)

  • Need help with what to do with iTunes switch

    I recently purchased a new computer and obviously would like to transfer my old music, playlists, etc. from my old computer.
    I have an external HD that was used as backup and I used it to transfer all of MyMusic file to the new computer into the music library.
    The problem is that when I downloaded iTunes to my new computer, it autumatically found all of the info, but the pathways to the music is wrong. So, all the songs, albums, podcasts, playlists, etc. show up exactly as they used to, but if I try to play some of them, none of the music can be found.
    Now obviously, I could go manually, song by song, and provide a new path, but with about 4000 songs, that would take me forever.
    So, what are my options?
    Should I just dump everything and reload all of my music? It would take a long time of course and I would lose things like my ratings, playlists, groupings, etc.
    Is there a way I can easily fix this issue? Should I delete all the music off the new computer and then move them from the external HD a different way?
    I just don't know the easiest way to fix the problem and am hoping for help. Thanks in advance.

    I did figure out FindTracks, but the problem is that many of my music files were grouped in different folders. So, it did find and replace all the files that were in the general folder, though it looks like I have to do many manually (ugh). Anyway, I seem to have another problem.
    As I find the new paths for some of the music, the connections are restored and everything plays correctly.
    However, for manhy of the songs, the connection appears to be good (no exclamation mark), but nothing plays when I click on them.
    Any ideas?

  • Begginer needs help with what version of Photoshop?

    Let me clarify.....
    Back in 2008, I bought an E-Machine Desktop that had "Adobe Photoshop" bundled on it.
    I bought a new HP 6719C computer last year.
    It has no Photoishop program whatsoever.
    I LOVED my old version of Photoshop.
    The feature I liked most was the erasing Tool, were you could put your head on someone elses boday, and the "Clone" feature, to take out unwanted items in your pictures.e to Download a version of Adobe Photoshop, that closely resembles the Features I described above.
    Not looking for anything, super-dooper fancy.
    Just pretty much the Basics.
    So what is this "Adobe Elements" program all about.
    What would be the simpelest, least complicated program, to get me started after a 5 year Hiatus without Adobe Photoshop?
    Roger

    Photoshop Elements 10 should do what you need.
    You could download a thirty day trial and see if it does what you need.
    There is also the photoshop elements forum for more in depth questions about photoshop elements features:
    http://forums.adobe.com/community/photoshop_elements

  • Need help with 'unable to open executable ... ' error

    After I compile I get this error. Here is the entire error msg:
    ==
    error: unable to open executable '/Users/..MyName../Library/Developer/Xcode/DerivedData/BallsAway-dxopkhiuo..... .zemqfcgnldx/Build/Products/Debug-iphonesimulator/BallsAway.app/BallsAway'
    This a brand new Xcode project so I am not sure what the issue is. Any suggestions or comments will be greatly appreciated.
    Thanks.

    I've spent most of the day doing a lot of investigation. Results of that are:
    With regard to Xcode4:
    What would not run properly yesterday, did run fine today.
    Background: I have used DU to Repair Perms twice today. I have always seen lots of references to Java and frameworks in the DU log while doing this. Whether there is a correlation or not to my problems, I do not know.
    With regard to Xcode v325:
    I can now run apps that had previous compile errors with no problems and so on.
    Then a few hours ago, I was running Xcode4 and doing fine until I tried to again run the app on the iP4 and it refused to run. It all of a sudden developed the Info.plist problem again.
    I switched back to Xcode 325 and it ran fine. I'm not ready to really point ALL of the blame on Xcode 4, because Apple doc's state clearly that user's can switch back and forth between versions without problems. I'm not so sure. I am not switching back and forth because I think it's a fun thing to do, I'm doing it because I have no other choice.
    As to the red fonted files - from my experience, that means either the file is nowhere to be found or it has not been built, which I think was my original problem. I have no idea how to correct that. Earlier today I had a sit where the app actually ran on the sim even though the executable was in red font. I have no idea how that works either.
    At the moment, I'm using Xcode v325 and doing OK. I may download the latest Xcode 4 upgrade tonight. Not sure yet.
    Thanks for checking in.

  • Need help with Sharepoint foundation web application stuck on "STOPPING" error job-service-instance-GUID Number already exists

    Hi All,
         I cant get to stop SharePoint foundation web app service. Its stuck on status stopping
    I have tried the following:
    reset IIS
    restarted the Timer Service
    When I try to use powershell command to stop I get the following error:
    Can anyone who went through this help PLEASE
    Stop-SPServiceInstance : An object of the type
    Microsoft.SharePoint.Administration.SPServiceInstanceJobDefinition named
    "job-service-instance-1ff39eb2-12d2-457d-a749-265e350eb1b1" already exists
    under the parent Microsoft.SharePoint.Administration.SPTimerService named
    "SPTimerV4". Rename your object or delete the existing object.
    At line:1 char:127
    + ... pplication"} | Stop-SPServiceInstance
    + ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidData: (Microsoft.Share...ServiceInstance:
    SPCmdletStopServiceInstance) [Stop-SPServiceInstance], SPDuplicateObjectEx
    ception
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletStopServ
    iceInstance

    Hi,
    It seems that the issue is in the timer job definition for executing this operation.
    My suggestion is to start the service again and delete the job definition from the error and again try to stop it.
    This might be helpful:
    http://sharepoint.stackexchange.com/questions/22368/is-there-a-powershell-cmdlet-to-delete-a-timer-job 
    I had a lot of issues in the past when try to stop this instance after the Web apps are provisioned.
    As general rule now If I have multi-server Farm topology that has servers that should not serve Web App requests I turn off the service prior to provisioning any Web Apps in the Farm. 
    BR,
    Ivan

  • Need help with using Solaris FLAR across disparate platforms

    All,
    I need help with what needs to be done to use solaris Flash for disaster recovery between the disparate Server platforms listed below.
    I am concerned about the platform specific files that would be missing?
    Note: All our servers are installed with the SUNWCprog cluster through Custom jumpstart and We use disksuite for mirroring the operating system drives.
    Primary Server     Recovery Server
    Sun Fire 6800     Sun Fire E2900
    Sun Fire E2900     Sun Fire 6800
    Sun Fire-880     Sun Fire-V440
    Sun Fire-V440     Sun Fire-880
    Sun Fire 4800     Sun Fire-880
    Sun Fire-V890     Sun Fire 4800          
    Me

    jds2n,
    Is it possible to get around installing the Entire Distribution + OEM and include only the platform specific files?
    Just a thought
    Example:
    I would like to create a Flash Archive of a E2900 server which i plan to use to recover a 6900.
    The 2900 was installed with a developer cluster.
    When creating the Flash archive of the 2900 is it possible to add the 6900 platform specific files and drivers
    from the Solaris CD?
    Thanks

  • I need help with Mavericks Server: an error occurred while configuring your server.  I

    I need help with Mavricks Server, I get the following: an error occurred while configuring your server.  I have deleted the Server.app several times along with the associated com.apple and Server folder.  Any more help would be appreciated.

    There are usually some log files around, related to the installation.  See if Console.app (Applications > Utilities) shows anything relevant to the error, when you've done a fresh install of Server.app and tried the configuration.

  • My iPhone 4S won't turn on it's been off for two days now. I tried charging it but it makes a noise every 8 seconds,holding the buttons down and also plugging it to a computer. I need help on what to do or if anybody can tell me what's wrong with my phone

    My iPhone 4S won't turn on it's been off for two days now. I tried charging it but it makes a noise every 8 seconds,holding the buttons down and also plugging it to a computer. I need help on what to do or if anybody can tell me what's wrong with my phone

    Yes ive tried a different charger and it also nothing shows when i plug it in just makes a noise

  • No support for pse4, need help with help and everything else.What's a layer? How can I get help PDF from CD? I don't have a clue how to use this. I have a Macbook pro.

    Need help with help pse4 not supported by adobe. how to do topics not available and I have never used any thing like this. Help says there is a download but have not been able to get it. What's a rookie to do ? Is there somewhere I can go to find out how to use PSE4?

    The internet is overflowing with tutorials on PSE. Just google what you want and include Photoshop Elements 4 as part of your search term, or  go to the library and they may have several different books on PSE 4. For PSE 4, you won't find a mac specific book, but that doesn't matter because the editor is the same on either program. Just substitute Command for Ctrl and Option for Alt in the keystrokes, and ignore anything about the organizer.
    Some popular sites for learning elements:
    http://www.photoshopelementsuser.com/
    lynda.com
    eclecticacademy.com
    youtube has a lot of video tutorials, too.

  • FormsCentral retiring in July???!!!  Are you freaking kidding me?  My clients use this feature all the time.  What do you suggest I do now?  What service do I go with that is comparable to it?  I need help with this asap!

    FormsCentral retiring in July???!!!  Are you freaking kidding me?  My clients use this feature all the time.  What do you suggest I do now?  What service do I go with that is comparable to it?  I need help with this asap!

    I would suggest checking out http://www.logiforms.com. They have really good PDF support for both hosted PDF's and generating PDFs. You can:
    populate PDF forms from a web form submission
    Merge multiple PDF's together using conditional logic
    Include uploaded images in the generated PDF
    Get Electronic signatures on PDF's
    Use conditional logic when creating PDF's
    Convert HTML to PDF. You design in HTML and CSS and use form field wildcards and generate the PDF
    More of the PDF features are explained here:
    PDF Form Creator | PDF Form Maker | V3.Logiforms.com
    They are also offering a 25% discount to anyone coming from Forms Central...

Maybe you are looking for