Why do I get an error message that says "Incompatible Types"?

I am a newbie to Java programming. I have experience with VB.
I am using Net Beans 6.1. I was following a sample program that shows me how to use the JDBC ODBC bridge to connect to an MS-Access file.
I get an error message at this line:
statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
statement was declared earlier with:
private Connection connection;
private Statement statement;
private ResultSet resultSet;
Here are my imports:
import accessingmsdb.Page1;
import java.beans.Statement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.text.html.Option;
import java.lang.String;
I am also getting erros on the following 2 lines (these follow the first statement above):
statement.execute(query);
resultSet = statement.getResultSet();
The site that has the sample does not have a forum. Any assistance you can provide would be appreciated.
Edited by: Matt_in_MI on Aug 20, 2008 1:36 PM
Edited by: Matt_in_MI on Aug 20, 2008 1:39 PM

statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);Probably because that driver doesn't allow you to use the mix of the two parameters that you passed.

Similar Messages

  • Why am i getting an error message that says "an unknown error has occured" when i try to update my apps in the app store

    Can someone please offer some suggestions why I am getting an error message that says "an unknown error has occured" when I try to download or update my apps in the app store?
    Thanks!
    disregard! i noticed someone else's post about signing out of the app store and signing in again and it worked.....

    Hi ...
    Try here > Mac App Store: "An unknown error occurred (100)" when purchasing
    If that doesn't help, drag the App Store icon straight up off your Dock so it goes, "poof".
    Now drag the App Store icon from your Applications folder to the Dock. Try updating your apps.

  • For the first time, I'm trying to use adobe premiere elements10 that came with my pc Windows 8. I created a single project, saved it but cannot open it. My pc shows the file I created but I get an error message that says this type file is not supported or

    For the first time, I'm trying to use adobe premiere elements 10 that came with my pc Windows 8. I created a single project, saved it but cannot open it. My pc shows the file I created but I get an error message that says this type file is not supported or the codex is not installed. As a test, I created another very small project and get the same error message, when I try to open it. Pls give me a simple answer, a refund or a phone

    mike frischenmeyer
    What computer operating system is your Premiere Elements 10 running on? And, what video card/graphics card does that computer use?
    Is this the first time you are using Premiere Elements 10 or have you worked with it before successfully? There is no easy solution until we
    know the details and troubleshoot to determined what caused the problem.
    1. Can you open a new project?
    2. After you saved/closed the problem project, did you move, delete, or rename any of the files/folder that were related to the source media
    for that project?
    3. Please review the Adobe document on troubleshooting damaged projects.
    Troubleshoot damaged projects | Adobe Premiere Elements
    4. What are the steps that you are using to reopen this saved closed project.
    a. File Menu/Open Project/Name of Project
    b. Other
    Please review and consider and then we can decide what next based on your further details and results..
    Thank you.
    ATR

  • Why do I get an error message that says "Your Apple ID is not eligible to purchase gift certificates?"

    I am trying to purchase a printable gift certificate from iTunes, and I keep getting an error message that says, "Your Apple ID is not eligible to purchase gift certificates." You can purchase gift cards from retail locations. I can't do this because I live overseas. I've tried deleting and re-adding my credit card information, and I've submitted a support ticket to ask for help. I see from my Google search that this is not an uncommon error message to have, but I can't find a solution!

    No, I am a US citizen living overseas, but I am going through a VPN and I am using a US-based credit card. I have no problem purchasing apps, just purchasing gift certificates. I'm going to try gifting the app to the person I am purchasing for until Apple straightens this out for me.

  • Why do I get an error message that says Firefox is inaccessible? I have MAc OS X

    Firefox worked yesterday. My Mac had a Safari update & I had to Restart the pc. Now I get an error message that says "Firefox may be missing or inaccessible".

    No, I am a US citizen living overseas, but I am going through a VPN and I am using a US-based credit card. I have no problem purchasing apps, just purchasing gift certificates. I'm going to try gifting the app to the person I am purchasing for until Apple straightens this out for me.

  • Why do I get an error message that says can't burn dvds or watch videos because of errors in register?  This occured after installing upgrade to 10.4

    Since updating itunes with 10.4 I get an error msg stating I can't burn CDs or put videos into itunes.  I tried repair option twice, uninstalled and reinstalled itunes, same problem.  I do not have any CD/DVD burning software installed.

    I recently had to reinstall my software for a
    dell computer a dell latitude d 830, then after installing all of my software and such including itunes the player did well even record to disks with no problems now that my system has done alot of updating of system files....now the itunes does not burn to my cd...error message 2131 this time
    The 2131 usually indicates firmware needs to be updated on a drive.
    Head to your drivers and downloads page for your latitude at Dell, and check for updates to your firmware for your optical drives. If you're behind and you update, does that clear up the 2131?

  • I am getting an error message that says certain videos cannot be played

    Why am I getting an error message that says I can't play certain television programs on my iPAD2?

    There are instructions for starting it on this page : http://support.apple.com/kb/TS1567

  • I cannot download OS X Mountain Lion, I get an error message that says: "We could not complete your purchase. The product distribution file could not be verified. It may be damaged or was not signed." Why am I receiving this message?

    I cannot download OS X Mountain Lion, I get an error message that says: "We could not complete your purchase. The product distribution file could not be verified. It may be damaged or was not signed." Why am I receiving this message?

    Servers may be overloaded.
    One user reported:
    Deleted file com.apple.appstore in /var/folders/, dissabled VirusBarrier X6: problem solved!

  • HT201303 I have changed all of my billing info to the correct info. Why am I still getting an error message that says invalid security code?

    I have changed all of my billing info to the correct info. Why am I still getting an error message that says invalid security code?  I have an IPod.

    Welcome to the Apple Community.
    The following article(s) may help you.
    Credit card security code or postcode issues.

  • Everytime I'm playing a Face Book or other web sites after time has gone by I keep getting an error message that says something about an unresponsive Script or its busy. Getting very annoying

    After playing for awhile a Face book game or any other web sites I begin getting an error message that says a busy or unresponsive Script. It has the option of "Continuing" or "stopping" the script When I click to Continue the same error keeps popping up all the time. Same as with clicking on the "Stop" the script option. Script # is https://s-static.ak.facebook.com/rSrc.php/vi/yx/r/LKHquoz1.v.js:5. Why am I getting this error? It's getting really annoying. I hope you can help.

    can you check this issue on Firefox 10?
    * getfirefox.com

  • Getting an error message that says: "Error starting Creative Cloud"  "cookies dir: cannot make folder / cookies: Permission denied (error 13)"

    getting an error message that says: "Error starting Creative Cloud"  "cookies dir: cannot make folder / cookies: Permission denied (error 13)"

    Please refer the thread: Installing Creative Cloud Desktop but I got Error 13 an issue permission on my MacBookPro, why?.
    Regards,
    Romit Sinha

  • When I click on any of my movie or TV shows in Itunes I immediately get an error message that says Itunes has stopped working and closes the program. I can sync the movies and shows to my phone okay but I can't watch on Itunes. Can anyone help?

    When I click on any of my movie or TV shows in Itunes I immediately get an error message that says Itunes has stopped working and closes the program. I can sync the movies and shows to my phone okay but I can't watch on Itunes. Can anyone help?

    Let's try the following user tip with that one:
    iTunes for Windows 10.7.0.21: "iTunes has stopped working" error messages when playing videos, video podcasts, movies and TV shows

  • I am trying to install itunes 10.5 but I get an error message that says click ok to try again or enter an alternate path to a folder containing the installation package iTunes.msi...I try to point iTunes to the .msi file but that is not working.

    i am trying to install itunes 10.5 but I get an error message that says "click ok to try again or enter an alternate path to a folder containing the installation package iTunes.msi..." I try to point iTunes to the .msi file on my c drive but then it gives me  a message says "the file location is not a valid installation packaage for the product iTuness.  Try to find the installation package 'itunes.msi' in a folder from which you can install iTunes".  Any help, insight, guidance would be greatly appreciated!!

    "The feature you are trying to use in on a network resource that is unavailable. Enter alternate path to a folder containing the installation package itunes64.msi".
    Download the Windows Installer CleanUp utility from the following page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    To install the utility, doubleclick the msicuu2.exe file you downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • I'm running snow leopard. The try to open any .mov file in Quicktime, and I get an error message that says, "The document xyz.mov could not be opened. The movie is not in a format that Quicktime player understands. I'm a recent upgrade to Snow Leopard.

    I'm running snow leopard. The try to open any .mov file in Quicktime, and I get an error message that says, "The document xyz.mov could not be opened. The movie is not in a format that Quicktime player understands. I'm a recent upgrade to Snow Leopard.
    Help!
    Thanks, Mark

    Unfortunately, the error message gives no details about what codec might be missing or what it needs.
    If the file can't be opened in QT, it only means you cannot use the QT "Inspector" window to check what compression formats were used to create the file. It does not mean you can't use the Finder "Information" window to check on the compression formats or use a third party media information window (e.g., like VLC which will open many compression formats not supported natively by QT) to determine what kind of data is included in the MOV wrapper. If the file cannot be opened in any app, it is usually a good sign that the file itself is corrupted.
    It's a stupid error message. Apple should do better than that.
    Error trapping is quite extensive but there are still many areas which require human oversight. The message is telling you that either the container has a problem (e.g., not properly terminated, non-standard, or corrupted) or that one or more of the compression formats used is not supported by your current codec component configuration or that the data was encoded using non-standard settings or preferences not supported by QT or that the fourCC code does not match the data contained in the file or that there are timecode inconsistencies, etc., etc., etc. In short there are a near infinite number of possible problems for which it would be very difficult/nearly impossible to program error trapping depending on your sourcing of content and how you process it before it reaches the player app. Think of it like trying to play a BD disc in an DVD player.
    I'll call Apple support when I get a chance.
    Chances are good that they will end up sending you back here. In any case, it is often a good idea to post a sample file for examination by other QT users. At the very least, they should be able to tell you if the sample file will play on other systems which would indicate whether or not the file itself is bad and under the best of circumstances whould allow them to examing the file in detail for various common problems.

  • I can not dowload the new updated software for my Ipod touch 4G. When i do I get an error message that says Network connection has timed out. I have done the trouble shooting steps. Downloaded the latest version of Itunes, and checked network connection

    I can not dowload the new updated software for my Ipod touch 4G. When i do I get an error message that says Network connection has timed out. I have done the trouble shooting steps. Downloaded the latest version of Itunes, and checked network connection

    Disabling the computer's antivirus and firewall during the download and update usually resolves the timeout error.

