Null values returned when using request.getParameters(

I have a html form which allows the user to choose options and select a file to upload. When I use method=Post I get null values returned. When I use method=Get I get my parameter values fine.. but I get an error.
"Posted content type isn't multipart/form-data"
I would like to know why I am getting null values returned when using Post. I am using the following to get the values from the name=value passed to the servlet.
String strIndustry = request.getParameter("frmIndustry");
          String strCompany = request.getParameter("frmCompany");
          String strCollabType = request.getParameter("frmCollaboration");
I have another form where the user can search information in a database that works just fine w/ either Get or Post
Or perhaps I am using oreilly MultipartRequest incorrectly??? but I copied it directly from another discussion.. ???
any thoughts
Thanks

taybon:
you could do it like this. in this case, you submit your form with the parameters (industry, company, collaboration), and upload your file at the same time. and in the target servlet, you can build your MultipartRequest object like this:
MultipartRequest multi = new MultipartRequest(request, temp_location, 50 * 1024);where variable temp_location stands for a temporatory diretory for file uploading.
and then you get your parameters, so you can build the directory with them. and after that, you can move your file to that directory using File.renameTo();
but as i've suggested in my previous posting, i just recommend you upload your file in a separate form. and then you can perform an oridianry doPost form submit with those parameters. or you may have problems with the file uploading. (this is just my personal experiences with Multipart).
there is one other thing i'd like to mention, file.renameTo() won't work if you need to move files to a network drive in windows. it won't work if you move files across file systems in unix.
Song xiaofei
Developer Technical Support
Sun Microsystems
http://www.sun.com/developers/support

Similar Messages

  • Null Pointer Exception when using exec() method of runtime.

    Hi There,
    I am using a Random Access File to access text data. Then I am using the text data with the Runtime class to activate native programs (such as Word, Outlook, etc).
    I have designed my code so that the length of the text file is compared to the current file pointer. If the current file pointer is less than the length of the file then a string is loaded with the text (path) details relevant for the activation of a program (e.g.: Word). In the case where the end of text data in the file has been reached I load the relevant string with null. Here is a little run down of the code:
    String Path1;
    long FileLength = TxtFile.length(); //Find file length.
    long PointerPosition = TxtFile.getFilePointer(); //Find current position
      try
          if(PointerPosition < FileLength)
            Path1 = TxtFile.readLine();        //Read line into string
          else
            Path1 = null;                      //Make string null.
       }catch(IOException e){}Once the code above has been run I then use the Runtime class's exec() method along with path details held in the string to start a native program as follows:
        if(e.getActionCommand().equals("Word"))
          if(Path1.equals(null))
            EntryBox = new DataEntryBox();  //Create a dialog box for user.
          else
            try
              Runtime.getRuntime().exec(new String[]{Path1}); //Starts prog
            catch(IOException f){}
        }Whenever I press a button on my program that does not contain a path and instead contains the null value for the relevant string I get the following error message:
    C:\j2sdk1.4.0\bin\javaw -classpath "D:\Java\JavaQuickLauncher\classes;C:\j2sdk1.4.0\jre\lib\charsets.jar;C:\j2sdk1.4.0\jre\lib\jaws.jar;C:\j2sdk1.4.0\jre\lib\jce.jar;C:\j2sdk1.4.0\jre\lib\jsse.jar;C:\j2sdk1.4.0\jre\lib\rt.jar;C:\j2sdk1.4.0\jre\lib\sunrsasign.jar;C:\j2sdk1.4.0\jre\lib\ext\dnsns.jar;C:\j2sdk1.4.0\jre\lib\ext\ldapsec.jar;C:\j2sdk1.4.0\jre\lib\ext\localedata.jar;C:\j2sdk1.4.0\jre\lib\ext\sunjce_provider.jar;C:\j2sdk1.4.0\lib\dt.jar;C:\j2sdk1.4.0\lib\htmlconverter.jar;C:\j2sdk1.4.0\lib\tools.jar;C:\j2sdk1.4.0\demo\plugin\jfc\Java2D\Java2Demo.jar;C:\j2sdk1.4.0\demo\jfc\Java2D\Java2Demo.jar" javaquicklauncher.Begin
    java.lang.NullPointerException
         at javaquicklauncher.GUI.actionPerformed(GUI.java:160)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1820)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:258)
         at java.awt.Component.processMouseEvent(Component.java:5021)
         at java.awt.Component.processEvent(Component.java:4818)
         at java.awt.Container.processEvent(Container.java:1380)
         at java.awt.Component.dispatchEventImpl(Component.java:3526)
         at java.awt.Container.dispatchEventImpl(Container.java:1437)
         at java.awt.Component.dispatchEvent(Component.java:3367)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2929)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859)
         at java.awt.Container.dispatchEventImpl(Container.java:1423)
         at java.awt.Window.dispatchEventImpl(Window.java:1566)
         at java.awt.Component.dispatchEvent(Component.java:3367)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
    It is my feeling that the exec() method of Runtime is causing this ream of errors, however I feel that my test condition -- if(Path1.equals(null)) -- should avoid trying to run the exec() method when the string is truly null. I am really stuck with this one, any help / suggestions will be greatly appreciated.
    Thanks for your time.

    Path.equals(null) ... and if the Path is null u ll get a NullPointerException.
    U r trying to do an equals on null.

  • Dynamic configuration "null" value returned

    Hi all,
    I have reviewed the Michal blog and created a function to return the directory name, but it always returns a null value...
    Here is the code:
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","DirectoryName");
    String ourSourceDirName = conf.get(key);
    return ourSourceDirName; 
    I can't find the error....
    i will reward points....
    Gerardo.

    Hi 
    Please check the Adapter setting also and need addtional parameter where it return the value like
    DCJMSReplyTo
    DCJMSTimestamp

  • Null Value returned into Hashtable  from Vector (after 1.5 compilation )

    Sorry i posted the Question with a misleading heading into another thread .
    Hi , in the given peice of Code , date1 is a vector while date2 is a hashtable .
    I am storing the date from the vector in a hashtable .
    The code works fine for java 1.4 but Null value gets stored after compiling in 1.5.
    There is no error during compilation .
    Hashtable date2 = (Hashtable) date1.elementAt(0);
    cat.debug("date2"+date2.get("TO_CHAR(TO_DATE(TO_CHAR(RES_DT,DD-MON-YYYY)),DD-MON-YYYY)"));"TO_CHAR(TO_DATE(TO_CHAR(RES_DT,DD-MON-YYYY)),DD-MON-YYYY)") is the key , there is no error in that .
    cat.debug is log4j function used to write log to an text file.
    From searchin the net i got the i would have to typecast (not sure if am using the right technical term ) .
    protected Hashtable<Object,Object> lNVPair = new Hashtable<Object,Object>();
        protected Vector<Object> lNVKeys = new Vector<Object>();But how am i suppose to use it in the above state where with declaration i am assigning value at same time ?..
    Hashtable<Object,Object> date2 = (Hashtable<Object,Object>) date1.elementAt(0);

    Here is more details about date1 :
    Vector date1 = mDao.getDate(lcrnno,ltxntype,lbranchCd);Value of date1 is filled by calling a function which in turns queries the database .
    Details about the function are below .
    public Vector getDate(String pcrnno,String ptxntype,String br_cd)//throws SQLException
              Vector lResult=null;
              ResultSet lresult = null;
       try {
                                              Hashtable linner=new Hashtable();
                         lResult=new Vector();
              //String lstrquery declared  containing the query to be executed .
             mPstmt = mConn.prepareStatement(lstrquery);
           lresult = mPstmt.executeQuery();
         ResultSetMetaData lrsmd=null;
        lrsmd=lresult.getMetaData();
       int lcolCount=lrsmd.getColumnCount();
      cat.debug("Number of fields:"+lcolCount);
    while(lresult.next())
              linner=new Hashtable();
           for(int i=1;i<=lcolCount;i++) {
                   String lkey=lrsmd.getColumnName(i); //column name to be used as key
                   String lvalue=lresult.getObject(i).toString(); //value
                      linner.put(lkey,lvalue); //populating the hashtable
          }//end of for
                             lResult.add(linner); //adding to vector
      }//end of whileNote I have not added the part of code where query string created and parameters passed .
    Hope that should be enough details ...

  • Stored procedure call returns null result set when using temp table in sp!

    Here's a really odd problem...
    SQL Server stored procedure called sp_Test takes 1 input INT. Here is the code I call it with
    cStmt = connection.prepareCall("{call sp_Test(?)}");
    cStmt.setInt(1, 44);
    cStmt.execute();
    rs = cStmt.getResultSet();When the body of the stored proc is
    CREATE PROCEDURE sp_Test(@i_NodeID INT)
    AS
    BEGIN
      SELECT node_id FROM tbl_NavTree
    END
    GOthe query works and I get all node_id back in rs
    BUT when the body of the stored proc is
    CREATE PROCEDURE sp_Test(@i_NodeID INT)
    AS
    BEGIN
      CREATE TABLE #Descendants(
        descendant_id INT
      SELECT node_id FROM tbl_NavTree
      DROP TABLE #Descendants
    END
    GOThe rs comes back as NULL. Really really weird if you ask me. I also tried removing the DROP TABLE line just in case the SELECT had to be the last statement but still NULL.
    Final note is that BOTH the above stored proc bodies work when executed within SQL Server query analyser.
    Must be JDBC .. what can it be!??

    DROP TABLE #DescendantsMS SQL Server - right?
    Then don't drop the table.
    From the MS docs for "create table"
    Local temporary tables are visible only in the current session;
    A local temporary table created in a stored procedure is dropped automatically when the stored procedure completes. The table can be referenced by any nested stored procedures executed by the stored procedure that created the table. The table cannot be referenced by the process which called the stored procedure that created the table.

  • Unexpected "numeric or value error" when using CAST COLLECT

    I am having trouble with string aggregation using CAST / COLLECT and the to_string function described on various sites around the net including AskTom and http://www.oracle-developer.net/display.php?id=306.
    I am getting "numeric or value error: character string buffer too small" but cannot see which limit I am exceeding.
    I have put together a simple test case to highlight this problem which I have pasted below.
    The error does not seem to be coming from the to_string function itself (else I expect we would see "TO_STRING raised an exception" in the returned error message).
    Any thoughts much appreciated,
    Thanks, Andy
    SQL*Plus: Release 10.1.0.4.2 - Production on Tue Jun 15 09:56:53 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> CREATE TYPE table_of_varchar2 AS TABLE OF VARCHAR2(32000);
      2  /
    Type created.
    SQL> CREATE OR REPLACE FUNCTION to_string (
      2              nt_in IN   table_of_varchar2
      3      ,       delimiter_in    IN VARCHAR2 DEFAULT ',')
      4      RETURN VARCHAR2
      5      IS
      6          l_idx   PLS_INTEGER;
      7          l_str   VARCHAR2(32767);
      8          l_dlm   VARCHAR2(10);
      9
    10      BEGIN
    11
    12          l_idx := nt_in.FIRST;
    13          WHILE l_idx IS NOT NULL LOOP
    14              l_str := l_str || l_dlm || nt_in(l_idx);
    15              l_dlm := delimiter_in;
    16              l_idx := nt_in.NEXT(l_idx);
    17          END LOOP;
    18
    19          RETURN l_str;
    20      EXCEPTION
    21          WHEN OTHERS THEN
    22              raise_application_error(-20000
    23                                  ,   'TO_STRING raised an exception. '||
    24                                      'The reported error was: '||sqlerrm);
    25     END to_string;
    26  /
    Function created.
    SQL> DECLARE
      2      l_longstring varchar2(32000);
      3  BEGIN
      4      SELECT  to_string(CAST( COLLECT( substr(object_name,1,1) ) AS table_of_varchar2 ) )
      5      INTO    l_longstring
      6      FROM    all_objects
      7      WHERE   rownum < 2001;
      8
      9  EXCEPTION
    10      WHEN OTHERS THEN
    11          raise_application_error(-20001
    12                ,   'The anonymous block raised an exception: '||
    13                    sqlerrm||'. '||DBMS_UTILITY.format_error_backtrace);
    14  END;
    15  /
    PL/SQL procedure successfully completed.
    SQL> DECLARE
      2      l_longstring varchar2(32000);
      3  BEGIN
      4      SELECT  to_string(CAST( COLLECT( substr(object_name,1,1) ) AS table_of_varchar2 ) )
      5      INTO    l_longstring
      6      FROM    all_objects
      7      WHERE   rownum < 2002;
      8
      9  EXCEPTION
    10      WHEN OTHERS THEN
    11          raise_application_error(-20001
    12                ,   'The anonymous block raised an exception: '||
    13                    sqlerrm||'. '||DBMS_UTILITY.format_error_backtrace);
    14  END;
    15  /
    DECLARE
    ERROR at line 1:
    ORA-20001: The anonymous block raised an exception: ORA-06502: PL/SQL: numeric
    or value error: character string buffer too small
    ORA-06512: at line 1. ORA-06512: at line 1
    ORA-06512: at line 4
    ORA-06512: at line 11

    Aha, of course.
    I was aware of the 4000 character SQL VARCHAR2 limit but didn't think it would apply here since we are calling a PLSQL function and trying to assign the value it returns into a PLSQL varchar2(32000) variable. BUT... we are of course doing this via a SELECT statement and hence via SQL. Therefore the SQL 4000 limit applies.
    With this in mind, I changed the RETURN type of the to_string function to be CLOB. This solved the problem.
    Thank you,
    Andy

  • Getting null values from nodes using DOMParser

    Hi
    I'm having problems retrieving the values from an XML doc.
    I'm using the DOMParser, but instead of retrieving the values
    from the nodes, I just get null.
    Code fragment :
    DOMParser parser = new DOMParser();
    parser.parse(url);
    XMLDocument doc = parser.getDocument();
    NodeList nl = doc.getElementsByTagName("*");
    Node n;
    iNode = nl.getLength();
    for (int i=0; i<iNode; i++)
    n = nl.item(i);
    String szNodeName = n.getNodeName();
    System.out.print(szNodeName+ " (" );
    System.out.print(n.getNodeValue()+")");
    System.out.println();
    The result is
    course (null)
    Name (null)
    All the node names are correct, but the node values are NOT
    displayed.
    Any idea ?
    Rodrigo
    null

    According to the DOM Level 1 spec, the "value" of an ELEMENT node
    is null and the getNodeValue() method will always return null for
    an ELEMENT type node. You have to get the TEXT children of an
    element and then use the getNodeValue() method in the text nodes.
    Oracle XML Team
    Rodrigo Loureiro (guest) wrote:
    : Hi
    : I'm having problems retrieving the values from an XML doc.
    : I'm using the DOMParser, but instead of retrieving the values
    : from the nodes, I just get null.
    : Code fragment :
    : DOMParser parser = new DOMParser();
    : parser.parse(url);
    : XMLDocument doc = parser.getDocument();
    : NodeList nl = doc.getElementsByTagName("*");
    : Node n;
    : iNode = nl.getLength();
    : for (int i=0; i<iNode; i++)
    : n = nl.item(i);
    : String szNodeName = n.getNodeName();
    : System.out.print(szNodeName+ " (" );
    : System.out.print(n.getNodeValue()+")");
    : System.out.println();
    : The result is
    : course (null)
    : Name (null)
    : All the node names are correct, but the node values are NOT
    : displayed.
    : Any idea ?
    : Rodrigo
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • How to get detailStamp working in an af:table when using request scope ?

    <af:table var="row" id="t1" value="#{listUsers.users}" summary="Userlist" binding="#{listUsers.ATable}" [...]
    <af:column sortable="false" headerText="Username" id="c13" filterable="true">
    <af:outputText value="#{row.username}" id="ot13"/>
    </af:column>
    <f:facet name="detailStamp">
    <af:panelFormLayout rows="4" labelWidth="33%" fieldWidth="67%" inlineStyle="width:795px" id="pfl1" labelAlignment="start" >
    <af:group id="g1">
    <af:panelLabelAndMessage id="plamNumber" label="Number" for="number">
    <af:outputText value="#{row.address.number}" id="number"/>
    </af:panelLabelAndMessage>
    I feel there is nothing special with this.
    But I've tested with 2 rows in my table and when I disclose rows, I get random results :
    sometimes I get the details related to the row disclosed, but sometimes I get the details of the other row.
    I've read several posts on the subject but none really helpful.
    Another problem ; I've noticed that when I disclose or close a row, getUsers() is called, this method fetch the data from the DB, any way to prevent it ?
    For the second problem, the solution I see would be to : change scope of listUsers to session instead of request, fetch from the DB only when "refresh", not when "detailStamp",
    but I've no clue on how to actually do the "only when part"
    Thanks in advance,
    JP

    Ok when I change the scope of ListUsers to session it's "ok" since I only load the list from the DB once (just like the demo that does not have this problem since the demo does not use the DB)
    When I change the scope for request and that the page is refreshed then the object ListUsers is "recreated" and the data reloaded : that's the expected behavior
    So I prefer to have the scope sets to request
    The problem is that when a user disclose/close a detailstamp and that the scope is set to request,
    then the data is reloaded from the DB
    because apparently this event acts like a "refresh"
    because this event (disclose/close) cause the destruction of what is in the request scope ...
    That's my understanding, probably few mistakes, I'm beginning with ADF/JSF
    It seems that when I load the data from the DB, it's not always in the same order, causing the problem itself probably, which is not ADF related BUT ;
    what I would like to know is how to (elegantly) prevent the event of "disclose/close" to act like a "refresh" ?
    Because even if I fix the "not ADF related problem" (if there is one), loading the list from the DB each time, appears really useless and the DBA won't like me !
    A solution could be to leave the session scope, but then my question would be ;
    *how to know I've to reload from the DB ?"
    I could just "reload it on page load", seems ok to me but
    I'm not sure it's the best, I would like to have your opinion, I've found this article for the "on page load" part ;
    http://groundside.com/blog/DuncanMills.php?title=adf_executing_code_on_page_load&more=1&c=1&tb=1&pb=1
    Thanks,
    JP

  • Null pointer exception when using CFCs on Solaris

    I am running Apache 2.0.52 and my web root is /htdocs. I have
    a multi-server installation of CF 7.0.2 on another partition:
    /apps/jrun4. Regular CFM files work fine; however, I receive the
    "The system has attempted to use an undefined value..." (null
    pointer) error whenever I attempt to use a CFC from within a CFM
    file or if I try to use Application.cfc -- Application.cfm works
    fine.
    For instance...I created two files in /htdocs/test: Test.cfc
    and tester.cfm
    Test.cfc contains:
    <cfcomponent>
    <cfset str = "Test">
    </cfcomponent>
    tester.cfm contains:
    <cfset temp = createObject("component", "Test")>
    When I run tester.cfm I get the error. I had some success
    when I created a mapping in CF Admin called /tester, pointing to
    /htdocs/test. I then changed the code in tester.cfm to:
    <cfset temp = createObject("component", "tester.Test")>
    And it worked! I also tried creating a CFC on the same
    partition as the CF install (/apps) and then referencing it in the
    tester.cfm code. That works too! However, that's a bandaid solution
    and half of one at that. If I try to use Application.cfc anywhere
    within /htdocs (web root), I get the null pointer error.
    Additionally, I have another server setup identically except
    for one difference: the web root is /apps/htdocs (same partition as
    CF). Everything works fine on it. Has anyone experienced this
    behavior before? Any ideas besides moving /htdocs to /apps/htdocs?
    Is this a known issue that the web root must reside on the same
    partition as the CF install?

    I am running Apache 2.0.52 and my web root is /htdocs. I have
    a multi-server installation of CF 7.0.2 on another partition:
    /apps/jrun4. Regular CFM files work fine; however, I receive the
    "The system has attempted to use an undefined value..." (null
    pointer) error whenever I attempt to use a CFC from within a CFM
    file or if I try to use Application.cfc -- Application.cfm works
    fine.
    For instance...I created two files in /htdocs/test: Test.cfc
    and tester.cfm
    Test.cfc contains:
    <cfcomponent>
    <cfset str = "Test">
    </cfcomponent>
    tester.cfm contains:
    <cfset temp = createObject("component", "Test")>
    When I run tester.cfm I get the error. I had some success
    when I created a mapping in CF Admin called /tester, pointing to
    /htdocs/test. I then changed the code in tester.cfm to:
    <cfset temp = createObject("component", "tester.Test")>
    And it worked! I also tried creating a CFC on the same
    partition as the CF install (/apps) and then referencing it in the
    tester.cfm code. That works too! However, that's a bandaid solution
    and half of one at that. If I try to use Application.cfc anywhere
    within /htdocs (web root), I get the null pointer error.
    Additionally, I have another server setup identically except
    for one difference: the web root is /apps/htdocs (same partition as
    CF). Everything works fine on it. Has anyone experienced this
    behavior before? Any ideas besides moving /htdocs to /apps/htdocs?
    Is this a known issue that the web root must reside on the same
    partition as the CF install?

  • ViewDocument.jsp gets null pointer exception when using report token instead of docid for DHTML

    <p>The following command gets a null pointer error showing up in Tomcat log:</p><p>../../viewers/cdz_adv/viewDocument.jsp?sEntry=<%=strEntry%>&lang=en&iDocID=830&ViewType=I&kind=Webi</p><p>where sEntry is a valid report token </p><p>but works fine if the ViewType is H  or id=830 is used instead of sEntry.  When the above command is issued the drill columns are displayed correctly but no report is shown and a null pointer exception is encountered.</p>

    There is a Consulting Solution called BOInterface that Business Objects Global Services sells and that may help you if you are implementing your own "InfoView".
    A description is <a href="http://www.mnsoft.org/bointerface0.0.html">here</a>.
    Particularly, see the <a href="http://www.mnsoft.org/pmiv.0.html">Poor Man's InfoView</a> web application.
    Contact me via direct email for more information if this is interesting for you.
    HTH,
    M
    Matthias Nott -  Business Objects
    Service Line Leader Products EMEA
    [email protected]

  • -6502 ORA-06502: PL/SQL: numeric or value error when using 'Create CAPI Definition'

    I get an error when I try to create a CAPI definition with Headstart untilities (6i). I use HSU_CAPI revision 6.5.2.0
    The detailed information says the following:
    Message
    BLAPI.OPEN_ACTIVITY
    Start HSU_CAPI.run
    Number of Tables to create CAPI for 1
    Initial checks for table KCS_TENDERS with id 692754610572409851363604771392473242
    HSU_CAPT.initial_checks for table KCS_TENDERS
    HSU_CAPF.initial_checks for table KCS_TENDERS
    HSU_CAPC.initial_checks Custom Services for table KCS_TENDERS
    HSU_CAPB.initial_checks BRDD for table KCS_TENDERS
    bltext.get_lines_from_repository, p_text_type=CDINOT
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_lines_from_repository, p_text_type=CDIPLS
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    KCS_TENDERS Business Rule Design Definition BR_TNR001_CEV does not have any Trigger Columns. Rule will fire when any column is updated.
    bltext.get_lines_from_repository, p_text_type=CDINOT
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_lines_from_repository, p_text_type=CDIPLS
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_line_containing
    Creating CAPI for table KCS_TENDERS with id 692754610572409851363604771392473242
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Before-Insert-stmt, Open transaction.
    Write Text for element type APPLOG with id 753236628580304413262318236391196826 - Text type: ALCODE number of text lines = 6 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580304413262318236391196826 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Before-Update-stmt, Open transaction.
    Write Text for element type APPLOG with id 753236628580332747461215454262479002 - Text type: ALCODE number of text lines = 6 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580332747461215454262479002 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Before-Delete-stmt, Open transaction.
    Write Text for element type APPLOG with id 753236628580361081660112672133761178 - Text type: ALCODE number of text lines = 6 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580361081660112672133761178 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Post-After-Insert-stmt, Close transaction.
    Write Text for element type APPLOG with id 753236628580389415859009890005043354 - Text type: ALCODE number of text lines = 6 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580389415859009890005043354 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Post-After-Update-stmt, Close transaction.
    Write Text for element type APPLOG with id 753236628580417750057907107876325530 - Text type: ALCODE number of text lines = 6 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580417750057907107876325530 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Post-After-Delete-stmt, Close transaction.
    Write Text for element type APPLOG with id 753236628580446084256804325747607706 - Text type: ALCODE number of text lines = 6 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580446084256804325747607706 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Before-Delete-row, Save old data.
    Write Text for element type APPLOG with id 753236628580474418455701543618889882 - Text type: ALCODE number of text lines = 404 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580474418455701543618889882 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Insert, Call CAPI.
    Write Text for element type APPLOG with id 753236628580568865785358936523163802 - Text type: ALCODE number of text lines = 4 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580568865785358936523163802 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Update, Call CAPI.
    Write Text for element type APPLOG with id 753236628580597199984256154394445978 - Text type: ALCODE number of text lines = 4 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580597199984256154394445978 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Pre-Delete, Call CAPI.
    Write Text for element type APPLOG with id 753236628580625534183153372265728154 - Text type: ALCODE number of text lines = 17 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580625534183153372265728154 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Post-Insert, Call CAPI.
    Write Text for element type APPLOG with id 753236628580653868382050590137010330 - Text type: ALCODE number of text lines = 7 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580653868382050590137010330 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Post-Update, Call CAPI.
    Write Text for element type APPLOG with id 753236628580682202580947808008292506 - Text type: ALCODE number of text lines = 144 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580682202580947808008292506 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    Recreating KCS_TENDERS Table API/Trigger Logic - Event: Post-Delete, Call CAPI.
    Write Text for element type APPLOG with id 753236628580767205177639461622139034 - Text type: ALCODE number of text lines = 282 - REPLACE
    Deleted old text
    Write Text for element type APPLOG with id 753236628580767205177639461622139034 - Text type: ALCMNT number of text lines = 1 - REPLACE
    Deleted old text
    HSU_CAPF.create_or_find_capi_pack
    hsu_capi.find_plm (kcs_tnr_capi, 692754610572409851363604771392473242, CAPI).
    capi package found in the context folder
    BLPLM.UPD
    FREE_FORMAT_TEXT_FLAG......... = Y
    IMPLEMENTATION_NAME........... = kcs_tnr_capi
    PLSQL_MODULE_TYPE............. = PACKAGE
    SCOPE......................... = PUBLIC
    COMPLETION_STATUS............. = COMPLETED
    NAME.......................... = kcs_tnr_capi
    PURPOSE....................... = Custom API package for implementing Business Rules and supporting TAPI
    Recreated Package KCS/ KCS_TNR_CAPI, preserving only the Revision History.
    HSU_CAPF.add_tags_er_av
    bltext.get_lines_from_repository, p_text_type=CDINOT
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_lines_from_repository, p_text_type=CDINOT
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_lines_from_repository, p_text_type=CDINOT
    bltext.get_line_containing
    bltext.get_line_containing
    bltext.get_lines_from_repository, p_text_type=CDINOT
    bltext.get_line_containing
    bltext.get_line_containing
    HSU_CAPF.create_specification
    HSU_CAPF.create_c_tabalias
    HSU_CAPF.create_c_tabalias_all
    HSU_CAPF.create_aggregate_value
    HSU_CAPF.create_aggregate_value
    HSU_CAPF.create_aggregate_value
    Activity aborted with ORACLE internal errors.
    -6502 ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    What can I do about it???
    Thanks in advance.
    Menno Hoogsteen

    Working on the same project as Menno, I had the time to look into the problem.
    The problem is caused by the creation of the capi-function agregate_char_value in the packages hsu_capf. While creating this function the following code is executed:
    add(' -- allowable values:');
    add(' -- '||l_col_name_list);
    This last statement causes the problem because this table is very big. L_col_name_list contains 2391 characters wich is 393 characters to long. So i changed this code into:
    add(' -- allowable values:');
    add(' -- '||substr(l_col_name_list,1,1990));
    add(' -- '||substr(l_col_name_list,1990));
    and everything works fine. Perhaps something for a patch?
    Kind regards,
    Ruben Spekle

  • Why don't color values change when using proof colors?

    Hi,
    i am very interested in obtaining exact replicas of the image in screen (in ProPhoto) and the image printed (using a suitable printer profile). However when I select Proof Colors from the view menu, the appearance changes but the RGBV or Lab colors remain the same. This is counter intuitive and goes against the well known recomendation to do color correcting using numbers instead of your eyes.
    What's happening? Is there a way to accomplish what I want?
    Thanks,
    Juan

    Juan,
    please let me tell you my opinion, based on working with i1Pro, ProfileMaker and a couple
    of printers and monitors:
    a) one doesn't calibrate a monitor for a better match of monitor view and print result.
    The monitor has to be calibrated for preferred settings, here for 100cd/m² and 6500K.
    In my case, calibrated in an almost dark room in order to avoid any flare, the minimal
    luminance is about 0.3cd/m², which results in a contrast of about 300. With some ambient
    light the actual contrast is probably not as large.
    b) one doesnt calibrate a printer with respect to a monitor. The printer is calibrated by
    printing a target and measuring this, followed by profile generation. As a result, a printer
    can print color patches with certain Lab values with a measurable accuracy, without any
    reference to a monitor. By the way: calibration takes the paper color into account, there-
    for one needs for each paper a new profile (as well for different printing modes or diffferent
    black inks and so on).
    What is to do?
    You have already i1 Profiler. Each version can profile monitors, but you need a version
    which can profile printers as well. In this German doc means Drucker=printer:
    http://www.pdfmarkt.de/index_de,marktcm,15,528,,49.php
    It looks as you have a version which can calibrate printers in RGB mode (perhaps i1 Basic Pro2 ).
    Then follow the procedures in these docs, mainly the third:
    http://www.northlight-images.co.uk/reviews/profiling/i1_profiler_overview.html
    http://www.northlight-images.co.uk/reviews/profiling/i1_profiler_monitor.html
    http://www.northlight-images.co.uk/reviews/profiling/i1_profiler_rgb_print.html
    What means RGB mode? Epson printers, for instance my model 7890, can be calibrated in
    RGB mode or in CMYK mode. Of course. the printer prints finally by CMYK inks, but the
    targets are defined either by RGB values or by CMYK values.
    RGB mode is preferred by photographers (RGB images), CMYK mode accepts as well CMYK
    data as generated in PostScript workflows and is used for proofing offset-print-ready PDFs.
    An example: technical graphics may contain one or two inks in order to avoid registration
    errors. Sending these data to an 'RGB-printer' would result in printing by all inks.
    I'm calibrating in CMYK mode. The profile interpretation by Profile Inspector shows CMYK
    as device space. Available profiles by others (for common papers) show RGB as device space.
    Profile connection space is in either case CIELab.
    How are the viewing conditions?
    Probably not by viewing monitor and print side by side. The monitor has 6500K, prints are
    to be inspected under 5000K. Thus, a simultaneous adaptation is impossible.
    Also, it would be wrong, because the rendering is mostly not Absolute Colorimetric.
    For the critical inspection of prints the illuminance should be very bright, 2000lx (lux),
    according to ISO.  100cd/m² is roughly equivalent to 300lx (3-hundred).
    As a result, one cannot expect a match, but an impression: looks right on the monitor, looks
    right on the print. And an offset printing press can be adjusted by matching a proof print.
    Best regards --Gernot Hoffmann

  • No rows returned when using sql in XQuery.

    Hi all,
    I have a small table on a db with seven cols and three rows. I am doing the following xquery, but the db is returning an empty rowset when I know there sould be 3.
    <WebPage>
    for $i in sqlquery("select * from project")/row
    return
    <project>
    {$i/title}
    {$i/image}
    {$i/icon}
    {$i/version}
    {$i/start_date}
    {$i/home}
    {$i/address}
    </project>
    </WebPage>
    There is no problem with the db connection, as it is one I have used before for doing plain sql searches remotely. Does any one know why this would be happening?
    Regards,
    Simon

    Hi Bart,
    try this.....
    To execute such XQuery queries that use the sqlquery function, you would need to initialize the Java connection information in the XQueryContext before executing the query. For example, your Java program would be something like this,
    // get the connection (for example, using the thick JDBC Driver)
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn =
    DriverManager.getConnection("jdbc:oracle:@","scott","tiger");
    // create a context using that connection..
    XQueryContext ctx = new XQueryContext(conn);
    // create a string from the file
    Reader strm = new StringReader(
    "FOR $i IN sqlquery(\"select * from scott.emp\")/ROW "+
    " RETURN <EMP empno=\"{$i/EMPNO}\">$i/ENAME,$i/SALARY</EMP>");
    // prepare the query
    PreparedXQuery xq = ctx.prepareXQuery(strm);
    // get a resultset
    XQueryResultSet rset = xq.executeQuery();
    while (rset.next())
    XMLNode node = rset.getNode(); // get result nodes
    System.out.println(" NODE "+ node.getNodeName());
    node.print(System.out);
    source:==>http://otn.oracle.com/sample_code/tech/xml/xmldb/jxqi.html
    Good luck
    Achim

  • Tabular form default column value bug when using named notation?

    Hi,
    I am using Application Express 4.0.2.00.07
    After exporting and importing an application, the default value of a tabular form column results in an "ORA-00907: missing right parenthesis" error.
    My original application uses named notation while calling my function (no problem here):
    Report Attributes > Column Attributes > Tabular Form Attributes > Default type = PL/SQL Expression or Function > Default = pkg_customers.some_funtion (*in_param =>* :P15_FK_CUSTOMER_ID).
    When I change this in my imported application to ... > Default = pkg_customers.some_funtion (:P15_FK_CUSTOMER_ID) everything works fine again.
    Is this a known bug or is there something I do not see?
    Regards,
    Frederik Van de Velde.

    yes it is
    p_column_default=> 'calpa_pkg_klanten.fun_sm_betreft_default (in_pk_klant_id => :P9_FK_KLANT_ID)',
    p_column_default_type=> 'FUNCTION',
    by default it is set exactly the same, but when running the page the tabular form does not render because of the usage of " =>".
    thx

  • Invalid values displayed when using 0YEA_QUA_MON_DAY

    Hi all,
    I'm using the presentation hierarchy 0YEA_QUA_MON_DAY with a characteristic 0CRM_EXPEND (expected completion date).
    When I view my report in BEx Analyzer, the output is correct. I get the hierarchial display for the characteristic. However, if I view the report on the web using the BI portal, # is displayed instead of the values for year, qtr, etc.
    Does anyone have a solution for this? Thanks.
    Best Regards,
    Saurabh

    Did any one have a solution for this?
    I also have thesame issue.

Maybe you are looking for