Are NULL Geometries allowed?

Hi
I know that: You should not have invalid geometries because there is no way to predict exactly what will not work when you have invalid geometries.
What's about NULL geometries. VALIDATE_GEOMETRY just returns NULL. Is it allowed to have NULL in a spatial layer of Table?
Philipp

Hi,
NULL geometries are allowed. You should set the geometry column to atomic NULL, i.e.
create table foo (bar number, geom mdsys.sdo_geometry);
insert into foo values (1,NULL);

Similar Messages

  • JavaFX's null not allowed is a thorn in my side....

    Hi All,
    Rule: JavaFX's data types (i.e. Number, Double, String, Integer) can't be null.
    My JavaFX Application listen's for real time data updates. Since this is a listener, it won't have a value til it get's the first update. Sounds fair enough... but they can't be null! So, I must use java.lang.Double instead. But all binding's convert the java.lang.Double null value to a javafx Double value of 0.0. So now I have broken logic in my program as 0.0 is a legitimate value and certainly does not signify 'null'. So, then it looks like I am stuck entirely with java.lang.Double everywhere! But then I'd need to do my own java.lang.Double -> fx.Double casting class/function to handle the cast conversion of each binding in order to interact sensibly with the JavaFX API (as it like's the FX Double everywhere and won't throw a nullpointer exception when casting).
    Rule: JavaFX's sequences can't contain null entries.
    Further more, I could say "Nope, I don't have a value/update yet so I will just use an object placeholder/wrapper with null assignment". In my case, JavaFX object's are multiple and ordered. Perfect for a sequence! Except, you can't store null in a sequence! Thus, if you are looking for a team's sport's top batsman.. the 3rd batsman and they don't exist yet.. then 'team[2] = null' wont insert! So how can I find and bind to the 3rd batsman? We'll either I avoid sequences, which means native array's or java collections... but then I can't really bind to them! Or, everytime the sequence changes I need to search/iterate over the entire sequence to determine if there is a 3rd batsman in the sequence (and that won't necessarily be the 3rd entry).
    Both these 'null not allowed' rules cause significant problems and have huge flow on effects onto the code that uses them. I believe this is totally wrong and a bad feature of the language and completely contradicts autoboxing! The identification of a data type reference being null is extremely significant. It is the responsibility of the receiver of a null reference/argument to decided how they want to handle the null reference (see autoboxing nullpointer exceptions if you don't believe me and reasons not to use java primitives). Removing the ability for this to occur is a step backwards for functional programming. I know you will say that I could just use the java.lang.*, a fair claim... but don't forget this means more work! The very reason you might be considering JavaFX in the first place.
    Anyway my rant is over, I really love JavaFX.... just not these x2 rules.

    The technique PhiLho refers to is often called the "null object pattern". If done properly it needn't be hackish at all, and indeed it can simplify a lot of processing code. Even if the "primitive" values (Number, String, etc.) could be null, and even if you could put nulls into a sequence, you're probably better off putting in an actual object that represents the absence of a value. The reason is that when you go to process that data, instead of just processing it, you have to put in checks for nulls here and there, and do special-case processing for it.
    Consider displaying a list of, say, the top five batsmen. You'll want to have a sequence of five batsmen, and you'll want to put five CustomNodes or something into a VBox to display the names, statistics, etc., something like the following:
    VBox {
        content: [
            for (b in [0..<5]) {
                BatsmanNode {
                    name: bind batsmen.name
    innings: bind batsmen[i].innings
    notOuts: bind batsmen[i].notOuts
    visible: bind batsmen[i].valid
    You can't do this if there were a null in the sequence, even if it were allowed. Instead, you should put a "fake" batsman object into the sequence, and make its "valid" variable be false. This way the corresponding BatsmanNode will be invisible. Or, you could have it display "(no entry)" in grey text, or something like that.
    The point is that if you always have a real object there, even if it represents a "null" or the absence of a value, it removes special-case processing code and enables you to do things like bind to it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Htmldb_item(s) are null but return query values

    Hi,
    I have used the following query to create a region (I've done many like this).
    When I access the htmldb_application items in insert statements it works fine.
    But, when I try to do an update statement the htmldb_application items are null;
    even after returning & displaying the values on screen. Hope this makes sense.
    Region:
    Select x.establishment_name,
    x.hsd_insurance_policy_number,
    x.hsd_insurance_group,
    x.del
    from
    (Select
    htmldb_item.text(11,establishment_name,20) establishment_name,
    htmldb_item.text(12,hsd_insurance_policy_number) hsd_insurance_policy_number,
    htmldb_item.text(13,hsd_insurance_group) hsd_insurance_group,
    htmldb_item.hidden(14,hsd_person_insurance_id) hsd_person_insurance_id,
    htmldb_item.hidden(15,gen_establishment_id) gen_establishment_id,
    htmldb_item.hidden(16,gen_adr_id) gen_adr_id,
    htmldb_item.checkbox(20,gen_person_id) del
    from hsd_insurance_v
    where gen_person_id = :HSD_Per_Identifier
    union all
    Select
    htmldb_item.text(11,null),
    htmldb_item.text(12,null),
    htmldb_item.text(13,null),
    htmldb_item.hidden(14,null),
    htmldb_item.hidden(15,null),
    htmldb_item.hidden(16,null),
    htmldb_item.checkbox(20,null) del
    from all_objects where rownum < nvl(:P4300_ROWS3,2)) x
    Update Statement:
    Begin
    for i in 1..htmldb_application.g_f11.count
    loop
    If htmldb_application.g_f11(i) is not null Then
    Update HSD_PERSON_INSURANCE
    Set
    HSD_INSURANCE_POLICY_NUMBER = htmldb_application.g_f12(i),
    HSD_INSURANCE_GROUP = htmldb_application.g_f13(i),
    LAST_UPDATE_BY = :P4300_Updated_By,
    LAST_UPDATE_DATE = to_date(:P4300_Updated_Date,'DD/MM/YYYY')
    where
    hsd_person_insurance_id = htmldb_application.g_f14(i);
    Update Gen_Establishment_Entity
    Set
    ESTABLISHMENT_NAME = htmldb_application.g_f11(i),
    LAST_UPDATE_BY = :P4300_Updated_By,
    LAST_UPDATE_DATE = to_date(:P4300_Updated_Date,'DD/MM/YYYY')
    where gen_establishment_id = htmldb_application.g_f15(i);
    end if;
    end loop;
    end;

    Susan,
    In 1.5, htmldb_item.select_list_from_query didn't support "display extra values" behavior. Now it does and a tenth parameter (p_show_extra in varchar2 default 'YES') allows you to disable it with 'NO'.
    In your example, the query selects only non-null commisions, but setting p_show_null=>'YES' gives you the first null row and the default setting p_show_extra=>'YES' gives you the last null row, which is the "selected" option for rows where the comm column is null.
    Add ,NULL,NULL,'NO' to the function call to eliminate the unwanted row.
    Scott

  • Values from a jsp page are null in Action Class

    hi, i am working on an application...i have a jsp page with several inputs (type=text) and when a submit the form to to my action class all values      received are null.
    Here is a part of code:
    the jsp file: letter.jsp
    <form target="_self" action="/Test/editLetter.do" name="letterTF">
    <table>
    <tbody>
    <tr>
    <th>
    No of objects
    </th>
    <th>
    Weight
    </th>
    <th>
    Description
    </th>
    </tr>
    <tr>
    <td>
    Package
    <input name="package" id="package" type="checkbox">
    </td>
    <td>
    <input name="package_No" type="text" value="<%=currentBean.getPackageNo() %>"> <%-- from session...have to edit some date from a data base--%>
    </td>
    <td>
    <input name="package_weight" type="text" value="<%=currentBean.geWeight()%>">
    </td>
    <td>
    <input name="description" type="text" value="<%=currentBean.Description()%>"
    </td>
    </tr>
    <tr>
    ..................................................... <%-- It's a big form --%>
    </tr>
    <tr>
    <input type="submit" name="send" value="Send">
    </tr>
    </tbody>
    </table>
    </form>
    struts-config.xml:
    <form-bean
              name="letterTF"
              type="Test.LetterForm">
    </form-bean>
    <action path="/editLetter"
                   type="Test.LetterAction"
                   name="scrisoareTF"
                   input="/letter.jsp"
                   scope="request"
                   validate="false">
                   <forward name="success" path="/index_orders.jsp"/>
    </action>
    The ActionForm class:
    public class LetterForm extends ActionForm{
    private String package;
         private String package_No;
         private String package_weight;
         public void setPackage(String package){
    this.package = package
    public String getPackage(){
    return package;
    The action class:
    public class LetterAction extends Action{
    public ActionForward execute(     
                   ActionMapping mapping,
                   ActionForm form,
                   HttpServletRequest request,
                   HttpServletResponse response)
         throws Exception{
    String package;
    String package_No;
    String package_weight;
    LetterForm letterTF = (LetterForm) form;
    package = letterTF.getPackage();
    package_No = letterTF.getPackageNo()
    package_weight = letterTF.getPackageWeight();
    System.out.println("Package: "+package);//it will print Package: null
    System.out.println("Weight: "+weight);//it will print Weight: null
    System.out.println("Description "+description) //it will print Description: null
    As I observed its not making the set methods from LetterForm.java
    I am dealing with this bug for a couple of days an i didn't managed to break it. If anyone has an idea would he be so kind to share it with me.
    Thanks in advanced,
    David

    Basically your form beans are the place holders or containers for your jsp attributes. It has to be mapped in such a way that when the form is submitted the user entered values get populated on to your form bean.
    For Eg:
    JSP
    <html:form action="accountSearchResults.do">
    <html:text property="myName" size="15"/>
    //USE ONLY STRUTS TAGS IN JSP's. U CAN REFER TO
    //http://struts.apache.org/1.x/struts-taglib/tlddoc/index.html
    //THE PROPERTY NAME "myName" SHOULD BE DEFINED IN
    //YOUR FORMBEAN WITH getMyName AND setMyName
    //METHODS DEFINED
    </html:form>
    struts-config.xml
    <form-beans>
         <form-bean name="addEditAccount" type="org.apache.struts.validator.LazyValidatorForm">
              <form-property name="myName" type="java.lang.String">
              </form-property>
         </form-bean>
    </form-beans>
    <action-mappings>
         <action path="/accountSearchResults" type="com.zzz.AccountSearchResultAction" name="addEditAccount" scope="request">
              <forward name="success" path="NextPage.jsp">
              </forward>
         </action>
    </action-mappings>
    Action Class
    Since we have defined the form bean as a lazyvalidator instance you can use:
    PropertyUtils.copyProperties(targetBean, form);to fetch the values entered by the user. Try to use struts tags in your jsp's and map the properties to your form bean variables. Hope that helps.
    SirG

  • Values from a jsp page are null in an Action class

    hi, i am working on an application...i have a jsp page with several inputs (type=text) and when a submit the form to to my action class all values received are null.
    Here is a part of code:
    the jsp file: letter.jsp
    <form target="_self" action="/Test/editLetter.do" name="letterTF">
    <table>
    <tbody>
    <tr>
    <th>
    No of objects
    </th>
    <th>
    Weight
    </th>
    <th>
    Description
    </th>
    </tr>
    <tr>
    <td>
    Package
    <input name="package" id="package" type="checkbox">
    </td>
    <td>
    <input name="package_No" type="text" value="<%=currentBean.getPackageNo() %>"> <%-- from session...have to edit some date from a data base--%>
    </td>
    <td>
    <input name="package_weight" type="text" value="<%=currentBean.geWeight()%>">
    </td>
    <td>
    <input name="description" type="text" value="<%=currentBean.Description()%>"
    </td></tr>
    <tr>
    ..................................................... <%-- It's a big form --%>
    </tr>
    <tr>
    <input type="submit" name="send" value="Send">
    </tr>
    </tbody>
    </table>
    </form>
    struts-config.xml:
    <form-bean
    name="letterTF"
    type="Test.LetterForm">
    </form-bean>
    <action path="/editLetter"
    type="Test.LetterAction"
    name="scrisoareTF"
    input="/letter.jsp"
    scope="request"
    validate="false">
    <forward name="success" path="/index_orders.jsp"/>
    </action>
    The ActionForm class:
    public class LetterForm extends ActionForm{
    private String package;
    private String package_No;
    private String package_weight;
    public void setPackage(String package){
    this.package = package
    public String getPackage(){
    return package;
    The action class:
    public class LetterAction extends Action{
    public ActionForward execute(
    ActionMapping mapping,
    ActionForm form,
    HttpServletRequest request,
    HttpServletResponse response)
    throws Exception{
    String package;
    String package_No;
    String package_weight;
    LetterForm letterTF = (LetterForm) form;
    package = letterTF.getPackage();
    package_No = letterTF.getPackageNo()
    package_weight = letterTF.getPackageWeight();
    System.out.println("Package: "+package);//it will print Package: null
    System.out.println("Weight: "+weight);//it will print Weight: null
    System.out.println("Description "+description) //it will print Description: null
    As I observed its not making the set methods from LetterForm.java
    I am dealing with this bug for a couple of days an i didn't managed to break it. If anyone has an idea or a solution would he be so kind to share it with me
    Thanks in advance,
    David

    Basically your form beans are the place holders or containers for your jsp attributes. It has to be mapped in such a way that when the form is submitted the user entered values get populated on to your form bean.
    For Eg:
    JSP
    <html:form action="accountSearchResults.do">
    <html:text property="myName" size="15"/>
    //USE ONLY STRUTS TAGS IN JSP's. U CAN REFER TO
    //http://struts.apache.org/1.x/struts-taglib/tlddoc/index.html
    //THE PROPERTY NAME "myName" SHOULD BE DEFINED IN
    //YOUR FORMBEAN WITH getMyName AND setMyName
    //METHODS DEFINED
    </html:form>
    struts-config.xml
    <form-beans>
         <form-bean name="addEditAccount" type="org.apache.struts.validator.LazyValidatorForm">
              <form-property name="myName" type="java.lang.String">
              </form-property>
         </form-bean>
    </form-beans>
    <action-mappings>
         <action path="/accountSearchResults" type="com.zzz.AccountSearchResultAction" name="addEditAccount" scope="request">
              <forward name="success" path="NextPage.jsp">
              </forward>
         </action>
    </action-mappings>
    Action Class
    Since we have defined the form bean as a lazyvalidator instance you can use:
    PropertyUtils.copyProperties(targetBean, form);to fetch the values entered by the user. Try to use struts tags in your jsp's and map the properties to your form bean variables. Hope that helps.
    SirG

  • Using MISSING FIELD VALUES ARE NULL for external table

    I want to place a null for values missing in the sub_account field. Here is my external table:
    CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_log_dir
    AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\log';
    CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_bad_dir
    AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\bad';
    create table ext_INCOMING_ORDERS_table (
    Account varchar(5),
    Sub_Account varchar(1),
    Override_Code varchar(1),
    Nomenclature varchar(28),
    chg_nbr varchar(3),
    quantity integer,
    U_I varchar(5),
    zipcode varchar(5),
    type_reject varchar(2)
    organization external
    type oracle_loader
    default directory user_dir
    access parameters
    records delimited by newline
    missing field values are null
    badfile INCOMING_ORDERS_bad_dir:'INCOMING_ORDERS%a_%p.bad'
    logfile INCOMING_ORDERS_log_dir:'INCOMING_ORDERS%a_%p.log'
    fields
    Account(1:5) char(5),
    Sub_Account(7:7) char(1),
    Override_Code(10:10) char(1),
    Nomenclature(11:38) char(28),
    chg_nbr(40:42) char(3),
    quantity(44:48) integer external,
    U_I(50:54) char(5),
    zipcode(56:60) char(5),
    type_reject(61:62) char(2)
    location('PTCLICK.MANUAL.NOMEN.TXT','PTCLICK.ORDERS.TXT', 'EUR_RES.TXT', 'MQ.TXT', 'BPRO.TXT')
    reject limit unlimited;
    How can I place the MISSING FIELD VALUES ARE NULL for missing values for the sub_account?

    made the change I received this error:
    SQL> select * from ext_INCOMING_ORDERS_table;
    select * from ext_INCOMING_ORDERS_table
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-00554: error encountered while parsing access parameters
    KUP-01005: syntax error: found "no": expecting one of: "comma, date_format,
    defaultif, enclosed, ltrim, lrtrim, ldrtrim, notrim, nullif, optionally, ),
    rtrim, terminated"
    KUP-01007: at line 7 column 26
    CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_log_dir
    AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\log';
    CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_bad_dir
    AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\bad';
    create table ext_INCOMING_ORDERS_table (
    Account varchar(5),
    Sub_Account varchar(1),
    Override_Code varchar(1),
    Nomenclature varchar(28),
    chg_nbr varchar(3),
    quantity integer,
    U_I varchar(5),
    zipcode varchar(5),
    type_reject varchar(2)
    organization external
    type oracle_loader
    default directory user_dir
    access parameters
    records delimited by newline
    badfile INCOMING_ORDERS_bad_dir:'INCOMING_ORDERS%a_%p.bad'
    logfile INCOMING_ORDERS_log_dir:'INCOMING_ORDERS%a_%p.log'
    fields
    Account(1:5) char(5),
    Sub_Account(7:7) char(1) NO PRESERVE BLANKS,
    Override_Code(10:10) char(1),
    Nomenclature(11:38) char(28),
    chg_nbr(40:42) char(3),
    quantity(44:48) integer external,
    U_I(50:54) char(5),
    zipcode(56:60) char(5),
    type_reject(61:62) char(2)
    location('PTCLICK.MANUAL.NOMEN.TXT','PTCLICK.ORDERS.TXT', 'EUR_RES.TXT', 'MQ.TXT', 'BPRO.TXT')
    reject limit unlimited;

  • XML into table: Why do all my insert values are NULL?

    Hello,
    I'm pretty new in XML ... then I still learn a lot by myself !!!
    I surfed to a lot of forums and examples ....
    I have a XML file. I built a XSL file in order to insert a part of my XML file into a table.
    The 2 files are loaded as CLOB into a DB table.
    I wrote a PLSQL procedure for this job.
    We are on a DB 10gR2.
    As a result, all the inserted columns are loaded with NULL !!!! ....
    I must have done something wrong ... for sure !!! but I cannot figure out.
    Here are the files and procedures:
    *<?xml version="1.0" ?>*
    *<purchaseOrder orderDate="1999-10-20">*
    *<shipTo country="US">*
    *<name>Alice Smith</name>*
    *<street>123 Maple Street</street>*
    *<city>Mill Valley</city>*
    *<state>CA</state>*
    *<zip>90952</zip>*
    *</shipTo>*
    *<billTo country="US">*
    *<name>Robert Smith</name>*
    *<street>8 Oak Avenue</street>*
    *<city>Old Town</city>*
    *<state>PA</state>*
    *<zip>95819</zip>*
    *</billTo>*
    *<comment>Hurry, my lawn is going wild!</comment>*
    *<items>*
    *<item partNum="872-AA">*
    *<productName>Lawnmower</productName>*
    *<quantity>1</quantity>*
    *<USPrice>148.95</USPrice>*
    *<comment>Confirm this is electric</comment>*
    *</item>*
    *<item partNum="926-AA">*
    *<productName>Baby Monitor</productName>*
    *<quantity>1</quantity>*
    *<USPrice>39.98</USPrice>*
    *<shipDate>1999-05-21</shipDate>*
    *</item>*
    *</items>*
    *</purchaseOrder>*
    The XLS file is :
    *<?xml version="1.0"?>*
    *<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">*
    *<xsl:output method="xml" media-type="text/xml" />*
    *<xsl:template match="/">*
    *<insert>*
    *<Table>*
    *<xsl:attribute name="source">*
    *<xsl:value-of select="'item_club'" />*
    *<!--layer=Default-->*
    *</xsl:attribute>*
    *<Columns>*
    *<Column>*
    *<xsl:attribute name="source">*
    *<xsl:value-of select="'item_code'" />*
    *<!--layer=Default-->*
    *</xsl:attribute>*
    *</Column>*
    *<Column>*
    *<xsl:attribute name="source">*
    *<xsl:value-of select="'item_name'" />*
    *<!--layer=Default-->*
    *</xsl:attribute>*
    *</Column>*
    *<Column>*
    *<xsl:attribute name="source">*
    *<xsl:value-of select="'item_price'" />*
    *<!--layer=Default-->*
    *</xsl:attribute>*
    *</Column>*
    *</Columns>*
    *<xsl:for-each select="purchaseOrder/items">*
    *<Rowset>*
    *<xsl:for-each select="item">*
    *<Row>*
    *<Column>*
    *<xsl:attribute name="source">*
    *<xsl:value-of select="'item_code'" />*
    *<!--layer=Default-->*
    *</xsl:attribute>*
    *<xsl:value-of select="@partNum" />*
    *<!--layer=Default-->*
    *</Column>*
    *<Column>*
    *<xsl:attribute name="source">*
    *<xsl:value-of select="'item_name'" />*
    *<!--layer=Default-->*
    *</xsl:attribute>*
    *<xsl:value-of select="productName" />*
    *<!--layer=Default-->*
    *</Column>*
    *<Column>*
    *<xsl:attribute name="source">*
    *<xsl:value-of select="'item_price'" />*
    *<!--layer=Default-->*
    *</xsl:attribute>*
    *<xsl:value-of select="USPrice" />*
    *<!--layer=Default-->*
    *</Column>*
    *</Row>*
    *</xsl:for-each>*
    *<!--layer=Default-->*
    *</Rowset>*
    *</xsl:for-each>*
    *<!--layer=Default-->*
    *</Table>*
    *</insert>*
    *</xsl:template>*
    *</xsl:stylesheet>*
    *<!--xsl-easyControl - (C) 2003-2007 SoftProject GmbH-->*
    *<!--Source: "purchaseOrder_clubDev.xml"|Type:"xml"-->*
    *<!--Destination: "Connexion_XSL_SCFOX.xac"|Type:"Connexion_XSL_SCFOX"-->*
    *<!--Document type: Input Driven-->*
    The XML files are successfully inserted into a CLOB colum :
    ID FILENAME XML
    24 item_club.xsl <?xml version="1.0"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.or
    25 purchaseOrder.xml <?xml version="1.0" ?> <purchaseOrder orderDate="1999-10-20">
    And the procedure is :
    CREATE OR REPLACE PROCEDURE load_xml( p_dir IN VARCHAR2
    , p_filename IN VARCHAR2) AS
    insCtx DBMS_XMLSave.ctxType;
    rows NUMBER;
    l_bfile BFILE := BFILENAME(p_dir, p_filename);
    l_clob CLOB;
    l_bfile_xsl BFILE;
    l_clob_xsl CLOB;
    begin
         dbms_output.put_line('p_filename='||p_filename);
         insCtx := DBMS_XMLSave.newContext('sipmo.item_club'); -- get the save context..!
         dbms_output.put_line('item_club.xsl context='||insCtx);
         --IMPORTANT... ignore la casse
         DBMS_XMLSave.setIgnoreCase(insCtx, 1);
         --select XSL file item_club.xsl
    l_bfile_xsl := BFILENAME(p_dir, 'item_club.xsl');
         DBMS_LOB.createtemporary (l_clob_xsl, TRUE);
         DBMS_LOB.fileopen( l_bfile_xsl, DBMS_LOB.file_readonly);
         DBMS_LOB.loadfromfile( l_clob_xsl, l_bfile_xsl, DBMS_LOB.getlength(l_bfile_xsl));
         dbms_output.put_line('item_club.xsl length='||DBMS_LOB.getlength(l_bfile_xsl));
         DBMS_LOB.fileclose(l_bfile_xsl);
         DBMS_XMLSave.SETXSLT(insCtx, l_clob_xsl);
         dbms_output.put_line('step 10');
         DBMS_XMLSave.clearUpdateColumnList(insCtx); -- clear the update settings
         DBMS_XMLSave.setUpdateColumn(insCtx,'ITEM_CODE');
         DBMS_XMLSave.setUpdateColumn(insCtx,'ITEM_NAME');
         DBMS_XMLSave.setUpdateColumn(insCtx,'ITEM_PRICE');
         -- Now insert into the table
         dbms_output.put_line('step 90');
         rows := DBMS_XMLSave.insertXML(insCtx, l_clob);
         dbms_output.put_line('step 100 rows='||rows);
         DBMS_XMLSave.closeContext(insCtx);
         DBMS_LOB.freetemporary (l_clob_xsl);
         DBMS_LOB.freetemporary (l_clob);
    END;
    The result table is like this :
    scfx>select * from item_club;
    ITEM_CODE ITEM_NAME ITEM_PRICE
    All the columns of each row are NULL !!!
    Why?
    Do you have any advice ?
    Thanks if advance,
    Olivier

    So, if I understand what you mean ... I should write something like this :
         insert into item_club
              select t2.partnum, t2.productname, to_number(replace(t2.usprice, '.', ','))
              from odab_xml_tab t
              , xmltable('*' passing t.xml.extract('purchaseOrder/items/*')
              columns partNum varchar2(35) path '@partNum'
              , productName varchar2(35) path 'productName'
              , USPrice varchar2(35) path 'USPrice'
              ) t2
    Its a change in our code.. but that looks nice !!!
    Thanks,
    Olivier

  • Second posting - spent hours on this - yesterday and today - I have downloaded the FlashPlayer upgrade (now 10 times), in Security - no pop-ups are checked, the "allow Java" and "allow other other plug-ins" are both checked.  I have re-booted after the Fl

    Repeat message - I have downloaded the FlashPlayer upgrade (now 10 times), in Security - no pop-ups are checked, the "allow Java" and "allow other other plug-ins" are both checked.  I have re-booted after the Flash-Player upgrades - still "pop=ups blocked"

    Hello,
    Please provide the following information:
    Your operating system & version
    Your web browser(s) & version
    Your Flash Player version
    Explain your problem in step-by-step detail if possible
    A direct link to a page that demonstrates the problem
    If you get error messages, please quote them exactly, or provide a screenshot: http://forums.adobe.com/thread/1070933
    Thank you.
    Maria

  • Some :New values are null in compound trigger

    <h4>
    Hello everybody,
    I use Oracle 11g R2.
    My problem is: Why certain :New.values are Null in the before statement only if I have an after statement (that do nothing) ?
    My test case:
    </h4>
    create table TEST
    ID Number,
    CODE char(10),
    SUBJECT varchar2(60)
    alter table TEST add constraint TEST_PK primary key (CODE);
    insert into TEST (CODE, SUBJECT, ID) values ('AAA ', 'Subject AAA', 1);
    insert into TEST (CODE, SUBJECT, ID) values ('BBB ', 'Subject BBB', 2);
    commit;
    <h4>My problem:</h4>
    create or replace trigger Test_Trg
    for insert or update on Test
    compound trigger
    before each row is
    begin
    dbms_output.put_line( 'Before Each Row, New values= Id: '||:New.Id||', Code: '||:New.Code||', Subject: '||:New.Subject );
    dbms_output.put_line( 'Before Each Row, Old values= Id: '||:Old.Id||', Code: '||:Old.Code||', Subject: '||:Old.Subject );
    :New.Code := Nvl(:New.Code, 'CODE'||:New.Id);
    end before each row;
    after statement is
    begin
    dbms_output.put_line( 'After Statement' );
    end after statement;
    end Test_Trg;
    <h4>Now if I do that:</h4>
    update Test set Subject = 'The New Subject' where ID = 1;
    commit;
    <h4>The dbms_output is :</h4>
    Before Each Row, New values= Id: 1, Code: , Subject:
    Before Each Row, Old values= Id: 1, Code: USER1 , Subject: The New Subject
    After Statement
    <h4> (You can see that in the before each row, :New.Code and :New.Subject are Null!)
    And the Data are:</h4>
    select * from Test where Id = 1;
    Id Code Subject
    1 CODE1 The New Subject
    <h4>Why the column Code is changed?
    Now if I change my trigger (just removing the after statement)</h4>
    create or replace trigger Test_Trg
    for insert or update on Test
    compound trigger
    before each row is
    begin
    dbms_output.put_line( 'Before Each Row, New values= Id: '||:New.Id||', Code: '||:New.Code||', Subject: '||:New.Subject );
    dbms_output.put_line( 'Before Each Row, Old values= Id: '||:Old.Id||', Code: '||:Old.Code||', Subject: '||:Old.Subject );
    :New.Code := Nvl(:New.Code, 'CODE'||:New.Id);
    end before each row;
    end Test_Trg;
    <h4>All work perfect!
    My question is: Why certain :New.values are Null in the before statement only if I have an after statement that do nothing ?
    Thanks in advance,
    </h4>

    I've got two 11.2.0.2 environments - one where this is reproducible, one where it doesn't seem to be.
    I assume it must be a bug and one of these environments is patched.
    I had a quick look at metalink and couldn't see an obvious match.
    I might see if I can figure out differences between environments later.
    There are a number of bugs around compound triggers.
    I've been bitten before with a different compound trigger bug.
    http://orastory.wordpress.com/2009/01/20/beware-the-compound-trigger/
    Shame - nice way to neaten up multiple triggers but too many issues.

  • Error in Application log SCOM mgmt server 25934 Credentials are null for user

    Hi,   We recently started getting errors like the one shown below on one of our SCOM management servers.
    Any thoughts on what might be causing this and why this shows on a scom server.   There is no VMM stuff installed on this SCOM server.
    Thanks in advance.
    System
    Provider
    [ Name]
    Microsoft.SystemCenter.VirtualMachineManager.2012.Report.VMUsageCollection
    EventID
    25934
    [ Qualifiers]
    0
    Level
    2
    Task
    0
    Keywords
    0x80000000000000
    TimeCreated
    [ SystemTime]
    2014-01-28T18:08:24.000000000Z
    EventRecordID
    287618
    Channel
    Application
    Computer
    XXXX
    Security
    EventData
    Credentials are null for user:
    Thanks Lance

    Hi,
    If agent is installed on the VMM server, it will collect the information and send it to SCOM server. The event indicates the SCOM agent tried to access the registry key that was included in the User Profile but failed.
    Please specify a local account or domain account as the SCOM action account for a test.
    Niki Han
    TechNet Community Support

  • Argument Error: One or more parameters are null.

    I am getting "javax.servlet.jsp.JspException: Argument Error: One or more parameters are null". Following are first two lines of the exception
    javax.servlet.jsp.JspException: Argument Error: One or more parameters are null.     at com.sun.faces.taglib.html_basic.PanelGridTag.doEndTag(PanelGridTag.java:470)     at empEditById.jspService(_empEditById.java:290)
    Can anyone help me out with this.

    I don't know which part of jsp code is giving problem. Here is the complete listing
    <f:view>
      <html>
        <head>
          <meta http-equiv="Content-Type"
                content="text/html; charset=windows-1252"/>
          <title>Main</title>
        </head>
        <body><h:form>
            <p>
              <strong>Employee Edit</strong>
            </p>
            <p>
              <h:messages/>
            </p>
            <p><h:panelGrid columns="3">
                  <h:outputLabel value="Employee Id:"/>
                  <h:inputText id="empId" disabled="true"
                               value="#{b_empEditById.empId}"/>
                  <h:panelGroup/>
                  <h:outputLabel value="First Name:"/>
                  <h:inputText id="firstName" required="true"
                               value="#{b_empEditById.firstName}"/>
                  <h:message for="firstName"/>
                  <h:outputLabel value="Last Name:"/>
                  <h:inputText id="lastName" required="true"
                               value="#{b_empEditById.lastName}"/>
                  <h:message for="lastName"/>
                  <h:outputLabel value="Hire Date:"/>
                  <h:inputText id="hireDate" value="#{b_empEditById.hireDate}">
                    <f:convertDateTime pattern="dd-MM-yyyy"/>
                  </h:inputText>
                  <h:message for="hireDate"/>
                  <h:outputLabel value="Reports To:"/>
                  <h:selectOneMenu id="reportsTo"
                                    value="#{b_empEditById.reportsTo}">
                    <f:selectItems value="#{requestScope.b_empEditById.selectAllEmployees}"/>
                  </h:selectOneMenu>
                  <h:message for="reportsTo"/>
                  <h:commandButton value="Confirm" id="edit"
                                   action="#{b_empEditById.confirm}"/>
                  <h:commandButton value="Back" type="submit" immediate="true"
                                   action="back"/>
                </h:panelGrid>
            </p>
          </h:form></body>
      </html>
    </f:view>I am using Oracle jdeveloper 10g but I don't which version of JSF I am using.

  • Error: Target or source of mapping are null

    Dear CAF experts,
    I created one composite application project which has one entity and an
    External Service (WebService). This entity has two fields "userName"
    (shortText) and "password" (shortText). It has all CRUD methods and a
    "logIn" method, which takes userName and password as input and gives
    back the userEmailId as the response. I have defined this mapping (
    between the attributes of the entity and the parameters of the
    WebService method LogIn ) in the datasource tab of the entity. I marked
    the entity as remote enabled and created a web service using it. Then I
    deployed the CAF project to the J2EE engine and configured the WSDL URL
    and the End point URL for the WebService in the "External Service
    Configuration" application.
    Finally I tested the service using the "Service Browser" application. It
    simply throws the exception "ERROR. Target or source of mapping are
    null!:".
    Have I missed anything here? Any leads..?
    Thanks,
    Bala

    Rene,
    As mentioned aleady I've an attribute called "response" that is mapped to the userEmailId of the service.
    The error in the browser is simply the same as the subject of this thread. i.e. "Error: Target or source of mapping are null"
    The full exception is
    com.sap.caf.rt.exception.DataAccessException: Target or source of mapping are null!
         at com.sap.caf.rt.bol.da.remote.RemoteDataAccessService.create(RemoteDataAccessService.java:475)
         at com.sap.gw.besrv.enterprise.EnterpriseServiceBean.create(EnterpriseServiceBean.java:83)
         at com.sap.gw.besrv.enterprise.EnterpriseServiceLocalLocalObjectImpl0.create(EnterpriseServiceLocalLocalObjectImpl0.java:345)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.caf.rt.services.serviceaccess.ServiceWrapper.createDependentObject(ServiceWrapper.java:432)
         at com.sap.caf.rt.services.serviceaccess.ServiceWrapper.createDataContainerBean(ServiceWrapper.java:196)
         at com.sap.caf.rt.services.serviceaccess.CAFServiceAccessBeanImpl.createDataObject(CAFServiceAccessBeanImpl.java:159)
         at com.sap.caf.rt.services.serviceaccess.CAFServiceAccessLocalLocalObjectImpl20.createDataObject(CAFServiceAccessLocalLocalObjectImpl20.java:775)
         at com.sap.caf.rt.ui.cool.generic.AspectServiceAccess.insertAspectRow(AspectServiceAccess.java:215)
         at com.sap.caf.rt.ui.cool.generic.Aspect.insertRows(Aspect.java:1425)
         at com.sap.caf.rt.ui.cool.generic.Aspect.sendChanges(Aspect.java:1543)
         at com.sap.caf.ui.ptn.objecteditor.ObjectEditorCC.executeCoolAction(ObjectEditorCC.java:550)
         at com.sap.caf.ui.ptn.objecteditor.wdp.InternalObjectEditorCC.executeCoolAction(InternalObjectEditorCC.java:249)
         at com.sap.caf.ui.ptn.objecteditor.ui.OElayout.onActionGenericAction(OElayout.java:383)
         at com.sap.caf.ui.ptn.objecteditor.ui.wdp.InternalOElayout.wdInvokeEventHandler(InternalOElayout.java:297)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:711)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:665)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:232)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.caf.mp.mmr.adapter.exception.NullSourceOrTargetForMapping: Target or source of mapping are null!
         at com.sap.caf.mp.mmr.adapter.MMServiceRetrievalAdapter.readMappingRule(MMServiceRetrievalAdapter.java:236)
         at com.sap.caf.mp.mmr.ejb.MMServiceRetrievalAdapterCallerBean.readMappingRule(MMServiceRetrievalAdapterCallerBean.java:142)
         at com.sap.caf.mp.mmr.ejb.MMServiceRetrievalAdapterCallerLocalLocalObjectImpl0.readMappingRule(MMServiceRetrievalAdapterCallerLocalLocalObjectImpl0.java:697)
         at com.sap.caf.mp.core.data.service.DataServiceBridge.getMappingRuleIds(DataServiceBridge.java:666)
         at com.sap.caf.mp_mmr_bridge.rt.impl.RuntimeHelper.getExternalOperationConfig(RuntimeHelper.java:127)
         at com.sap.caf.mp_mmr_bridge.rt.IRuntimeHelper.getExternalOperationConfig(IRuntimeHelper.java:48)
         at com.sap.caf.rt.bol.da.remote.RemoteDataAccessService.create(RemoteDataAccessService.java:443)
         ... 46 more
    Bala

  • Conditionally hide a Table in template if underlying rows of table are null

    Hi Folks.
    Very new to BIP but keen to learn.
    I have successfully set up an RTF template and I can get it to run with my BIP.
    I have defined a table in the report using the Table Wizard. What I'd like to do now is wrap the table definition in the document with a condition that checks if the underlying table values are null. I.e. if the table behind that particular section has no rows then I don't want to display the column headers etc. nothing.
    I have tried adding the following before the table...
    <?if:SEQ!=''?>
    Then insert the table using the wizard..
    Then finish with
    <?end if?>
    There's no whitespace between the if, the table and the end if statements.
    I'm hoping to test that if SEQ is null then don't display the table.
    Am I missing something simple or am I wildly off-track?
    Any pointers appreciated.
    Many thanks
    Kind regards
    Dogfighter.

    Disregard last post.
    MODS feel free to purge this.
    It actually works.
    Don't know what I was doing wrong but the code I quoted in the last post does what it's supposed to.
    Just tired I guess.
    Cheers
    Dogfighter.

  • If numbers are null

    Hi Friends,
    We are migrating our forms application from 6i to 10g and we have some issues here.The one is ,if numbers are null we have handled that as mentioned below
    IF NVL(l_numb1,' ') = NVL(l_numb2,' ')
    THEN
    ELSE
    END IF;
    This works fine in 6i , when migrated to 10g it shows error.
    But when both the values are VARCHAR2 then no problem.
    So I need to handle this in the entire application.I think the only problem
    is substituting space(' ') for NUMBER variables.
    Do I have any other alternative for this.
    Note : It should work for both VARHCAR2 and NUMBER variables.
    Regards
    Marlon

    I use for this case selfwritten Equal- and NotEqual-Functions.
    IF pkg.Equal (Value1, Value2) THEN
    END IF;
    IF pkg.NotEqual (Value1, Value2) THEN
    END IF;
    here is the code :
    FUNCTION Equal (P_Wert1  IN VARCHAR2,
                     P_Wert2  IN VARCHAR2) RETURN BOOLEAN IS
    BEGIN
      IF P_Wert1 = P_Wert2
      OR (P_Wert1 IS NULL AND P_Wert2 IS NULL) THEN
        RETURN (TRUE);
      ELSE
        RETURN (FALSE);
      END IF;
    END;or read the full article in my blog:
    http://talk2gerd.blogspot.com/2006/12/equal-and-notequal.html

  • Firefox MAC v30 with proxy needs authenticate"Cache Access Denied" sorry, you are not currently allowed to request: from this cache until you have authenticated

    Firefox was working perfectly before we've updated it to version 30.0. It seems that the new version does not like our Proxy setting which needs users to auth with their AD accounts.
    In the past version, Firefox will pop-up a box that allow you to type in the username and password, which works perfect. However, it does not pop-up anymore and gives me this error message.
    The following error was encountered:
    Cache Access Denied.
    Sorry, you are not currently allowed to request:
    http://www.google.com.au/url?
    from this cache until you have authenticated yourself.
    I try to manually set up the username in key chain and allow firefox to access it but Firefox seems do not access that key chain at all.
    Is anyone have the issue with the proxy which needs authenticate in Firefox30.0? Does anyone know the possible solutions?
    Many thanks!
    Shuopan
    ------------------------------------trouble shoot update-----------------------------------------
    Quite interestingly, Firefox will work for 1 minute after I am using Safari with that Auth proxy. However, if I am not touching Safari for 1 or 2 minutes, Firefox will stop working and pop up the similar error message.
    tried network.http.use-cache = false but not work
    Thanks

    Quite interestingly, Firefox will work for 1 minute after I am using Safari with that Auth proxy. However, if I am not touching Safari for 1 or 2 minutes, Firefox will stop working and pop up the similar error message.
    Thanks

Maybe you are looking for

  • CS5 Download cant get it to work? Need help

    I purchased a new computer and it doesn't have a CD drive. I have tried downloading the CS5 from Adobe website and can't get it to work? Any tips on how to get the download to install?

  • How can Filter ADF BC LOV values in ADF Faces UI?

    How can Filter ADF BC LOV values in ADF Faces UI? Hi i am bit struggle with filtering LOV values in ADF Faces UI. I have table In UI ,that is from ADF BC .Now i am Filtering that table data using Select one choice in same page.That SOC is named Type

  • How to Supress ZEROS in Bex Report

    Hi Experts, I have requirement to supress zeros in rows of AR Report in Bex Analyzer.IS it possible to Supress zeros in BEx analyzer itslef or i have to suppress in Query designer. I checked  so many forums  but i am not sure whether my configuration

  • Create Rework Operation in Production Order

    Hi, I am looking for a function module that will create/insert an operation in a Production Order when a rework is done. Do you know any? Please help. Thanks. Regards Ryan

  • I got the first defective IPhone 4 in North America... :(

    IPhone 4 arrived this morning. The screen has a manufacturing defect in it. It looks like whatever layer get's put down over the backlight is defective. I have dozens of "Bright spots" all over the screen. When I called Apple, the guy told me I am th