Can some1 tell me wots wrong?

Hi i am trying to compile my jsp page and jave page is coming up with an error on this method.
can some1 tell me if i have written this incorrectly.     
     public ResultSet getCampaign(String userId, String campId) throws SQLException
          sqlers = "SELECT *, Clients.Name FROM Campaigns, Users, Clients WHERE Campaigns.UserId = Users.UserId and Campaigns.ClientId=Clients.ClientId AND Campaigns.UserId="+userId +" and Campaigns.CampId="+campId+";";
          ResultSet rs = stmt.executeQuery(sqlers);
          return rs;
this is wot my compiler says:
[javac] symbol : variable sqlers
[javac] location: class sales.Sales
[javac] sqlers = "SELECT *, Clients.Name FROM Campaigns, Users, Clients WHERE Campaigns.UserId = Users.UserId and Campaigns.ClientId=Clients.ClientId AND Campaigns.UserId="+userId +" and Campaigns.CampId="+campId+";";
thanks
seema

Did you declare sqlers as a String somewhere?
String sqlers = "SELECT *, Clients.Name FROM Campaigns, Users, Clients WHERE Campaigns.UserId = Users.UserId and Campaigns.ClientId=Clients.ClientId AND Campaigns.UserId="+userId +" and Campaigns.CampId="+campId;
ResultSet rs = stmt.executeQuery(sqlers);
return rs;Also, you shouldn't put that semi-colon at the end of your SQL.
MOD

