Plotting a Geometry-(mdsys_sdo_geom) from Database on Map.

Can we Plot a Geometry---any geometry value stored in a database table column of type mdsys_sdo.geom onto a mapXtreme Map Object(in ASP) direcly by using any method of MapXtreme with Oracle or do we have to resort to getting all the co-ordinates of the geometry from SDO_Ordinates Varray and then Plot the Geometry from those co-ordinates.
Please Help
Thanks and Regards.
Mandeep.

Can we Plot a Geometry---any geometry value stored in a database table column of type mdsys_sdo.geom onto a mapXtreme Map Object(in ASP) direcly by using any method of MapXtreme with Oracle or do we have to resort to getting all the co-ordinates of the geometry from SDO_Ordinates Varray and then Plot the Geometry from those co-ordinates.
Please Help
Thanks and Regards.
Mandeep.

Similar Messages

  • Unable to execute Map from Database link

    Hi
    Been trying to research this issue but have had no luck in finding an answer. Here is the situation:
    We have an apex application that resides on database "A"
    Our OWB Design Repository (11.1.0.7) and Runtime Environment both exist on database "B"
    Maps exists and execute under normal procedures as the "ETL" user on database "B", However we would like to allow the "APEX" user to execute a map from database "A" across a database link to a user that can execute the map without any issue.
    When we try to execute the map across the database link from toad or sqlplus we get no error returned, the procedure runs and kicks off a map execution (as seen in ALL_RT_AUDIT_EXECUTIONS) or from the control center executions. However the Map execution immediately fails with no explanation as to why??
    what makes even less sense is that the user on database "B" that the database link connects to.. can execute the same procedure all day long if logged directly into database "B".. but the moment you try to call it across the database link.. it errors with no message as to why.
    We are calling the "WB_WORKSPACE_MANAGEMENT.SET_WORKSPACE".. so that is not the issue.. I am assuming this is either a bug.. or we are missing an additional call/privilege. The user for the database link is a registered user in the workspace, obviously this works since the database link user can run the procedure if logged in locally to database "B"
    Any thoughts???

    Figured out our problem..
    Found RETURN_CODE column in ALL_RT_AUDIT_EXECUTIONS table.. point to -2064 which is an ora-2064
    NOTE 1026597.6 - CALLING REMOTE PACKAGE RECEIVES ORA-2064 explains that a commit is issued in a coordinated session from an RPC procedure call with OUT parameters or function call. Action: simplify remote update statement.
    The problem here is that "Commit Control" was set to Automatic for the mappings we were calling. Oracle does not like when a transaction is initiated on database "A" and has a commit issued on database "B" from the map.
    Makes sense.. we switched the commit control to "Manual" and are able to process correctly by issuing a commit from the session on database "A"
    Hope this helps anyone that runs into this issue themselves..

  • SAP Add On: How to load data from database to a matrix

    I am making a payroll application add-on for SAP Business One. I have made a form using screen painter and wanted to know how one goes about loading data from a database into the matrix columns.
    My matrix has 6 columns and have called the items;
    public void DeclareColumsInMonthlyMatrix()
                SAPbouiCOM.Item oItem = null;
                // Adding the Monthlymatrix Elements
                oItem = _form.Items.Item("matMonthly");
                oMatrix = oItem.Specific;
                oColumns = oMatrix.Columns;
                oColumn = oColumns.Item("mPayYear");
                oColumn = oColumns.Item("mMonth");
                oColumn = oColumns.Item("mStartDate");
                oColumn = oColumns.Item("mEndDate");
                oColumn = oColumns.Item("mPayStatus");
                oColumn = oColumns.Item("mTaxMethod");
    I have retrieved the appropriate data from the database using LinQ to SQL and I have:
    // Populate the Monthly Period Data Grid View           
        var monthlyPeriods = Program.Kernel.Get<IMonthlyPeriodService>().GetAllMonthlyPeriods();
        monthlyPeriods = monthlyPeriods.OrderBy(x => Enum.Parse(typeof(MonthsOfAYear), x.Code, true));
    The corresponding field names in the database for the 6 columns are:
    U_Payroll_Year,
        U_Month,
        U_Starting_date,
        U_Ending_date,
        U_Pay_Process_Status,
        U_Tax_Method
    I was previously using C# .Net win forms and was using a datagrid and bindingsource which was easy by using the code
    // Populate the Monthly Period Data Grid View           
        var monthlyPeriods = Program.Kernel.Get<IMonthlyPeriodService>().GetAllMonthlyPeriods();
        monthlyPeriods = monthlyPeriods.OrderBy(x => Enum.Parse(typeof(MonthsOfAYear), x.Code, true));
        monthlyPeriodBindingSource.DataSource = monthlyPeriods.ToList();
    How do I achieve the same in SAP? How do I get the returned results from monthlyperiods to map over the appropriate columns in my matrix?

    Hi Nor,
    you could build a function which is able to generate a list of koordinates from your geometry.
    The file generated will be a character-separated list.
    This list will be generated by using a simple select statement like this:
    <font color="FFFF00">
    select obj_id, mysdo_koo2list(geometry) from my_geotable where ... ;
    </font>
    the function mysdo_koo2list(..) have to be built by you first.
    <em>create function mysdo_koo2list ( gc sdo_geometry) return varchar2 as
    line varchar2(4000);
    n number;
    ordinate number;
    begin
    line:= ''; n := 0;
    for ordinate in gc.sdo_ordinates.FIRST .. geom.sdo_ordinates.LAST
    loop
    line := line||to_char(geom.sdo_ordinates(ordinate), '9999999D999');
    if ( mod(n,2) = 1 ) then
    line := line||chr(10);
    else
    line := line||',';
    end if;
    n := n +1 ;
    -- exit when n >330;
    end loop;
    return (line);
    end;
    </em>

  • How can we identify the location from which a map is run, in the map ?

    Hi,
    I have a map that moves data from source system into the target system.
    I have two locations in the project (PROD_SOURCE and PROD_TARGET).
    My map picks the source table from PROD_SOURCE location and inserts into the target table in PROD_TARGET location.
    Now, this map can be deployed by changing the source location.
    In my map, I want to find out the location and subsequently the source database from which the map was run. This has to be inserted into a table
    Any pointers?
    -Pushkala

    You can always query the data dictionary in a pre- or post- mapping procedure.
    e.g.:
    select dep.owner, dep.object_name
    FROM PUBLIC_DEPENDENCY pd,
    all_objects dep,
    all_objects src
    where pd.object_id = src.object_id
    and pd.referenced_object_id = dep.object_id
    and dep.object_Type = 'TABLE'
    and src.owner = 'ERS_CTRL3X'
    AND src.object_name = 'TEST_MAP'
    AND src.object_type = 'PACKAGE BODY'
    will give me the listed owner of all tables referenced in this mapping. Knowing the table name, I would have access to the owner name. Now, whether you also will need to query agains all_db_links to see where a given db link is pointing to resolve the owner etc, or all_synonyms to resolve local synonyms to the db_link that they operate against etc I do not know. But tracing the dependancy tree from the current runtime copy of the package will get you to what you need.

  • Missing class indicator field from database row

    Hi,
    I have following problem :
    There is a class inheritance with root interface and 4 subclasses, they are initialized with class indicator field. If I use ReadAllQuery with an interface or some of concrete class as search class - it is working perfect, but if I try to build query with custom selected fields (addPartialAttribute) I always get an error - Missing class indicator field from database row.
    AFAIK This field have not to be mapped in Workbench to real table column, how can I tell TopLink that I will read this indicator field too by reading some custom fields ? I thought TopLink reads such fields automatically, like it does it with primary keys.
    Thank you
    Maksim

    This sounds like an issue with our partial attribute queries and inheritance as the type indicator column must always be read. Can you map the type indicator to a read-only attribute (mark mapping as read-only) and include this in your list of attributes as a work-around?
    Doug

  • Urgent help with simple BPEL process for reading data from database

    Hello there,
    I need help with BPEL project.
    i have created a table Employee in Database.
    I did create application, BPEL project and connection to the database properly using Database Adapter.
    I need to read the records from the database and convert into xml fomat and it should to go approval for BPM worklist.
    Can someone please describe me step by step what i need to do.
    Thx,
    Dps

    I have created a table in Database with data like Empno,name,salary,comments.
    I created Database Connection in jsp page and connecting to BPEL process.
    It initiates the process and it goes automatically for approval.
    Please refer the code once which i created.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@page import="java.util.Map" %>
    <%@page import="com.oracle.bpel.client.Locator" %>
    <%@page import="com.oracle.bpel.client.NormalizedMessage" %>
    <%@page import="com.oracle.bpel.client.delivery.IDeliveryService" %>
    <%@page import="javax.naming.Context" %>
    <%@page import="java.util.Hashtable" %>
    <%@page import="java.util.HashMap" %>
    <%@ page import="java.sql.*"%>
    <%@ page import= "jspprj.DBCon"%>
    <html>
    <head>
    <title>Invoke CreditRatingService</title>
    </head>
    <body>
    <%
    DBCon dbcon=new DBCon();
    Connection conn=dbcon.createConnection();
    Statement st=null;
    PreparedStatement pstmt=null;
    Hashtable env= new Hashtable();
    ResultSet rs = null;
    Map payload =null;
    try
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.PROVIDER_URL, "opmn:ormi://localhost:port:home/orabpel");//bpel server
    env.put("java.naming.security.principal", "username");
    env.put("java.naming.security.credentials", "password");//bpel console
    Locator locator = new Locator("default","password",env);
    IDeliveryService deliveryService =
    (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
    // construct the normalized message and send to Oracle BPEL Process Manager
    NormalizedMessage nm = new NormalizedMessage();
    java.util.HashMap map = new HashMap();
    st=conn.createStatement();
    out.println("connected");
    String query1="Select * from EMPLOYEE";
    rs=st.executeQuery(query1);
    /*reading Data From Database and converting into XML format
    so that no need of going to BPEL console and entering the details.
    while (rs.next()){
    String xml1 = "<AsynchBPELProcess1ProcessRequest xmlns='http://xmlns.oracle.com/AsynchBPELProcess1'>"+
    "<Empno>"+rs.getString(1)+"</Empno>"+
    "<EmpName>"+rs.getString(2)+"</EmpName>"+
    "<Salary>"+rs.getString(3)+"</Salary>"+
    "<Comments>"+rs.getString(4)+"</Comments>"+
    "</AsynchBPELProcess1ProcessRequest>";
    out.println(xml1);
    nm.addPart("payload", xml1 );
    // EmployeeApprovalProcess is the BPEL process in which human task is implemented
    deliveryService.post("EmployeeApprovalProcess", "initiate", nm);
    // payload = res.getPayload();
    out.println( "BPELProcess CreditRatingService executed!<br>" );
    // out.println( "Credit Rating is " + payload.get("payload") );
    //Incase there is an exception while invoking the first server invoke the second server i.e lsgpas13.
    catch(Exception ee) {
    //("BPEL Server lsgpas14 invoking error.\n"+ee.toString());
    %>
    </body>
    </html>
    Its working fine.And i want it for Bulk approvals.please help me step by step procedure if any other way to implement this.

  • Enterprise SecMgr: Can't add Database Schema Mapping to OracleDefaultDomain

    Hello,
    I'm trying to configure Enterprise Users (using a shared schema) and within EntSecMgr, I select...
    Realms / MyID realm / Enterprise Domains / OracleDefaultDomain / Enterprise Roles / OracleDefaultDomain / Database Schema Mapping
    and from there, I try to add the Directory Entry and schema. I don't get any errors when I click "OK", but the Database Schema mapping does not "take".
    I notice the little icon next to OracleDefaultDomain (in ESM) has a "lock", so perhaps it's read-only? How can I change that, or where should I be assigning the Database Schema mapping, if not in the OracleDefaultDomain?

    I never did figure out why I can't add the Database Schema Mapping to the OracleDefaultDomain, but I used ESM to add the schema mapping directly to the database itself, and now my Enterprise Users can login.

  • How to populate a form from database ?

    Hi,
    I am new to struts, and I have a small project , I want when I click a link I will have a jsp file with a form of data from database, can you please help me,
    thanks, you help is appreciated.

    You might have to generate an xml file from your Access Database with a list of member names. After that you can create a new data connection using Sample XML Data then map the drop down to the list.
    Then every time you distribute a new form, import the latest xml generated from your Access database to update the drop-down.
    Hope that helps.
    Kyle

  • Reconciilation from database table

    Hi I have to reconcile data from database table. I am using OIM 10g and Oracle 11g R2.
    I have created one GTC for Database Tables. And able to run th scheduled task for it.
    Table name: recondb
    there is one record present in table.but i saw on OIM server log it says no records.
    Not able to figure out what is the problem.
    log:
    DEBUG,07 Mar 2011 13:51:02,678,[OIMCP.DATC],Class/Method: DBReconTransportProvi
    er/initialize entered.
    DEBUG,07 Mar 2011 13:51:02,695,[OIMCP.DATC],Class/Method: DBReconTransportProvi
    er/initialize - Data: driver - Value: oracle.jdbc.driver.OracleDriver
    DEBUG,07 Mar 2011 13:51:02,696,[OIMCP.DATC],Class/Method: DBReconTransportProvi
    er/initialize - Data: url - Value: jdbc:oracle:thin:@10.88.176.155:1521:TRAININ
    DEBUG,07 Mar 2011 13:51:02,697,[OIMCP.DATC],Class/Method: DBReconTransportProvi
    er/initialize - Data: username - Value: oimuserpc
    DEBUG,07 Mar 2011 13:51:02,699,[OIMCP.DATC],Class/Method: DBReconTransportProvi
    er/initialize - Data: password - Value: *******
    DEBUG,07 Mar 2011 13:51:02,700,[OIMCP.DATC],Class/Method: DBReconTransportProvi
    er/initialize - Data: customizedQueries - Value:
    DEBUG,07 Mar 2011 13:51:02,702,[OIMCP.DATC],Class/Method: DBReconTransportProvi
    er/initialize - Data: useNativeQuery - Value: false
    DEBUG,07 Mar 2011 13:51:02,704,[OIMCP.DATC],Class/Method: DBReconTransportProvi
    er/initialize - Data: parentContainerName - Value: recondb
    DEBUG,07 Mar 2011 13:51:02,705,[OIMCP.DATC],Class/Method: DBReconTransportProvi
    er/convertCSVToArraylist entered.
    DEBUG,07 Mar 2011 13:51:02,707,[OIMCP.DATC],Class/Method: DBReconTransportProvi
    er/convertCSVToArraylist: providerParams:
    DEBUG,07 Mar 2011 13:51:02,709,[OIMCP.DATC],Class/Method: DBReconTransportProvi
    er/convertCSVToArraylist left.
    DEBUG,07 Mar 2011 13:51:02,712,[OIMCP.DATC],Class/Method: DBReconTransportProvi
    er/initialize - Data: childContainerTableNames - Value: []
    DEBUG,07 Mar 2011 13:51:02,713,[OIMCP.DATC],Class/Method: DBReconTransportProvi
    er/initialize - Data: parentContainerUniqueKey - Value: userid
    DEBUG,07 Mar 2011 13:51:02,715,[OIMCP.DATC],Class/Method: DBReconTransportProvi
    er/initialize - Data: incrementalReconAttribute - Value:
    DEBUG,07 Mar 2011 13:51:02,756,[OIMCP.DATC],Class/Method: DBReconTransportProvi
    er/initialize - Data: dbDateFormat - Value: yyyy/MM/dd hh:mm:ss z
    DEBUG,07 Mar 2011 13:51:02,756,[OIMCP.DATC],Class/Method: DBReconTransportProvi
    er/initialize left.
    DEBUG,07 Mar 2011 13:51:02,769,[OIMCP.DATC],Class/Method: DBFacade/getConnectio
    Prop entered.
    DEBUG,07 Mar 2011 13:51:02,837,[OIMCP.DATC],Class/Method: DBFacade/getClumns -
    ata: Columns: - Value: [com.thortech.xl.gc.impl.common.Column@1a15f06, com.tho
    tech.xl.gc.impl.common.Column@1658cfb, com.thortech.xl.gc.impl.common.Column@ad
    5b, com.thortech.xl.gc.impl.common.Column@1c0c692, com.thortech.xl.gc.impl.comm
    n.Column@12cc218, com.thortech.xl.gc.impl.common.Column@17ae572, com.thortech.x
    .gc.impl.common.Column@16db297, com.thortech.xl.gc.impl.common.Column@e7ebba]
    DEBUG,07 Mar 2011 13:51:02,849,[OIMCP.DATC],Class/Method: DBFacade/getPrimaryKe
    s - Data: Primary Keys - Value: []
    DEBUG,07 Mar 2011 13:51:02,850,[OIMCP.DATC],Class/Method: DBFacade/getSchema -
    ata: Parent Unique Key: - Value: [USERID]
    DEBUG,07 Mar 2011 13:51:02,851,[OIMCP.DATC],Class/Method: DBReconTransportProvi
    er/getFirstPage - Data: Filter Query - Value:
    DEBUG,07 Mar 2011 13:51:02,861,[OIMCP.DATC],Class/Method: DBFacade/getRecord -
    ata: SQL - Value: select * from oimuserpc.recondb
    DEBUG,07 Mar 2011 13:51:02,881,[OIMCP.DATC],Class/Method: DBFacade/getRecord -
    ata: startpage - Value: -1
    DEBUG,07 Mar 2011 13:51:02,882,[OIMCP.DATC],Class/Method: DBFacade/getRecord -
    ata: endpage - Value: -1
    DEBUG,07 Mar 2011 13:51:02,883,[OIMCP.DATC],Class/Method: DBFacade/getRecord -
    ata: Number of records - Value: 0

    I got Null Pointer Exception after User Password. I have checked mapping of Pasword field its correct.
    Here is log:
    DEBUG,08 Mar 2011 10:20:03,097,[OIMCP.DATC],Class/Method: DBReconTransportProvid
    er/initialize entered.
    DEBUG,08 Mar 2011 10:20:03,103,[OIMCP.DATC],Class/Method: DBReconTransportProvid
    er/initialize - Data: driver - Value: oracle.jdbc.driver.OracleDriver
    DEBUG,08 Mar 2011 10:20:03,103,[OIMCP.DATC],Class/Method: DBReconTransportProvid
    er/initialize - Data: url - Value: jdbc:oracle:thin:@10.88.176.155:1521:TRAINING
    DEBUG,08 Mar 2011 10:20:03,104,[OIMCP.DATC],Class/Method: DBReconTransportProvid
    er/initialize - Data: username - Value: oimuserpc
    DEBUG,08 Mar 2011 10:20:03,106,[OIMCP.DATC],Class/Method: DBReconTransportProvid
    er/initialize - Data: password - Value: *******
    DEBUG,08 Mar 2011 10:20:03,107,[OIMCP.DATC],Class/Method: DBReconTransportProvid
    er/initialize - Data: customizedQueries - Value:
    DEBUG,08 Mar 2011 10:20:03,109,[OIMCP.DATC],Class/Method: DBReconTransportProvid
    er/initialize - Data: useNativeQuery - Value: false
    DEBUG,08 Mar 2011 10:20:03,109,[OIMCP.DATC],Class/Method: DBReconTransportProvid
    er/initialize - Data: parentContainerName - Value: recondb
    DEBUG,08 Mar 2011 10:20:03,110,[OIMCP.DATC],Class/Method: DBReconTransportProvid
    er/convertCSVToArraylist entered.
    DEBUG,08 Mar 2011 10:20:03,111,[OIMCP.DATC],Class/Method: DBReconTransportProvid
    er/convertCSVToArraylist: providerParams:
    DEBUG,08 Mar 2011 10:20:03,112,[OIMCP.DATC],Class/Method: DBReconTransportProvid
    er/convertCSVToArraylist left.
    DEBUG,08 Mar 2011 10:20:03,114,[OIMCP.DATC],Class/Method: DBReconTransportProvid
    er/initialize - Data: childContainerTableNames - Value: []
    DEBUG,08 Mar 2011 10:20:03,115,[OIMCP.DATC],Class/Method: DBReconTransportProvid
    er/initialize - Data: parentContainerUniqueKey - Value: userid
    DEBUG,08 Mar 2011 10:20:03,116,[OIMCP.DATC],Class/Method: DBReconTransportProvid
    er/initialize - Data: incrementalReconAttribute - Value:
    DEBUG,08 Mar 2011 10:20:03,154,[OIMCP.DATC],Class/Method: DBReconTransportProvid
    er/initialize - Data: dbDateFormat - Value: yyyy/MM/dd hh:mm:ss z
    DEBUG,08 Mar 2011 10:20:03,154,[OIMCP.DATC],Class/Method: DBReconTransportProvid
    er/initialize left.
    DEBUG,08 Mar 2011 10:20:03,164,[OIMCP.DATC],Class/Method: DBFacade/getConnection
    Prop entered.
    DEBUG,08 Mar 2011 10:20:03,425,[OIMCP.DATC],Class/Method: DBFacade/getClumns - D
    ata: Columns: - Value: [com.thortech.xl.gc.impl.common.Column@126232b, com.thor
    tech.xl.gc.impl.common.Column@cef542, com.thortech.xl.gc.impl.common.Column@147e
    045, com.thortech.xl.gc.impl.common.Column@1d4d4b8, com.thortech.xl.gc.impl.comm
    on.Column@1d99597, com.thortech.xl.gc.impl.common.Column@1ebf294, com.thortech.x
    l.gc.impl.common.Column@1831114, com.thortech.xl.gc.impl.common.Column@1d67244]
    DEBUG,08 Mar 2011 10:20:03,460,[OIMCP.DATC],Class/Method: DBFacade/getPrimaryKey
    s - Data: Primary Keys - Value: []
    DEBUG,08 Mar 2011 10:20:03,461,[OIMCP.DATC],Class/Method: DBFacade/getSchema - D
    ata: Parent Unique Key: - Value: [USERID]
    DEBUG,08 Mar 2011 10:20:03,463,[OIMCP.DATC],Class/Method: DBReconTransportProvid
    er/getFirstPage - Data: Filter Query - Value:
    DEBUG,08 Mar 2011 10:20:03,473,[OIMCP.DATC],Class/Method: DBFacade/getRecord - D
    ata: SQL - Value: select * from oimuserpc.recondb
    DEBUG,08 Mar 2011 10:20:03,541,[OIMCP.DATC],Class/Method: DBFacade/getRecord - D
    ata: startpage - Value: -1
    DEBUG,08 Mar 2011 10:20:03,542,[OIMCP.DATC],Class/Method: DBFacade/getRecord - D
    ata: endpage - Value: -1
    DEBUG,08 Mar 2011 10:20:03,543,[OIMCP.DATC],Class/Method: DBFacade/getRecord - D
    ata: Number of records - Value: 1
    DEBUG,08 Mar 2011 10:20:03,721,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName entered.
    DEBUG,08 Mar 2011 10:20:03,722,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName - Data: attr src - Value: User Profile Data
    DEBUG,08 Mar 2011 10:20:03,723,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName - Data: display name - Value: Email
    DEBUG,08 Mar 2011 10:20:03,724,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName left.
    DEBUG,08 Mar 2011 10:20:03,730,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName entered.
    DEBUG,08 Mar 2011 10:20:03,730,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName - Data: attr src - Value: User Profile Data
    DEBUG,08 Mar 2011 10:20:03,732,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName - Data: display name - Value: First Name
    DEBUG,08 Mar 2011 10:20:03,733,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName left.
    DEBUG,08 Mar 2011 10:20:03,737,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName entered.
    DEBUG,08 Mar 2011 10:20:03,738,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName - Data: attr src - Value: User Profile Data
    DEBUG,08 Mar 2011 10:20:03,740,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName - Data: display name - Value: User Login
    DEBUG,08 Mar 2011 10:20:03,741,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName left.
    DEBUG,08 Mar 2011 10:20:03,745,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName entered.
    DEBUG,08 Mar 2011 10:20:03,745,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName - Data: attr src - Value: User Profile Data
    DEBUG,08 Mar 2011 10:20:03,746,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName - Data: display name - Value: Xellerate Type
    DEBUG,08 Mar 2011 10:20:03,747,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName left.
    DEBUG,08 Mar 2011 10:20:03,751,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName entered.
    DEBUG,08 Mar 2011 10:20:03,751,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName - Data: attr src - Value: User Profile Data
    DEBUG,08 Mar 2011 10:20:03,753,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName - Data: display name - Value: Role
    DEBUG,08 Mar 2011 10:20:03,754,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName left.
    DEBUG,08 Mar 2011 10:20:03,758,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName entered.
    DEBUG,08 Mar 2011 10:20:03,759,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName - Data: attr src - Value: User Profile Data
    DEBUG,08 Mar 2011 10:20:03,760,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName - Data: display name - Value: Organization Name
    DEBUG,08 Mar 2011 10:20:03,761,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName left.
    DEBUG,08 Mar 2011 10:20:03,765,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName entered.
    DEBUG,08 Mar 2011 10:20:03,765,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName - Data: attr src - Value: User Profile Data
    DEBUG,08 Mar 2011 10:20:03,766,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName - Data: display name - Value: User Password
    DEBUG,08 Mar 2011 10:20:03,767,[XELLERATE.JAVACLIENT],Class/Method: tcAttributeS
    ource/getAttrColumnName left.
    ERROR,08 Mar 2011 10:20:03,770,[XELLERATE.APIS],Class/Method: tcReconciliationOp
    erationsBean/ignoreEventData encounter some problems: {1}
    java.lang.NullPointerException
    at com.thortech.xl.dataobj.util.tcAttributeSource.getAttrColumnName(Unkn
    own Source)
    at com.thortech.xl.dataobj.util.tcReconciliationUtil.getRuleElementWhere
    (Unknown Source)
    at com.thortech.xl.dataobj.util.tcReconciliationUtil.getRuleWhere(Unknow
    n Source)
    at com.thortech.xl.dataobj.util.tcReconciliationUtil.getMatchedUserList(
    Unknown Source)
    at com.thortech.xl.dataobj.util.tcReconciliationUtil.getMatchedUserList(
    Unknown Source)
    at com.thortech.xl.dataobj.util.tcReconciliationUtil.ignoreEvent(Unknown
    Source)
    at com.thortech.xl.ejb.beansimpl.tcReconciliationOperationsBean.ignoreEv
    entData(Unknown Source)
    at com.thortech.xl.ejb.beansimpl.tcReconciliationOperationsBean.ignoreEv
    ent(Unknown Source)
    at com.thortech.xl.ejb.beans.tcReconciliationOperationsSession.ignoreEve
    nt(Unknown Source)
    at com.thortech.xl.ejb.beans.tcReconciliationOperations_gmh3ba_EOImpl.ig
    noreEvent(tcReconciliationOperations_gmh3ba_EOImpl.java:546)
    at Thor.API.Operations.tcReconciliationOperationsClient.ignoreEvent(Unkn
    own Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    121)
    at weblogic.security.Security.runAs(Security.java:41)
    at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Sou
    rce)
    at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
    at $Proxy69.ignoreEvent(Unknown Source)
    at com.thortech.xl.gc.runtime.GCScheduleTask.execute(Unknown Source)
    at com.thortech.xl.scheduler.tasks.SchedulerBaseTask.run(Unknown Source)
    at com.thortech.xl.scheduler.core.quartz.QuartzWrapper$TaskExecutionActi
    on.run(Unknown Source)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    121)
    at weblogic.security.Security.runAs(Security.java:41)
    at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Sou
    rce)
    at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.execute(Unknown S
    ource)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:178)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
    ava:477)
    ERROR,08 Mar 2011 10:20:03,808,[XELLERATE.GC.FRAMEWORKRECONCILIATION],Reconcilia
    tion Encountered error:
    Thor.API.Exceptions.tcAPIException: java.lang.NullPointerException
    at com.thortech.xl.ejb.beansimpl.tcReconciliationOperationsBean.ignoreEv
    entData(Unknown Source)
    at com.thortech.xl.ejb.beansimpl.tcReconciliationOperationsBean.ignoreEv
    ent(Unknown Source)
    at com.thortech.xl.ejb.beans.tcReconciliationOperationsSession.ignoreEve
    nt(Unknown Source)
    at com.thortech.xl.ejb.beans.tcReconciliationOperations_gmh3ba_EOImpl.ig
    noreEvent(tcReconciliationOperations_gmh3ba_EOImpl.java:546)
    at Thor.API.Operations.tcReconciliationOperationsClient.ignoreEvent(Unkn
    own Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    121)
    at weblogic.security.Security.runAs(Security.java:41)
    at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Sou
    rce)
    at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
    at $Proxy69.ignoreEvent(Unknown Source)
    at com.thortech.xl.gc.runtime.GCScheduleTask.execute(Unknown Source)
    at com.thortech.xl.scheduler.tasks.SchedulerBaseTask.run(Unknown Source)
    at com.thortech.xl.scheduler.core.quartz.QuartzWrapper$TaskExecutionActi
    on.run(Unknown Source)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    121)
    at weblogic.security.Security.runAs(Security.java:41)
    at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Sou
    rce)
    at com.thortech.xl.scheduler.core.quartz.QuartzWrapper.execute(Unknown S
    ource)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:178)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
    ava:477)
    WARN,08 Mar 2011 10:20:03,813,[XELLERATE.GC.FRAMEWORKRECONCILIATION],Though Rec
    onciliation Scheduled task has encountered an error, Reconciliation Transport pr
    oviders have been "ended" smoothly. Any provider operation that occurs during th
    at "end" or "clean-up" phase would have been executed e.g. Data archival. In cas
    e you want that data to be a part of next Reconciliation execution, restore it f
    rom Staging. Provider logs must be containing details about storage entities tha
    t would have been archived

  • Call plsql function from esb-xsl mapping

    Hi
    I want to call a plsql function that takes an inparameter from an xsl mapping file.
    I tried to use the orcl:query-database function for this, but i couldn't get it to work when I wanted to dynamically pass the value of the inparameter to the function taken from the XML file used as input in the xsl transformation:
    If I hardcode the parameter value like this, it works fine:
    orcl:query-database('select emx_parameters.get_parameter_value('DEADLINE') result from dual',false(),false(),'jdbc/DB')
    But if i dynamically want to assign the inparameter, it doesn't work for me:
    orcl:query-database('select emx_parameters.get_parameter_value('/Header/ParameterName') result from dual',false(),false(),'jdbc/DB')
    Maybe it has something to do with the ' signs, but I tried a lot of combinations it nothing worked for me.
    Has anyone any ideas how to do this?
    Thanks
    Kalle

    Hi
    If anyone is interested i managed to solve it this way:
    I build up the sql query string with xsl variables like this:
    <xsl:variable name="start">select emx_parameters.get_parameter_value('</xsl:variable>
    <xsl:variable name="param" select='/Header/ParameterName'/>
    <xsl:variable name="end">') result from dual</xsl:variable>
    <xsl:variable name="expr" select="concat($start,$param,$end)"/>
    And then I called the orcl:query-database method with the variable as in-parameter.
    orcl:query-database($expr,false(),false(),"jdbc/DB")
    Maybe there is another way, but this worked for me.
    //Kalle

  • EF Designer from Database with association

    Hi,
    I hope I selected the right category and forum otherwise let me know.
    I have simply added a EF From database workflow and it generated all the tables all right on the designer.  Now I'm trying to add an association from Customer to Contact and the first thing I get when I compile is Property is not mapped.  See image
    below.  What do I have to do ?  I don't see the CustomerId in the mapping below so I can't map it or there's something I don't understand

    Now I deleted the association and the CustomerId field in Contact and build then I tried creation the assosiation again and now I have a different message
    Error 1 Error 3004: Problem in mapping fragments starting at line 135:No mapping specified for properties Contact.CustomerId in Set Contacts.
    An Entity with Key (PK) will not round-trip when:
      Entity is type [CustomerManagerModel.Contact]
     C:\MyWork\WPF\ClientManager\CustomerModel.edmx 136 15 ClientManager

  • How to put data from database into array

    I need to answer hot to put data from database directly into array.
    I tried like the code below but the error message said: java.lang.ArrayIndexOutOfBoundsException: 0, and it points to this line: numbers [row][0]= rs.getString("ID");
    Hope you can help.
    ResultSet rs = stmt.executeQuery(query);
         int row=0;
         String [] [] numbers=new String [row][10];
         // output resultset
         while ( rs.next() )
              numbers [row][0]= rs.getString("ID");
              numbers [row][1]= rs.getString("name");
         row++;
         // close resultset
         rs.close();
    thanks,Devi

    The exception is been thrown simply because you assigned '0' to the 'row' variable, indicating a zero length of the array. In fact you should assign the row count to it.
    After all, don't do that. Make use of the Collection framework and map the ResultSet to a Collection of DTO's.
    List<User> users = new ArrayList<User>();
    while (resultSet.next()) {
        User user = new User();
        user.setID(resultSet.getString("ID"));
        user.setName(resultSet.getString("name"));
        users.add(user);
    }

  • How to get data in jtable from database

    i m working on core java application i want to use jtable to show records to user. jtable will get records from mssql database. how to do this.. i m new so plz tell me briefly..with coding...
    thanks

    i have use this link:
    import java.sql.*;
    import javax.swing.table.*;
    import javax.swing.event.*;
    * This class takes a JDBC ResultSet object and implements the TableModel
    * interface in terms of it so that a Swing JTable component can display the
    * contents of the ResultSet. Note that it requires a scrollable JDBC 2.0
    * ResultSet. Also note that it provides read-only access to the results
    public class ResultSetTableModel implements TableModel {
    ResultSet results; // The ResultSet to interpret
    ResultSetMetaData metadata; // Additional information about the results
    int numcols, numrows; // How many rows and columns in the table
    * This constructor creates a TableModel from a ResultSet. It is package
    * private because it is only intended to be used by
    * ResultSetTableModelFactory, which is what you should use to obtain a
    * ResultSetTableModel
    ResultSetTableModel(ResultSet results) throws SQLException {
         this.results = results; // Save the results
         metadata = results.getMetaData(); // Get metadata on them
         numcols = metadata.getColumnCount(); // How many columns?
         results.last(); // Move to last row
         numrows = results.getRow(); // How many rows?
    * Call this when done with the table model. It closes the ResultSet and
    * the Statement object used to create it.
    public void close() {
         try { results.getStatement().close(); }
         catch(SQLException e) {};
    /** Automatically close when we're garbage collected */
    protected void finalize() { close(); }
    // These two TableModel methods return the size of the table
    public int getColumnCount() { return numcols; }
    public int getRowCount() { return numrows; }
    // This TableModel method returns columns names from the ResultSetMetaData
    public String getColumnName(int column) {
         try {
         return metadata.getColumnLabel(column+1);
         } catch (SQLException e) { return e.toString(); }
    // This TableModel method specifies the data type for each column.
    // We could map SQL types to Java types, but for this example, we'll just
    // convert all the returned data to strings.
    public Class getColumnClass(int column) { return String.class; }
    * This is the key method of TableModel: it returns the value at each cell
    * of the table. We use strings in this case. If anything goes wrong, we
    * return the exception as a string, so it will be displayed in the table.
    * Note that SQL row and column numbers start at 1, but TableModel column
    * numbers start at 0.
    public Object getValueAt(int row, int column) {
         try {
         results.absolute(row+1); // Go to the specified row
         Object o = results.getObject(column+1); // Get value of the column
         if (o == null) return null;
         else return o.toString(); // Convert it to a string
         } catch (SQLException e) { return e.toString(); }
    // Our table isn't editable
    public boolean isCellEditable(int row, int column) { return false; }
    // Since its not editable, we don't need to implement these methods
    public void setValueAt(Object value, int row, int column) {}
    public void addTableModelListener(TableModelListener l) {}
    public void removeTableModelListener(TableModelListener l) {}
    the table is showing column name from database but not showing the data in row now what to do

  • CMP Entity Bean from dataBase views

    Hi forum,
    I Have to migrate an existing application to JEE (with EJB3).
    In this application there are a lot of dataBase views.
    I'm new in EJB3 and I don't know how to structure cleanly entity beans (Specially when it are created from dataBase views).
    My problem is that for each query made from the same dataBase view I almost have to create a new entity bean with a different @Id.
    What can I do to to avoid it?
    I had thought to genrate a new @Id (attribute not persistent) but I think is not possible. It's right ?
    Someone can help me ?
    Thanks

    "CMP provides you with database independence and less coding efforts."
    BMP is not database dependent, unless you invoke database specific things in your SQL (something I do not do). CMP on the otherhand is inherently appserver specific (which was it's goal when BEA, IBM, et al. came up with it), and still limits your design possibilities. See this thread for an example:
    http://forum.java.sun.com/thread.jsp?forum=13&thread=318785
    As for less coding effort, that is a relative statment. Yes a simple CMP bean requires less coding to develop the first time. I personally view a few lines of SQL to load and store the data as being fairly trivial. But that needs to be offset with the problems inherent in using appserver specific CMP implementations.
    As an example, try mapping WebSphere CMP to a pre-existing database without using IBM's IDE. It's an incredible pain in the ass since WebSphere does not come with a "meet-in-the-middle" solution. Any J2EE developer that has had the experience of working with different appservers (especially if they have had to port an app, as I have) can attest to the complications that arise with each implementation.
    A BMP bean, written with non-DB-specific SQL, is the most portable, most flexible approach to EntityBeans. Yes, it requires the developer to be able to write some SQL, which should not take a significant amout of time. WRT queries, you have to write them, either SQL, EQL, or some appserver specific format.
    As an aside, the use of code generators to simplify the creation of EJBs lends itself well to BMP. By using a (or writing your own) code generator, you can mitigate the annoying SQL bugs that creep up early in development.

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

Maybe you are looking for