Using "as" in DUAL statement produces error

Hi,
SELECT 'abcefghijklm' AS str FROM DUAL WHERE str IN ('a','e','i','o','u');
This produces an error message - "STR": invalid identifier
Is such a comparison using a field name invented using "as" always invalid - is there no way around it?
What I am trying to do is to count the number of vowels in a sentence, there may be a better approach of course, if anyone knows one...?

What I am trying to do is to count the number of vowels in a sentence
SQL> select word_char,count(*) from (SELECT substr(str,ROWNUM,1) AS word_char
  2  FROM (SELECT 'abcefghijklmabcefghijklmno' as str FROM DUAL) CONNECT BY LEVEL <= length(str))
  3  where word_char IN ('a','e','i','o','u') group by word_char order by word_char;
W   COUNT(*)
a          2
e          2
i          2
o          1
SQL>
SQL> select length(str) - length(replace(translate(lower(str),'aeiou',' '),' ','')) cnt
  2  from (SELECT 'abcefghijklmabcefghijklm' as str FROM DUAL);
       CNT
         6
SQL>
SQL>

Similar Messages

  • Bind Variable In Case Statement Produces Error ORA-01036

    When running the following command using ODP.Net 10.1.0.301 I recieve error 1036. Statement runs fine within SQL+ and Toad.
    Dim SQL As String = "SELECT CASE WHEN EXISTS(SELECT part_nbr FROM item_master WHERE part_nbr=:part_number) THEN 1 ELSE 0 END AS RECORD_EXISTS FROM Dual"
    Dim OraConnection As New OracleConnection(connectstring)
    Dim OraCommand As New OracleCommand(SQL, OraConnection)
    OraCommand.Parameters.Add("part_number", OracleDbType.Varchar2).Value = PartNumber
    Dim Obj as Object=OraCommand.ExecuteScalar

    Hi Michael,
    I was able to get your code to work on my system by changing the SQL statement as follows:
    SELECT (CASE WHEN EXISTS(SELECT part_nbr FROM item_master WHERE part_nbr=:part_number) THEN 1 ELSE 0 END) AS RECORD_EXISTS FROM Dual
    I simply enclosed the case statement in opening and closing parenthesis...
    Hope that helps,
    - Mark

  • "no row count was produced" error using mqsl commands through Access

    "no row count was produced" error using mqsl commands through Microsoft Access. This sql statement works when I use in in the Access program but it does not work when I try and put it through Access using my Java program. Here is the block of code that I have that does the search.
    public static Game searchRecord(String search) throws SQLException{
    String query = "SELECT* " + "FROM gamefields WHERE SKU = '" + search + "' ORDER BY SKU ASC";
    Game lastGame = new Game(gamefields.getString(1),
    gamefields.getString(2),
    gamefields.getString(3),
    gamefields.getString(4),
    gamefields.getString(5),
    gamefields.getString(6),
    gamefields.getString(7),
    gamefields.getDouble(8));
    Statement statement = connection.createStatement(); //Creates connection
    //statment to database
    statement.executeUpdate(query); //Executes the delete query and Updates the database
    statement.close();
    close();
    open();
    return lastGame;

    When you use the code from java, you access access (!) through the ODBC interface. Things can be different in ODBC and Jet. When you use PrepareadStatements, you should be on the save side:
    public static Game searchRecord(String search) throws SQLException
    String query = "SELECT * FROM gamefields WHERE SKU = ? ORDER BY SKU ASC";
    PreparedStatement statement = connection.prepareStatement(query);
    statement.setString(1,  search);
    ResultSet rs = statement.executeQuery(query);
    if(rs.next()
    // if a row retuned extract the details here
    rs.close();
    statement.close();
    return lastGame;
    }

  • Inserting multiple rows using a single Insert statement without using dual

    Hi all,
    i am trying to insert multiple rows using a single insert statement like the below one.
    The below one works fine..
    But is there any other change that can be done in the below one without using dual...
    insert all
    into ps_hd_samp (num1,num2) values (1,1)
    into ps_hd_samp (num1,num2) values (2,2)
    into ps_hd_samp (num1,num2) values (3,3)
    select 1 from dual;

    NiranjanSe wrote:
    Hi all,
    i am trying to insert multiple rows using a single insert statement like the below one.
    The below one works fine..
    But is there any other change that can be done in the below one without using dual...
    insert all
    into ps_hd_samp (num1,num2) values (1,1)
    into ps_hd_samp (num1,num2) values (2,2)
    into ps_hd_samp (num1,num2) values (3,3)
    select 1 from dual;
    SQL> create table ps_hd_samp (num1 number,num2 number);
    Table created.
    SQL> insert all
      2  into ps_hd_samp (num1,num2) values (1,1)
      3  into ps_hd_samp (num1,num2) values (2,2)
      4  into ps_hd_samp (num1,num2) values (3,3)
      5  select count(*)
      6  from ps_hd_samp;
    3 rows created.
    SQL> select * from ps_hd_samp;
          NUM1       NUM2
             1          1
             2          2
             3          3

  • - 0 fatal error(s), 3 error(s)     ----------- Payload: Adobe Photoshop Lightroom 5 5.6.0.0 Adobe_Lightroom_x64.msi_5.6 -----------  ERROR: Key not valid for use in specified state.    ERROR: Install MSI payload failed with error: 1603 - Fatal error durin

    I keep getting this error code when trying to download         
    - 0 fatal error(s), 3 error(s) ----------- Payload: Adobe Photoshop Lightroom 5 5.6.0.0 Adobe_Lightroom_x64.msi_5.6 ----------- ERROR: Key not valid for use in specified state. ERROR: Install MSI payload failed with error: 1603 - Fatal error during installation. MSI Error message: Key not valid for use in specified state. ERROR: Third party payload installer Adobe_Lightroom_x64.msi failed with exit code: 1603

    Generally this error happens because of an encrypted folder or insufficient permissions on that folder: http://support.microsoft.com/kb/834484 (MS Explanation)
    Adobe has a page here: Error 1603: A fatal error occurred during installation

  • Using Linq Query in our program error is thrown :Exception has been thrown by the target of an invocation.

    Hi All,
      I am writing the below linq query to fetch the record from the database ,
    var individualres = (from c in orgContext.CreateQuery("contact")
                                                 join a in orgContext.CreateQuery("annotation")
                                                      on c["contactid"] equals a["objectid"]
                                                 where (bool)a["isdocument"] == true && a["objectid"] == r.GUID &&
    a["filename"] != null
                                                 select new
                                                     FirstName = c["firstname"],
                                                     LastName = c["lastname"],              
                                                     CreatedDate=a["createdon"],
                                                     DocumentBody = (a["documentbody"] == null) ? "" : a["documentbody"],
                                                     GUID = c["contactid"],
                                                     FileName = a["filename"],
                                                     WorkStatus = (c["new_workstatus"] == null) ? "" : c["new_workstatus"],
                                                     Rank = (c["new_rank"] == null) ? "" : c["new_rank"],
                                                     State = (c["address1_stateorprovince"] == null) ? "" : c["address1_stateorprovince"],
                                                     City = (c["address1_city"] == null) ? "" : c["address1_city"]
    But it is throwing the error   Exception has been thrown by the target of an invocation.
    if this error is related to null values into the columns , then i am handling those by using the 
    ternary operator.
    Can anybody help me out for this issue.
    thanks in advance.

    Hello EmpAnsar,
    >>But it is throwing the error   Exception has been thrown by the target of an invocation.
    From your LINQ query, it is hard to tell what the caused reason is since we do not have your exact tables and data. My suggestion is that you could narrow this issue by reducing items you want to fetch, for example, you could firstly write a sample query
    without where clause and select new syntax as:
    var individualres = (from c in orgContext.CreateQuery("contact")
    join a in orgContext.CreateQuery("annotation")
    on c["contactid"] equals a["objectid"]
    select c).ToList();
    To check if it would work, if so, you could add these filters and items you want step by step until reproducing this issue, this would help locate the root reason.
    Update:
    For this exception, i found some related threads which might be helpful to you:
    http://stackoverflow.com/questions/11809530/linq-and-exception-has-been-thrown-by-the-target-of-an-invocation
    http://stackoverflow.com/questions/4074058/exception-raised-when-using-a-linq-query-with-entity-framework
    http://stackoverflow.com/questions/7674105/linq-aggregate-produces-error-exception-has-been-thrown-by-the-target-of-an-in
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • DUAL causes internal error ORA-00600

    Hi All,
    I am using oracle 10g database agains Forms6i, but in forms pl/sql when ever and where ever I use the DUAL in select statement
    i.e. SELECT sysdate INTO <variable> FROM DUAL;
    it always causes oracle internal error ORA-00600 ?
    However it the dual statement works fine in SQL Plus console.
    Any knows anything about this problem.
    Any help will be highly appriciated. Thanking you and Best Regards.

    Please go to the first reply above:
    Only the newest patch 17 runs against 10g databases without problems.
    Either upgrade to Forms 6.0.8 and apply patch 17, or else connect to an Oracle 8 or 9i database.

  • JBO-27122: SQL error during statement preparation Error

    Hello,
    I am trying to use a standard page with some navigation modification. Here is what i did.
    Created a custom menu of type sub tab. It has three section
    1.Create Offer
    2.Offer Workbench
    3.Template.
    Here Create Offer and Offer Workbench are like Search page.
    Attached this custom menu to a custom responsibility.
    The custom responsibility is working fine.
    Suppose i open this menu, the first display page in Create Offer page.
    Now Consider the scenario. I Open the menu. Create Offer opens. Now i navigate to Offer Workbench tab. I query and it returns some result. Now i navigate back to the Create Offer tab.When i try to navigate back to the Offer Worknbench tab. i get the JBO-27122: SQL error during statement preparation Error. This happens only when i do search operation in the 2nd tab and then go back to the 1st and again I try to come back to the 2nd tab.When i try the same with the 2nd and 3rd tab it is working fine. No error comes. What could have possibly gone wrong. Share your knowledge on this.
    Please find the error stack attached below.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT Offer.OFFER_ID,        Offer.OFFER_VERSION,        Offer.LAST_UPDATE_DATE,        Offer.CREATION_DATE,        Vac.VACANCY_ID,        Vac.NAME,        Job.JOB_ID,        Recruiter.FULL_NAME,        Recruiter.PERSON_ID,        Recruiter.EFFECTIVE_START_DATE,        Recruiter.EFFECTIVE_END_DATE,        Recruiter.EMAIL_ADDRESS,        Status.LOOKUP_TYPE,        Status.LOOKUP_CODE,        Manager.EMAIL_ADDRESS AS EMAIL_ADDRESS1, Manager.EMPLOYEE_NUMBER, Manager.PERSON_ID AS PERSON_ID1, Manager.EFFECTIVE_START_DATE AS EFFECTIVE_START_DATE1,         Manager.EFFECTIVE_END_DATE AS EFFECTIVE_END_DATE1,        Manager.FULL_NAME AS FULL_NAME1,        Job.NAME AS JOB_NAME,        Offer.OFFER_STATUS,        Offer.LATEST_OFFER,        (SELECT max (status_change_date) FROM irc_offer_status_history StatusHistory1 WHERE StatusHistory1.offer_id = Offer.offer_id and StatusHistory1.offer_status ='APPROVED') AS OFFER_APPROVED_DATE, Offer.EXPIRY_DATE, Applicant.FULL_NAME AS FULL_NAME2, Applicant.PERSON_ID AS PERSON_ID2, Applicant.EFFECTIVE_START_DATE AS EFFECTIVE_START_DATE2,         Applicant.EFFECTIVE_END_DATE AS EFFECTIVE_END_DATE2, decode(Offer.offer_status,'PENDING','T','CORRECTION','T','APPROVED',nvl((select          update_allowed from irc_rec_team_members rec where rec.vacancy_id          = vac.vacancy_id and rec.person_id = :1 and irc_utilities_pkg.is_function_allowed          ('IRC_UPDATE_APPROVED_OFFER') = 'TRUE'),'T'),'F') AS PREVIEW_ENABLED, Status.MEANING, ASG.ASSIGNMENT_ID, ASG.EFFECTIVE_START_DATE AS ASG_EFFECTIVE_START_DATE,         ASG.EFFECTIVE_END_DATE AS ASG_EFFECTIVE_END_DATE, to_char(RowNum) AS RowNumber, Applicant.APPLICANT_NUMBER, Reason.MEANING AS MEANING1, Offer.OBJECT_VERSION_NUMBER, Reason.LOOKUP_TYPE AS LOOKUP_TYPE1,        Reason.LOOKUP_CODE AS LOOKUP_CODE1,        Offer.ATTRIBUTE1,        Offer.ATTRIBUTE2,        Offer.ATTRIBUTE3,        Offer.ATTRIBUTE4,        Offer.ATTRIBUTE5,        Offer.ATTRIBUTE6,        Offer.ATTRIBUTE7,        Offer.ATTRIBUTE8,        Offer.ATTRIBUTE9,        Offer.ATTRIBUTE10,        Offer.ATTRIBUTE11,        Offer.ATTRIBUTE12,        Offer.ATTRIBUTE13,        Offer.ATTRIBUTE14,        Offer.ATTRIBUTE15,        Offer.ATTRIBUTE16,        Offer.ATTRIBUTE17,        Offer.ATTRIBUTE18,        Offer.ATTRIBUTE19,        Offer.ATTRIBUTE20,        Offer.ATTRIBUTE21,        Offer.ATTRIBUTE22,        Offer.ATTRIBUTE23,        Offer.ATTRIBUTE24,        Offer.ATTRIBUTE25,        Offer.ATTRIBUTE26,        Offer.ATTRIBUTE27,        Offer.ATTRIBUTE28,        Offer.ATTRIBUTE29,        Offer.ATTRIBUTE30,        Vac.OBJECT_VERSION_NUMBER AS OBJECT_VERSION_NUMBER1, AST.USER_STATUS, Recruiter.OBJECT_VERSION_NUMBER AS OBJECT_VERSION_NUMBER2,         ASG.CHANGE_REASON,        Manager.OBJECT_VERSION_NUMBER AS OBJECT_VERSION_NUMBER3,         (SELECT meaning   FROM   hr_lookups hl     WHERE hl.lookup_type = 'APL_ASSIGN_REASON' AND hl.lookup_code = IAS.STATUS_CHANGE_REASON  ) AS APPL_STATUS_CHANGE_REASON,        AST.ASSIGNMENT_STATUS_TYPE_ID,        Offer.ATTRIBUTE_CATEGORY,        ASG.OBJECT_VERSION_NUMBER AS OBJECT_VERSION_NUMBER4, Vac.BUSINESS_GROUP_ID, Applicant.OBJECT_VERSION_NUMBER AS OBJECT_VERSION_NUMBER5,         Bg.NAME AS NAME1,        Bg.ORGANIZATION_ID,        (select Meaning     from hr_lookups     where lookup_type = 'IRC_CANDIDATE_TYPE'     and lookup_code =  NVL( (SELECT 'EMP'      FROM DUAL   WHERE EXISTS            (SELECT NULL             FROM PER_ALL_PEOPLE_F PPF11,                   PER_ALL_PEOPLE_F PPF12,       PER_PERSON_TYPES PPT             WHERE PPF11.PERSON_ID = ASG.PERSON_ID               AND PPF11.PARTY_ID = PPF12.PARTY_ID AND TRUNC(SYSDATE) BETWEEN PPF12.EFFECTIVE_START_DATE AND PPF12.EFFECTIVE_END_DATE AND PPF12.PERSON_TYPE_ID = PPT.PERSON_TYPE_ID               AND PPT.SYSTEM_PERSON_TYPE IN ('EMP', 'EMP_APL')           )   ), NVL(     (SELECT 'EX_EMP'        FROM DUAL       WHERE EXISTS               (SELECT NULL                 FROM PER_ALL_PEOPLE_F PPF21,      PER_ALL_PEOPLE_F PPF22,                      PER_PERSON_TYPES PPT    WHERE PPF21.PERSON_ID = ASG.PERSON_ID              AND PPF21.PARTY_ID = PPF22.PARTY_ID      AND TRUNC(SYSDATE) BETWEEN PPF22.EFFECTIVE_START_DATE AND PPF22.EFFECTIVE_END_DATE                  AND PPF22.PERSON_TYPE_ID = PPT.PERSON_TYPE_ID                  AND PPT.SYSTEM_PERSON_TYPE IN ('EX_EMP', 'EX_EMP_APL')              )     ), 'EXT' ))) AS CANDIDATE_TYPE, (select hl5.Meaning     from hr_lookups hl5   where lookup_type   = 'YES_NO'     and lookup_code           = decode(        ( SELECT 1                     FROM per_all_assignments_f paf2, per_all_people_f ppf2, per_all_people_f ppf21 WHERE ppf2.person_id = asg.person_id                     and ppf2.party_id = ppf21.party_id                     and trunc(sysdate) between ppf21.effective_start_date  and ppf21.effective_end_date and ppf21.person_id = paf2.supervisor_id                 and trunc(sysdate) between paf2.effective_start_date and paf2.effective_end_date              and  paf2.ASSIGNMENT_TYPE IN ('E','C')            AND rownum = 1   ), 1, 'Y', 'N'             ) and irc_utilities_pkg.is_internal_person(asg.person_id ,trunc(sysdate)) = 'TRUE') AS DIRECT_REPORTS, Applicant.PARTY_ID,        (select lookup_code from hr_lookups where lookup_type = 'IRC_REHIRE_RECOMMENDATION' and lookup_code = 'NOT_APPLICABLE') AS VIEW_ATTR,        PROPOSED_START_DATE AS PROPOSED_START_DATE FROM IRC_OFFERS Offer, PER_ALL_VACANCIES Vac, PER_JOBS_VL Job, PER_ALL_PEOPLE_F Recruiter, PER_ALL_PEOPLE_F Manager, HR_LOOKUPS Status, PER_ALL_ASSIGNMENTS_F ASG, PER_ALL_PEOPLE_F Applicant, HR_LOOKUPS Reason, IRC_OFFER_STATUS_HISTORY ioh, IRC_ASSIGNMENT_STATUSES IAS, PER_ASSIGNMENT_STATUS_TYPES_V AST, HR_ALL_ORGANIZATION_UNITS_VL Bg, PER_ALL_ASSIGNMENTS_F asg4 WHERE Offer.vacancy_id = Vac.vacancy_id  and Vac.Recruiter_id = Recruiter.PERSON_ID(+) and :2 between nvl(Recruiter.EFFECTIVE_START_DATE,:3) and nvl(Recruiter.EFFECTIVE_END_DATE, :4) and Vac.Manager_id = Manager.PERSON_ID(+) and   :5 between nvl(Manager.EFFECTIVE_START_DATE,:6) and nvl(Manager.EFFECTIVE_END_DATE,:7) and Status.LOOKUP_TYPE(+) = 'IRC_OFFER_STATUSES' and Offer.Offer_Status = Status.LOOKUP_CODE(+) And Offer.LATEST_OFFER = 'Y' and offer.applicant_assignment_id = asg.assignment_id and asg.person_id = applicant.person_id and :8 between nvl(applicant.EFFECTIVE_START_DATE,:9) and nvl(applicant.EFFECTIVE_END_DATE, :10) and asg.effective_start_date=(select max(effective_start_date)  from per_all_assignments_f asg2  where asg.assignment_id=asg2.assignment_id  and asg2.effective_start_date<=:11) AND EXISTS (SELECT NULL FROM PER_PEOPLE_F ppfs WHERE ppfs.person_id = applicant.person_id) AND exists (select null from per_vacancies pvacs where pvacs.vacancy_id = vac.vacancy_id) and reason.LOOKUP_TYPE(+) = 'IRC_OFFER_STATUS_CHANGE_REASON' and Offer.Offer_Status = Status.LOOKUP_CODE(+)   and ioh.change_reason = reason.lookup_code(+) and ioh.offer_id =offer.offer_id AND NOT EXISTS (SELECT 1 FROM irc_offer_status_history iosh1 WHERE iosh1.offer_id = ioh.offer_id AND iosh1.status_change_date > ioh.status_change_date) AND ioh.offer_status_history_id = (SELECT MAX(iosh2.offer_status_history_id) FROM irc_offer_status_history iosh2 WHERE iosh2.offer_id = ioh.offer_id AND iosh2.status_change_date = ioh.status_change_date) AND ASG.ASSIGNMENT_ID =IAS.ASSIGNMENT_ID       AND IAS.ASSIGNMENT_STATUS_TYPE_ID = AST.ASSIGNMENT_STATUS_TYPE_ID(+)       AND NOT EXISTS          (SELECT 1                                    FROM    irc_assignment_statuses ias2                                    WHERE   ias2.assignment_id             = asg.assignment_id                                        AND TRUNC(ias2.status_change_date) > TRUNC(ias.status_change_date))       AND ias.last_update_date =          (SELECT MAX(ias3.last_update_date) FROM    irc_assignment_statuses ias3 WHERE   ias3.assignment_id             = asg.assignment_id                                                    AND TRUNC(ias3.status_change_date) = TRUNC(ias.status_change_date)) and Vac.BUSINESS_GROUP_ID = Bg.ORGANIZATION_ID AND EXISTS ( SELECT  NULL FROM per_assignments_f asg3 WHERE asg.assignment_id = asg3.assignment_id ) AND     offer.offer_assignment_id = asg4.assignment_id AND     asg4.person_id = applicant.person_id AND     asg4.job_id = job.job_id AND asg4.effective_start_date = (         SELECT  max (effective_start_date)         FROM per_all_assignments_f asg5 WHERE   asg4.assignment_id = asg5.assignment_id         AND     asg5.effective_start_date <= :12         ) AND (( UPPER(Vac.NAME)  like UPPER(:1) AND (Vac.NAME  like :2 OR Vac.NAME  like  :3 OR Vac.NAME  like :4 OR Vac.NAME  like  :5))) ORDER BY Applicant.FULL_NAME ASC
                    at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:912)
                    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1169)
                    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)
                    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2675)
                    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1940)
                    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
                    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
                    at _OA._jspService(_OA.java:212)
                    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
                    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
                    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
                    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
                    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
                    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
                    at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
                    at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
                    at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
                    at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
                    at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
                    at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
                    at _OA._jspService(_OA.java:221)
                    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
                    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
                    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
                    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
                    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
                    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
                    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
                    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
                    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
                    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
                    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
                    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
                    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
                    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
                    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
                    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
                    at java.lang.Thread.run(Thread.java:619)
    ## Detail 0 ##
    java.sql.SQLException: Missing IN or OUT parameter at index:: 6
                    at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1752)
                    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3444)
                    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3493)
                    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
                    at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:860)
                    at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:669)
                    at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3754)
                    at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(Unknown Source)
                    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4560)
                    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743)
                    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:892)
                    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:806)
                    at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:800)
                    at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3674)
                    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:439)
                    at oracle.apps.irc.offers.server.IrcOfferSearchVOImpl.executeQuery(IrcOfferSearchVOImpl.java:160)
                    at oracle.apps.fnd.framework.webui.OAWebBeanBaseTableHelper.queryDataInternal(OAWebBeanBaseTableHelper.java:1278)
                    at oracle.apps.fnd.framework.webui.OAWebBeanBaseTableHelper.queryData(OAWebBeanBaseTableHelper.java:1139)
                    at oracle.apps.fnd.framework.webui.beans.table.OAAdvancedTableBean.queryData(OAAdvancedTableBean.java:450)
                    at oracle.apps.fnd.framework.webui.OAQueryHelper.executeQueryFromSearchCache(OAQueryHelper.java:7759)
                    at oracle.apps.fnd.framework.webui.OAQueryHelper.processRequestAfterController(OAQueryHelper.java:682)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:658)
                    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
                    at oracle.apps.fnd.framework.webui.OAQueryHelper.processRequest(OAQueryHelper.java:563)
                    at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
                    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
                    at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
                    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
                    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1183)
                    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
                    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
                    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
                    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
                    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
                    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2620)
                    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1940)
                    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
                    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
                    at _OA._jspService(_OA.java:212)
                    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
                    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
                    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
                    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
                    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
                    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
                    at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
                    at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
                    at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
                    at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
                    at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
                    at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
                    at _OA._jspService(_OA.java:221)
                    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
                    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
                    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
                    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
                    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
                    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
                    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
                    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
                    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
                    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
                    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
                    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
                    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
                    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
                    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
                    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
                    at java.lang.Thread.run(Thread.java:619)
    java.sql.SQLException: Missing IN or OUT parameter at index:: 6
                    at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1752)
                    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3444)
                    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3493)
                    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
                    at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:860)
                    at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:669)
                    at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3754)
                    at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(Unknown Source)
                    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4560)
                    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743)
                    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:892)
                    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:806)
                    at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:800)
                    at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3674)
                    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:439)
                    at oracle.apps.irc.offers.server.IrcOfferSearchVOImpl.executeQuery(IrcOfferSearchVOImpl.java:160)
                    at oracle.apps.fnd.framework.webui.OAWebBeanBaseTableHelper.queryDataInternal(OAWebBeanBaseTableHelper.java:1278)
                    at oracle.apps.fnd.framework.webui.OAWebBeanBaseTableHelper.queryData(OAWebBeanBaseTableHelper.java:1139)
                    at oracle.apps.fnd.framework.webui.beans.table.OAAdvancedTableBean.queryData(OAAdvancedTableBean.java:450)
                    at oracle.apps.fnd.framework.webui.OAQueryHelper.executeQueryFromSearchCache(OAQueryHelper.java:7759)
                    at oracle.apps.fnd.framework.webui.OAQueryHelper.processRequestAfterController(OAQueryHelper.java:682)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:658)
                    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
                    at oracle.apps.fnd.framework.webui.OAQueryHelper.processRequest(OAQueryHelper.java:563)
                    at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
                    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
                    at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
                    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
                    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1183)
                    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
                    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
                    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
                    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
                    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
                    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2620)
                    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1940)
                    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
                    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
                    at _OA._jspService(_OA.java:212)
                    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
                    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
                    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
                    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
                    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
                    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
                    at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
                    at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
                    at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
                    at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
                    at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
                    at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
                    at _OA._jspService(_OA.java:221)
                    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
                    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
                    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
                    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
                    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
                    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
                    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
                    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
                    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
                    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
                    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
                    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
                    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
                    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
                    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
                    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
                    at java.lang.Thread.run(Thread.java:619)
    Regards,
    Pradeep

    Hi Dilip,
    Thanks for your reply. But that does not seem to be the problem. It was due to the Search query region. I was able to complete it.
    This is the piece of code i added in processRequest of my extended controller to fix it.
    OAQueryBean queryBean = (OAQueryBean)webBean.findChildRecursive("QueryRN");
    queryBean.clearSearchPersistenceCache(pageContext);
    Regards,
    Pradeep

  • SQLException: Closed Connection, SQL state [null]; error code [17002]

    Hello All,
    I am supporting a Java 5 project on Tomcat. We've used Spring and Stored Procedure in the project.
    Recently we deployed our application in a GoLive environment and have started seeing Timeout errors in log files. After around two days we also have to restart Tomcat as users are no more able to login to access the application.
    Same application runs fine without any timeout issues on another environment.
    The only difference between two environments is that the Go-Live env has a firewall between Tomcat and Database and the other environment hosts both Tomcat and Database on same machine (i.e. no firewall).
    For GoLive env the only port open on firewall for JDBC connection is 1521 and is used in the connection string url for obtaining the connections.
    When there is a Timeout error, the N/w admin guy observed that the JDBC connection was not attempted on 1521 port, but on some random port which is not open on firewall, due to which the Database server logs also do not show entry for this connection attempt as it gets blocked by the firewall.
    I am not sure why a randam port should be used to connect when a specific port is mentioned in the connection url? Also what can be making this port switching?
    Application uses Apache DBCP with Spring to obtain connections.
    Has anyone experienced similar errors?
    Any suggestions/help on this issue is greatly appreciated!
    Many Thanks,
    CD
    ===============================
    Error Log Extract:
    Error while extracting database product name - falling back to empty error codes
    org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is java.sql.SQLException: Closed Connection
    java.sql.SQLException: Closed Connection
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
    at oracle.jdbc.driver.PhysicalConnection.getMetaData(PhysicalConnection.java:1605)
    at org.apache.commons.dbcp.DelegatingConnection.getMetaData(DelegatingConnection.java:247)
    at org.apache.commons.dbcp.DelegatingConnection.getMetaData(DelegatingConnection.java:247)
    at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.getMetaData(PoolingDataSource.java:231)
    at org.springframework.jdbc.support.JdbcUtils.extractDatabaseMetaData(JdbcUtils.java:172)
    at org.springframework.jdbc.support.JdbcUtils.extractDatabaseMetaData(JdbcUtils.java:207)
    at org.springframework.jdbc.support.SQLErrorCodesFactory.getErrorCodes(SQLErrorCodesFactory.java:187)
    at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.setDataSource(SQLErrorCodeSQLExceptionTranslator.java:126)
    at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.<init>(SQLErrorCodeSQLExceptionTranslator.java:92)
    at org.springframework.jdbc.support.JdbcAccessor.getExceptionTranslator(JdbcAccessor.java:96)
    at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:294)
    at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:348)
    at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:352)
    at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:356)
    at com.o2.morse.dao.impl.sql.UserDaoImpl.batchLoad(UserDaoImpl.java:371)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
    at $Proxy3.batchLoad(Unknown Source)
    at com.o2.morse.domain.User.doHousekeeping(User.java:667)
    at com.o2.morse.domain.User$$FastClassByCGLIB$$372ff70b.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:705)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
    at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:643)
    at com.o2.morse.domain.User$$EnhancerByCGLIB$$d5ac966a.doHousekeeping(<generated>)
    at com.o2.morse.scheduler.EndOfDay.run(EndOfDay.java:63)
    at com.o2.morse.scheduler.EndOfDay$$FastClassByCGLIB$$3b2d4927.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:705)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
    at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:643)
    at com.o2.morse.scheduler.EndOfDay$$EnhancerByCGLIB$$488a9f86.run(<generated>)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:248)
    at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:165)
    at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:90)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
    Could not close JDBC Connection
    java.sql.SQLException: Already closed.
    at org.apache.commons.dbcp.PoolableConnection.close(PoolableConnection.java:77)
    at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.close(PoolingDataSource.java:180)
    at org.springframework.jdbc.datasource.DataSourceUtils.doReleaseConnection(DataSourceUtils.java:286)
    at org.springframework.jdbc.datasource.DataSourceUtils.releaseConnection(DataSourceUtils.java:247)
    at org.springframework.jdbc.datasource.DataSourceTransactionManager.doCleanupAfterCompletion(DataSourceTransactionManager.java:297)
    at org.springframework.transaction.support.AbstractPlatformTransactionManager.cleanupAfterCompletion(AbstractPlatformTransactionManager.java:754)
    at org.springframework.transaction.support.AbstractPlatformTransactionManager.processRollback(AbstractPlatformTransactionManager.java:615)
    at org.springframework.transaction.support.AbstractPlatformTransactionManager.rollback(AbstractPlatformTransactionManager.java:560)
    at org.springframework.transaction.interceptor.TransactionAspectSupport.doCloseTransactionAfterThrowing(TransactionAspectSupport.java:284)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:100)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
    at $Proxy3.batchLoad(Unknown Source)
    at com.o2.morse.domain.User.doHousekeeping(User.java:667)
    at com.o2.morse.domain.User$$FastClassByCGLIB$$372ff70b.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:705)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
    at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:643)
    at com.o2.morse.domain.User$$EnhancerByCGLIB$$d5ac966a.doHousekeeping(<generated>)
    at com.o2.morse.scheduler.EndOfDay.run(EndOfDay.java:63)
    at com.o2.morse.scheduler.EndOfDay$$FastClassByCGLIB$$3b2d4927.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:705)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
    at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:643)
    at com.o2.morse.scheduler.EndOfDay$$EnhancerByCGLIB$$488a9f86.run(<generated>)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:248)
    at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:165)
    at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:90)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
    Application exception overridden by rollback exception
    org.springframework.jdbc.UncategorizedSQLException: StatementCallback; uncategorized SQLException for SQL [SELECT ID_USER_DETAILS, USERNAME, CREATED_ON, LAST_LOGIN FROM USER_DETAILS  WHERE STATUS = 157 AND SUPERUSER <> 'Y']; SQL state [null]; error code [17002] ; Io exception: Connection timed out; nested exception is java.sql.SQLException: Io exception: Connection timed out
    java.sql.SQLException: Io exception: Connection timed out
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
    at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:820)
    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1049)
    at oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.java:845)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1154)
    at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1313)
    at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:205)
    at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:205)
    at org.springframework.jdbc.core.JdbcTemplate$1QueryStatementCallback.doInStatement(JdbcTemplate.java:333)
    at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:282)
    at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:348)
    at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:352)
    at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:356)
    at com.o2.morse.dao.impl.sql.UserDaoImpl.batchLoad(UserDaoImpl.java:371)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
    at $Proxy3.batchLoad(Unknown Source)
    at com.o2.morse.domain.User.doHousekeeping(User.java:667)
    at com.o2.morse.domain.User$$FastClassByCGLIB$$372ff70b.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:705)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
    at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:643)
    at com.o2.morse.domain.User$$EnhancerByCGLIB$$d5ac966a.doHousekeeping(<generated>)
    at com.o2.morse.scheduler.EndOfDay.run(EndOfDay.java:63)
    at com.o2.morse.scheduler.EndOfDay$$FastClassByCGLIB$$3b2d4927.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:705)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
    at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:643)
    at com.o2.morse.scheduler.EndOfDay$$EnhancerByCGLIB$$488a9f86.run(<generated>)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:248)
    at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:165)
    at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:90)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
    Batch Job Failed: org.springframework.transaction.TransactionSystemException: Could not roll back JDBC transaction; nested exception is java.sql.SQLException: Closed Connection

    I am using latest Jrockit 16)5, ojdbc6_g.jar,spring.jar Weblogic 10.3 and Oracle 10G 10.2.4 .. whatever but always get "Closed Connection"
    java.lang.Throwable: Closed Connection
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
    at oracle.jdbc.driver.PhysicalConnection.createStatement(PhysicalConnection.java:750)
    at oracle.jdbc.OracleConnectionWrapper.createStatement(OracleConnectionWrapper.java:183)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7053)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)

  • Bank Statement Loader Error

    I have been uploading my bank statements using the standard bank statement loader program in Cash Management for the past 10 years. We recently upgraded to version 12 and I had no issues. We upgraded to 12.1.3 last week and since then I amnot ablwe to upload bank statements to the interface table, whenI run the bank statement loader request, I get an error that tells me the bank statement is not in EDIFACT format. Our bank sends our statements to us in a text format and they are loaded automatically from our mainframe onto our Unix box also in a text format. Please assist me if possible, I cannot figure out how to upload my statements like I used to and I cannot figure out what has changed.
    Thanks
    Linda

    Hi Linda;
    Please see below notes,
    How to Reproduce Edifact Paymul Payment Format Program [ID 956166.1]
    How To Create New Bank Statement Mapping Template To Requirement, Latest Patch [ID 563476.1]
    Edifact Paymul: Format Payment Instructions With Text Output Ens In Error [ID 1120353.1]
    R12: XML Templates: EDIFACT PAYMUL FORMAT: wrong COUNT element [ID 1304222.1]
    How to Map 11i Payment Formats to R12 Payment Formats [ID 1220563.1]
    If you dont have issue wiht R12.1.1 than if you face this issue after 12.1.3 upgrade and if upper notes not helps than i suggest rise SR
    Regard
    Helios

  • No statement parsed error

    I have to first mention that this thing called ORACLE is totally headache. Don't really understand why people choose it. One of those stupid companies is the one where I work.It's just like an "I don't like this, I don't like that"girl. So many problems, so many things you have to coonsider, so many weird exceptions.
    Ok my problem is I have a stored procedure. It receives bunch of parameters one of which is V_CUR OUT SYS_REFCURSOR and another is a V_TYPE IN NUMBER. In the body of my procedure I check for the value of the V_TYPE, if its 0 then the procedure opens V_CUR for a query, if its 1 then the procedure inserts the values passed with rest of the parameters to a table.here are the problems I fase:
    1. If I run this procedure on SQL Developer it executes as expected, but if I do it by using ODP.NET it just takes whatever the default value is for V_TYPE parameter and just ignores the value I pass from the application.
    2. Now the wirdest thing is then if I remove the DEFAULT value from the V_TYPE I get "No statement parsed error".
    Here's my procedure just in case someone will have patience to review it:
    create or replace
    PROCEDURE "SP_IU_AGPENSIONERS"(
    V_PENSIONERID IN NUMBER DEFAULT NULL,
    V_DEPARTID IN NUMBER DEFAULT NULL,
    V_PENSIONTYPE IN NUMBER DEFAULT NULL,
    V_PLASTNAME IN VARCHAR2 DEFAULT NULL,
    V_PNAME IN VARCHAR2 DEFAULT NULL,
    V_PFATHERNAME IN VARCHAR2 DEFAULT NULL,
    V_PERIDTYPE IN NUMBER DEFAULT NULL,
    V_PERIDSER IN VARCHAR2 DEFAULT NULL,
    V_PERIDNO IN VARCHAR2 DEFAULT NULL,
    V_PGENDER IN NUMBER DEFAULT NULL,
    V_PBIRTHDAY IN DATE DEFAULT NULL,
    V_NATIONALITYID IN NUMBER DEFAULT NULL,
    V_PROTOCOLNO IN VARCHAR2 DEFAULT NULL,
    V_ORDERDATE IN DATE DEFAULT NULL,
    V_APPLYDATE IN DATE DEFAULT NULL,
    V_WEYEAR2006 IN NUMBER DEFAULT NULL,
    V_WEMONTH2006 IN NUMBER DEFAULT NULL,
    V_WEDAY2006 IN NUMBER DEFAULT NULL,
    V_ST IN NUMBER DEFAULT NULL,
    V_PFIELD IN NUMBER DEFAULT NULL,
    V_CUR OUT SYS_REFCURSOR,
    V_TYPE IN NUMBER DEFAULT 0)
    IS
    TYPE_SELECT CONSTANT NUMBER:=0;
    TYPE_INSERT CONSTANT NUMBER:=1;
    TYPE_UPDATE CONSTANT NUMBER:=2;
    TYPE_DELETE CONSTANT NUMBER:=3;
    BEGIN
    IF V_TYPE=TYPE_SELECT THEN
    OPEN V_CUR FOR SELECT PENSIONERID, DEPARTID, PENSIONTYPE, PLASTNAME, PNAME,
    PFATHERNAME, PERIDTYPE, PERIDSER, PERIDNO, PGENDER, PBIRTHDAY,
    NATIONALITYID, PROTOCOLNO, ORDERDATE, APPLYDATE, WEYEAR2006, WEMONTH2006,
    WEDAY2006, ST FROM AGAPUS.AGPENSIONERS WHERE ROWNUM<101 ORDER BY
    PENSIONERID;
    ELSIF V_TYPE=TYPE_INSERT THEN
    INSERT
    INTO
    AGPENSIONERS
    PENSIONERID,
    DEPARTID,
    PENSIONTYPE,
    PLASTNAME,
    PNAME,
    PFATHERNAME,
    PERIDTYPE,
    PERIDSER,
    PERIDNO,
    PGENDER,
    PBIRTHDAY,
    NATIONALITYID,
    PROTOCOLNO,
    ORDERDATE,
    APPLYDATE,
    WEYEAR2006,
    WEMONTH2006,
    WEDAY2006,
    PFIELD
    VALUES
    V_PENSIONERID,
    V_DEPARTID,
    V_PENSIONTYPE,
    V_PLASTNAME,
    V_PNAME,
    V_PFATHERNAME,
    V_PERIDTYPE,
    V_PERIDSER,
    V_PERIDNO,
    V_PGENDER,
    V_PBIRTHDAY,
    V_NATIONALITYID,
    V_PROTOCOLNO,
    V_ORDERDATE,
    V_APPLYDATE,
    V_WEYEAR2006,
    V_WEMONTH2006,
    V_WEDAY2006,
    V_PFIELD
    END IF;
    END;
    Edited by: Mikail on Apr 12, 2012 5:12 AM

    Somebody asked nearly the same question Re: EMERGENCY! pl/sql syntax error!!!

  • The transaction associated with the current connection has completed but has not been disposed. The transaction must be disposed before the connection can be used to execute SQL statements.

    Hello All,
    I am getting below error can you please help me
    Error:-
    The transaction associated with the current connection has completed but has not been disposed. The transaction must be disposed before the connection can be used to execute SQL statements.

    Perhaps this thread will help you out
    http://stackoverflow.com/questions/11453066/error-the-transaction-associated-with-the-current-connection-has-completed-but
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Using alias in where statement

    simple sql:
    SELECT EMPLOYEE_ID,
    FIRST_NAME,
    LAST_NAME,
    EMAIL,
    PHONE_NUMBER,
    HIRE_DATE,
    JOB_ID,
    SALARY,
    COMMISSION_PCT,
    MANAGER_ID,
    DEPARTMENT_ID
    FROM EMPLOYEES
    WHERE EMPLOYEE_ID > 1000;
    is it somehow possible to use alias in where statement like
    SELECT EMPLOYEE_ID "ID",
    FIRST_NAME,
    LAST_NAME,
    EMAIL,
    PHONE_NUMBER,
    HIRE_DATE,
    JOB_ID,
    SALARY,
    COMMISSION_PCT,
    MANAGER_ID,
    DEPARTMENT_ID
    FROM EMPLOYEES
    WHERE "ID" > 1000;

    Hi,
    is it somehow possible to use alias in where statement likeWhy do you need it?
    To answer your question "Not directly"
    SQL> select empno eno, sal
      2  from emp
      3  where eno = 7900;
    where eno = 7900
    ERROR at line 3:
    ORA-00904: "ENO": invalid identifierColumn Alias are names given to give meaningful names to columns or the arithmetic operations' column.
    Twinkle

  • Using offset in join statement

    hi,
    i wanted to use offset in join statement. but it is giving error.
    select a~kunnr
              a~vkorg
             from knvv as inner join zcust
             on knvv-kunnr+5(5) = zcust-refid.

    hi neha,
    try this code i tested it.
    types: begin of ty_knvv,
           INCLUDE type knvv,
           kunid type i, " For u type is zcust-refid
           end of ty_knvv.
    data: it_knvv type STANDARD TABLE OF ty_knvv INITIAL SIZE 0,
          wa_knvv type ty_knvv.
    select *
      from knvv
        into table it_knvv.
    loop at it_knvv into wa_knvv.
      kunid = wa_knvv-kunnr+5(5).
      wa_knvv-kunid = kunid.
      MOdify it_knvv TRANSPORTING kunid.
      read table zcust into wa_zcust with key resid = wa_knvv-kunid.
    endloop.

  • State service error when submitting InfoPath form to Library

    I have a problem and looks like Google couldn't help me.. I really hope someone here will be able to.
    I have a Form Library using a custom form. When submitting the form to the library, users are getting this error. I don't get the error with my own user, only difference is I have full access to the farm and content using web app policy.
    ULS logs give me few informations
    SharePoint Server
    State Service
    bm1k
    Medium
    StateSqlSession.GetItemBytesInternal() Locked row in database for key ba18f90ee2e844468b08e90ad96dff2c_05967b71a21948d39b7d4d3ada9b27c9 for 4 seconds
    SharePoint Server
    State Service
    bm0t
    Unexpected
    StateManager.GetState() Locked data (05967b71-a219-48d3-9b7d-4d3ada9b27c9)
    InfoPath Forms Services
    Runtime - State Service
    b5st
    Medium
    MOSS StateService threw an exception: A Microsoft SharePoint Server State Service error occurred while processing your request. For more information, contact your server farm administrator.
    I deleted the State Service and recreated it twice, once with PowerShell and then with the Farm Configuration wizard. Restarted the server. Problem might come from InfoPath Forms Services tho but I don't what else I can do.
    Does anyone have any clue??
    JP Berube | MCTS SharePoint 2010 Configuration and Application Development

    Hi,
    We had the same problem with InfoPath.
    After analysis of servers,it turns out that
    the anonymous user authentication has been enabled on
    the web application server
    via IIS and not via SharePoint
    (unsupported configuration), causing
    side-effects on some queries which
    calls to forms.
    We disabled anonymous access.This desactivation
    causes the functioning of forms again.
    Rachid.

Maybe you are looking for

  • Very unstable application server on Linux : work process are dying

    Hello, SAP release : SAP R/3 Enterprise Linux : x86_64 x86_64 x86_64 GNU/Linux Oracle : 9.2.0.7.0 Our production environnement consists of one Central Instance server (HP-UXia 64) and five application servers (Linux x86_64). All the application serve

  • How to assign printer to form

    Hi all, i have an program in which i am using two (sap-script) forms.program will select form according to condition given. <u>now i want to assign different printers for each form</u>. if first form is selected, it should select perticular printer f

  • Programming a Chess-game - Design Tips

    Hello, I'm definatly not new to programming, but I'm a beginner at Java. Now I'm trying to program a little chess-game, which should teach me some OOP-techniques and to get some experience with Java. Well, I have some ideas for the game in mind and a

  • Bookmarks not showing when log on

    All my bookmarks that appeared on my startup page when I launch safari are gone.. they are still in the bookmarks menu but how do I get them back to where they where? I like to have access to them on each page I am on.

  • Navigation option on blank values

    the requirement is I have a report with total count column....when i click on the count a detailed report with all the employee names will open and this count values can have a blank values too so i gave navigation on the headcount column so that whe