HashMap err --- Sql Exception - bad sql (pls see code)

Hi
//Query A
ResultSet resultSet = statement.executeQuery("select sno,rank from school");
BufferedWriter writeout = new BufferedWriter(new FileWriter(EDU, false));
while(resultSet.next()){
                    sno = resultSet.getString(1);
                    rank= resultSet.getString(2);
                    if("25".equals(rank)) {
// When the rank value is 25 , i want the hashA  to have a key value pair in it , with value as 25 .
                        hashA.put(resultSet.getString(1),resultSet.getString(2));          /// ?? Sometimes the hashA  contains key but for that key the  value it contains is null
//Query B
resultSet = statement.executeQuery("select busno , driverno from License");
               BufferedWriter writeFlat = new BufferedWriter(new FileWriter(OUT, false));
               while(resultSet.next()){
                   busno = resultSet.getString(1);
               driverno = resultSet.getString(2);
               String rankOfB;
               rankOfB = hashA.get(resultSet.getString(1));                         // SO when i want to get the value it is giving an error SQL Exception - bad Sql  . How to make this code work ,
               System.out.println("The value of Rank is : "+rankOfB);             // and when i get a value which is null from hashA , it is giving an error ... PLS HELP
               writeFlat.close();
               resultSet.close();
          }catch (ClassNotFoundException classNotFound) {
               System.out.println("Driver not Found"+classNotFound.getMessage());
          } catch (SQLException sqlException) {
               System.out.println("SQL Exception - bad sql");
               System.out.println(sqlException.getMessage());
          } catch (IOException e) {
               e.printStackTrace();
                    Thank U in advance ...

you cannot read a column twice within the same row
this is the part form javadoc
The ResultSet interface provides getter methods (getBoolean, getLong, and so on) for retrieving column values from the current row. Values can be retrieved using either the index number of the column or the name of the column. In general, using the column index will be more efficient. Columns are numbered from 1. For maximum portability, result set columns within each row should be read in left-to-right order, and each column should be read only once.
rankOfB = hashA.get(resultSet.getString(1));
use busno instead of resultSet.getString(1)
Edited by: whitenight541 on Dec 29, 2008 8:13 AM

Similar Messages

  • HashMap error (pls see code)

    Hi
    This the error i get , when i try to get values from HashMap
    SQL Exception - bad sql
    The name 'keyOCC' is illegal in this context. Only constants, constant expressions, or variables allowed here. Column names are illegal.
    //      HashMap - one each for each resultSet
                   HashMap<String, String> hashrsOCCode = new HashMap();
                   HashMap<String,String> hashrsSCCode = new HashMap();
                   while(rsSCharCode.next()) {
                        String Code = rsSCharCode.getString(1);
                        String codeText = rsSCharCode.getString(2);
                        System.out.println("THE VALUE OF CODETEXT IS:"+codeText);
                        hashrsSCCode.put(Code, codeText);     
                        System.out.println("PRINTING THE STORED VALUES IN HASHMAP:"+hashrsSCCode);
                   rsSCharCode.close();
                   while(rsOCharCode.next()){
                        String keyOCC = rsOCharCode.getString(1);
                        String valueO_CC = rsOCharCode.getString(2);
                        System.out.println("THE VALUE OF VALUEO_CC IS:"+valueO_CC);
                        String valueS_CC = hashrsSCCode.get(keyOCC); ----------------------------->the error occurs here  ? Pls help . what is wrong that it gives this error
                        if(valueS_CC == null){

    Right. Well I can tell you aren't getting a SQLException from a HashMap.
    Mostly this code appears to be wishful thinking and basic confusion on your part. I suggest you try harder.
    Edited by: cotton.m on 14-May-2009 10:33 AM
    And I see you're back assigning duke stars to your threads. Why bother? I believe last time I looked you had over 100 duke stars assigned but unawarded. Just more of your tom-trollery I imagine.

  • IS it right using StringTokenizer in this case ...(pls see code& expl)

    Hi
    This project takes a comma delimited input file , where the values are in double quotes .The inputfile has more than 200 columns.
    ex: "12345","1","USA County School,Public","Rank1","TX","USA"
    if we observe the 3 rd column in the first record in the above example , has value as "USA County School,Public'
    Now i have to get each value of the record , add some conditions and create few output files for further use .
    The first step in my code is :-
    1 ) using StringTokenizer and creating tokens
    When i am creating tokens , token3 ie., column3 value is splitting into 2 tokens . where as actually it should be only one token as column3 value is in double quotes.
    how can i solve this problem of not creating 2 tokens , when a value is in quotes and it uses a comma .
    pls help me .. what is the other way to generate the values which are in double quotes neglecting the comma (if any exists within the quotes) for further use from each record of the input record .
    Thanks

    1sai wrote:
    i am new to java , can u tell me which csv parser i should use to acheive my objective.Any one.
    >
    and a skeleton of code will be very helpful.The parser probably comes with some example code. Examine the site.

  • SQL exception involving column index

    Hi. When I try to access a database with my servlet I get this exception:
    Caught SQL Exception: java.sql.SQLException: Column Index out of range ( 0 > 178).
    All my columns I use in my SQL statement seems fine. Any ideas?

    Sorry sir, here is the rest of the code and the exact exception I get is what I already mentioned in my first posting, so. Hope this makes sense to you.
    try
         out.println("Thank you! The test has been completed.");              
         String filename = valuecook + ".html";
         Document document = new Document();
         HtmlWriter writer = HtmlWriter.getInstance(document,new FileOutputStream("C:/jakarta-tomcat-4.0.6/webapps/ROOT/" + filename));
         document.open();
                 catch (DocumentException de) {
              System.err.println(de.getMessage());
               catch (IOException ioe) {
              System.err.println(ioe.getMessage());
         catch (SQLException sqlEx)
            out.println("Caught SQL Exception: " + sqlEx.toString() + "<br>");
         // now close the statement and connection if they exist
          if (stmt != null)
             try
              stmt.close();
             catch (SQLException sqlEx)
              out.println("Could not close: " + sqlEx.toString() + "<br>");
         if (conn != null)
             try
              conn.close();
              catch (SQLException sqlEx)
                  out.println("Could not close: " + sqlEx.toString() + "<br>");

  • SQL Exception: Result Set Closed. Help Needed Pls...

    Hi
    I am trying to insert the name field into �TestNoName� table which is randomly retrieved from �UniqueName� table. I am getting SQL exception: result set closed. Please look at the given code and let me know what�s wrong with my code:
    Also please guide me about entering unique (serial numbers) dynamically into
    database using Java. I have to enter customer details into database at some time and some customers details after some time but the customers should be given serial numbers.
    Thank you in advance!
    Ravi
    Here is the Code:
    String query1 = "Select Name from Unique_Names";
    String query2 = "SELECT Number, Name FROM TestNoName";
    Statement stmt;
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());
    try {
    con = DriverManager.getConnection(url,"","");
    System.out.println("Successfully Connected to Database");
    stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
    ResultSet rs = stmt.executeQuery(query1);
    ResultSet rs2 = stmt.executeQuery(query2);
    int count=0;
    while (rs.next()) {
    count++;
    rs.beforeFirst();
    for(int i = 0; i < 10; i++) {
    int randomrow = random.nextInt(count)+ 1;
    System.out.println(randomrow);
    String Name2 = rs.getString("Name");
    rs2.moveToInsertRow();
    rs2.updateInt("Number",i);
    rs2.updateString("Name",Name2);
    rs2.insertRow();
    System.out.println("Exececuted SQL Statement- Inserted One Record");
    stmt.close();
    con.close();
    } catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    }

    I am trying to insert the name field into
    �TestNoName� table which is randomly retrieved from
    �UniqueName� table. I am getting SQL exception:
    result set closed. Please look at the given code and
    let me know what�s wrong with my code: Post the actual exception, not some paraphrase of it. Oh, and let us know which line it actually refers to in the code.

  • SQL Exceptions

    Hi all
    I hope everyone knows that in SQL there are various kinds of exceptions that are thrown , which are vendor-specific.
    Now, while doing my program i came across situations, in a single java statement where i am inserting certain data in the database which can be a duplicate record.....(I am using MS Access). In the database there is one column which cannot contain duplicates, and hence when i add a record using such an insert statement, it throws an SQLException as follows
    java.sql.SQLException: General error
    now this 'General error' is one type of error, which is again vendor-specific.
    What i want to know is, how do i detect in java code which type of SQL exception is thrown and correlate it with the database vendor, so that i can show an appropriate error/warning message to the user of my application.
    Please help......
    Thank You.
    Vaibhav

    I use Derby in my applications, and their messages are cryptic (at best). However, on the website, there is documentation for the error codes (http://db.apache.org/derby/docs/dev/ref/rrefexcept71493.html) that are provided in their "obtuse" (I dislike using that word, but it fits) messages.
    What I did was write a parser for the documentation page's HTML that loaded the SQL State error codes into a properties file that would allow me to better see which type of error it is.
    Now... that is because I want to log the information more clearly to make error tracking easier when debugging. If you want to provide "special handling", I think there's not much of a choice but to continually utilize "instanceof" in some kind of helper/utility class.
    For example, in that case, I would write:
    public class SqlExceptionUtilities
       * Default constructor.
       * <br />Declared private to prevent utility class instantiation.
      private SqlExceptionUtilities() { }
       * Provide error handling for specific exception types.
       * @param e the exception to handle
       * @param logger the logger to utilize along-side the base error handling
      public static handle(SQLException e, Logger logger)
         if (e instanceof ProprietarySqlExceptionType1)
         else if (e instanceof ProprietarySqlExceptionType2)
         else if (e instanceof ProprietarySqlExceptionType3)
         else
              logger.err("Generalized SQL Exception encountered: " + e.getMessage(), e);
    }The other route I would consider taking is, again, a properties file that provides error handling capabilities based on the SQL exception's class name.
    Hope this helps.

  • Catalogue of SQL and PL/SQL bad practices: Call for participation

    I started compiling a list of Oracle SQL and PL/SQL bad practices, with the intention of producing a comprehensive catalogue of common and recurring programming mistakes, that can be used as a check-list for code reviews or given to junior developers. I have identified about 30 bad practices so far. For each bad practice, I provided a list of symptoms in the code, an explanation why it causes problems and a list of preferred solutions.
    My goal with this list is primarily to start a discussion about similar recurring issues that other people have noticed. That discussion should lead to a more complete list which the community will then be able to use, hopefully, to learn something from the mistakes of others and to produce better code.
    I would really appreciate your feedback - if you are interested in discussing these practices we can either do it in this forum, or start a separate mailing list.
    You can download the first version of the catalogue in PDF form from http://gojko.net/effective-oracle
    gojko adzic
    http://gojko.net

    exception handler (already covered), the philosophy
    behind not using stored procedures, and having beenHi riedelme,
    I'm not advocating not using stored procedures, but I am advocating not using exclusively stored procedures. I've seen that approach often, typically with people coming from SQL server or Oracle forms backgrounds, I never could understand the reasons behind it. Even for a simple select or update, they would write a stored proc that wraps the call and then require the client to execute a stored proc.
    I think that views are much better for getting the data out of the database in general, and forcing people to use stored procedures with ref output cursors makes little sense. If the only possible interface is a stored proc, then one proc must be created for every required combination of data and every required filtering or grouping method, so there is much much more code in the database, and more code means harder maintenance.
    If client apps can get data out using views, then they can join them with other views, filter or group the data as they require, which means that there is a lot less code in the database to maintain.
    My other problem with stored-proc only approach is when people wrap simple insert/update/delete commands into a stored proc. Again, I'm not advocating using complex instead-of triggers to implement workflows and forcing people to use views, but I simply don't see any benefit of implementing a stored proc to do a simple update. I see a bad side of it because a stored proc needs to be implemented for every combination of columns that a client may need to update and every criteria that can be used for that. If a client is allowed to update a view, there is much less code in the database.
    Views are, in my experience, also a lot easier to maintain and optimise without downtime because they can be revalidated without causing any problems to currently connected clients, where revalidated stored procedure or package will throw an exception the first time a connected client that had called it before calls it again.
    If I'm missing something, please tell me. I'd really love to understand why someone would build a client API exclusively from stored procedures.
    So far, I've been given explanations that it is for security purposes, or for performance. I don't know of any security restriction that can be implemented on a stored procedure or package that cannot be implemented with a view, and if bound variables and statement caching is used, sql statements don't suffer from sql injection and support pre-compilation.
    Again, i'm not advocating throwing stored procs completely out, i'm against using them exclusively and throwing out any chance of SQL access.
    gojko adzic
    http://gojko.net

  • SQL exception during creation of a physical standby database with EM

    Version: EM Oracle 10.2.5 (agents running, repository running, primary db running, all targets visible and reachable with EM)
    I try to create a physical standby database with the enterprise manager and each time the process is aborted with a SQL exception during the preparation of the job by the EM. I have added a part of the OMs log containing the error at the end of the excerpt.
    =============
    2010-04-29 16:00:39,856 [EMUI_16_00_39_/console/targets] WARN pref.SubtabPref getFolders.710 - Unknown folder id: VirtualServers retrieved from repository
    2010-04-29 16:01:04,765 [EMUI_16_01_04_/console/database/dataguard/create] ERROR em.dataguard validate.1329 - CreateBean: ClassNotFoundException: null
    2010-04-29 16:02:05,476 [EMUI_16_02_05_/console/database/dataguard/create] ERROR jobs.dbclone checkSetFileError.79 - DatabaseFileAttributes.checkSetFileError(): Null database file!
    2010-04-29 16:02:05,476 [EMUI_16_02_05_/console/database/dataguard/create] ERROR jobs.dbclone setControlfiles.160 - DatabaseFileAttributes.setDatafiles(): Invalid control file!
    2010-04-29 16:02:05,492 [EMUI_16_02_05_/console/database/dataguard/create] ERROR jobs.dbclone getControlFileNames.616 - DatabaseFileAttributes.getDatafileNames(): null datafile names!
    2010-04-29 16:02:32,823 [Thread-28] ERROR em.jobs remoteOp.2389 - DBVerify.remoteOp(): Error: max_stamp# 6071384
    2010-04-29 16:02:32,823 [Thread-28] ERROR jobs.dbclone submitJobPreparation.3297 - DBCloneObject.submitJobPreparation(): getMaxLogSequenceNum: Während der Vorbereitung des Jobs ist eine SQL Exception aufgetreten. Um das Problem zu diagnostizieren, legen Sie das Agent Perl-Skript-Tracing auf DEBUG fest und wiederholen den Vorgang
    2010-04-29 16:02:32,823 [Thread-28] ERROR jobs.dbclone submitJobPreparation.3501 - DBCloneObject.submitJobPreparation(): Exception: java.lang.Exception: Während der Vorbereitung des Jobs ist eine SQL Exception aufgetreten. Um das Problem zu diagnostizieren, legen Sie das Agent Perl-Skript-Tracing auf DEBUG fest und wiederholen den Vorgang
    2010-04-29 16:02:32,823 [Thread-28] ERROR jobs.dbclone submitDBCloneJob.3716 - DBCloneObject.submitDBCloneJob(): Exception: Während der Vorbereitung des Jobs ist eine SQL Exception aufgetreten. Um das Problem zu diagnostizieren, legen Sie das Agent Perl-Skript-Tracing auf DEBUG fest und wiederholen den Vorgang
    2010-04-29 16:02:37,496 [EMUI_16_02_37_/console/database/dataguard/create] ERROR em.dataguard onEvent.1243 - CreateConfigController: Exception: oracle.sysman.db.dg.util.VxxStandbyException: Während der Vorbereitung des Jobs ist eine SQL Exception aufgetreten. Um das Problem zu diagnostizieren, legen Sie das Agent Perl-Skript-Tracing auf DEBUG fest und wiederholen den Vorgang
    =========
    I have set the agent perl script tracing to DEBUG, but can't find any reason, why the job preparation failed.
    Has anyone an idea why the job cannot be prepared? Thanks in advance for investigation :-)

    Can you please tell me how can i see data gaurd on EM..
    I have oracle 11gR1..i have implemmented primary as well standby database..
    I have already started EM but i have no idea where to find datagaurd option..or how to create standdby db using EM..
    You got error that means u did it using EM..how can i do it on EM

  • SQL exception occurred during PL/SQL upload  (Web ADI)

    Hi,
    I am having issue loading data using Web ADI, I am getting "SQL exception occurred during PL/SQL upload" error, I tried to restart Apache, also looked into the BNE.log file for the exact error but I am still not sure about this exception, can anyone please help?
    bne:text="SQL exception occurred during PL/SQL upload."
    bne:cause="Database insert error"
    RDBMS: 11.2.0.3.0
    Oracle Applications: 12.0.6
    Thanks,
    Bharat

    I am having issue loading data using Web ADI, I am getting "SQL exception occurred during PL/SQL upload" error, I tried to restart Apache, also looked into the BNE.log file for the exact error but I am still not sure about this exception, can anyone please help?Please rename the log file, reproduce the issue and check the log file then.
    bne:text="SQL exception occurred during PL/SQL upload."
    bne:cause="Database insert error"Please see these docs.
    R12 Uploading Intercompany Transactions Shows SQL Exception Occurred During PL/SQL Upload [ID 1234063.1]
    Batch Element Entry (BEE) Spreadsheet Interface > 10 Rows Fails with Error: 'SQL exception occured during PL/SQL Upload.' [ID 388012.1]
    How Do You Setup An AGIS Transaction That Has Several Transaction Lines For The Same Transaction [ID 946499.1]
    FCH: Error: "The upload process has completed with errors. Please Close to return to the document and fix the errors. - No rows uploaded - <999> rows were invalid" During WebADI Data Upload [ID 553025.1]
    R12: Legal Entity Name must be < 31 characters. [ID 472505.1]
    Oracle Payroll 'Batch Element Entry ( BEE )' Frequently Asked Questions ( FAQ ) [ID 1353021.1]
    Thanks,
    Hussein

  • SQL exception in File Adapter.

    Hi experts,
    I have a sender adapter of type file to retrieve data from ftp conexion. If I use a ftp client I can see remove the files, but when I active the communication channel appears this error in the communication channel monitor:
    Error: com.sap.aii.af.ra.ms.api.DeliveryException: Problem inserting 633c24f5-b66e-4216-17b8-b91aa544cfcc(OUTBOUND) into the database: java.sql.SQLException: ORA-01400: no se puede realizar una inserción NULL en ("SAPSR3DB"."XI_AF_MSG"."VERS_NBR")
    Any idea?
    What is the reason which a sql exception is raised?
    Thanks in advance.
    Jose Manuel

    Check Temporary Tablespace is Empty.
    Go thru this thread for other inputs to resolve ur problem :
    java.sql.SQLException

  • Weblogic 7 SP5 SQL Exceptions follow a JTA transaction timeout

    I have a problem in Weblogic 7 SP5 that was not happening in SP2. I'm using the
    Weblogic jDriver (weblogic.jdbc.mssqlserver4.Driver)
    I have a transaction that times out due to JTA transaction timeout, and then gets
    marked for rollback. For several minutes after the timeout, I get many SQL Exceptions
    with bogus messages like "invalid column name" when the column name is, in fact,
    correct.
    Then the weblogic log file shows "Exception during rollback of transaction" (javax.transaction.SystemException:
    Heuristic hazard). Next, the connection is tested on reserve, this test fails,
    and the connection is refreshed. As soon as the connection is refreshed, I stop
    getting SQL exceptions and everything starts working correctly again.
    It seems like the transaction timeout is making the connection go bad, and somehow
    other requests are using this bad connection before the transaction finishes rolling
    back. What could the problem be? Some excerpts from my app log and weblogic log
    are below.
    com.workpoint.server.ejb.WorkPointEJBException: The transaction is no longer active
    - status: 'Marked rollback. [Reason=weblogic.transaction.internal.TimedOutException:
    Transaction timed out after 901 seconds
    Name=[EJB com.storeperform.taskmgr.ejb.procrelease.ProcReleaseBean.distributeToOrgUnit(com.storeperform.taskmgr.values.DistributionUnit)],Xid=17109:68c10765ba68aaaa(12114044),Status=Active,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds
    since begin=901,seconds left=60,activeThread=Thread[WorkQueueThread[q=1, qName=ProcReleaseTaskWorkers,
    id=6],5,WorkQueueGroup[id=1, name=ProcReleaseTaskWorkers]],ServerResourceInfo[weblogic.jdbc.jts.Connection]=(state=ended,assigned=none,xar=weblogic.jdbc.jts.Connection@18cd616,re-Registered
    = false),SCInfo[DomainManager+edwards-s1]=(state=active),properties=({weblogic.transaction.name=[EJB
    com.storeperform.taskmgr.ejb.procrelease.ProcReleaseBean.distributeToOrgUnit(com.storeperform.taskmgr.values.DistributionUnit)],
    weblogic.jdbc=t3://10.10.3.17:7001}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=edwards-s1+10.10.3.17:7001+DomainManager+t3+,
    Resources={})],CoordinatorURL=edwards-s1+10.10.3.17:7001+DomainManager+t3+)]'.
    No further JDBC access is allowed within this transaction.SQL Command = INSERT
    INTO WP_PROCI_NODE_HIST (NODE_HIST_ID, NODE_HIST_DB, PROCI_ID, PROCI_DB, PROCI_NODE_ID,
    PROCI_NODE_DB, NODE_ITERATION, NODE_STATE_ID, ROW_VERSION, LU_ID, LU_DATE) VALUES
    weblogic.jdbc.mssqlserver4.TdsException: Invalid column name 'user_fname'.
    [from weblogic log]
    ####<Jun 17, 2004 8:14:16 AM MDT> <Error> <EJB> <EDWARDS> <edwards-s1> <WorkQueueThread[q=1,
    qName=ProcReleaseTaskWorkers, id=7]> <kernel identity> <> <010025> <Exception
    during rollback of transaction Name=[EJB com.storeperform.taskmgr.ejb.procrelease.ProcReleaseBean.distributeToOrgUnit(com.storeperform.taskmgr.values.DistributionUnit)],Xid=17439:68c10765ba68aaaa(31878774),Status=Rolled
    back. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException],HeuristicErrorCode=XA_HEURHAZ,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds
    since begin=3,seconds left=57,ServerResourceInfo[weblogic.jdbc.jts.Connection]=(state=rolledback,assigned=edwards-s1,xar=weblogic.jdbc.jts.Connection@15e1b7e,re-Registered
    = false),SCInfo[DomainManager+edwards-s1]=(state=rolledback),properties=({weblogic.transaction.name=[EJB
    com.storeperform.taskmgr.ejb.procrelease.ProcReleaseBean.distributeToOrgUnit(com.storeperform.taskmgr.values.DistributionUnit)],
    weblogic.jdbc=t3://10.10.3.17:7001}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=edwards-s1+10.10.3.17:7001+DomainManager+t3+,
    Resources={})],CoordinatorURL=edwards-s1+10.10.3.17:7001+DomainManager+t3+): javax.transaction.SystemException:
    Heuristic hazard: (weblogic.jdbc.jts.Connection, HeuristicHazard, (javax.transaction.xa.XAException:
    I/O exception while talking to the server, java.io.EOFException))
    ####<Jun 17, 2004 8:14:17 AM MDT> <Warning> <JDBC> <EDWARDS> <edwards-s1> <ExecuteThread:
    '8' for queue: 'default'> <kernel identity> <> <001094> <A connection from pool
    "sp_connection_pool" was tested during reserve with the SQL "select 1" and failed:
    weblogic.jdbc.mssqlserver4.TdsException: I/O exception while talking to the server,
    java.io.EOFException
    ...[stack trace omitted]...
    This connection will now be refreshed.>

    Brad Swanson wrote:
    According to BEA's documentation, the jDriver is deprecated (no longer supported)
    in WLS 7 SP5. Not sure when they stopped supporting it, but sometime after SP2,
    apparently. Our solution, unfortunately, was to stay with SP2. Using the newer,
    supported JDBC driver would presumably fix the problem, but we didn't have time
    to do a full regression test with a different driver.Hi, no. The jDriver is deprecated, not unsupported. For WLS releases that contain
    the jDriver it will be supported for as long as we support the WLS release!
    Deprecation just means that we may choose to not supply that driver in any future
    release, and will not support it in that or any subsequent release.
    Practically, much depends on which jDriver you're using. In decreasing order
    of practical support we have: The weblogic.jdbc.oci.Driver to Oracle: We do actively
    continue to fix bugs in it. The weblogic.jdbc.mssqlserver4.Driver: Very unlikely that
    we will fix any new problem with it. The weblogic.jdbc.ifmx.Driver: Even less
    likely that we will do anything with it...
    I hope that makes it better for you.
    Joe

  • Sql exception occurred during pl/sql upload error in custom integrator

    Hi,
    I have modified custom integrator which was working fine. I have added one column in template and the lov is working fine.
    Issue is that when i upload the file to oracle it showing error as ''sql exception occurred during pl/sql upload".
    I have tried executing the same from back end but it was working fine from back end and inserting properly in interface table.
    Kindly suggest for the issue.
    Regards,
    Gk

    Hi,
    You can get the error message in excel sheet itself by using the following piece of code.
    FND_MESSAGE.CLEAR;
    FND_MESSAGE.SET_NAME ('APPLICATION', 'APPLICATION_MESSAGE_NAME');
    FND_MESSAGE.SET_TOKEN ('ERROR_TOKEN', ERROR MESSAGE);
    FND_MESSAGE.RAISE_ERROR;
    Create an excpetion block and include the above piece of code whilde catching the exception.
    APPLICATION- The applicatio in which you create message
    APPLICATION_MESSAGE_NAME-  The message Name
    ERROR_TOKEN- You must create a token in application message
    ERROR MESSAGE- You can see the  error using SQLERRM.
    Thanks,
    Vinoop

  • SQl Exception while connecting to Oracle Databse : Network adaptar .......

    hi !
    I am geeting an SQL Exception ...
    Network apdator could not establish connection..
    the code is as follows
    String driverName = "oracle.jdbc.driver.OracleDriver";
    String dbURL = "jdbc:oracle:thin:@server:1521:biz";
    String uName = "uidt";
    String pwd = "pwd";
    Class.forName(driverName);
    conn = DriverManager.getConnection(dbURL, uName, pwd);
    Please help me out !!

    First aid check list for "connection refused":
    - Check host name in connect string.
    - Check port number in connect string.
    - Try numeric IP address of server host in connect string, in case name server is hosed.
    - Are there any firewalls between client and server blocking the port.
    - Check that the db server is running.
    - Check that the db server is listening to the port. On the server, try: "telnet localhost the-port-number". Or "netstat -an", there should be a listening entry for the port.
    - Try "telnet serverhost the-port-number" from the client, to see if firewalls are blocking it.
    - If "telnet" fails: try it with the numeric ip address.
    - If "telnet" fails: does it fail immediately or after an obvious timeout? How long is the timeout?
    - Does the server respond to "ping serverhost" or "telnet serverhost" or "ssh serverhost"?

  • SQL Exceptions, transport-level errors on SharePoint 2010 App Server

    SharePoint 2010 becomes inaccessible 2-3 times per day. It happens at approximately the same times: 8 PM, 1 AM and 1 PM. It is inaccessible for about 3-4 minutes and then comes back on its own.
    During the time it is down, we see the following errors in the event viewer on the application server:
    EventID: 5586 Task Category: Database -
    Unknown SQL Exception 64 occurred. Additional error information from SQL Server is included below.A transport-level error has occurred when receiving results from the server.
    (provider: TCP Provider, error: 0 - The specified network name is no longer available.)
    EventID: 3 Task Category: None -
    .Net SqlClient Data Provider: System.Data.SqlClient.SqlException: A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error:
    0 - The specified network name is no longer available.)
    EventID: 6398 Task Category: Timer -
    The Execute method of job definition Microsoft.Office.Server.Search.Monitoring.HealthStatUpdateJobDefinition (ID f9db48f1-f115-47ab-99b6-552460cbb782) threw an exception. More
    information is included below. A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The specified network name is no longer available.)
    EventID: 8086 Task Category: Business Data -
    The BDC Service application failed due to a SQL Exception: SQLServer host ums1spd1v. The error returned was: 'A transport-level error has occurred when sending the request to
    the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)'
    The SharePoint logs have errors during the same time period saying the same kinds of things: Sql exception raw message: A transport-level error has occurred when receiving results from the server,
    The specified network name is no longer available, etc.
    Our network administrator has looked at the issue and cannot find any network problems. 
    He setup a continuous ping from the app server to the database server. 
    Even during the times these errors are occurring, the app server is still able to reach the database server. 
    However, you cannot ping the app server itself during this time.
    Our database administer cannot find any SQL Server issues. 
    There are no errors in the event viewer or the SQL logs on the database server.
    In Central Admin, we can see that one or two jobs fail with SQL errors during the times these errors take place.
     It is almost always the “User Profile Service Application – User Profile Language Synchronization Job” and often the “Health Statistics Updating” or “Crawl Log Report for Search Application Search Service Application”. 
    These jobs run successfully at many other times during the day.
    Is there a good way to tell if the database, network or SharePoint itself is the root of these problems? 
    The database and network guys say there are no problems in their areas, but all I can find in the SharePoint logs is that it can’t reach the database server.
    Thank you for any suggestions you may have!

    Since these seem to happen at very specific times, I would run a NetMon trace at that window to capture what is going back and forth (or perhaps the timer service is just unable to reach the SQL server).
    Trevor Seward, MCC
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Central Administraion Internal server error 500 | event id 5586 sharepoint foundation unknown sql exception 2812 could not find stored procedure dbo.proc_gettimerlock

    Hi,
    We have two SharePoint 2010 SP2 servers with one SQL 2012 Backend.
    Recently we cannot open the central administration, getting 500 internal server error and multiple SQL errors in event viewer:
    event id 5586 sharepoint foundation unknown sql exception 2812 could not find stored procedure dbo.proc_gettimerlock
    event id 5586 sharepoint foundation unknown sql exception 2812 occured could not find stored procedure 'proc_fetchdocforhttpget'
    Also I cannot run SharePoint configuration wizard, getting this error: sharepoint 2010 failed to resgister sharepoint services
    In the log file, I found this error "an exception of type microsoft.sharepoint.spexception was thrown 0x80131904"
    Any ideas?
    Thanks, Shehatovich

    As You can see below stored procedure has its specific Permission's, check user who is performing action as well as CentralAdministation Pool has right permission and their permissions are not modified from SQL Server.
    -Samar
     =
    Sr. Software engineer

