Which class: SQLException?

Hello,
I have a problem with the samples: when I use them in my Java
Compiler there is always the message, that the compiler doesn't
know which SQLException to use, the one of Oracles JDBC-Classes
or of J++ or of Visual Cafe. I have deleted several Classes, but
the error still occurs. I am a beginner in Java.
Thanx for any help.
Stefan.
null

Is there any particular reason why JDBC is not standardizing this? On reason is because it would require a lot of work.
The other reason is because this would be mostly useful in large scale applications, and businesses that use large scale applications don't switch databases usually. It just costs too much to do so. So it used very much.
And given that the jdbc drivers for most databases don't support a number of the functions of JDBC 2 and 3, getting consistent numbering for most errors might be a dream, even if it did exist.
And lastly it might not even be possible. My favorite example is with Oracle...presume that the listener is up but the database is down. Is this a communcation error - it is still talking? Does one want to have a database 'down' error? What if the listener is down - is this a different error than if the network is down? If yes how is it supposed to be detected?
You can either enter a RFE for this or start your own JSR. In a previous thread someone said they were going to do this so you might search that out.

Similar Messages

  • WHICH CLASS type of 4GB microSDHC does 5610XM supp...

    1. Any microSD(T-Flash)more than 2GB is known as "microSDHC".
    2. A 4GB microSDHC has three(3)class types, which are Class 2, Class 4 and Class 6.
    3. 5610XM can support microSDHC upto 4GB.
    Seems that there is no mention in the manual regarding to the captioned. I wonder if class 4 or class 6 - 4GB T-Flash (microSDHC)will 5610XM support?
    My question is "WHICH CLASS type of 4GB microSDHC does 5610XM support?"
    Please give a hand~~ many thanks!
    Quoted from -
    http://www.sandisk.com/Assets/File/pdf/retail/SDHC1.pdf
    What is Class Speed Rating?
    The SD Association has created and defined 3 speed classes to help you identify speed and performance capabilities/minimum requirements of SD/SDHC, miniSD/miniSDHC, and microSD/microSDHC cards and the host products.
    The SD Speed Class Ratings specify a minimum sustained write speed for SDHC/miniSDHC/microSDHC cards (Class 2: 2 MB/s; Class 4: 4 MB/s; Class 6: 6 MB/s*).

    Sandisk SDHC cards will work with the 5610. It is unknown if cards larger than 4GB will work, as no one has mentioned it yet.
    Here are the specs for the sandisk card:
    http://www.sandisk.com/Products/Item(2369)-SDSDQ-4096-SanDisk_microSDHC_4GB.aspx
    .Message Edited by psychomania on 27-Nov-200703:22 PM

  • How to find out which class invoked the constructor

    i wrote a class named DAOBase and i am creating object of the same in several other classes. So is there any way to know which class has invoked the constructor of DAOBase.
    i want to print out the name of the class that invoked the constructor of DAOBase at the time of constructor invocation...
    Is there any way?
    Please Help...

    Alternatively, use SecurityManager.getClassContext() as inclass CallerAndMain {
         public static void main(java.lang.String[] args) {
              System.out.println("I'm in " + new SecurityManager() { public String getClassName() { return getClassContext()[1].getName(); } }.getClassName() + " class");
              new Try();
    class Try {
         public Try() {
              System.out.println("I'm in " + new SecurityManager() { public String getClassName() { return getClassContext()[1].getName(); } }.getClassName() + " class");
              System.out.println("I was called from " + new SecurityManager() { public String getClassName() { return getClassContext()[2].getName(); } }.getClassName() + " class");
    }

  • Event handling in the Web - Which class/interface deals with event control

    Hello all,
    When you execute a template (that was created within SAP BEx WAD) in the web browser
    and you click on a web item with the cursor then an event is started. In which class or
    interface is the event control implemented?
    Thanks a lot for any helpful comments!
    Anna

    Depends on the web item. Check out CLRSRWWW ABAP Classes.

  • Please help...Its really urgent- Which class to use for this?

    Can someone help me with this? I want to read characters from a file
    Ultimately I want to load some information from a text file which has information like this:
    0123456789
    0
    1
    4
    10
    X0123456789
    01202120212
    11202120212
    20212021202
    I want to load the information from X onwards .. all the rows and columns in a 2D array..
    I am not able to read the file at all ...
    I tried RandomAccessFile, BufferedReader..... They had problems.....what class sould I use.. any if you can give hints how I can reach X and start reading to 2d array...... It will be really very very helpful........
    Please help......

    Hi...
    See this is the partial code
    class LanguageRecognizer
         String word;
         String fileName;
         BufferedReader reader;
         char transitionTable[][];
         char letters[];
         char startState;
         char endStates[];
         int rows;
         int columns;
         public void getFileName(String fileName_)
              /********** Create File Objects to read file ******************************/
              try{
              this.fileName = fileName_;
              java.io.BufferedReader reader = new java.io.BufferedReader(new FileReader(fileName));
                   /***** Read File **************/
                   int i;
                   int X = 0;
                        /** as long as its not the EOF **/
                        while((i=reader.read()) != -1)
                             //Print all characters
                             System.out.println((char)i);
                             if (((char)i)=='X')
                                  X = i;
                                  System.out.println("X is at "+(char)i);                         
                             }//if
                        }//while          
              catch(Exception e)
                   e.printStackTrace();
              /**Call Prompt user and ask user to enter a word****************************/
                   promptUser();
         }//getFileName()When I say
    The while loop prints this file containing:
    0123456789
    0
    1
    4
    10
    X0123456789
    01202120212
    11202120212
    20212021202
    But it prints it in this format :
    0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    //Want to take this in the letter[]
    0 //want to take this as the startstate
    1 // This is the end state which could be more than one so in endState[]
    4 // This is the number of rows in the transition table
    1 // This is columns
    0
    //This is the transition table that I want in a 2D array......
    X // This is the X printed with the if() in the code
    X
    0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    0
    1
    2
    0
    2
    1
    2
    0
    2
    1
    2
    1
    1
    2
    0
    2
    1
    2
    0
    2
    1
    2
    2
    0
    2
    1
    2
    0
    2
    1
    2
    0
    2
    So I want to capture each letter typed in arrays.......But I am not able to seperate them and get them in my datatypes... atleast not using this class BufferedReader.... so can I use this class and get it or which class can I use??

  • Upgrade jdk 1.6.0_15 or higher which class jar I need, I am running eclipse

    Can someone tell me, if I have a class 12.jar with jdk 1.2 and upgrade jdk to 1.6.0_15 or higher, which class jar I need and where can I get it? Ideal would be with some instructions. :) Thanks so much.

    It's all here: http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html

  • Which classes are required to run a basic client app outside of jDev?

    Basic question, folks.
    For a minimal program, say a frame and a swing component, which classes need be copied (to a system without any Oracle software installed) in order to run? Is there a listing available that describes which class/jars are needed if x component is used?
    Also, will jre 1.4 work? Or do I need to copy a special Oracle JVM? If so, is there a specific installer just for it?
    TIA
    -Nat

    Nathan,
    To run any Java application, you will need a Java Runtime Environment(JRE) which is part of the Java Software Development Kit (SKD). If you want to distribute your application with a JRE, you can copy the .../jdk/jre directory from JDeveloper (check the readme file about copyrights and other legal issues) or you download it from http://java.sun.com/j2se/1.3/download.html
    Both the AWT and Swing libraries are included in the JRE in the same jar file as the basic java.lang or java.io classes. The name of the file is rt.jar.
    If your program runs with the Oracle VM, it will run with Hotspot. Both VMs are equivalent when running your application. It is only for the development phase that we strongly suggest to use the Oracle VM because it is much better instrumented for development than any other VM.
    If you want to know precisely which classes are loaded from which jar files, run your application from a command line and add -verbose:class.
    For example:
    C:\JDev9\jdk\demo\jfc\SwingSet2>java -verbose:class -jar SwingSet2.jar
    - Cedric
    JDev. team

  • The object array comes under which class

    hi there,
    can anybody tell me an array is defined in which class .
    for ex: when we give
    int a[ ]=new int[ ]
    wen "new "is used an object of array is created.
    and i studied somewhere that array is an object.
    then wen an array is an object it must b defined in a class.
    can anybody tell me in wich class.
    its urgent..
    plz do it as fast as possible
    take care'
    bye

    Actually I think the question was what class is the
    array ie arr.getClass().getName().Ah, I see. I guess I misread the question.
    I believe that the jvm creates them at runtime as
    necessary. Seeing as there are infinite
    possibilities for array types, it couldn't happen any
    other way.The class must also be available at compile time, not? Or else the compiler just "pretends" there's such a class, because it knows the rules of the language.

  • How to map error from OCCI class SQLException?

    when catching an OCCI error for unique constraint violation (ORA-00001), I print out the error code (class SQLException method getErrorCode()) and it shows 21527.
    Is that expected (I was expecting the error code to be 1...)? And, if so, is there any mapping between SQL error codes and error codes returned by the exception class?

    I would avoid using hardcoded absolute paths like that if you can and try to use relative paths. I mean what if your app is hosted on a linux machine? It wont even have a c:.
    I am not exactly sure what your question is asking, it's kind of hard to understand....

  • -Ddeployment.user.cachedir belongs to which class?

    I've posted this in another forum, but I think it might be better located here...
    We have Java runtime j2re_1.4.1 installed across our network, and we are making modifcations to how user profiles are handled that means we need to relcoate the user cache directory from %userprofile%\Application data\Sun... to a new location.
    Everything I have found to date offers a solution to doing this with a new install by using the -Ddeployment.user.cachedir property, but I'm wanting to do this to an existing installation.
    Am I still able to use this property from command line with the java executable, and if so to which class should I be applying it? When I try it on its own, I get the following:
    C:\>java -Ddeployment.user.cachedir = "C:\temp"
    Exception in thread "main" java.lang.NoClassDefFoundError: =
    If I remove the whitespaces around the = sign, I simply get output for the correct usage of the java executable.
    Am I barking up entirely the wrong tree? Or am I merely missing something here? Any help would be really appreciated at this point...
    Thank you!

    See the last post of this thread:
    http://forum.java.sun.com/thread.jspa?threadID=614659&messageID=3410297
    You may also find useful material in this search list:
    http://www.google.com/search?num=100&hl=en&lr=lang_en&c2coff=1&q=move+user+cache+site%3Ajava.sun.com.

  • Which classes are implemented ?

    hi,
    is there a possibility that a javacard does not implement all javacard api classes ?
    if yes, then how can I know which classes are implemeneted, and which are not ?
    Kuba

    Sure that's possible.
    An example is that there are different javacards. One that implements RSA and one that just implements DES. Not only that, but the vendors can determine what key strengths they want to implement as well.
    Before you buy a kit find out by looking at the specs that detail what they are implementing.

  • Telling which class called your method

    Does anybody know a way you can tell which class is calling your method? I mean:
    class A {
    public static void main(String args[]) {
    new A.doIt();
    void doIt() {
    B b = new B();
    b.callMe();
    class B {
    public void callMe() {
    String whoDidIt;
    whoDidIt=[stuff i'm asking for];
    System.out.println("I was called from an instance of class " + whoDidIt);
    How can I get that code to print "I was called from an instance of class A"???
    Lots of thanks in advance

    Pass the calling object to callMe as a parameter, egB b = new B();
    b.callMe(this);callMe becomes:
    public void callMe(Object caller)
       System.out.println("I was called from an instance of class " + caller.getClass());
    }Of course, there is nothing to stop anyone who calls the method passing a different object and confusing callMe.

  • In J2ME which class do we need to call to do ENcryption/Decryption?

    How many method we can implement from J2ME library?
    Can we use Triple DES, DES, AES ? Which class do we need to see?

    Hi,
    Generaly its not a good practice to modify SWCV you need to create in SLD then import it. Although if you want you can do it by opening SWCV in Repository then down the namespaces, you can see 2 check boxes named as Objects are original objects and Objects are modifiable. You need to check the option Objects are Modifiable.
    Then you can change it. I'hv not tried but check if it helps?
    BR
    Sudhir

  • S_TCODE belongs to which class?

    S_TCODE belongs to which class?

    Hi Abhichandan,
    S_TCODE belongs to AAAB class.
    we can find the class of S_TCODE through PFCG - Authorizations Tab - Change authorization data - In change role: authorizations screen, select the utilities - Technical names on. It shows information about the authorization object to which class it belongs to.
    Regards,
    Vinod Garisha.
    Edited by: gvk1305 on Apr 18, 2011 7:39 AM

  • To print which class is calling a method??

    Hello people
    Is there any way it could be known which class is calling a particular method from the method itself?
    Thanks

    Try this:
    * @author Malcolm McMahon
    * @version $Revision: $
    public class TestTrace {
        static {
            printCall();
        private static void c() {
            printCall();
        private static void printCall() {
            String name = Thread.currentThread().getStackTrace()[3].getMethodName();
            System.out.println("Call: " + name);
        public static void main(String[] args) {
            printCall();
            c();
    }Only think is, I'm not confident that the index 3 will remain unchanged in different releases (there are two levels within getStackTrace() and there's no guarantee that will remain true).

Maybe you are looking for

  • Help- After upgrading to Mountain Lion 10.8.4 all of my default user pictures are missing

    Hello, After ugrading to Mountain LIon 10.8.4 on my 2010 1.4 GHz Macbook air and now all of my default user pictures are missing. I found a similar situation on the net in which the guy says to do this: "logged in as root and trashed the old user ico

  • Updated software - No screen Display

    Ipod 30g 5th Gen I recently bought a new PC, updated my sofware to 7.11 . after installation I updated the Ipod softeware - Ever since then I have NO screen display, My ipod was not dropped , kicked or abused !!! After following the usual steps as po

  • Business system RD1 Not Found

    Hi All, when i was trying to import the tpz from XI Dev into QA (XI Dev and XI QA are using the same SLD) i get the error: Import failed because of business system transfer of object Service | RD1: Obligatory transport target for business system RD1

  • Custom no roles page or redirection

    Hello, I would like to know if anyone has customized the page that shows up if user does not have any Portal roles assigned.  The page that states "No portal roles are assigned for this user.If this problem persists, contact your system administrator

  • Taglib uri problem

    Hi all I created a web module project and add a JSP file u201CcustomTagWelcome.jspu201D and a TLD file u201Cadvjhtp1-taglib.tldu201D to the webContent directory. I added also a tag handler u201CWelcomeTagHandleru201D. The jsp code: <?xml version = "1