Maybe you are looking for

  • Help: Data Scroller Component Tag doesnt work

    Help anybody!! I am working with the Data Scroller y the Data Table Components Tags. I run the page in Jdeveloper 9i, this is the code I wrote: <!--Begin--> <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %> <%@ page contentType="text/html;charset

  • [svn:fx-trunk] 11999: Fixed: ASC-3889 - Using setting in a for loop causes Verify error

    Revision: 11999 Revision: 11999 Author:   [email protected] Date:     2009-11-19 11:37:09 -0800 (Thu, 19 Nov 2009) Log Message: Fixed: ASC-3889 - Using setting in a for loop causes Verify error Notes: emit pop after callstatic to a void function to b

  • I Am Done With Adobe

    Enough is enough. Another late night project trying to burn a DVD after 100+ hours editing....I've come to the end.  It's really a shame - after spending thousands of dollars w/ these guys I just can stay up late praying I don't get an 'Adobe' error

  • FD11 - Open item balance

    Hi Friends, When i am using FD11 for a specific customer  amount in account balance tab  is equal to OI net tab.  The same balance is equal to open item balance FBL5N. But for some customers amount account balance  tab(in T.Code:FD11) is not equal to

  • Installer error

    Hello, I have Labview 8.0 and want to use the installer. My instrument uses serial comunication that's why i select at "additional installers" the "ni-serial". My installer is building without any problems when I do not select "ni-serial". When I sel