Maybe you are looking for

  • Query-Paid Time Off (PTO)

    Hi, I am working on Time Management. I have a query. I need to set the PTO (Paid Time Off) right wherein the Details given as under:- Scenario:- 1) Length of Service=0-0.99 Accrual hours per pay period=4.01 Yearly Equivalent= 96 Hours Maximum Hours o

  • When you drop/crack your iPhone 5, and you take back to an Apple store can you get another color of iPhone with your insurance?

    I want to know because I have a black iPhone 5 with insurance, and I was wondering if I ever broke it and went to an Apple Store would they give me a new iPhone but a white one. Thanks appreciate it

  • New iMac 24" Grey - Energy Saver Issue

    10.4.10 2.4Ghz Intel Core 2 Duo 1GB 667 Mhz DD2 SDRAM Boot Rom 1M71.007A.B00 Model Ident: iMac7,1 *The Energy Saver is having issues* Put the Computer to sleep when it is inactive for - set to Never Put the display to sleep when it is inactive for -

  • Xcelsius-Export to pdf-opens with default data

    HI All, We have Xcelsius dashboard pulling data from webi reports using Live Office connection. Data is coming from SAP BW so every time when I run the dashboard it asks for user/pw and based on that it shows me data. Till here everything is fine as

  • Hide and Show

    Hi all, In my application i want to hide and show a report. For this i created two buttons in a new region and setting a hidden item value depends on Hide or Show button.But i want to hide the report only not the title so that i can able to place the