Implementing Database codes FAIL /error in parsing data into jsp page

Hi there,
I have this problem trying to build a portal application. I am using the JSPDynPage, jsp page and a bean to build a page.
I have this problem parsing data from JSPDynPage to the beans and to the jsp page.
I tested out the connection between the beans and the jsp page. There is no error parsing information from the beans to the jsp page.
So i tried to test out the codes for the database from the beans.
Will this work? Because it does not display the results i want.
I need an Solution asap to find out wad is wrong also also the correct codes to the database.
public String db(){
try {
             InitialContext iC = new InitialContext();
             DataSource dataSource = (DataSource)iC.lookup("java:env/jdbc/mySQL");
             java.sql.Connection connection = dataSource.getConnection();
             PreparedStatement st = connection.prepareStatement("SELECT name FROM test WHERE id='123'");
             ResultSet resultSet = st.executeQuery();
             while (resultSet.next()){
                  name = resultSet.getString("name");
                  name = name.toString();
             connection.close();
             return name;
             } catch(Exception n){
                  e = "Exception";
                  return e;
This is the method i put in the beans to test out the database connection.
Thanks Loads
Quatre

Hi there,
Thanks for the reply, i thought that no one is going to reply me anymore. Thanks loads.
Bean Class name: Bean1
Bean Packeage name: Beans1
Bean id : myBean1
Jsp Codes
<%@ taglib uri="tagLib" prefix="hbj" %>
<jsp:useBean id="myBean1" scope="application" class="Beans1.Bean1" />
<hbj:content id="myContext" >
  <hbj:page title="PageTitle">
   <hbj:form id="myFormId" >
   <hbj:textView id = "ll" text="lalalalalalalalalasasa" />
  <%--
<hbj:textView id = "l">
               <% l.setName(myBean1.getName());%>
</hbj:textView>
--%>
<hbj:textView
                id="appraisal_yr_label"
                text="Apprasial Year:">
                </hbj:textView>
                <hbj:textView id = "la" >
                <% la.setText(myBean1.getName());%>
                </hbj:textView>
   </hbj:form>
  </hbj:page>
</hbj:content>
Beans1.java
package Beans1;
import java.io.Serializable;
public class Bean1 implements Serializable{
private String name = new String();
private String e = new String();
private String year = new String();
     public void setName(String name){
          this.name = name;
     public String getName(){
          return name;
JSPDynPage
import Beans1.Bean1;
import com.sapportals.htmlb.*;
import com.sapportals.htmlb.enum.*;
import com.sapportals.htmlb.event.*;
import com.sapportals.htmlb.page.*;
import com.sapportals.portal.htmlb.page.*;
import com.sapportals.portal.prt.component.*;
public class testDBv5 extends PageProcessorComponent {
import Beans1.Bean1;
import com.sapportals.htmlb.*;
import com.sapportals.htmlb.enum.*;
import com.sapportals.htmlb.event.*;
import com.sapportals.htmlb.page.*;
import com.sapportals.portal.htmlb.page.*;
import com.sapportals.portal.prt.component.*;
public class testDBv5 extends PageProcessorComponent {
  public DynPage getPage(){
    return new testDBv5DynPage();
  public static class testDBv5DynPage extends JSPDynPage{
    private Bean1 myBean1= null;
    private String name = new String();
    public void doInitialization(){
          try{
                              IntitialContext context = new javax.naming.InitialContext();
                              DataSource dataSource = (DataSource)context.lookup("java:env/jdbc/appDB");
                              Connection connection = dataSource.getConnection();
                              Statement stmt = connection.createStatement();
                              ResultSet rs = stmt.executeQuery("Select AppraisalYear From tblAppraisal Where AppraisalYear='2007'");
                                      while(rs.next()){
                                        year = rs.getString("AppraisalYear");
                                        rs.close();
                                        stmt.close();
                                        connection.close();
                                        return year;
                                   }catch (Exception n){
                                        n.printStackTrace();
          IPortalComponentProfile profile = ((IPortalComponentRequest)getRequest()).getComponentContext().getProfile();
                 Object o = profile.getValue("myBean1");
                 if(o==null || !(o instanceof Bean1)){
                    myBean1 = new Bean1();
                    profile.putValue("myBean1",myBean1);
                 } else {
                      myBean1 = (Bean1) o;
                    Object value = request.getSession().getValue("myBeans1");
                    if (value==null || (value instanceof Bean1)){
                         myBean1 = new Bean1();
                    request.getSession().putValue("myBean1", Object value);
          DataBase cn = new DataBase();
          name = cn.dataBaseConnection();
          myBean1.setName(name);
//name = "gir";
//myBean1.setName(name);
// IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
//IPortalComponentContext myContext = request.getComponentContext();
//Bean1 myNameContainer = (Bean1) myContext.getValue("myBean1");
//myNameContainer.setName(name);
      // fill your bean with data here...
    public void doProcessAfterInput() throws PageException {
    public void doProcessBeforeOutput() throws PageException {
      this.setJspName("testDBv5.jsp");
//testing purpose
  public static void main (String[] arg){
     testDBv5DynPage ef = new testDBv5DynPage();
           ef.doInitialization();
Thanks Loads
Quatre

Similar Messages

  • Ways to retrieve data into Jsp page on ComboBox (or any other event ) event

    Hi all,
    I want to retrieve records from database and display it in Text field.
    Can any one tell me the ways to do it, i know i can do this by using javascript (javascript to submit the form), but i dont want to use javascript any where in my code,
    what i want to know is there any other ways to implement this functionality, and which is the best one.
    Kindly help me,
    Thanks in advanced.

    With plain webapps, there is no way. In one way or another, the server needs to be invoked to be able to provide the data, so that is either a submit or through an Ajax call. Both would involve javascript. Why are you scared of Javascript anyway?

  • HTTP response code 500 : Error during parsing of SOAP header

    Hi Experts,
    I have a MAIL to IDOC scenario.  An external third party emails invoices to our inbox - which we pick up and process the attachment.  All is well when I test the scenario internally, but when the third party emails it fails with (see ERROR MESSAGE below).
    When I look at the SOAP header of the failed message I see the values from the dump in this field:
      <sap:Record namespace="http://sap.com/xi/XI/System/Mail" name="SHeaderTHREAD-INDEX">AcarCeJmJKHuV6wZSxm2UMoUeAjS1gALPExABtze/PACiUJDcAGS0DCwAmOOELAJlOzP0AFiOo8gCK1pEZAF500SsAYW46lgBgX2bGALyieMQAXw2oKgBYXf0WAGeueD0AAAHnhwBamTSaAGIUE0kAYZSYTQBgY5OTADunN0gAE3t/sQAWScBXADTQvvEAD4yNhQATdkKiAFr7DBMAGIXTZQAP2xJFABZ0YfoAGHYAuAAKlaeaACJ9xtUAEjcvQAAV4L06ABZuwsAAK/f9vgAAF/GSAAAYmRYARIKwtQAV5R9SABMo5bsAGQQyvAAVqsjyABOh9uMAFXTa2QAWEjsfABaEvp4AFaL1NQAV5MnUABXiVbIAGc7LsQAYVN9SABLfYQIAEwF3nQAWSL2lABn5ZgIAEf/k8gAWeVgrAAJaSZIAAElM4gATZR0GA=</sap:Record>
    Can anyone tell me what SHeaderTHREAD-INDEX does?  Or what my problem is  (Our email is Outlook)
    ERROR MESSAGE.........
    SOAPFault received from Integration Server. ErrorCode/Category: XIProtocol/WRONG_VALUE; Params: SOAP:Envelope(1)SOAP:Header(1)sap:DynamicConfiguration(3)sap:Record(14), AcarCeJmJKHuV6wZSxm2UMoUeAjS1gALPExABtze/PACiUJDcAGS0DCwAmOOELAJlOzP0AFiOo8gCK1pEZAF500SsAYW46lgBgX2bGALyieMQAXw2oKgBYXf0WAGeueD0AAAHnhwBamTSaAGIUE0kAYZSYTQBgY5OTADunN0gAE3t/sQAWScBXADTQvvEAD4yNhQATdkKiAFr7DBMAGIXTZQAP2xJFABZ0YfoAGHYAuAAKlaeaACJ9xtUAEjcvQAAV4L06ABZuwsAAK/f9vgAAF/GSAAAYmRYARIKwtQAV5R9SABMo5bsAGQQyvAAVqsjyABOh9uMAFXTa2QAWEjsfABaEvp4AFaL1NQAV5MnUABXiVbIAGc7LsQAYVN9SABLfYQIAEwF3nQAWSL2lABn5ZgIAEf/k8gAWeVgrAAJaSZIAAElM4gATZR0GA=協彎䅍䔾ਉ़䥎噏䥃䕟乏㸸㌱ㄵㄹ㰯䥎噏䥃䕟乏㸊उ㱁䵏啎呟䕘䍌彖䅔㸷⸵〼⽁䵏啎呟䕘䍌彖䅔㸊उ㱃啒剅乃失㹅啒㰯䍕剒䕎䍙ㄾਉ़䅍何乔彖䅔㸱⸴㜼⽁ꯃ䅢坡汫, ST: ST_XM; AdditionalText: An error occurred when deserializing in the simple transformation program ST_XMS_MSGHDR30_DYNAMIC; ApplicationFaultMessage:  ; ErrorStack: XML tag SOAP:Envelope(1)SOAP:Header(1)sap:DynamicConfiguration(3)sap:Record(14) (or one of the attributes) has the incorrect value AcarCeJmJKHuV6wZSxm2UMoUeAjS1gALPExABtze/PACiUJDcAGS0DCwAmOOELAJlOzP0AFiOo8gCK1pEZAF500SsAYW46lgBgX2bGALyieMQAXw2oKgBYXf0WAGeueD0AAAHnhwBamTSaAGIUE0kAYZSYTQBgY5OTADunN0gAE3t/sQAWScBXADTQvvEAD4yNhQATdkKiAFr7DBMAGIXTZQAP2xJFABZ0YfoAGHYAuAAKlaeaACJ9xtUAEjcvQ An error occurred when deserializing in the simple transformation program ST_XMS_MSGHDR30_DYNAMIC Data loss occurred when converting AcarCeJmJKHuV6wZSxm2UMoUeAjS1gALPExABtze/PACiUJDcAGS0DCwAmOOELAJlOzP0AFiOo8gCK1p
    Transmitting the message to endpoint http://sdcxp1-ci.na.fmo.com:8000/sap/xi/engine?type=entry using connection AFW failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Received HTTP response code 500 : Error during parsing of SOAP header.

    We work with Microsoft Outlook, but I'm sure this could work with any email system.
    This error only came from external emails - what we did in the end is to get the third party to email a particular email (email1) in our company.  This is set up as a regular email account.  On this email put a forward rule to email2 for a particular sender/subject.  email2 is set up as POP3 so that XD1 can poll it - we also block any emails except from email1.
    Doing this accomplishes a couple of things:
    1)  We get around the error because XI polls email2 (which has adapter settings of IMAP4 so we can see MAIL adapter attributes ie. sender, subject etc...When we originally had as POP3 we were not able to see these - but setting as IMAP4 causes the error for external emailers)
    2) We have a SPAM filter - the XI email is clean from SPAM and the adapter will not have errors, as it only receives valid emails to process
    3) We have a central email (email1) which is used to archive all XI emails - we use this for all email scenarios (as we also save to folder and forward in the rule)
    Hope this helps your situation.

  • Database logon failed error on IIS7

    I am getting a Database logon failed error on a report that is being called in ASP.NET form on IIS7. This error does not happen in my development environment but only on the webserver in IIS7. I can open the report and run it in Crystal Reports designer without any problem. Any help on this will be appreciated. The error message I get is below.
    Report File: LossRunByPolicyNoDates.rpt Report Path: C:\inetpub\wwwroot\adhoc_reports\LossRunByPolicyNoDates.rpt Export Path: C:\inetpub\wwwroot\adhoc_inbox\khogan\RSF500217-09.pdf CrystalDecisions.CrystalReports.Engine.LogOnException: Database logon failed. ---> System.Runtime.InteropServices.COMException (0x8004100F): Database logon failed. at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) --- End of inner exception stack trace --- at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e) at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext) at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export() at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export() at adhoc.WebForm1.btnRun_Click(Object sender, EventArgs e) in C:\inetpub\wwwroot\adhoc\WebForm1.aspx.vb:line 443

    In addition to the information that Bhushan requested;
    What database?
    How are you connecting to it (ODBC, OLE DB, etc.)?
    I'd also highly recommend having a read of the following:
    What do I need to do to get the fastest issue resolution?
    With he info you provided, you are asking us to guess, which typically proves to be a very inefficient way of troubleshooting any issue...
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Database Validation Failed error while configuring RDBMS profile for audit

    Hi,
    I am using Oracle Access Manager 10.1.4.3.0 with FMW 11g (Oracle internet Directory and Oracle Virtual Directory) on Linux X64.
    While configuring RDBMS profile for OAM Auditing and reporting...
    I am getting "Database Validation Failed" error both in Identity and Access servers
    When I am looking in oblog...I got following in Identity..
    2010/07/17@06:59:28.882658     17384     17422     CONNECTIVITY     DEBUG3     0x00000201     obmessagechannel.cpp:179     "Sending: "     seqno^13     opcode^8     pMsg^{25}st={5}ma=22{4}mi=2{4}sg=0{4}rt=0     
    2010/07/17@06:59:28.882704     17384     17422     NET     DEBUG3     0x00000201     obsocket.cpp:848     "ObSocketOIS::WriteFully"     _sock^19     LocalAddr^10.31.13.129     LocalPort^6022     RemoteAddr^10.31.13.134     RemotePort^41646     
    and in Access..
    2010/07/17@06:39:09.391459     3326     3388     AUDIT     ERROR     0x00001D04     ../dbauditwriter.cpp:410     "The database audit writer was unable to perform the write"     
    2010/07/17@06:39:09.391491     3326     3388     AUDIT     WARNING     0x00001149     /usr/abuild/Oblix/10143hf/palantir/aaa_server/src/audit_handler.cpp:1119     ""Unable to write the audit record"
    Kindly advice...

    Hi.
    Strange !
    Check whether the RFC destiantion LCRSAPRFC is proper. Test the connection and Also check the exchange profile paramteres in the XI.
    Also refer
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c6/6f1741b393f26fe10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/f4/67b340be3dff5fe10000000a155106/frameset.htm
    Also check what user is maintained via transaction SLDAPICUST. and carefully enter the password, also check that if user is locked.
    Hope this will help you a bit.
    Regards
    Aashish Sinha

  • How to Hightlight the Data in Jsp Page

    How to Hightlight the Data in Jsp Page,
    I am doing doing search page,based on values given search page those are sent to servlet,in servlet based on some conditions if particuler id i am getting then i am redirecting to Respective jsp page with highlight the data from database..
    Thanks in advance...

    "Highlighting data in JSP sounds strange".
    Without looking at your search specific algorithms I feel you are finally going to display a page (HTML content) to user which contains highlighted text. Highlighting is not directly related to server side language you use (JSP, ASP, PHP etc.). This is purely HTML and CSS. However, server side script (such as JSP) should generate HTML content for getting highlight effect.
    Following HTML shows highlighted text using background-color property on span element.
    <html>
      <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
      </head>
      <body>
          <p style="font-size:1.1em">This is a long paragraph which contains <span style="background-color: yellow;">highlighted text</span> and non highlighted text.</p>
      </body>
    </html>Thanks,
    Mrityunjoy
    Edited by: mrityunjoy on 14 Jun, 2010 3:30 AM

  • Displaying calculated data in JSP pages

    This is a general question about displaying data in JSP pages which has been calculated through ViewObj Routines. I have exposed the methods to the application level however, I want these methods to automatically run on the launch of the page. I can so this with a data action in the struts file. However, I have lots of these methods (all bringing single values of data), it seems inelegant to have 10 data actions or so. What's the best way to expose and show data on a JSP page automatically which has been calculated from the database rows.
    Thanks in advance

    You could convert the vo row to a hash using BeanUtils and then you could do what you want with it programmaticaly to automatically dissplay the lhash values.

  • Scripts :EMail - gettiing 3 page data into 2 pages

    Hi all,
    I have created the layout using sap script for sales order and  when i see the print preview of sales order i can able to see th 3 pages in the layout in the NACE i have configured it to EMAIL so far i am getting email as per the design.
    Problem is that when  i click on print preview of email i can able to see all 3 pages of data  into 2 pages. half of second page data is displayed in first page which is not supposed to get on 2 pages , it should be displayed in 3 pages only.
    please help me out.
    Regards
    Venkat Boddu

    I dont think it will work....because as you said, it has wave type vector across all 5 pages then it is a single object which is not going to divide or split when moving pages.
    you have to manually divide the vector art in five section, put them on 5 pages ....and then when you will move the pages then artwork will move along the page.

  • "Database logon failed" error received after upgrading from CR XI to CR 200

    We have a bunch of reports that use ttx files and datasets.  The code to support this was written and compiled originally using .NET 2.0 and CR XI.  After recompiling using .NET 3.5 and CR 2008 (not the version that came with VS2008), when I run the reports, I now receive an error "Database logon failed".  after clicking throught he error, I am prompted to enter a username and password.  Just for the heck of it, I entered my database userame and password with no luck.  I cancelled out of the login dialog and the frae of the report appeared but no report.  No code was changed.  How do I fix this?
    I know that I should convert the reprots to use xml schema files but I have over 300 reports and this will take time.  I need to get this fixed ASAP.  After I get this running, I can then [leisurely] fix the reports and use xsd files.

    Since the reports were create off of ttx files, they would be expecting a recordset at that time. How are you passing the data to the reports with CR 2008 and VS 2008?
    Also, see the following:
    [1468232  - How to use reports based on multiple TTX files in Visual Studio .NET|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333433363338333233333332%7D.do]
    [1468232  - How to use reports based on multiple TTX files in Visual Studio .NET|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333433363338333233333332%7D.do]
    And don't forget to search these forums - a fair amount of info in this topic here. The search box in the top right corner of this web page will also give you a number of blogs, KBases, wikis articles and more. E.g.; the search term "ttx net crystal", brought up the above two KBases (along with a number of other content).
    Oh. If this is critical, remember you always have the option of creating a phone case;
    http://store.businessobjects.com/store/bobjamer/en_US/pd/productID.98078100?resid=S6I@hgoHAkEAAGsiyVkAAAAR&rests=1282226845369
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]
    Edited by: Ludek Uher on Oct 7, 2011 7:04 AM

  • CRVS2010 Beta 2 - "Database Logon failed" Error, after Upgrade

    Hi,
    Generally: we are using the Crystal Reports in combination with a DataSet, that is filled during runtime and pushed to the report, using "SetDataSource". The Project is an ASP .NET 3.5 Project, published on our server.
    I upgraded my development-machine to CRVS2010 (installed both packages - the CRVS for VS 2010 and the runtime) last week and changed some fields in the Report. The DataSet was left unchanged. Everything is working well on my development-machine, but when I publish the Project to our server, I get an "Databse Logon failed" Error, when I want to create my Report. The CRVS2010 Beta 2 redist Runtime is installed on our server. Here is the code, we use:
    // create new Report
    var report = new Reports.repMyReport();
    // DataSource ds was filled correctly (we checked with export to XML
    report.SetDataSource(ds);
    // Set several Parameters to Report
    report.SetParameterValue("test", "test");
    // Export Report to PDF-Format and open in Browser
    report.ExportToHttpResponse(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, Response, false, "reportName.pdf");
    Response.End();
    The error I get is:
    Database logon failed.
    [COMException (0x8004100f): Database logon failed.]
       CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) +0
       CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) +260
    [LogOnException: Database logon failed.]
       CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e) +325
       CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) +315
       CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) +650
       CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options) +98
       CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportOptions options, HttpResponse response, Boolean asAttachment, String attachmentName) +98
       CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportFormatType formatType, HttpResponse response, Boolean asAttachment, String attachmentName) +124
       SprintBoxWeb.BuchungDruck.Page_Load(Object sender, EventArgs e) in D:\Projects\sprnt_erp\SprintBoxWeb\BuchungDruck.aspx.cs:32
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       System.Web.UI.Control.LoadRecursive() +50
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
    I already tried everything, found googling the web and/or searching this forum:
    e.g.: perform "verify Database" on all Reports and map the DataSet.xsd again to the Report
    Is that a known issue on the Beta and we should wait for the RC, or does anyone have an idea how to fix that one?
    This error is really annoying!
    Many thanks for your help.
    kind regards
    Reinhard

    Dear Ludek,
    Many thanks for your quick reply. Currently, I have to finish some other things. I will try your ideas next week and give you some feedback then, to keep you informed.
    best regards,
    Reinhard

  • Live Office: Database logon failed error

    Please help...Live Office problem...
    Am working in Xcelsius 2008.
    Here's what I'm trying to do:
    1. I set up a Crystal Report using a Stored Procedure as the data provider.
    2. The Stored Procedure has a parameter built into it.
    3. When the report is refreshed within Crystal, the prompt dialog box is displayed; I fill in the desired value, and run. Everything comes back fine.
    4. Crystal Report is exported to the repository.
    5. In Excel, I inserted the Crystal Report using Live Office. It shows up as a Live Office object just fine.
    6. I bound an Excel cell to the prompt; when you change the value in the bound cell, the Live Office object refreshes and displays the correct results.
    7. In Xcelsius, I imported the Excel spreadsheet.
    8. I set up a Text component that is bound to the cell containing the parameter value. Also set up a Grid to display the results, and a Connection Refresh button to call the refresh. Added a Live Office Data Connection pointing to the Web Service URL for the report. 
    Note: When in Designer mode, if the value of the bound cell is changed, the results in the grid change accordingly.
    9.  When in Preview mode (or generated swf), if the Refresh button is pressed, a "User Identification" dialog box appears asking me to log on. The values it asks for are: System, User Name, Password, and Authentication.  I enter the same credentials as are within the Live Office settings in Excel, (which are working correctly), but receive an error "soapenv:Server.generalException: Database logon failed.".
    Note - all the id's are synced up - Business Objects, Database, etc.
    I've tried all kinds of combinations, but nothing gets me past this error. If I use any other server than the system one, the error message is "soapenv:Server.generalException: Server XXXXX not found or server may be down".
    I've noticed that in Excel directly, when I open the spreadsheet and refresh the Live Office object, I am prompted to log on to the database where the stored procedure is being executed. This dialog box does not appear once the Excel sheet has been imported into Xcelsius. One of the combinations I tried in the "User Identification" dialog box was the name of the database server, that didn't work either.
    I also tried creating the Live Office object directly within the Excel spreadsheet in Xcelsius, but then I was unable to bind the prompt value. Could never get the Live Office/Properties menu to appear.
    Ideas? Thoughts?
    Thanks in advance!
    Stephanie

    Got it!
    Here's what I had to do...
    In the CMC, under Object/Process/Database for the Crystal Report -
    which says...
    "Set the default information for logging onto the data source(s) automatically whenever the report is run."
    The Database Connection option had to be set to "Use custom database logon information specified here" and
    the When Viewing Report option set to "Use same database logon as when report is run".
    Then everything works fine - prompts appear, and Xcelsius passes the log on information to the database correctly. Stored procedure executes and returns the correct results.
    Thanks to everyone for their help!
    Stephanie

  • Weblogic  message ---error while loading data into planning database

    Hi,
    Does anyone have idea on this error message .We are loading data into planning 11.1.2.1 using ERPI standalone 11.1.2.1.501 but everytime it load gives out this message and data load is unsuccessful.platform is Microsoft windows 64-bit 2008R2 ----Database Microsoft SQL Server 2008.
    Please help.
    <Mar 2, 2012 12:20:51 PM PST> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    <Mar 2, 2012 12:36:24 PM PST> <Warning> <JMX> <BEA-149515> <An error was encountered getting the attribute DatabaseProductName on the MBean com.bea:ServerRuntime=ErpIntegrator0,Name=aif_datasource,Type=JDBCDataSourceRuntime during a call to getAttributes>
    <Mar 2, 2012 12:36:24 PM PST> <Warning> <JMX> <BEA-149515> <An error was encountered getting the attribute DriverVersion on the MBean com.bea:ServerRuntime=ErpIntegrator0,Name=aif_datasource,Type=JDBCDataSourceRuntime during a call to getAttributes>
    <Mar 2, 2012 12:36:24 PM PST> <Warning> <JMX> <BEA-149515> <An error was encountered getting the attribute DriverName on the MBean com.bea:ServerRuntime=ErpIntegrator0,Name=aif_datasource,Type=JDBCDataSourceRuntime during a call to getAttributes>
    <Mar 2, 2012 12:36:24 PM PST> <Warning> <JMX> <BEA-149515> <An error was encountered getting the attribute DatabaseProductVersion on the MBean com.bea:ServerRuntime=ErpIntegrator0,Name=aif_datasource,Type=JDBCDataSourceRuntime during a call to getAttributes>
    <Mar 2, 2012 12:36:24 PM PST> <Warning> <JMX> <BEA-149515> <An error was encountered getting the attribute DatabaseProductName on the MBean com.bea:ServerRuntime=ErpIntegrator0,Name=EPMSystemRegistry,Type=JDBCDataSourceRuntime during a call to getAttributes>
    <Mar 2, 2012 12:36:24 PM PST> <Warning> <JMX> <BEA-149515> <An error was encountered getting the attribute DriverVersion on the MBean com.bea:ServerRuntime=ErpIntegrator0,Name=EPMSystemRegistry,Type=JDBCDataSourceRuntime during a call to getAttributes>
    <Mar 2, 2012 12:36:24 PM PST> <Warning> <JMX> <BEA-149515> <An error was encountered getting the attribute DriverName on the MBean com.bea:ServerRuntime=ErpIntegrator0,Name=EPMSystemRegistry,Type=JDBCDataSourceRuntime during a call to getAttributes>
    <Mar 2, 2012 12:36:24 PM PST> <Warning> <JMX> <BEA-149515> <An error was encountered getting the attribute DatabaseProductVersion on the MBean com.bea:ServerRuntime=ErpIntegrator0,Name=EPMSystemRegistry,Type=JDBCDataSourceRuntime during a call to getAttributes>

    Hi Found solution.login to weblogic console and change the timeout of ERPI from 600 sec to 20000 sec.\
    It worked no more error.
    Cheers

  • Error while loading data into cube

    hi BW gurus,
    when ever i am trying to load data into the cube from flat file after scheduling iam getting short dump in BW system. I checked it in st22 it is giving me a error as exception add_partition_failed. please help me to sort out this problem. If you know the error recovery please give me the answer in detail.
    I will assign points for good answers.

    This is what the note says:
    Symptom
    The process of loading transaction data fails because a new partition cannot be added to the F fact table.The loading process terminates with a short dump.
    Other terms
    RSDU_TABLE_ADD_PARTITION_ORA, RSDU_TABLE_ADD_PARTITION_FAILED, TABART_INCONSITENCY, TSORA, TAORA , CATALOG
    Reason and Prerequisites
    The possible causes are:
    SQL errors when creating the partition
    Inconsistencies in the Data Dictionary control tables TAORA and TSORA
    Solution
    BW 3.0A & BW 3.0B
    In the case of SQL errors:Analyze the SQL code in the system log or short dump and if possible, eliminate the cause. The cause is often a disk space problem or lock situations on the database catalog or, less frequently: the partitioning option in the ORACLE database is not installed.
    The most common cause of the problem is inconsistencies in the TAORA and TSORA tables. As of Support Package 14 for BW 3.0B/Support Package 8 for BW 3.1C, the TABART_INCONSITENCY exception is issued in this case. The reason is almost always missing entries in TSORA for the tablespaces of the DDIM, DFACT and DODS data classes.
    The TAORA table contains the assignment of data classes to data tablespaces and their attributes, for example:
    Tablespace Data class
    DDIM PSAPDIMD ........
    DFACT PSAPFACTD ........
    DODS PSAPODSD .......
    Foreach data tablespace, the TSORA table must contain an entry for the corresponding index tablespace, for example:
    TABSPACE INDSPACE
    PSAPDIMD PSAPDIMD
    PSAPFACTD PSAPFACTD
    PSAPODSD PSAPODSD
    In most cases, these entries are missing and have to be added. See also notes 502989 and 46272.

  • Error while Inserting data into flow table

    Hi All,
    I am very new to ODI, I am facing lot of problem in my 1st interface. So I have many questions here, please forgive me if it has irritated to you.
    ========================
    I am developing a simple Project to load a data from an input source file (csv) file into a staging table.
    My plan is to achieve this in 3 interfaces:
    1. Interface-1 : Load the data from an input source (csv) file into a staging table (say Stg_1)
    2. Interface-2 : Read the data from the staging table (stg_1) apply the business rules to it and copy the processed records into another staging table (say stg_2)
    3. Interface-3 : Copy the data from staging table (stg_2) into the target table (say Target) in the target database.
    Question-1 : Is this approach correct?
    ========================
    I don't have any key columns in the staging table (stg_1). When I tried to execute the Flow Control of this I got an error:
    Flow Control not possible if no Key is declared in your Target Datastore
    With one of the response (the response was - "FLOW control requires a KEY in the target table") in this Forum I have introduced a column called "Record_ID" and made it a Primary Key column into my staging table (stg_1) and my problem has been resolved.
    Question-2 : Is a Key column compulsary in the target table? I am working in BO Data Integrator, there is no such compulsion ... I am little confused.
    ========================
    Next, I have defined one Project level sequence. I have mapped the newly introduced key column Record_Id (Primary Key) with the Project level sequence. Now I am got another error of "CKM not selected".
    For this, I have inserted "Insert Check (CKM)" knowledge module in my Project. With this the above problem of "CKM not selected" has been resolved.
    Question-3 : When is this CKM knowledge module required?
    ========================
    After this, the flow/interface is failing while loading data into the intermediar ODI created flow table (I$)
    1 - Loading - SS_0 - Drop work table
    2 - Loading - SS_0 - Create work table
    3 - Loading - SS_0 - Load data
    5 - Integration - FTE Actual data to Staging table - Drop flow table
    6 - Integration - FTE Actual data to Staging table - Create flow table I$
    7 - Integration - FTE Actual data to Staging table - Delete target table
    8 - Integration - FTE Actual data to Staging table - Insert flow into I$ table
    The Error is at Step-8 above. When opened the "Execution" tab for this step I found the message - "Missing parameter Project_1.FTE_Actual_Data_seq_NEXTVAL RECORD_ID".
    Question-4 : What/why is this error? Did I made any mistake while creating a sequence?

    Everyone is new and starts somewhere. And the community is there to help you.
    1.) What is the idea of moving data from stg_1 and then to stg_2 ? Do you really need it for any other purpose other than move data from SourceFile to Target DB.
    Otherwise, its simple to move data from SourceFile -> Target Table
    2.) Does your Target table have a Key ?
    3.) CKM (Check KM) is required when you want to do constraint validation (Checking) on your data. You can define constraints (business rules) on the target table and Flow Control will check the data that is flowing from Source File to Target table using the CKM. All the records that donot satisfy the constraint will be added to E$ (Error table) and will not be added to the Target table.
    4.) Try to avoid ODI sequences. They are slow and arent scalable. Try to use Database sequence wherever possible. And use the DB sequence is target mapping as
    <%=odiRef.getObjectName( "L" , "MY_DB_Sequence_Row" , "D" )%>.nextval
    where MY_DB_Sequence_Row is the oracle sequence in the target schema.
    HTH

  • Error by inserting data into a field of datatype LONG

    Hi,
    When inserting data into a field of datatype long in oracle8 database via SQL Plus or SQL worksheet there occurs the following error message: "field in data file exceeds the maximum length".
    If I access to the database from a selve written program via odbc there is no problem when inserting the data by the same sql statement.
    So what can I do?
    Thanks in advance!
    Juergen

    What does your SQL statement look like?

Maybe you are looking for