Method 'SetFieldValue'  Problem

Any ideas how to solve the below?
Failed to write event to Siebel database     Method 'SetFieldValue' of business component 'Opportunity Copy No Sales Process' (integration component 'Opportunity') returned the following error:
"An invalid assignment error has occurred.
Please try again or ask your systems administrator to check your application configuration if the problem persists.(SBL-DAT-00421)"(SBL-EAI-04376

SBL-DAT-00421 occurs when the values passed in to the web service call do not match the validation restrictions on the fields.
A good way to debug this is to:
1. Write down the field values that the web service is trying to insert or update
2. Go to the related new or edit screen in the application. In this case, the opportunity new or edit screen.
and
3. Try to apply the same field value changes.
You should get more information back about which field had the problem. Date fields are usually the cause because the format is complex.
Once you know the field, you can look at web service QueryPage results to see the appropriate format.
If the new or edit screen form does not provide enough information to identify which field is the problem, you can try again with fewer fields until you find the field that is causing the issue.

Similar Messages

  • I have a basic applet method timing problem with Firefox (and Chrome), not IE nor Opera. Works if JavaScript issues windows.alert() prior, fails otherwise.

    I have an applet method, which is invoked from a JavaScript function, that is triggered by the window.onload event. The problem seems to center in the loading of the applet and its methods.
    If I step through the 3 applet acceptance prompts (I chose to use a down-level Java), the applet method is never invoked, nor is an exception raised. How this happens is beyond my understanding.
    As additional information, the Init(), start(), and "desired" Java methods all use the synchronized keyword. This is an attempt to minimize the exposure to a multi-thread environment.
    If I issue a message from JavaScript (via window.alert()) PRIOR to invoking the method, I can get the desired results in special circumstances:
    1) When the alert is presented, Firefox also prompts, SIMULTANEOUSLY, to block/continue the applet (the first of the 3 applet acceptance prompts). I can accept that these are separate threads.
    2a) If I walk through the 3 applet acceptance prompts FIRST, and then hit the OK button on the alert message SECOND, I get the desired results, my applet method executes, and all is well (other than the fact that I would prefer not to have the alert in place at all).
    2b) If I hit the OK button on the alert message FIRST, and then walk through the 3 applet acceptance prompts SECOND, I get the same results as when the page loads WITHOUT the alert, which is the applet method is never invoked, nor is an exception raised. Weird, huh?
    The above problem only occurs when the browser and the applet's URL are loaded for the first time.
    Subsequent invocations (after the page & applet has been loaded initially) do not have the failing symptoms.
    It is my understanding that IE and Firefox (and Chrome and Opera, for that matter) each use the same implementation of JavaScript provided by Microsoft. Please correct me if this information is inaccurate.
    The failing page and it's applet are proprietary; I cannot provide the Internet URL, nor the Java or JavaScript source, to aid in your analysis.

    I can speak to the source code, but have no access to it.
    The current process/thread that invokes an applet method must check to see that the applet is not currently being loaded by another process/thread. If it is being loaded, the current process/thread should block until the load is complete, THEN attempt to invoke the applet method.
    Please forward my concern to a knowledgable developer. The nature of the problem, once identified, can be addressed in a very straightforward manner.

  • HDV 1080i to Standard def DVD "Ken Stone" method- interlace problems, help!

    Greetings,
    I am on a tight deadline to produce a standard def DVD for an art exhibit, from HDV material that was imported and edited natively in FCP 7 as 1080i. I used the "Ken Stone" method of exporting the 10 minute sequence using QT conversion, as a pro res 422 HQ quicktime movie, then I took it into compressor 3.5 to make a Mpeg-2 file for a standard def DVD.
    The problem is that the video that came out of compressor, when simulated in DVD SP 3.5 (and also when burned on DVD) has weird "interlaced" looking edges whenever there is movement in the video. It is a figure against a black background, and whenever the figure moves back and forth against the black background, the edges of the figure show interlaced-looking lines. The rest of the video where there is slow movement looks fine. BTW, motion was set to "Best" in compressor.
    What am I doing wrong? was there something not mentioned in Stone's walk-thru, having to do with de-interlacing, or something I have missed? Is there a better way to produce a standard def DVD from HDV 1080i material?
    Thank you so much for your help. I am down to the wire on this one...
    AKJ

    exporting the 10 minute sequence using QT conversion, as a pro res 422 HQ quicktime movie...
    You are adding an unneeded compression cycle for a start. Export with QuickTime Conversion always recompresses your footage, even when you use the same settings as your Timeline.
    Export to QuickTime with Current Settings, Self Contained will give you a Master file that is identical to what you edited.
    weird "interlaced" looking edges whenever there is movement in the video...
    If your source material is interlaced it will look odd on a computer monitor. It will display correctly on a TV set.
    having to do with de-interlacing, or something I have missed?
    Deinterlacing will throw away half of the vertical resolution. Bye bye HD. No good can come of that, right?
    What is your intended delivery format? Does the method that you are currently using to view the material compare with how the end product will be seen?

  • XSLT Grouping & Muenchian Method STRANGE PROBLEM

    Hi Everyone!
    I'm having a problem using a XMLTRANSFORM for grouping Muenchian Method.
    There are three oracle databases:
    DB1: Win2k3, Oracle 9.2.0.7 Standard,
    DB2: Win2k3, Oracle 9.2.0.7 Enterprise,
    DB3: WinXP, Oracle 10.2.0.1 XE.
    DB1 and DB2 are installed on different computers.
    And there are two scripts:
    S1: select
      xmltransform(xmltype(
      '<PROJECTS>
      <PROROW>
        <id>2</id><name>Customer 1</name><project_name>Project 2</project_name>
      </PROROW>
      <PROROW>
        <id>1</id><name>Customer 1</name><project_name>Project 1</project_name>
      </PROROW>
      <PROROW>
        <id>3</id><name>Customer 2</name><project_name>Project 1</project_name>
      </PROROW>
    </PROJECTS>'),
    xmltype(
    '<?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:output method="xml" encoding="UTF-8" version="1.0" indent="yes"></xsl:output>
    <xsl:key name="rows" match="PROROW" use="name" />
    <xsl:template match="PROJECTS">
    <xsl:element name="ROOT">
      <xsl:apply-templates
        select="PROROW[generate-id(.) = generate-id(key(''rows'', name)[1])]">
            <!--<xsl:value-of select="key(''rows'', name)">-->
      </xsl:apply-templates>
    </xsl:element>  
    </xsl:template>
    <xsl:template match="PROROW">
      <b><xsl:value-of select="name" /></b>
      <ul>
        <xsl:for-each select="key(''rows'', name)">
          <li>
            <xsl:element name="COUNT_KEYS">
              <xsl:value-of select="count(key(''rows'', name))" />
            </xsl:element>
            <a href="projects_results.xml?project={id}">
              <xsl:value-of select="project_name" />
            </a>
          </li>
        </xsl:for-each>
      </ul>
    </xsl:template>
    </xsl:stylesheet>')) x
    from dual;S2: select
      xmltransform(xmltype(
      '<REPORT xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="report.xsd">
      <CONCEPT ID="0" TYPE="0">
        <ROW>
          <COL NAME="REG_ID">0</COL>
          <COL NAME="UNIT_ID">0</COL>
          <COL NAME="UNIT">RAPORT ZBIORCZY</COL>
          <COL NAME="LP_OPIS">0</COL>
        </ROW>
      </CONCEPT>
      <CONCEPT ID="0" TYPE="1">
        <ROW>
          <COL NAME="REG_ID">0</COL>
          <COL NAME="UNIT_ID">0</COL>
          <COL NAME="UNIT">RAPORT ZBIORCZY</COL>
          <COL NAME="LP_OPIS">9.93a</COL>
        </ROW>
      </CONCEPT>
      <CONCEPT ID="0" TYPE="1">
        <ROW>
          <COL NAME="REG_ID">0</COL>
          <COL NAME="UNIT_ID">0</COL>
          <COL NAME="UNIT">RAPORT ZBIORCZY</COL>
          <COL NAME="LP_OPIS">9.94</COL>
        </ROW>
      </CONCEPT>
      <CONCEPT ID="0" TYPE="1">
        <ROW>
          <COL NAME="REG_ID">0</COL>
          <COL NAME="UNIT_ID">0</COL>
          <COL NAME="UNIT">RAPORT ZBIORCZY</COL>
          <COL NAME="LP_OPIS">10.44</COL>
        </ROW>
      </CONCEPT>
      <CONCEPT ID="0" TYPE="1">
        <ROW>
          <COL NAME="REG_ID">0</COL>
          <COL NAME="UNIT_ID">0</COL>
          <COL NAME="UNIT">RAPORT ZBIORCZY</COL>
          <COL NAME="LP_OPIS">10.93</COL>
        </ROW>
      </CONCEPT>
      <CONCEPT ID="0" TYPE="1">
        <ROW>
          <COL NAME="REG_ID">0</COL>
          <COL NAME="UNIT_ID">0</COL>
          <COL NAME="UNIT">RAPORT ZBIORCZY</COL>
          <COL NAME="LP_OPIS">10.94</COL>
        </ROW>
      </CONCEPT>
    </REPORT>'),
    xmltype(
    '<?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" encoding="UTF-8" version="1.0" indent="yes"></xsl:output>
    <xsl:key name="rows" match="CONCEPT" use="concat(@ID, @TYPE)" />
    <xsl:template match="REPORT">
      <xsl:copy>
          <xsl:apply-templates select="@*"/> 
          <xsl:apply-templates
            select="CONCEPT[generate-id(.) = generate-id(key(''rows'', concat(@ID, @TYPE))[1])]"/>
      </xsl:copy>
    </xsl:template>
    <xsl:template match="CONCEPT">
      <xsl:copy>
          <xsl:apply-templates select="@*"/>
          <!--<xsl:value-of select="count(key(''rows'', concat(@ID, @TYPE)))"/>|-->
          <xsl:for-each select="key(''rows'', concat(@ID, @TYPE))">
                        <xsl:copy-of select="ROW"/>
          </xsl:for-each>
      </xsl:copy>    
    </xsl:template>
    <xsl:template match="@*">
      <xsl:copy-of select="."/>
    </xsl:template>
    </xsl:stylesheet>')) x
    from dual;S1 comes from http://sourceware.org/ml/xsl-list/2000-07/msg00458.html.
    S2 is mine.
    The results of executing these scripts are:
    S1 on DB1 & DB2:
    <ROOT>
      <b>Customer 1</b>
      <ul>
        <li>
          <COUNT_KEYS>1</COUNT_KEYS>
          <a href="projects_results.xml?project=2">Project 2</a>
        </li>
      </ul>
      <b>Customer 2</b>
      <ul>
        <li>
          <COUNT_KEYS>1</COUNT_KEYS>
          <a href="projects_results.xml?project=3">Project 1</a>
        </li>
      </ul>
    </ROOT>S2 on DB1 & DB2 is variable. For example:
    <REPORT xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="report.xsd">
      <CONCEPT ID="0" TYPE="0">
        <ROW>
          <COL NAME="REG_ID">0</COL>
          <COL NAME="UNIT_ID">0</COL>
          <COL NAME="UNIT">RAPORT ZBIORCZY</COL>
          <COL NAME="LP_OPIS">0</COL>
        </ROW>
      </CONCEPT>
      <CONCEPT ID="0" TYPE="1">
        <ROW>
          <COL NAME="REG_ID">0</COL>
          <COL NAME="UNIT_ID">0</COL>
          <COL NAME="UNIT">RAPORT ZBIORCZY</COL>
          <COL NAME="LP_OPIS">9.93</COL>
        </ROW>
        <ROW>
          <COL NAME="REG_ID">0</COL>
          <COL NAME="UNIT_ID">0</COL>
          <COL NAME="UNIT">RAPORT ZBIORCZY</COL>
          <COL NAME="LP_OPIS">9.94</COL>
        </ROW>
      </CONCEPT>
    </REPORT>I obtained results with 2 (first two) and 5 (correct result!) <ROW> elements for <CONCEPT ID=”0” TYPE=”1”>.
    When I run S3 cyclic it returns (randomly): 2, 2, 2, 2, 5, 5, 2, 2, 2, 2, 2, 2, 2, 5, 5, 5, 5, 2, ,2, 2, 2,5, 5, 5, 5, 5, 2, 2, 2 ROWs for 2nd CONCEPT. Sounds impossible? 1st CONCEPT is always with 1 <ROW>.
    I noticed that, when I remove xsi:noNamespaceSchemaLocation="report.xsd" attribute or set it to the value of not registered schema, S2 always return one (the first from the top) ROW for both CONCEPTs.
    I don't think it is a problem of my report.xsd schema, but the content of this schema is:
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:oraxdb="http://xmlns.oracle.com/xdb" oraxdb:flags="291" oraxdb:schemaURL="report.xsd" oraxdb:schemaOwner="SYS" oraxdb:numProps="7">
      <xs:element name="REPORT" type="reportType" oraxdb:propNumber="2447" oraxdb:global="true" oraxdb:SQLName="REPORT" oraxdb:SQLType="reportType229_T" oraxdb:SQLSchema="SYS" oraxdb:memType="258"/>
      <xs:complexType name="reportType" oraxdb:SQLType="reportType229_T" oraxdb:SQLSchema="SYS">
        <xs:sequence>
          <xs:element maxOccurs="unbounded" name="CONCEPT" oraxdb:propNumber="2453" oraxdb:global="false" oraxdb:SQLName="CONCEPT" oraxdb:SQLType="CONCEPT230_T" oraxdb:SQLSchema="SYS" oraxdb:memType="258" oraxdb:SQLInline="true" oraxdb:MemInline="false" oraxdb:JavaInline="false" oraxdb:SQLCollType="CONCEPT236_COLL" oraxdb:SQLCollSchema="SYS">
            <xs:complexType oraxdb:SQLType="CONCEPT230_T" oraxdb:SQLSchema="SYS">
              <xs:sequence>
                <xs:element maxOccurs="unbounded" name="ROW" oraxdb:propNumber="2452" oraxdb:global="false" oraxdb:SQLName="ROW234" oraxdb:SQLType="ROW231_T" oraxdb:SQLSchema="SYS" oraxdb:memType="258" oraxdb:SQLInline="true" oraxdb:MemInline="false" oraxdb:JavaInline="false" oraxdb:SQLCollType="ROW234235_COLL" oraxdb:SQLCollSchema="SYS">
                  <xs:complexType oraxdb:SQLType="ROW231_T" oraxdb:SQLSchema="SYS">
                    <xs:sequence>
                      <xs:element maxOccurs="unbounded" name="COL" oraxdb:propNumber="2451" oraxdb:global="false" oraxdb:SQLName="COL" oraxdb:SQLType="COL232_T" oraxdb:SQLSchema="SYS" oraxdb:memType="258" oraxdb:SQLInline="true" oraxdb:MemInline="false" oraxdb:JavaInline="false" oraxdb:SQLCollType="COL233_COLL" oraxdb:SQLCollSchema="SYS">
                        <xs:complexType oraxdb:SQLType="COL232_T" oraxdb:SQLSchema="SYS">
                          <xs:simpleContent>
                            <xs:extension base="xs:string">
                              <xs:attribute name="NAME" type="xs:string" use="required" oraxdb:propNumber="2450" oraxdb:global="false" oraxdb:SQLName="NAME" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1"/>
                            </xs:extension>
                          </xs:simpleContent>
                        </xs:complexType>
                      </xs:element>
                    </xs:sequence>
                  </xs:complexType>
                </xs:element>
              </xs:sequence>
              <xs:attribute name="ID" type="xs:short" use="required" oraxdb:propNumber="2448" oraxdb:global="false" oraxdb:SQLName="ID" oraxdb:SQLType="NUMBER" oraxdb:memType="3" oraxdb:memByteLength="2"/>
              <xs:attribute name="TYPE" type="xs:short" use="required" oraxdb:propNumber="2449" oraxdb:global="false" oraxdb:SQLName="TYPE" oraxdb:SQLType="NUMBER" oraxdb:memType="3" oraxdb:memByteLength="2"/>
            </xs:complexType>
          </xs:element>
        </xs:sequence>
      </xs:complexType>
    </xs:schema>S1 on DB3:
    <ROOT>
      <b>Customer 1</b>
      <ul>
        <li>
          <COUNT_KEYS>2</COUNT_KEYS>
          <a href="projects_results.xml?project=2">Project 2</a>
        </li>
        <li>
          <COUNT_KEYS>2</COUNT_KEYS>
          <a href="projects_results.xml?project=1">Project 1</a>
        </li>
      </ul>
      <b>Customer 2</b>
      <ul>
        <li>
          <COUNT_KEYS>1</COUNT_KEYS>
          <a href="projects_results.xml?project=3">Project 1</a>
        </li>
      </ul>
    </ROOT>S2 on DB3
    <REPORT xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="report.xsd">
      <CONCEPT ID="0" TYPE="0">
        <ROW>
          <COL NAME="REG_ID">0</COL>
          <COL NAME="UNIT_ID">0</COL>
          <COL NAME="UNIT">RAPORT ZBIORCZY</COL>
          <COL NAME="LP_OPIS">0</COL>
        </ROW>
      </CONCEPT>
      <CONCEPT ID="0" TYPE="1">
        <ROW>
          <COL NAME="REG_ID">0</COL>
          <COL NAME="UNIT_ID">0</COL>
          <COL NAME="UNIT">RAPORT ZBIORCZY</COL>
          <COL NAME="LP_OPIS">9.93a</COL>
        </ROW>
        <ROW>
          <COL NAME="REG_ID">0</COL>
          <COL NAME="UNIT_ID">0</COL>
          <COL NAME="UNIT">RAPORT ZBIORCZY</COL>
          <COL NAME="LP_OPIS">9.94</COL>
        </ROW>
        <ROW>
          <COL NAME="REG_ID">0</COL>
          <COL NAME="UNIT_ID">0</COL>
          <COL NAME="UNIT">RAPORT ZBIORCZY</COL>
          <COL NAME="LP_OPIS">10.44</COL>
        </ROW>
        <ROW>
          <COL NAME="REG_ID">0</COL>
          <COL NAME="UNIT_ID">0</COL>
          <COL NAME="UNIT">RAPORT ZBIORCZY</COL>
          <COL NAME="LP_OPIS">10.93</COL>
        </ROW>
        <ROW>
          <COL NAME="REG_ID">0</COL>
          <COL NAME="UNIT_ID">0</COL>
          <COL NAME="UNIT">RAPORT ZBIORCZY</COL>
          <COL NAME="LP_OPIS">10.94</COL>
        </ROW>
      </CONCEPT>
    </REPORT>DB3 always generates good results for both scripts. <CONCEPT ID=”0” TYPE=”1”> always consists of 5 ROWs regardless of the attribute xsi:noNamespaceSchemaLocation value (schema registered or not). It is my computer at home. I decided to install oracle there because of the problems with DB1 and DB2. Unfortunately these are my DBs at work. So I need to run XMLTRANSFORM there.
    IMHO problems of S2 derive from result of S1 - function count(key(''rows'', name))
    always returns 1 regardless of number of rows. But this is only my supposition.
    I don’t know what is going on. The results of S3 on DB1/2 make me sick.
    I tried client 9.2.0.8, instant client 11.1.0.6.0 and no client – a job (transformation was inserted to a table) and this problem still exists.
    Any suggestions?
    Thanks in advice…
    Tomek.

    Hi,
    maybe you are right (I think similar), but I can't find any information about this bug on the Internet. So this is strange, if it is really a bug. I hope somebody used (or tried to use) this Muenchian Method in oracle 9.2.x, and can tell does it works or not.
    In [Oracle9i XML Developers Kits|www.oracle.com/technology/tech/xml/xdk_sample/9ir2_xdkfaq.html] there is written:
    "You can do the grouping in your XSLT stylesheet Steve Muench's Book "Building Oracle XML Applications" book dedicates a section in Chapter 9 to techniques for doing this kind of grouping in XSLT to present one- or multi-level break reports...
    The technique that I present in steve's book was coined the (blush...) "Muenchian Method" for doing grouping in XSLT."
    Thanks,
    Tomek.
    Edited by: tdomanek on 2009-03-15 17:14
    Edited by: tdomanek on 2009-03-15 23:48

  • Method repeat problem

    Hi guys.
    have some prob with the following, appreciate the help.
    the Main Method is,
    asking the user to input a specific number, if the specific number does not match it repeats the same message input.
    i use the if statement to do this(not to sure whether it is correct,
    i want to use the while loop, but does not know how to put it)
    anyway it did the job BUT when i try to return the value from my method(the method is "square root the input number").
    it will square root the specific input number but does not pops up the input message when the input number is not the specific number.
    i think the problem lies in the if statement on where i put it or i need to use the while loop.
    below is the program.
    statements in bold is the pop up screen
    MAIN METHOD
    Ask user to input the number;
    input=Double.parseDouble(inputStr);
    IF \\ the number match
    double numbered = number(input);
    show values of square root of input  is numbered
    ELSE IF \\ the number is not match
    Ask user to input the number; \\ask the user to input in the specific number again
    METHOD
    public static Double number(double x)
    double squareroot = Math.sqrt(x);
    return squareroot;

    Hi,
    I may be opening up a can of worms here but in the few years I have been learning Java I have never used a do-while loop. Perhaps that is a short-coming of my own but your use of it looks real messy.
    I've taken the code I wrote earlier and have included the message dialogs to show you how to use the YES_OPTION. It works well and is less complicated than your attempt. There is probably a neater solution but hopefully you can take something from this.
    import javax.swing.*;
    public class Checker{
         private int theAnswer;
         public Checker(){
              theAnswer = 1 + (int)(Math.random() * 100); //generate a random number between 1 and 100
                 getInput();
         //Get input as per your earlier code
         private void getInput(){
                 //get the input from the user here;
                 String inputStr;
                int input; 
                inputStr = JOptionPane.showInputDialog (null, "Enter a number between 1 and 100");
                input = Integer.parseInt(inputStr);
                validateInput(input); //now check the input
         private void validateInput(int d){
              //invalid input. Tell the user they have made an error and call getInput() again
                 if(d < 1 || d > 100){
                      JOptionPane.showMessageDialog(null, "Number is not between 1 and 100!", "Input Error!", JOptionPane.ERROR_MESSAGE);
                      getInput();
                 //entry is ok
                 else{
                      //check if the input is the answer
                      if(d == theAnswer)
                      //correct answer given
                      JOptionPane.showMessageDialog(null, "Correct!", "Good guess!", JOptionPane.INFORMATION_MESSAGE);
                      //wrong answer given
                      else{
                           //let user choose whether they want to guess again
                           if(JOptionPane.showConfirmDialog(null,
                             "Wrong answer. Would you like another go?",
                             "Guessing Game",
                             JOptionPane.YES_NO_OPTION,
                             JOptionPane.QUESTION_MESSAGE,
                             null) == JOptionPane.YES_OPTION)
                           getInput(); //call to getInput() again as user has selected yes
                      //if the program has got here either the user has correctly guessed
                      //or the user chose not to guess again.
                      System.exit(0);
         public static void main(String [] args){
              Checker c = new Checker();
    }Regards,
    Chris
    Message was edited by:
    lordflasheart

  • CFC method memory problem

    Hi all,
    I use CFCs a lot, so when I was creating a tool to migrate
    some database tables, I built the actual data transfer function as
    a method of a CFC. The basic code just reads a block of 1000
    records from the old db, does some minor manipulation of the data,
    and then inserts the records into the new db a record at a time
    inside a cfloop. Lather, rinse, repeat, until all of the 500K+
    records have been transferred.
    I was surprised to find that this leads to Java out of memory
    errors around the 200Kth record (given my current JVM memory
    settings). Having run across a similar problem when sending
    broadcast emails from a CFC method, I simply moved the code out of
    the CFC method and into the calling cfm page, and it ran through
    all of the records without any problems.
    The only explanation I can think of for this behavior is that
    when the code is inside a CFC method, the query object used to read
    the blocks of 1000 records keeps getting reallocated rather than
    reused, so when it gets to the point of trying to store 200 blocks
    of 1000 records in memory, it runs out of room. If that's the case,
    it would seem to be a significant bug that needs to be fixed.
    Does anyone know if that's what is really going on?
    Thanks,
    Russ

    > Actually, there is a good reason to put the code in a
    cfc: there are almost 100
    > tables to migrate, so the code gets rather long and
    cumbersome to wade through
    > if it isn't broken up.
    Fair enough. Youd didn't really tell us that part before,
    though.
    So you have a calling template which calls an equivalent to
    this function
    for 100-odd tables? Yikes. I'll reiterate my question whether
    this can't
    possibly be done DB to DB or via a bulk insert.
    > thing, but ultimately my question really has nothing to
    do with this particular
    > tool. I would really just like to understand why the out
    of memory issue exists
    > when the code is in a CFC method versus when it is in a
    CFM. This issue has
    Well it kinda is about this particular tool, because it's
    this code that's
    causing the problems (or something about the calling code, or
    something
    like that). Obviously there's some idiosyncasy of it which
    gives you
    problems when it's in a CFC method as opposed to mainline
    code, but I would
    not immediately say it's a generic problem with CFCs vs CFMs.
    Just yet.
    Is this the first table that's being migrated? Or is it
    buried somewhere
    within the other 100-odd? Is it always this one, or can it
    happen on any
    of them?
    Can you inspect the memory usage between each table's
    function, and see if
    there's anything unexpected going on (other than it running
    out of memory,
    which is - in itself - unexpected!).
    Do you have 100-odd methods (one for each table) in the CFC,
    or lots of
    individual CFCs?
    I guess you could call a GC in between each table's
    processing, and see if
    you can keep check on memory usage that way. Or maybe check
    memory levels
    within that loop you've got, and if it starts flaring up, doa
    GC then.
    It's not advised to call GCs "by hand", but I have found it's
    helped some
    times.
    Have you sued CF's server monitor or something like
    FusionReactor to check
    if anything unexpected is consuming RAM?
    I think you should try adding <cfqueryparam> tags to
    your queries: CF might
    be cachinng some info about them, and that could be leaking
    memory or
    something. Maybe try <cfobjectcache action = "clear">
    between each method
    callor something.
    I wonder if there's something about the fact you're replacing
    oldInfo with
    a new query within a loop that has a condition based on
    oldInfo's record
    count. Possibly this is forcing CF to maintain the previous
    oldInfo
    queries in the background, so you're not actually overwriting
    the previous
    one with the next one when you requery, you're actually just
    getting a new
    pointer assigned. Do me a favour, and do this:
    <cfset iRecCount = OldInfo.RecordCount>
    <cfloop condition="iRecCount GT 0">
    <!--- Load the old info --->
    <cfquery name="OldInfo" datasource="dsOld"
    maxrows="#GetRecsCount#">
    </cfquery>
    <cfset iRecCount = OldInfo.RecordCount>
    </cfloop>
    This is a slightly far-fetched notion, but it doesn't hurt to
    try: it's a
    pretty easy change.
    > come up enough times now that I'd like to determine if
    there is a workaround.
    > Due to the deadline I'm on, I haven't tried simply
    assigning the query object
    > to an empty string at the end of each iteration yet, but
    I will try to do so
    > soon so I can report on the result.
    It might pay to apply a test rig to this notion first:
    0) on a dev machine without any other activity
    1) grab the heap usage
    2) load a big query in
    3) grab the heap usage (should losely reflect the fact you've
    just stuck a
    chunk of data in RAM)
    4) set the query variable to be an empty string
    5) grab the heap usage. Check to see if the memory is
    reclaimed straight
    away.
    You might need to do a GC between 4+5 for it to take effect.
    I speculate
    that the RAM won't get freed up straight away, and you might
    be consuing it
    faster than the JVM can clear it.
    Adam

  • Error when executing a work item (cannot execute a method, biding problem?)

    Hello,
    I created a specific workflow, triggered by an event, from a class I also created.
    From this event, I get some data about a Document (CV01/02/03N...).
    The first step is a task which refer to a method (from the same class above).
    The binding Task <=> Method is the data about the Document and the Workflow ID.
    After I start the workflow, I execute the work item in SWI1, with a breakpoint in the method.
    I can't go in debug, and the work item is in error (in Workflow log) :
    - "Work item 000000590208: Object ZCL_SA3_WF_GED_RECL_FOURN method UPDATE_FID cannot be executed"
    - "EXECUTE_METHOD_OBJECT_SYNC : Dereferencing of the NULL reference".
    Note: The task is not in background processing, in the aim of debugging the source code.
    I did SWU_OBUF and quit/relog SAP.
    Do you have any ideas to solve this problem ?
    I think it's a biding problem, because I can' t even go in debug mode...
    Thanks.
    Regards
    (sap version: ECC 6.0)

    Hi
    Looking at the error message I feel like there is something wrong in the task object and object method. You are using a class in the task make sure that class has the IF_WORKFLOW. Mak sure the task is enabled with synchronous task method check box.
    Regards
    Pavan

  • Method access problem

    I am creating a jsp web page to display the items to add to a shopping cart
    I am getting the following error message error message when i try
    to run may jsp display page i dont know what I have to do to get this working
    I am running Tomcat 5, Any help would be appreciated.
    The method addProduct(Product) in the type ShoppingCart is not applicable for the arguments (Product)
    Jsp page code snippet
    <jsp:useBean id="sCart" type="ShoppingCart" scope="session"/>
    <%@ page import="be.Product" %>
    <%@ page import="be.ShoppingCart" %>
    <% String featureTitle = request.getParameter("FeatureTitle");
       if(featureTitle!=null)
              String featureID = request.getParameter("FeatureID");
              String date = request.getParameter("Date");          
              String featureDescription = request.getParameter("FeatureDescription");
              String author = request.getParameter("Author");
              double price = Double.parseDouble(request.getParameter("Price"));
              Product newProduct = new Product(featureID, date, featureTitle, featureDescription, author, price);
              sCart.addProduct(newProduct);
    %>shopping cart class code snippet
    Vector products = new Vector();
         public void addProduct(Product i)
              boolean productFound = false;
              Enumeration productEnum = getProducts();
              while(productEnum.hasMoreElements())
                   Product product = (Product)productEnum.nextElement();
                   if(product.getId().equals(i.featureID))
                        productFound = true;
                        product.quantity += 1;
                        break;
              if (!productFound)
                   products.addElement(i);
         }product class code snippet
    public class Product
         String featureID, featureTitle, featureDescription, author, date;
         int quantity = 1;
         double price, total;
         public Product(){}
         public Product(String newid, String newdate, String newtitle, String newdescription, String newauthor, double newprice)
              this.featureID = newid;
              this.date = newdate;
              this.featureTitle = newtitle;
              this.featureDescription = newdescription;
              this.author = newauthor;
              this.price = newprice;
         }

    Hi,
    Well there are several notes on the service marketplace addressing problems with access method "G" like note 821519, 841175, 868913 and 901244.
    However regardless of the problem it is always recommended to use the newest sap kernel (Backend), be on the highest support package level (Backend), and off curse on newest patch level of the SAP GUI (Frontend).
    So try check the notes, and the notes related to them, check the kernel level of your backend, and the patchlevel of you GUI.
    Regards
    Rolf

  • Method return problem

    Hi, please help me to see the problem I facing for my assignment.
    I need to do a few of non-duplicate random number and store them into an array. Then assign a KEY and search the array to get the index number of the array. I'm doing a linear search in a different method(not main).
    Here is the algorithm for the linear search and I need to do exactly like it.
    ALGORITHM SearchSorted(A[0..n &#8722; 1], K)
    // Searches for a given value K in a given array A of n numbers which
    // is sorted into nondecreasing order. The index of the first item in A that
    // matches K is returned, or &#8722;1 if there are no such items.
    i �� 0
    while i < n do
    if K < A[i]
    return &#8722;1
    else
    if K = A[i]
    return i
    else
    i �� i + 1
    return &#8722;1
    And here is my coding.
    public static int Linear(int A[], int K) // method called, array and key
         int i = 0;
              while(i<A.length)
              if(K<A) // will stop when array's element is greater than the key and return -1
                   return -1;
              else
                   if(K==A[i]) // will return index number of the array is key found
                        return i;
                   else
                        i = i + 1;
              return -1; // will return -1 if no match of element
         return -1; // method ask for return value, any way to get rid of this?
    The problem I facing is, each time I run it, it will only return one -1 instead of many -1 until the Key is been found.
    If I delete the last "return -1", the program can't run. If I change the last second "return -1" to "System.out.println("-1", the program can run smoothly but it will extra one more -1 at the output and i think it cause by the last return.
    What should I do to make it better? Thank you very much for helping.

    I think you should delete this line:
    return -1; // will return -1 if no match of elementWith this line the cycle will run only once.

  • Javascript onClick EJB method call problem

    Hi,
    I am using JDeveloper to develop a supermarket comparison tool. I have
    a JSP page called index.jsp which consists of a shopping list (shopping
    cart type thing) and an iframe which displays my search.jsp page. The
    search.jsp page is a list of all the items that can be added to the
    shopping list. When a user clicks the add button for the corresponding
    item, the cartBean addItem method is called and the itemID is passed
    through. I have 3 items currently in my product list with individual
    ID's, but when I click the add button on a particular item all 3 of the
    items are added to my shopping list. Can anyone tell me why? and if so how can I resolve this problem?
    Search.jsp:
    <%
        //Get the list of items
        ArrayList itemList = null;
        try {
          itemList = items.getItems("Select * from items");          
        catch (Exception ex) {
          System.out.println(ex.getMessage());
        %>
        <table class='resultsTable' cellpadding='10' cellspacing='10'><%
          for (Iterator iter = itemList.iterator(); iter.hasNext();){        
            ItemsEJBBean product = (ItemsEJBBean) iter.next();%>
                <tr>     
              <td><%="<img src='images/items/"+product.getItemImg()+".jpg' width='77' height='45'>"%></td>
              <td><h3><%= product.getItemName()%></h3><%= product.getItemDesc()%></td>
              <td><a href="#"><img src="images/add.gif" width="47" height="19" border="0" name="addButton<%=product.getItemId()%>" id="<%=product.getItemId()%>" onMouseOver="MM_swapImage('addButton<%=product.getItemId()%>','','images/add_hover.gif',1)" onMouseOut="MM_swapImgRestore()" onclick="<%/*addNewItem(product.getItemId());*/ list.addItem(new Integer (product.getItemId()));%>window.parent.location.reload(false);"></a></td> 
                </tr><%
          %>
          </table>
          <%CartBean code snippet:
    public void addItem(Integer itemID)
        if(getItemCount() < max)
          contents.add(itemID);
      public void removeItem(Integer itemID) throws ItemException
       boolean result = contents.remove(itemID);
        if(result == false)
          throw new ItemException(itemID + " not in list.");
        else
          contents.remove(itemID);
      public Vector getContents()
        return contents;
      public int getItemCount()
        if (contents == null)
          return 0;
        else
          return contents.size();
       public int getItemCountRemain()
        if (contents == null)
          return max;
        else
          return max - contents.size();
    }Any help would be most helpful. Thank you for your time :)

    but when I click the add button on a particular item all 3 of the
    items are added to my shopping list. Can anyone tell me why? and if so how > > can I resolve this problem?I don't think that clicking the button is what is causing your problem. The following line of code is the problem:
    <td><a href="#"><img src="images/add.gif" width="47" height="19"
    border="0" name="addButton<%=product.getItemId()%>" id="<%=product.getItemId()%>"
    onMouseOver="MM_swapImage('addButton<%=product.getItemId()%>','','images/add_hover.gif',1)"
    onMouseOut="MM_swapImgRestore()"
    onclick="<%/*addNewItem(product.getItemId());*/ list.addItem(new Integer (product.getItemId()));%>
    window.parent.location.reload(false);"></a></td> When you are trying to create the onClick, you are invoking list.addItem. You are doing this for each item. By the way, I don't think the resulting onClick will actually do anything. It will evaluate to the item id and nothing will happen. You need to trigger a request to the server here (e.g. by submitting a form and including the correct item id).

  • Method override problems

    I am new to Java programming and this is likely a trivial problem, but I have been unable to find an answer after a few hours in books and on the Web.
    I have created two subclasses of a class, and overridden a public method (the same method) in each of the subclasses. At runtime however, all calls to this method from an instance of the superclass or either subclass results in the same method; i.e. the override in one subclass is overriding the other subclass and the superclass. Why is the scope of this override so large, and how do I fix this?
    Thanks,
    ~Jon Hurst

    I think there must be something wrong in the way the instance is being created. Anyway try running the sample below and you will see that it works the way it is expected to.
    Hope this helps.
    regards
    manalar
    <code>
    public class SuperClass{
    public void display(){
    System.out.println("display in super class");
    import SuperClass;
    public class AnotherClass{
    public AnotherClass(){
              SuperClass sc = new SuperClass();
              sc.display();
              SubClass1 sb1 = new SubClass1();
              sb1.display();
              SubClass2 sb2 = new SubClass2();
    sb2.display();
    public void display(){
    System.out.println("display in AnotherClass");
    private class SubClass1 extends SuperClass{
    public void display(){
    System.out.println("display in SubClass1");
    private class SubClass2 extends SuperClass{
    public void display(){
    System.out.println("display in SubClass2");
    public static void main(String args[]){
    AnotherClass ac = new AnotherClass();
    ac.display();
    </code>

  • Multithread remote method invocation problem

    Hello all
    I have simple method that is entry point of CORBA remote invocation method
    Inside it I have some kind of Logic I need to perform the this logic is inside method and I like
    That each method that performs logic will be executed in its own thread ( from thread pool )
    this method also returns parameters by reference back to the server .
    here is example:
    public boolean RemothMethod(Object obj1,Object obj2){
         //this is where I allocate thread from thread pool to invoke the logic method
         ThreadPool.getTask(LogicMethod(Object obj1,Object obj2));
    }But the problem I have here that I can get several "RemothMethod" calls
    And the returned Parameters can be from the wrong thread call .
    My question is how can I force the right thread to return the right parameters to the "RemothMethod" call

    I have simple method that is entry point of CORBA
    remote invocation method
    Inside it I have some kind of Logic I need to perform
    the this logic is inside method and I like
    That each method that performs logic will be executed
    in its own thread ( from thread pool )Why? Each remote method is already being executed in its own thread.
    //this is where I allocate thread from thread pool
    l to invoke the logic method
    ThreadPool.getTask(LogicMethod(Object obj1,Object obj2));What are these APIs?
    But the problem I have here that I can get several
    "RemothMethod" calls
    And the returned Parameters can be from the wrong
    thread call . Something wrong with the ThreadPool API you seem to have written.
    My question is how can I force the right thread to
    return the right parameters to the "RemothMethod" callGet rid of it and execute whatever you need to execute directly in the remote method body. There is no advantage to what you're trying to do. You already have a thread per concurrent client executing the remote method; you're trying to stall those threads and create yet more threads from an evidently non-working ThreadPool. This seems quite pointless.

  • Constructor Method parameter problem

    I write my class whit this constructor method.
    public Immobile(int id, String complesso, String tipoed,double prezzo) {
    this.id = id;
    this.complesso = complesso;
    this.tipoed =tipoed;
    this.prezzo = prezzo;
    in my app i want to create an object of Immobile class:
    Immobile imm = new Immobile(1,"nuovo",null,2);
    Always is ok
    if I don't want to pass the String parameter I set it whit null.
    But if I don't want to pass an integer like first parameter, or double like prezzo parameter, How can I do this?
    I don't want to use Overloading of method because if the Immobile class have for example 30 parameter, i don't want to write 30 constructor method.
    There is any possibility?

    I think that my design is ok.Two competent developers and me disagree with you.Sign me in here. Every time I get code with methods with more than 4 parameters I shudder.
    A class with 30 constructor parameters is probably a class with 30 fields and more often than not those class fields can be refactored in smaller classes, like ...
    I think that made a class User whit parameter Name,
    Surname, address, telefon, fax is ok
    and i think that a user probably haven't a fax.
    I think that one way can be to use all the parameter
    like String, that accept null, next, casting orsome
    conversion before insert in a database
    What do you think about this?Surname, address, telephone and fax give you 30
    variables? What are you doing, show a small piece of
    relevant code....
    class ContactInfo class for tel, fax, mail, pager.
    class Adress for City, street, country, etc.
    and so on.
    I don't know if BiggDaddy 's sugestion comes in hand in any problem solution but I know that it can very easily come out of hand, I worked on a system where everything was passed down through 2 parameters, that where in fact 2 arrays of parameters.
    The system was a mess, very hard to understand and to test, and bugs popped around in production time.
    May the code be with you.

  • Urgent: Payment Method Invalid Problem

    Hello,
    I preorder the PS4 Destiny bundle on 8/29/2014. I used my Chase bank card to the payment. Back then the Chase ask me for auhtorizarion and I confirmed.
    This morning the Best Buy send me an email and said "payment method invalid" I try to call the customer service twice but I wait for too long. The Best Buy siad they will cancel the preorder if they do not hear from me.
    I regularly used the Chase card to pay my rent and I do not see any problem. Please someone help me! The PS4 bundle will release TOMORROW!
    {Removed per Forum Guideliens}         

    yshun,
    I realize this may not be the response you were hoping for, but you must contact our post-purchase support team at 1-888-BEST-BUY (1-888-237-8289) for assistance in this situation. We do not have the ability to address payment issues through this forum or e-mail, and in-store reps are not able to modify the payment method attached to BestBuy.com orders.
    Thank you for your understanding.
    Aaron|Social Media Specialist | Best Buy® Corporate
     Private Message

  • ToXML method causes problem

    Has anyone faced problem with the method toXML in IDocument class of ADK.
    Most of the times, it gives some error or the other. Sometimes, it doenst
    print at all, just blank, although, if I use getStringFrom method, it does
    returns me the correct value,
    and sometimes it gives NullPointerException.
    Please let me know if this is some sort of a problem.
    Thanks
    Amit

    Start up in Safe Mode.
    http://support.apple.com/kb/PH11212

Maybe you are looking for

  • Waiting for printer to become available - OSX 10.8.4

    Hi, I foolishly allowed the HP printer updates on my imac running Mountain Lion, 10.8.4.  I learned not to do that on Snow Leopard but suffered a lapse resulting in 'waiting for printer to become available' and when it is reset, it only prints every

  • Temp File in SQL Server change to Oracle

    Dear all, If there is temp file in SQL Server named '#Tablename', HOw can I change it to use in Oracle Database? Now I am doing upgrade to oracle database. If I need to create the temp file name , HOw can I do in oracle database? Thanks for your big

  • User Exits for Purchase order & requistion to control Material description

    Dear Experts, I am creating a Purchasing requisition & Purchase order for certain Material Type. Currently user can change material description at item level without anu check. Now I have different material type like PACKING(ZPAC), Raw material(ZROH)

  • Error Handling on procedure based forms

    Hi all, I have seen examples of error handling on table based forms like the following: begin doInsert; exception when others then --redirect to some error page I have tried the same with a procedure based form by wrapping the doSubmit procedure, but

  • Why is captcha box missing in Add-this app?

    This started today(10/22/12 about 1:00pm est.) I was using the Add-this app and now the captcha box is missing from the send page of Add-this. This happened with-in a 5 min. period. I changed nothing.