Displaying SQL Exception errors in plain english

Hi,
How can I display SQL Exception errors in plain english. For example how would I display:
java.sql.SQLException: ORA00001:unique consraint(EMP.NAME) violated
to
Name already exists!
Regards.

When you log into SharePoint you give it a username and password, this might be automatic so you never notice it but it still happens in the background. The UPS then takes that username and creates a UPS entry for that account using information stored in
Active Directory.
If you're not familiar with AD it's normally a generally accessible 'phone book' like collection of user data like username, first name, surname, email address, manager, department and what security groups they belong to.
If you configure the sync service this information is pulled through earlier in bulk rather than on-demand as users log in. You also get a lot more control over what data is used where and how.
It's slightly different if you're using Forms Based Authentication but that's another story.

Similar Messages

  • SQL Exception Error while Inserting

    hi i m getting this error while inserting
    java.sql.SQLException: ORA-01400: cannot insert NULL into ("APPS"."XXGEN_BAND5_ASSESSMENT_DETAILS"."PERSON_ID")

    While you are inserting value to the table.You are not passing PERSON_Id value which is the primary key in your table.If your page is EO based then while you are initializing the VO based on that EO.You are not setting the value of Person_id prior to commiting the data.
    Hope it helps!!!
    Thanks
    AJ

  • Displaying exception errors generated outside ADF

    Hi all,
    I have a JSF application which connects to an OID/LDAP server. Since some of the errors are generated outside the application (i.e. they could be LDAP errors), I'm not sure how to display the exception errors from a try/catch block using customized Faces Messages. So far my code looks like this.
    try {
    // Using RootOracleContext to fetch the default realm
    sub = roc.getSubscriber(ctx, Util.IDTYPE_DEFAULT, null, new String[] {"*"});
    catch (UtilException ue) {
    // Code that will generate a faces message like the following
    String message = "Custom message";
    FacesContext.getCurrentInstance().addMessage("componentID", new FacesMessage(message));
    throw ue;
    Thanks
    George

    Thanks Jan but I've got it to work with my original code. It wasn't so much that I wanted to display the stack trace to the user. I kept getting a new web page rather than my custom message.
    Anyway as it turned out the problem was that there was another exception that was being generated and not trapped in the try/catch block I was focussing on. Hence like any other Unchecked Exception, the web page stack trace was being produced as the default handler.
    Cheers
    George

  • SQL exception in OAF Controller

    Hi
    I am getting SQL exception error with the following query in OAF Controller.
    Can anyone tell me the issue with the follwoing query,
    PreparedStatement cal = conn.createPreparedStatement(" SELECT count(1) " +
    " FROM hz_parties hp, hz_cust_accounts_all hca, hz_cust_acct_sites_all hcas " +
    " WHERE hca.party_id = hp.party_id " +
    " AND hp.party_name = '"+partyName+"'" +
    " AND hcas.cust_account_id = hca.cust_account_id " +
    " AND hcas.org_id = 14078 " +
    " AND oapagecontext.getOrgId() != 14078 ",1);
    catch(SQLException sqle)
    lcount = String.valueOf(0);
    exceptions.add(new OAException("Error in the custom query, Contact Administrator" , OAException.INFORMATION));
    OAException.raiseBundledOAException(exceptions);
    }

    Myself fixed by removing the profile org id from query and put it outside

  • Unknown SQL Exception 208 occurred. Additional error information from SQL Server is included below.Invalid object name 'Webs'.

    SP 2013 Server + Dec 2013 CU. Upgrading from SharePoint 2010.
    We have a web application that is distributed over 7-8 content databases from SharePoint 2010. All but one database are upgradable. However, one database gives:
    Invalid object name 'Webs'.
    while running Test-SPContentDatabase or Mount-SPContentDatabase.
    EventViewer has the following reporting 5586 event Id:
    Unknown SQL Exception 208 occurred. Additional error information from SQL Server is included below.Invalid object name 'Webs'.
    After searching a bit, these links do not help:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/fd020a41-51e6-4a89-9d16-38bff9201241/invalid-object-name-webs?forum=sharepointadmin
    we are trying PowerShell only.
    http://blog.thefullcircle.com/2013/06/mount-spcontentdatabase-and-test-spcontentdatabase-fail-with-either-invalid-object-name-sites-or-webs/
    In our case, these are content databases. This is validated from Central Admin.
    http://sharepointjotter.blogspot.com/2012/08/sharepoint-2010-exception-invalid.html
    Our's is SharePoint 2013
    http://zimmergren.net/technical/findbestcontentdatabaseforsitecreation-problem-after-upgrading-to-sharepoint-2013-solution
    Does not seem like the same exact problem.
    Any additional input?
    Thanks, Soumya | MCITP, SharePoint 2010

    Hi,
    “All but one database are upgradable. However, one database gives:
    Invalid object name 'Webs'.”
    Did the sentence you mean only one database not upgrade to SharePoint 2013 and given the error?
    One or more of the following might be the cause:
    Insufficient SQL Server database permissions
    SQL Server database is full
    Incorrect MDAC version
    SQL Server database not found
    Incorrect version of SQL Server
    SQL Server collation is not supported
    Database is read-only
    To resolve the issue, you can refer to the following article which contains the causes and resolutions.
    http://technet.microsoft.com/en-us/library/ee513056(v=office.14).aspx
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • Exception error  in PL/SQL block

    Hi,
    do the following conditions in a PL/SQL block cause an exception error to occur ?
    A- Select statement does not return a row.
    B- Select statement returns more than one row.
    Thank you.

    If you're talking about SELECT INTO then yes:
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    Connected as cmza
    SQL> set serveroutput on
    SQL>
    SQL> declare
      2    v_text varchar2(4000);
      3  begin
      4    -- question 1
      5    select banner
      6      into v_text
      7      from v$version;
      8  end;
      9  /
    declare
      v_text varchar2(4000);
    begin
      -- question 1
      select banner
        into v_text
        from v$version;
    end;
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at line 6
    SQL> declare
      2    v_text varchar2(4000);
      3  begin
      4    -- question 2
      5    select banner
      6      into v_text
      7      from v$version
      8     where 1 = 2;
      9  end;
    10  /
    declare
      v_text varchar2(4000);
    begin
      -- question 2
      select banner
        into v_text
        from v$version
       where 1 = 2;
    end;
    ORA-01403: no data found
    ORA-06512: at line 6
    SQL>

  • Connector Specific Error. Can anyone PLEASE tell me in plain english not techi talk how to fix this error?

    Connector Specific Error.  
    Can anyone PLEASE tell me in plain english not techi talk how to fix this error?

    Hey royhanif,
    Welcome to the BlackBerry Support Community Forums.
    Thanks for the question.
    Follow the steps in this KB article to resolve the connector specific error: www.blackberry.com/btsc/KB15294
    Let me know if you have any more questions.
    Cheers.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • Interaction Record cannot be displayed, instead it gives an exception error

    Hi Folks,
    In the Web IC, when I click on "Interaction Record" in the Navigation bar, the page is not displayed, instead it gives an exception error:
    Component ICCMP_BT_INR cannot be displayed
    An exception has occurred Exception Class  CX_BOL_EXCEPTION - Access Previously Deleted Entity 
    Method:  CL_CRM_BOL_CORE=>GET_TRANSACTION 
    Source Text Row:  10
    Can someone tell me where to correct this situation.
    Thanks,
    John

    Hi,
    please check this setting:
    SPRO->IMG->Customer Relationship Management->Transactions->Basic Settings->Define Transaction Type
    Define 0010 as default for IR.
    Denis

  • 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 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

  • Unknown SQL Exception 0 occurred. Additional error information from SQL Server is included below.

    Log Name:      Application
    Source:        Microsoft-SharePoint Products-SharePoint Foundation
    Event ID:      5586
    Task Category: Database
    Level:         Error
    Keywords:     
    User:          DOMAIN\SA account
    Unknown SQL Exception 0 occurred. Additional error information from SQL Server is included below.
    The target principal name is incorrect.  Cannot generate SSPI context.
    This is the error, if often find in my WFE's. I googled for the error and granted DB owner roles for the service account as specified in TechNet, but no luck.
     Even same error logs generated on SharePoint logs.
    SqlError: 'The target principal name is incorrect.  Cannot generate SSPI context.'   
    Source: '.Net SqlClient Data Provider' Number: 0 State: 0 Class: 11 Procedure: 'GenClientContext' LineNumber: 0 Server: 'servername\SHAREPOINT,4101'       
    f2cbcc9c-ac65-7084-fcab-4d2943cdfdea
    Unknown SQL Exception 0 occurred. Additional error information from SQL Server is included below. 
    The target principal name is incorrect.  Cannot generate SSPI context.         
    f2cbcc9c-ac65-7084-fcab-4d2943cdfdea
    System.Data.SqlClient.SqlException (0x80131904): The target principal name is incorrect. 
    Cannot generate SSPI context.     at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions
    userOptions, DbConnectionInternal& connection)    
    at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)    
    at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)    
    at System.Data.ProviderBase.DbConnecti...            
    f2cbcc9c-ac65-7084-fcab-4d2943cdfdea
    Thanks.
    Badri

    For SharePoint to recognize the SQL server name we provide its name and instance while installing SharePoint. When we are using SQL alias to connect to SQL, we need to configure the same alias on SharePoint server so that SharePoint recognize alias over
    the network. 
    Having SharePoint connect to a SQL Alias instead of the NetBIOS name is always a good idea. The main benefit is, if you ever have to switch the SQL Server or connect to a SQL Cluster VIP address, you just change the Alias to point to the SQL Cluster name
    on the SharePoint Server and restart the SharePoint Timer Service and you are good to go.
    Please check this blog.
    http://blogs.msdn.com/b/priyo/archive/2013/09/13/sql-alias-for-sharepoint.aspx
    http://technet.microsoft.com/en-us/library/hh292622(v=office.15).aspx
    Thank You, Pallav S. Srivastav ----- If this helped you resolve your issue, please mark it Answered.

  • VO Errors ,,,,, procedurejava.lang.sql.exception & Java.lang.NullPointerExc

    Hi All,
    I have extended the standard CO.
    Below is my code.
    processRequest(OAPageContext pageContext,OAWebBean webbean)
    super.processRequest(pageContext,webbean);
    processFormRequest(OAPageContext pageContext,OAWebBean webbean)
    super.processRequest(pageContext,webbean);
    String evt = pageContext.getParameter(OAWebBEanConstants.EVENT_PARAM);
    OAApplicationModule oaapplicationmodule = pageContext.getRootApplicationModule();
    OAViewObject vo = (OAViewObject)oaapplicationmodule.findViewObject("DisplaydetailsVO");
    if(vo!=null)
    vo.first();
    String fwk = pageContext.getParameter("Runid"); *// If i use this statement to call the attribute value then Error 1 i am getting*
    (or)
    String qaz = (String)vo.getCurrentRow().getAttribute("Runid") *// If i use this statement to call the attribute value then Error 2 i am getting*
    if(event.equals("GO")
    try
    CallableStatement callablestatement = (oracleCallableStatement)oaapplicationmodule.getOADBTransaction().createCallableStatement("begin purchase_po_wf.purchasing_vision_wf(:1); end;",1);
    callablestatement.execute();
    callablestatement.setString(1,fwk);
    callablestatement.setString(1,qaz);
    callablestatement.close();
    callablestatement.close();
    Catch(SQLException ex)
    Please suggest me which statement to use call the Attributes & VO . Please do let me know if anything is wrong in the code.
    I am getting the below errors :
    1. Cannot call the procedurejava.lang.sql.exception Method in & out parameters extends::1
    2. Java.lang.NullPointerException
    Can any one please help me out , to overcome this issue. Its bit urgent
    Thanks,
    Kalyan

    Hi Kalyan,
    So you want to get the value of DisplaydetailsVO.Runid attribute
    and then use it for calling a package?
    and the attribute is Runid or RunId
    you can put the below code to get all the attributename and its values in the VO.(change the VO, AM names according to your customizations)
    Then you can get what should be attributeName you should be using it, and I am not sure about your requirement, you might need to call before super.processFormRequest().
    Get all the attribute from a VO with Attribute Names in Custom CO
    OAApplicationModule rootAM = pageContext.getRootApplicationModule();
    OAApplicationModule apprAM = (OAApplicationModule)rootAM.findApplicationModule("AppraisalsAM");
    String offlineStatus = (String)apprAM.invokeMethod("getOfflineStatus",new Serializable[]{appraisalId+""});
    OAViewObject appraisalVO = (OAViewObject)apprAM.findViewObject("AppraisalVO");
    if(appraisalVO !=null)
    AppraisalVORowImpl appraisalVORow = (AppraisalVORowImpl) appraisalVO.first();
    if(appraisalVORow !=null)
    int attrCount = appraisalVO.getAttributeCount();
    writeLog("XXRBG",pageContext,"Attrbuute count "+attrCount);
    String[] attributeNames = appraisalVORow.getAttributeNames();
    for (int i = 0 ;i< attributeNames.length ;i++ )
    writeLog("XXRBG",pageContext," Name "+attributeNames[i] +" = "+appraisalVORow.getAttribute(i));
    Thanks,
    With regards,
    Kali.
    OSSi.

  • Error in accessing ResultSet - Descriptor index not valid SQL Exception

    Hi
    I am trying to execute a procedure in java and try to access the result set, but it is giving out Descriptor index not valid SQL Exception.
    While printing the first record the error is thrown the code is as follows. Any help would be appreciated. Thanks in Advance.
    1 . The Procedure
    CREATE PROCEDURE library.fetchssncursor()
    RESULT SETS 1
    LANGUAGE SQL
    BEGIN
    DECLARE c1 CURSOR WITH RETURN FOR
    SELECT * FROM VBPLTC.LTCP_DUMMY;
    open c1;
    END;2. Java Class
    public class TestFunction2
    public void getPassThruReport()
         Connection objConnection=null;
         ResultSet rs=null;
         CallableStatement callableStatement=null;
         try
              List returnList=new ArrayList();
              DriverManager.registerDriver(new com.ibm.as400.access.AS400JDBCDriver());
              objConnection = DriverManager.getConnection("URL","USERID","PWD");
              callableStatement  = objConnection.prepareCall("{call fetchssncursor() }");
               System.out.println("Got Connection "+ objConnection.toString()); 
                 callableStatement.execute();
                 rs = callableStatement.getResultSet();
                 // callableStatement.executeQuery (); i also tried this
                if(rs!=null)
                  while(rs.next())
                       System.out.println(rs.getString(1)+","+rs.getString(2)+","+rs.getInt(3)+","+rs.getInt(4));
         catch(SQLException e)
              System.out.println("SQLException "+e);
         catch(Exception e)
              System.out.println("Exception "+e);
         finally
              try
                   if(rs!=null)     
                   rs.close();
                   if(objConnection!=null)
                   objConnection.close();
               catch (SQLException e) {
    public static void main(String args[])
           TestFunction2 obj = new TestFunction2();
           obj.getPassThruReport();
    }3. Output
    Got Connection S101C3DE
    shar,Sharath,123456,1 <------------- records
    SQLException java.sql.SQLException: Descriptor index not valid.(1574
    ****************************************

    http://www-03.ibm.com/servers/eserver/iseries/toolbox/troubleshooting.htm

  • TS1702 In plain english how do you download past error message 0x800B0101

    In plain english how do you download past error message 0x8ooB0101?

    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    https://support.mozilla.org/kb/Server+not+found
    https://support.mozilla.org/kb/Firewalls

Maybe you are looking for

  • How can I fix a check paper error on the HP psc 1210 all in one printer?

    Product name/number:  HP PSC 1210 all-in-one OS:  Windows 7 Error Msg:  Check Paper light flashes I have verified there are no paper jams, paper is loaded, print cartridges move freely and rollers are clean.  Is there a a paper out switch that can fa

  • Hard Drive failure on 2006 iMac

    So my iMac (model 5.1; EMC 2118; 2.16 GHz) had a hard drive failure (even Disk Warrior couldn't fix it!), but I can't tell if it's just the boot partition/sector that's bad or total failure .  Any easy way of finding out other than getting SATA/USB a

  • How i create an audio streaming in adobe muse?

    I am creating an online radio station. As I can create streaming audio with adobe muse?

  • ITunes store not opening

    I have just acquired a G5 powermac from 2004. I have updated all the software (OSX 10.4.11) but now cant get itunes to work properly. It opens, but when I click on music store, it says "cannot complete the music stroe request. The store may be busy".

  • How to Refresh JTree if a file System got changed during Run-time

    Hi, Can anyone tell me how to refresh a JTree(javax.swing.JTree) used for displaying file system(both local and remote). I'm getting a problem if a file/directoy is added to the file system, after my Applet is loaded. Actually, i have used DefaultTre