Mulitnumeric limits loading from database

Hi, Sir,
I am trying to use property loader step in TestStand to load multinumeric limits from a database table for different measurements in multinumeric test step. The database table has several columns such as: stepname, measurementname, hi/low limits. To load the limits for different measurement correctly using single property loader step, I have to match both the step name and measurement name in its filtering page. My question is how should I do this? More specific, how can I access the measurement name attached with different loading properties during run time?
I do not find any example for this problem. Most examples seem to be for TestStand 1.0, which has no multinumerica test step type.
Thank you for your help.
Yin

Yin,
In your database, you should have a column for each high and low limit and comparison for each multiple numeric limit test step. For example, if I have 2 measurements in my multiple numeric limit test step, I will have the following columns: StepName, Result_Measurement_0_Comp, Result_Measurement_0_Limits_High, Result_Measurement_0_Limits_Low,
Result_Measurement_1_Comp, Result_Measurement_1_Limits_High, Result_Measurement_1_Limits_Low.
After your database is set up, you would use the property loader step to read the values in during run-time. If you insert a property loader step and configure the Data Location to be a database, you can configure which database and table you want to read from. Then near the bottom of the property loader dialog, there are two fields. One is for Property Name and the other is for Column Name/Number. You use these fields to assign a certain column to a certain property. So for this case, we would choose one of the limit properties that we want to load from the database and assign that to a certain column. For example, the Property Name would be Result.Measurement[0].Comp and its corresponding Column Name/Number would be the database column Result_Measurement_0_Comp. The next Property Name would be Result.Measurement[0].Limits.High and its corresponding Column Name/Number would be the database column Result_Measurement_0_Limits_High. You would continue to assign a particular column to each property that you want to read in.
In using the Property Loader step type, it is immensely helpful to use the Import/Export Properties tool to create the database, Excel file, or text file because the tool will create these files with the correct format. You would then know exactly how many columns and their names because TestStand created them for you. Even if you plan to use a pre-existing source file, just creating the default source file will give you a better idea of how you will need to tailor your pre-existing database or excel or text file.
If you have other questions, let us know.
Regards,
Shannon R.
Applications Engineer
National Instruments