Similar Messages

  • We have a movie downloaded on a laptop connected to the internet pluged into our router in the basement and an apple tv upstairs trying to play the movie through home sharing but it wont play. can anyone tell me whats wrong?

    we have a movie downloaded on a laptop connected to the internet pluged into our router in the basement and an apple tv upstairs trying to play the movie through home sharing but it wont play. can anyone tell me whats wrong? it comes to the last loading page where it shows the desscription of the movie befor it acually plays.

    It can come about without any change done by the user, and it's not just from other networks. The placement of the router can also affect performance. Also make sure router is up to date.
    Apart from that would be the reboots.

  • I just purchased the ipad I have an itunes account but it tells me I am not connected to the itunes store. can anyone tell me whats wrong

    I have just purchased the ipad and trying to log onto itunes and it tells me I am not connected .  i typed in my apple sign on and it states cannot connect to itunes store. Can anyone tell me whats wrong?

    I'm sort of confused by your response. Did your iPad start up? If I DO understand - you are frozen on the sign in setting for the Store?
    Try this - force quit the settings app.
    Force quit the app by holding down on the sleep button until the red slider appears. Let go of the sleep button and then hold down on the home button until the app quits. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.

  • CAN ANYBODY TELL ME WHAT WRONG WITH THIS RSS FEED IT WONT WORK

    CAN ANYBONE TELL ME WHATS WRONG WITH THIS FEED BECAUSE IT WONT WORK AND ALSO HOW DO I GET A LINK TO THE PODCAST RSS FEED FOR THE SUBMIT PODCAST PAGE ON ITUNES,
    ANY HELP WILL BE MUCH APRECIATED
    <?xml version="1.0" encoding="UTF-8"?>
    <rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
    <channel>
    <title>DJ Hybrid Coventry Drum n Bass Podcast</title>
    <link>http://www.djhybridcoventry.com/podcast.htm</link>
    <language>en-us</language>
    <copyright>℗ & © 2007 DJ Hybridb& </copyright>
    <itunes:subtitle>DJ Hybrid Drum n Bass Podcast brings you all the latest and greatest from the Drum n Bass scene, updated every two weeks</itunes:subtitle>
    <itunes:author>DJ Hybrid</itunes:author>
    <itunes:summary>The DJ Hybrid Coventry Drum n Bass Podcast will showcase a selection of the latest and greatest tunes that are getting rinsed on the scene, mixed down with sharp cuts and nasty double drops by Dj Hybrid the podcast will also feature other DJ's and Mc's on different shows. Updated every two weeks this is guarenteed to be an original style of drum n bass mashup, for more info check www.djhybridcoventry.com</itunes:summary>
    <description>DJ Hybrid Drum n Bass Podcast brings you all the latest and greatest from the Drum n Bass scene, updated every two weeks</description>
    <itunes:owner>
    <itunes:name>DJ Hybrid</itunes:name>
    <itunes:email>[email protected]</itunes:email>
    </itunes:owner>
    <itunes:image href="http://i100.photobucket.com/albums/m8/djhybrid/PODCASTLOGOBLUE.jpg" />
    <itunes:category text="Music">
    <itunes:category text="Drum n Bass"/>
    </itunes:category>
    <itunes:category text="music"/>
    <item>
    <title>DJ Hybrid Podcast - 1st Show 03/6/07</title>
    <itunes:author>DJ Hybrid</itunes:author>
    <itunes:subtitle>The first show of the new drum n bass podcast from DJ Hybrid</itunes:subtitle>
    <itunes:summary>Welcome to the 1st show from DJ Hybrid because its the first show im goin to play what tunes i think represent me as a DJ aswell as my favourite drum n bass tunes at the moment for tracklistings check www.djhybridcoventry.com</itunes:summary>
    <enclosure url="http://fs06n5.sendspace.com/dl/603942da730253766c5157920e810d3e/46771dd931 3f824d/v3adp4/DJ%20Hybrid%20Podcast%201%20%20-%20%203rd%20June%202007.mp3" length="8727310" type="audio/x-m4a" />
    <guid>http://fs06n5.sendspace.com/dl/603942da730253766c5157920e810d3e/46771dd9313f824d /v3adp4/DJ%20Hybrid%20Podcast%201%20%20-%20%203rd%20June%202007.mp3</guid>
    <pubDate>Sun, 03 Jun 2007 20:00:00 GMT</pubDate>
    <itunes:duration>53:36</itunes:duration>
    <itunes:keywords>DJ, Hybrid, Podcast, Drum, Bass, Jungle, Coventry, Double Drop, Latest, Tunes, Vinyl, Liquid, Rave, Reggae, Urban</itunes:keywords>
    </item>
    </channel>
    </rss>

    First...Stop screaming. It's rude.
    Next...there are some minor problems with your feed. "Drum n Bass" is not a iTunes category. Stick with <itunes:category text="Music" /> remove the others.
    Not required, but recommend to add an <itunes:explicit> tag with a Y or N depending on what suits your podcast. The iTunes staff will remove your feed if it isn't tagged properly.
    MP3 audio files should have a type="audio/mpeg".
    Keep the Podcast spec handy...the categories and other info listed in the spec.
    Test your feed with http://www.feedvalidator.org it will point out problems with your feed.
    The bigger problems stem from your podcast enclosure, specifically the URL.
    The URL you have listed to the podcast mp3 apparently has changed so iTunes can't download the file. It also appears that you are using a "free download" kind of service that uses web page based downloads, which might account for why the URL keeps changing. Don't think that iTunes will be able to properly download the file.
    Erik

  • When laptop booths there is a folder with a question mark.  Can someone tell me whats wrong?

    When laptop booths there is a folder with a question mark.  Can someone tell me whats wrong?

    The Mac cannot find the hard drive or a valid boot folder.
    You can try to reboot with Command and R and hold down until you see recovery partition. Launch that and then in the menu bar at the top look for Disk Utilities. Run that and see what it says when you scan your hard drive,
    Any errors there are bad. If it can't even read the drive that is worse.
    I suspect with the ? issue you will be reformatting and reinstalling OS X after getting a new hard drive.

  • TA44551 my ipod freezes up can somebody tell me whats wrong?

    my ipod freezes up can somebody tell me whats wrong?

    It could be the result of a number of things, so it is hard to say for sure as to exactly why your iPod has frozen. Could be that a memory leak, or that your iPod simply had to many apps opened up or in your multitasking bar. The possibilities are numerous.
    What really counts here is just getting it resolved.  Have you tried a hard reset yet? To do this, press and hold both the Sleep/Wake and Home buttons together long enough for the Apple logo to appear.
    B-rock

  • Can some1 tell me abt sap data loader in hr..

    hi every1,
    can some 1 tell me abt sap data loader in hr..if u have some documentatiom it will be great. apart from lsmw,bapi,direct inputs,bdc what are the other ways of data conversions.. thanx in advance

    PL check this <a href="https://forums.sdn.sap.com/click.jspa?searchID=1350793&messageID=11323">thread</a>.
    ~Suresh

  • I cannot do the 'all in one click' feature on Farm Town Gift Links. Can you tell me whats wrong? this occurred after upgrading to 5.0.

    I upgraded to 5.0 and now I can't take advantage of the 'all in one click' feature.

    See:
    *[/questions/840221]

  • Can someone tell me whats wrong??=[

    ok so i start up my comp. and it goes through the start up but when i get to my home page it doesnt show any icons or any tabs just the background and the cursor flips from the hourglass to the regular cursor...and thats all it does..just back and forth...it wont let me do anything.. can anyone help me??? =D

    Hi, Tara -
    Welcome to Apple's Discussions.
    so nobody knows ANYTHING??? wow wasnt that helpful.
    Have patience - not everyone is here all the time, waiting for someone to post a question. Those who do hang out here are all volunteers, dropping in whenever they might have some time available to spend helping someone; some folk stop in once every few days, others several times a day. Waiting only ten minutes before complaining about lack of help is unrealistic. Sarcasm is not a good way to attract help.
    On to your problem -
    ok so i start up my comp. and it goes through the start up but when i get to my home page it doesnt show any icons or any tabs just the background and the cursor flips from the hourglass to the regular cursor...and thats all it does..just back and forth...
    Are you referring to what the machine does in Finder when it gets to the desktop? ...or what it does when you run your browser? I ask, because you did not say, and because OS 9 does not use tabs in Finder. "Home page" and "tabs" often refer to a browser, but could refer to another application. Could you be more specific?
    If it is the browser, what specific one is it (name and version)?
    What type of connection are you using (dial up, or broadband; if the latter, USB or ethernet)?
    What specific model Mac are you using? OS 9 is an Operating System, not the model of a machine; the peculiarities of specific machine models can make a difference. If you're not sure of the Apple designation for your machine, what is its generic type (iMac, G4, PowerBook, iBook, etc.) and what is the CPU (machine) speed? You can determine that info in OS 9 by selecting Apple System Profiler from the Apple menu, then checking the info shown in the Hardware Overview section on the first (System Profile) page of Apple System Profiler.

  • Ever since i downloaded the new firefox last month i cant watch movies or live tv like the news and before it work!! can someone tell me whats wrong?

    i cant watch any kinda movies nor live tv like the news and before i upgraded i could i have even upgraded my flash and adboe and still nothing!! whats the deal?

    You can check for problems caused by a recent Flash 11.3 update and possibly downgrade to Flash 11.2 or 10.3.
    *https://support.mozilla.org/kb/flash-113-doesnt-load-video-firefox
    *https://support.mozilla.org/kb/flash-113-crashes
    *http://blogs.adobe.com/asset/2012/06/inside-flash-player-protected-mode-for-firefox.html

  • Can some1 tell me how 2 stop auto flash fr.adobe plz

    any help from any of u will b greatly appreciated as I need 2 know where 2 go on IE 2 stop anymore automatic downloads & trust me I'm desperate as I'm disabled & need my comp.& w/flash v.12 has screw up chrome 4 sure but  know how 2 disable flash on it but need 2 stop any automatic downloads fr.adobe in IE so any help so appreciated..many blessings..Loretta

    The Skyfire browser is the best solution I have found, so far. It's a browser that converts the videos on the fly. It doesn't work for other types of flash (games, ads, etc) but it does a good job with videos.
    http://itunes.apple.com/us/app/skyfire-web-browser-for-ipad/id409153623?mt=8
    I see your location is UK, I'm not sure if the app is available in the UK.

  • Can any1 tell me whats wrong.. trying to read from file..

    import java.io.FileReader;
    import java.io.FileWriter;
    import java.io.PrintWriter;
    import java.util.StringTokenizer;
    import java.util.Scanner;
    public class AccountClient {
        public static void main(String[] args) {
            Scanner in = new Scanner(System.in);
            Account[] accountList = new Account[10];
                  int accountNumber = 0;
                  String accountType = "";
                  String clientName = "";
                  String socialSNumber = "0";
                  double intBalance = 0;
                  double intCheck = 0;
                  double intSave = 0;
                  int theAccountNumber = 0;
                  String theAccountType = "";
                  String theClientName = "";
                  String clientSocialSNumber = "";
                  double clientIntBalance = 0;
                  double theIntCheck = 0;
                  double theIntSave = 0;
                  int counter = 0;
                  String theSpacer;
                  String x="";
            try {
                FileReader infile = new FileReader("input.txt");
                Scanner fin = new Scanner(infile);
                fin.useDelimiter("\t");
                while (fin.hasNextLine()) {
                    accountNumber = fin.nextInt();
                    accountType = fin.next();
                    clientName = fin.next();
                    socialSNumber = fin.next();
                    intBalance = fin.nextDouble();
                    intCheck = fin.nextDouble();
                    intSave = fin.nextDouble();
                    if(accountType.equalsIgnoreCase("checking") || accountType.equalsIgnoreCase("interest checking")) {
                        accountList[counter] = new CheckingAccount(accountNumber, accountType, clientName, socialSNumber, intBalance, intCheck);
                        counter ++;
                    else
                        if (accountType.equalsIgnoreCase("saving")) {
                            accountList[counter] = new SavingAccount(accountNumber, accountType, clientName, socialSNumber, intBalance, intSave);
                            counter++;
                    PrintWriter fout = new PrintWriter("output.txt");
                    for(int i = 0; i < counter; i++) {
                        theAccountNumber = accountList.getAccountNumber();
    theAccountType = accountList[i].getAccountType();
    theClientName = accountList[i].getName();;
    clientSocialSNumber = accountList[i].getSSNumber();
    clientIntBalance = accountList[i].getInitialBalance();
    if (accountType.equalsIgnoreCase("interest checking")) {
    theIntCheck = accountList[i].getIntRate();
    else
    if (accountType.equalsIgnoreCase("saving")) {
    theIntSave = fin.nextDouble();
    x = accountList[i].toString(theAccountNumber);
    theSpacer = accountList[i].space(x.length());
    fout.print(theAccountNumber + theSpacer);
    theSpacer = accountList[i].space(theAccountType.length());
    fout.print(theAccountType + theSpacer);
    theSpacer = accountList[i].space(theClientName.length());
    fout.print(theClientName + theSpacer);
    theSpacer = accountList[i].space(clientSocialSNumber.length());
    fout.print(clientSocialSNumber + theSpacer);
    x = accountList[i].toString(clientIntBalance);;
    theSpacer = accountList[i].space(x.length());
    fout.print(clientIntBalance + theSpacer);
    if (accountType.equalsIgnoreCase("interest checking")) {
    x = accountList[i].toString(theIntCheck);;
    theSpacer = accountList[i].space(x.length());
    fout.print(theIntCheck + theSpacer);
    theSpacer = accountList[i].space(3);
    fout.print("n/a" + theSpacer);
    else
    if (accountType.equalsIgnoreCase("saving")) {
    theSpacer = accountList[i].space(3);
    fout.print("n/a" + theSpacer);
    x = accountList[i].toString(theIntSave);
    theSpacer = accountList[i].space(x.length());
    fout.print(theIntSave + theSpacer);
    fout.close();
    catch (Exception e) {
    System.out.println("error"); e.printStackTrace();
    //PrintWriter fout = new PrintWriter("output.txt");

    its supposed to read from the input file and print to the output file, but right now its throwing an exception for whatever reason. when i trace it, i get this and im not sure what its telling me
    java.util.NoSuchElementException
         at java.util.Scanner.throwFor(Scanner.java:817)
         at java.util.Scanner.next(Scanner.java:1431)
         at java.util.Scanner.nextDouble(Scanner.java:2335)
         at AccountClient.main(AccountClient.java:45)
         at __SHELL5.run(__SHELL5.java:6)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at bluej.runtime.ExecServer$3.run(ExecServer.java:858)
    java.util.NoSuchElementException
         at java.util.Scanner.throwFor(Scanner.java:817)
         at java.util.Scanner.next(Scanner.java:1431)
         at java.util.Scanner.nextDouble(Scanner.java:2335)
         at AccountClient.main(AccountClient.java:45)
         at __SHELL6.run(__SHELL6.java:6)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at bluej.runtime.ExecServer$3.run(ExecServer.java:858)
    java.util.NoSuchElementException
         at java.util.Scanner.throwFor(Scanner.java:817)
         at java.util.Scanner.next(Scanner.java:1431)
         at java.util.Scanner.nextDouble(Scanner.java:2335)
         at AccountClient.main(AccountClient.java:45)
         at __SHELL7.run(__SHELL7.java:6)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at bluej.runtime.ExecServer$3.run(ExecServer.java:858)

  • How can I tell if my iPod touch is water damaged?

    How can I tell if my iPod touch 5th generation is water damaged? It will not turn on or charge but I can't tell what is wrong with it.

    Without cracking it open you really can't. This is a long shot, you could try drying it out. Do not attempt to charge or turn on, leave it off. Place it in a sealed bag of uncooked rice for about a week. change the rice every couple of days. After you dry it attempt to turn it on, you my need to charge it first, about 30 minutes. If it works great, if not you may need to reset or attempt to restore. And it may never work again, but for a couple of dollars of rice its worth trying. If you do get it to work the first thing you want to do is make a full backup to your computer. The thing with water damage is you just don't know how long it will continue to work.  If you go to Apple be prepared to spend some money, water damage is not covered with the standard warranty. Good luck, hope this helps. Cheers.

  • Can somone tell me what the use of Dictionary is?

    I am learning from the ADobe Flex store project and they use
    a dictionary but i have no idea what the point of using such thing
    is, i read the reference document and it doesn't really explain? is
    it to basically check if the data is absolutely correct? can i use
    something else ? can i get an example of how it differs

    means my variable was pointing to wrong directtory
    ORA_NLS10=/aplvol01/CRP/oracle/CRP/db/tech_st/10.2.0/ocommon/nls/admin/data
    so i corrected it to “$ORACLE_HOME/nls/data/9idata”,
    started the db, it gor started
    ran autoconfig and preclone on dbtier
    ran the same on appstier
    all worked fine..than i broguht down the db gracefully
    than started again and it again gave me the following
    ORA-01092: ORACLE instance terminated. Disconnection forced on sql main screen
    and alert.log
    ORA-12701: CREATE DATABASE character set is not known
    so i checked again the ORA_NLS10
    and it was back to
    [oracle@t1 data]$ echo $ORA_NLS10
    /d01/oracle/t1/db/tech_st/10.2.0/ocommon/nls/admin/data
    can you tell me what wrong here

  • Can someone tell me why adobe reader stops working after a few days.

    Can someone tell me whats wrong with my adobe reader? I'm having to uninstall and reinstall it every other day. I cant open none of my downloads in any of my programs. Please can someone tell me how to fix this.

    What is your operating system?  What is your Reader version?  What exactly means "cant"?

Maybe you are looking for