Similar Messages

  • Jasper report on HTML when one image loaded from database and for the other

    How to generate jasper report on HTML when one image loaded from database and for the other we give a image path
    My code
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
              exporter = new JRHtmlExporter();
              exporter.setParameter(JRExporterParameter.JASPER_PRINT, print);
              exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, baos);
              exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, strImageInputDirectory);
         exporter.setParameter(JRHtmlExporterParameter.IMAGES_DIR_NAME, strImageOutputPath == null ? "." : strImageOutputPath);
         exporter.setParameter(JRHtmlExporterParameter.IS_OUTPUT_IMAGES_TO_DIR, Boolean.TRUE);
         exporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, Boolean.FALSE);
         exporter.setParameter(JRHtmlExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE);
              exporter.exportReport();
              byte[] bdata = ((ByteArrayOutputStream) baos).toByteArray();
    Can any one help pls
    Message was edited by:
    ameet.au

    hey sorry for posting it in this forum.
    but do u have sample code for making it work.. since i am able to do it on PDF format(image from Database and another stored in the webserver) using
    byte image[] =(byte[]) outData.get("image");
                        ByteArrayInputStream img = new ByteArrayInputStream(image);
                        hmimg.put("P_PARAMV3", img);
    print = JasperFillManager.fillReport(reportFileName, hmimg, jrxmlds);
    bdata= JasperExportManager.exportReportToPdf(print);

  • Error loading from database

    I have a .wft file and two databases: Deploy and Production.
    If I save the .wft file to Production it works fine but if I save it to Deploy I get when Uploading from database:
    1300: Could not load.
    1114: Could not load from database.
    1115: Could not load all definitions referenced by 'CON_MAIL' item type.
    1115: Could not load contents of 'CON_MAIL' item type.
    1101: Could not load item types from database. FILTER=CON_MAIL
    210: Oracle Error: ORA-01403: no data found
    . SQL text: SELECT protect_level, custom_level, name, display_name, description, type, subtype, format, text_default, to_char(number_default), to_char(date_default, 'YYYY/MM/DD HH24:MI:SS') FROM wf_item_attributes_vl WHERE item_type = :type ORDER BY sequence
    It did not create in deploy the row in the table wf_item_attributes and I think this is not a NLS_LANG problem because the same file worked in Production DB (they have the same environement).
    Any solution? I could create process in Deploy until one month ago.
    Thanks in advance JR

    José,
    Por tu nombre asumo que hablas español por lo que te escribo en ese idioma.
    En nuestro caso, como el mensaje de error indicaba que el siguiente query generaba problemas, lo analizamos
    SELECT protect_level, custom_level, name, display_name, description,
    type, subtype, format, text_default, to_char(number_default),
    to_char(date_default, 'YYYY/MM/DD HH24:MI:SS')
    FROM wf_item_attributes_vl
    WHERE item_type = :type
    ORDER BY sequence
    Encontramos que la vista wf_item_attributes_vl se basa en las tablas WF_ITEM_ATTRIBUTES y WF_ITEM_ATTRIBUTES_TL
    El problema se generaba porque en la tabla WF_ITEM_ATTRIBUTES había un registro que no tenía su correspondiente en la tabla WF_ITEM_ATTRIBUTES_TL (considerar que la vista wf_item_attributes_vl filtra los datos de acuerdo al lenguaje de la sesión, usando userenv('LANG') )
    Creando el registro faltante en la tabla WF_ITEM_ATTRIBUTES_TL, los datos del atributo aparecieron en la vista wf_item_attributes_vl, y el problema desapareció.
    En nuestro caso el verdadero problema se originó por haber manipulado los datos de definición de atributos directamente desde las tablas y no a través de WF Builder
    Saludos
    SV

  • ImageIcons loaded from database don't appear

    Hi,
    I create a JavaBean to show images from filesystem and database (oracle9i) in a JTable.
    The ImageIcons loaded from filesystem appears fine whith my defined DefaultTabelModel.
    The ImageIcons read from database (jdbc2) with the same DefaultTabelModel appears in the correct count, but the fields or placholders of the Images, saved as blob, are blank.
    The code of my resultset
    BLOB myblob = null;
    int bufsize = 0;
    while(result.next())
    myblob = ((OracleResultSet)result).getBLOB("image_container");
    bufsize = myblob.getChunkSize();
    byte[] buffer = new byte[bufsize];
    ImageIcon icon = new ImageIcon(buffer);
    Object [] row = {icon};
    model1.addRow(row);
    model1.fireTableDataChanged();
    I don't get any errors.
    Thanks
    Klaus

    Hi,
    I changed the datatype from BLOB to 'LONG RAW' for the image in the database.
    while(result.next())
    byte[] bytes = result.getBytes(1);
    String jd = String.valueOf(bytes);
    System.out.println(jd);
    //get:[B@153 [B@154
    //or [B@155 [B@156 for the 2.result
    String name = result.getString(2);
    System.out.println(name);
    //get the correct result
    FileOutputStream file = null;
    file = new FileOutputStream ("c:\\"+name+".jpg");
    file.write(bytes);
    //it works fine !!!
    ImageIcon icon = new ImageIcon(bytes); //it is correct ?
    String ls = String.valueOf(icon.getImageLoadStatus());
    String h = String.valueOf(icon.getIconHeight());
    String w = String.valueOf(icon.getIconWidth());
    System.out.println(h+" : "+w);
    //get: -1 : -1
    System.out.println(ls);
    //get: 4
    Object [] row = {icon,name};
    //icon is blank, name appears correct in jtable
    //but when I need:
    //ImageIcon icon = new ImageIcon(AW_Frame.class.getResource("images/emac.jpg"));
    //icon and name appears correct in jtable
    model1.addRow(row);
    model1.fireTableDataChanged();
    any ideas ?
    Thanks in advance !

  • Data flow tasks faills while loading from database to excel

    Hello,
    I am getting error while loading from oledb source to excel and the error as shown below.
    Error: 0xC0202009 at DFT - Company EX, OLE DB Destination [198]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    Error: 0xC0209029 at DFT - Company EX, OLE DB Destination [198]: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "input "OLE DB Destination Input" (211)" failed because error code 0xC020907B occurred, and the error row
    disposition on "input "OLE DB Destination Input" (211)" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the
    failure.
    Error: 0xC0047022 at DFT - Company EX: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "OLE DB Destination" (198) failed with error code 0xC0209029. The identified component returned an error from the ProcessInput
    method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.
    Error: 0xC02020C4 at DFT - Company EX, OLE DB Source 1 [1]: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020.
    Error: 0xC0047021 at DFT - Company EX: SSIS Error Code DTS_E_THREADFAILED.  Thread "WorkThread0" has exited with error code 0xC0209029.  There may be error messages posted before this with more information on why the thread has exited.
    Error: 0xC0047038 at DFT - Company EX: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on component "OLE DB Source 1" (1) returned error code 0xC02020C4.  The component returned a failure code when the pipeline engine
    called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
    Error: 0xC0047021 at DFT - Company EX: SSIS Error Code DTS_E_THREADFAILED.  Thread "SourceThread0" has exited with error code 0xC0047038.  There may be error messages posted before this with more information on why the thread has exited.
    Any help would be appreciated ASAP.
    Thanks,
    Vinay s

    You can use this code to import from SQL Server to Excel . . .
    Sub ADOExcelSQLServer()
    ' Carl SQL Server Connection
    ' FOR THIS CODE TO WORK
    ' In VBE you need to go Tools References and check Microsoft Active X Data Objects 2.x library
    Dim Cn As ADODB.Connection
    Dim Server_Name As String
    Dim Database_Name As String
    Dim User_ID As String
    Dim Password As String
    Dim SQLStr As String
    Dim rs As ADODB.Recordset
    Set rs = New ADODB.Recordset
    Server_Name = "EXCEL-PC\EXCELDEVELOPER" ' Enter your server name here
    Database_Name = "AdventureWorksLT2012" ' Enter your database name here
    User_ID = "" ' enter your user ID here
    Password = "" ' Enter your password here
    SQLStr = "SELECT * FROM [SalesLT].[Customer]" ' Enter your SQL here
    Set Cn = New ADODB.Connection
    Cn.Open "Driver={SQL Server};Server=" & Server_Name & ";Database=" & Database_Name & _
    ";Uid=" & User_ID & ";Pwd=" & Password & ";"
    rs.Open SQLStr, Cn, adOpenStatic
    ' Dump to spreadsheet
    With Worksheets("sheet1").Range("a1:z500") ' Enter your sheet name and range here
    .ClearContents
    .CopyFromRecordset rs
    End With
    ' Tidy up
    rs.Close
    Set rs = Nothing
    Cn.Close
    Set Cn = Nothing
    End Sub
    Also, check this out . . .
    Sub ADOExcelSQLServer()
    Dim Cn As ADODB.Connection
    Dim Server_Name As String
    Dim Database_Name As String
    Dim User_ID As String
    Dim Password As String
    Dim SQLStr As String
    Dim rs As ADODB.Recordset
    Set rs = New ADODB.Recordset
    Server_Name = "LAPTOP\SQL_EXPRESS" ' Enter your server name here
    Database_Name = "Northwind" ' Enter your database name here
    User_ID = "" ' enter your user ID here
    Password = "" ' Enter your password here
    SQLStr = "SELECT * FROM Orders" ' Enter your SQL here
    Set Cn = New ADODB.Connection
    Cn.Open "Driver={SQL Server};Server=" & Server_Name & ";Database=" & Database_Name & _
    ";Uid=" & User_ID & ";Pwd=" & Password & ";"
    rs.Open SQLStr, Cn, adOpenStatic
    With Worksheets("Sheet1").Range("A2:Z500")
    .ClearContents
    .CopyFromRecordset rs
    End With
    rs.Close
    Set rs = Nothing
    Cn.Close
    Set Cn = Nothing
    End Sub
    Finally, if you want to incorporate a Where clause . . .
    Sub ImportFromSQLServer()
    Dim Cn As ADODB.Connection
    Dim Server_Name As String
    Dim Database_Name As String
    Dim User_ID As String
    Dim Password As String
    Dim SQLStr As String
    Dim RS As ADODB.Recordset
    Set RS = New ADODB.Recordset
    Server_Name = "Excel-PC\SQLEXPRESS"
    Database_Name = "Northwind"
    'User_ID = "******"
    'Password = "****"
    SQLStr = "select * from dbo.TBL where EMPID = '2'" 'and PostingDate = '2006-06-08'"
    Set Cn = New ADODB.Connection
    Cn.Open "Driver={SQL Server};Server=" & Server_Name & ";Database=" & Database_Name & ";"
    '& ";Uid=" & User_ID & ";Pwd=" & Password & ";"
    RS.Open SQLStr, Cn, adOpenStatic
    With Worksheets("Sheet1").Range("A1")
    .ClearContents
    .CopyFromRecordset RS
    End With
    RS.Close
    Set RS = Nothing
    Cn.Close
    Set Cn = Nothing
    End Sub
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • Error while Image loading from database

    I'am using generic handler for loading Image from data bases. Its work fine when when I hardcode the ImageID in QureyString when call Handler. But it's giving errors of different type when I dynamically pass value to qurey string(from datatable).
    "There is already an open DataReader associated with this Command which must be closed first." 
    OR
    "There is already an open DataReader associated with this Command which must be closed first."
    here is a code of Handler
    public void ProcessRequest(HttpContext context)
    Int64 id = Convert.ToInt64(HttpContext.Current.Request.QueryString["adid"]);
    // dt = obj_dalayer.GetRecpDetailsByID(id);
    dt=GetRecpDetailsByID(id);
    if (dt.Rows.Count > 0)
    //context.Response.ContentType = "image/jpeg";
    context.Response.BinaryWrite((byte[])dt.Rows[0][2]);
    public DataTable GetRecpDetailsByID(Int64 reid)
    try
    obj_DB.Open();
    obj_sqlcmd = new SqlCommand("GetRecpDetailsByID", obj_DB.GetDBConnection());
    obj_sqlcmd.CommandType = CommandType.StoredProcedure;
    obj_sqlcmd.Parameters.Add(new SqlParameter("@rid", reid));
    obj_sqlda = new SqlDataAdapter();
    obj_dt = new DataTable();
    obj_sqlda.SelectCommand = obj_sqlcmd;
    obj_sqlda.Fill(obj_dt);
    return obj_dt;
    finally
    obj_DB.Close();
    And here is a HTML and ServerSide code on ASPX page of call handler.
    <img id="img2" alt="Image" runat="server" src='<%#"~/ImageReqHandler.ashx?adid="+Eval("ReID")%>' width="179" height="148" /
    I'm using Eval("ReID") to get ID of Image from datatable.

    Ayez,
    This is the VB forum, try it in the C# form.
    http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral
    However, there they will probably tell you that although your problem is C#, it is ASP.Net some programmers become scared if it is Web you know.
    Success
    Cor

  • Image Loaded From Database not Visible in JLabel

    import java.sql.*;
    import javax.swing.*;
    import java.awt.*;
    public class consqlimage
         public consqlimage()
              try
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   Connection con = DriverManager.getConnection("jdbc:odbc:dsn","sa","manshu");
                   Statement stat = con.createStatement();
                   ResultSet rs = stat.executeQuery("Select pic from t_image");
                   byte b[];
                   b = new byte[1000];
                   while(rs.next())
                        b= rs.getBytes("pic");
                   for(int a=0;a!=b.length;a++)
                        System.out.println(b[a]);
                   JFrame f = new JFrame();
                   ImageIcon i1 = new ImageIcon(b+"jpeg");
                   JLabel l1=new JLabel("january",i1,SwingConstants.LEFT);
                   f.getContentPane().add(l1);
                   f.getContentPane().setLayout(new FlowLayout(FlowLayout.LEFT));
                   f.setSize(500,500);
                   f.setVisible(true);
                   con.close();
              catch(Exception e)
                   System.out.println(e);
         public static void main(String args[])
              new consqlimage();
    }

    Any reason why you are adding the "jpeg" to the end of the byte array?
    You should only have to pass the byte array to the ImageIcon constructor.

  • Could not load data from database after adding a query

    Dear all,
    I have a working crystal reports 2011 report. This report get its data from a BW 7.01 system provided by three bex queries. Everything works as expected but not I have to add a fourth query to the report then I get the following messages:
    I try to translate it because I user the german version:
    INFORMATION: In this report a stored procedure is used. Ensure that no SQL expression was added and no grouping on server side will be done.
    WARNING: Data could not be load from the database.
    WANING: Invalid argument provided. Details: The key figure structure isn't a valid field for report generation. Use instead the real keyfigures with teir units.
    Has anyone an idea what can be the reason for my issue?
    Thanks and regards!

    hi Gerrit,
    a couple of questions...
    1) are you adding all 3 queries (and then the 4th) in the same data connection or are each of these additional queries in a subreport?
    2) if all 3 queries (and then the 4th) are in the same data connection are you linking them?
    3) most importantly, if you create a brand new report off of the 4th query, is it successful?
    it's been quite a while since I've worked with bex queries but in general adding multiple queries (or stored procs or commands or combinations thereof)  to the same report is probably not a good idea. there ends up being a lot of processing happening in the crystal reports designer itself as a large virtual record set is created by the individual queries.
    -jamie

  • Issue to load data from database to XML file. error: ODI-40768

    Hi,
    While I am trying to load data from database to XML following error is appearing.
    ODI-1228: Task TEST_XML_DATA (Integration) fails on the target XML connection MyLOCALXSD.
    Caused By: java.sql.SQLException: ODI-40768: Could not save the file <default>:C:\DATA_FILE\www.xml because a class java.io.IOException occurred and said: The filename, directory name, or volume label syntax is incorrect
         at com.sunopsis.jdbc.driver.xml.SnpsXmlFile.writeToFile(SnpsXmlFile.java:751)
         at com.sunopsis.jdbc.driver.xml.SnpsXmlConnection.internalExecute(SnpsXmlConnection.java:769)
         at com.sunopsis.jdbc.driver.xml.SnpsXmlPreparedStatement.execute(SnpsXmlPreparedStatement.java:46)
         at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:166)
         at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)
         at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
         at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2906)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:540)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:338)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:272)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:263)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:822)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:83)
         at java.lang.Thread.run(Thread.java:662)
    jdbc url: jdbc:snps:xml?d=C:\test_xsd.xsd&s=TESTSQL&re=employeesX&ro=true
    physical schema: TESTSQL
    Knowledge modules are:
    LKM: LKM SQL to SQL
    IKM: IKM XML Control Append
    CKM: CKM SQL
    Parameters set are:
    CREATE_XML_FILE: true
    XML_PATH:<default>:C:\DATA_FILE\www.xml
    I have tried to change the directory path but error is still there.
    Could some one please help me to resolve the issue?
    Regards,
    user1672911

    Hi,
    The trouble in "<default>:"  - if you set XML_PATH as C:\DATA_FILE\www.xml instead  <default>:C:\DATA_FILE\www.xml- it will work correctly.
    Greetings,
    Eugene

  • Load interactive pdf with data from database

    I am trying to understand our options for loading database data into an interactive pdf..?   Some of the data is not stored in the database and needs to be manually entered by the user in the interactive pdf.
    Here is the interactive pdf I'm working with:
    http://www.dcma.mil/dcman/NPP/files/dd1149.pdf
    As I understand it, there are 2 options:
    1.  Create an xml file from the database data.   Users can manually import this xml file into this existing interactive pdf and then manually add the additional data, and save the interactive pdf.
    Would users need to use Adobe acrobat Standard or Pro edition to import the xml data?
    2.  Create a XFA PDF form that's made with LiveCycle Designer.   Can this method create an interactive pdf so that users can enter additional data later and save the pdf?  
       What adobe products are required to use this method?
    thanks for any assistance..
    -D

    Yes,using LiveCycle you could accomplish this easily.Once you have your invoice form ready based on predefined XSD, you can easily update the form data by fetching the values from database using JDBC operation.Also you could email this updated form using Email service.
    Thanks,
    Wasil

  • How to enable Load Roles from database in workflow builder

    Hi,
    I am new to workflow.
    In the wrokflow builder, How to enable file -> Load Roles from database.
    I am working on workflow builder2.6.3.5.
    Thanks & Regards,
    Bharathi.S

    You have to connect to database to load roles. File --> Open --> Database, then select the workflow.
    Then load roles, then save to database.
    The save as to .wft file and work on for customizations.

  • Loading the username and password from database when login to xMII

    Hi
      can you explain briefly about how to configure the netweaver for loading username and password from database when the user login to xMII via netweaver platform?
    In xMII 11.5 we are configuring xMII itself? but in xMII 12.0 configuring by netweaver platform. if anyone know please explain step by step

    I am sending you some java code, which you can use in JSP.
    import java.sql.*;
    public class connectOracle{
    public static void main(String[] args) {
    System.out.println("Getting Column Names Example!");
    Connection con = null;
    String url = "jdbc:oracle:thin:@172.16.0.21:1521:orcl";
    String driver = "oracle.jdbc.driver.OracleDriver";
    String user = "scott";
    String pass = "tiger";
    try{
    Class.forName(driver);
    con = DriverManager.getConnection(url, user, pass);
    catch (SQLException s){
    System.out.println("SQL statement is not executed!");
    catch (Exception e){
    e.printStackTrace();
    }

  • Pre-loading the Cache from Database during application start-up

    We are using Spring, Hibernate, Oracle Coherence 3.5.2 Weblogic Webservices
    Our requirement is to pre-load the cache during the application start-up most probably during Authentication/Authorization Service is invoked.
    We plan to load the data for other services from database into Coherence cache so that whenever user access that particular service he ends up hitting the Cache instead of database.
    We would greatly appreciate sample code snippets on how to write CacheInitializerBean with marker to demonstrate the state of cache.

    Hi Rob,
    Thanks for pointing to the article: Pre-Loading the Cache
    In fact i already looked at that article before posting. It just mentions how to load the data from database into Cache.
    What i am looking for is how to make this happen during application start-up. This is my first hurdle.
    The second one is as mentioned in the article http://coherence.oracle.com/display/COH35UG/Pre-Loading+the+Cache
    i wrote following code which never gets populated into cache. Not sure whats going wrong even though i see Hibernate loadAll() method loading all the objects in the console
    public   void populateCache() throws SQLException
        Map<Long, Object>  buffer = new HashMap<Long, Object>();
        int count = 0;
         List<Contract> contractList = this.getHibernateTemplate().loadAll(Contract.class);
         log.debug("contractList size="+contractList.size());
         for(Contract contract : contractList)
             Long key   = new Long(contract.getId());
             Object  value = contract;
             buffer.put(key, value);
             // this loads 1000 items at a time into the cache
             if ((count++ % 1000) == 0)
                  contractCache.putAll(buffer);
                 buffer.clear();
         if (!buffer.isEmpty())
              contractCache.putAll(buffer);
        }We would greatly appreciate your time in helping us resolving two hurdle blocks.

  • The Java load in database SID / hostname has not been configured yet. You cannot run an installation from the System Copy folder with this load

    Dear Gurus,
    We are facing the below issue when performing a homogeneous system copy of NW 7.0 system using backup/restore method for DB6 system.
    The Java load in database <SID>/<hostname> has not been configured yet. You cannot run an installation from the System Copy folder with this load.
    We went through the SAP Note http://service.sap.com/sap/support/notes/2049842, and followed the same but no luck.
    We updated the Kernel to the latest, but still no luck.
    Request for your quick help as we have to complete it by EOD today.
    Thanks a lot in advance.
    Best Regards,
    Anuj

    Hello Ashutosh ,
    Thanks for your reply.
    We have gone followed the below sequence:
    SCS Installation
    Database Instance Installation using backup/restore method
    CI installation. -> getting error, when we provide the Java Components DVD.
    Best Regards,
    Anuj

  • Problem with dynamically loading the dropdown list from database

    Please help me,
    i am having a jsp page which contains a form
    with a textfield ,two dropdown list
    and a submit button
    when i select a list from first drop down, second drop down has to
    be loaded from the database dynamically according to the
    selected one in the first drop down.
    i gave onselect event for the first drop down and
    gave this one
    temp=first dropdown selected value
    self.location='currentfile+query='+temp;
    after this current page is reloading, but the already existing
    values in textfield and first selected value in drop down list is
    missing.
    how to solve this problem? and the rest of the problem. i mean
    loading the data into second drop down list.
    plz help me......

    in first <selcet> tag write Onchange and submit to the jsp then the values will return in second select box.

Maybe you are looking for

  • PDF does not automatically open when the PDF is generated

    Here are my conditions: Windows 7 Professional 64-bit Abobe Acrobat9 Pro version 9.4.2 "View Adobe PDF results" is checked under Adobe PDF Printing Preferences/Adobe PDF Settings Here is the problem I am facing: When I print a simple text file under

  • Multi Page form

    Hi, used the Insert Record From Wizard from Developper toolbox and it's working like a charm! However, my form is too long and I was wondering how I could make that form a multi page form. Is it possible to split that form in 3 parts, and by clicking

  • To display records pagewise

    Hi all, I have JSP page which shld display database results. But i shld not get scroll bar on the screen. If the results exceeds the screen, it shld go to next page. If i click on the next button it shld goto next page. It shld be paginated. Can i ge

  • How to fetch the Table Control data to Customer Table(Z-Table) ?

    How to fetch the Table Control data to Customer Table(Z-Table) ?

  • HT2534 "None" is not available as a payment type.

    It appears that Apple no longer allows the creation of an iTunes store account with out a credit card or Paypal account. It may allow a certificate but I do not have one. So for me there is go going further and setting up this account.