Null reference when passing combobox as argument

I've got a function that takes a combobox as a parameter and then populates it.  This works fine on 3 of my comboboxes, but not on any of the others.  For all the others it says that they are null.
Function code is here:
protected function PopulateDateDropdowns():void
                PopulateMonths(cmbTDCTSinceMM);
                PopulateDays(cmbTDCTSinceDD);
                PopulateYears(cmbTDCTSinceYYYY);
                PopulateMonths(cmbEmpStartDateMM);
                PopulateDays(cmbEmpStartDateDD);
                PopulateYears(cmbEmpStartDateYYYY);
                PopulateMonths(cmbJEmpStartDateMM);
                PopulateDays(cmbJEmpStartDateDD);
                PopulateYears(cmbJEmpStartDateYYYY);
            private function PopulateDays(cb:spark.components.ComboBox):void
                var i:int;
                cb.dataProvider = new ArrayList();
                for(i=1; i<32; i++)
                    cb.dataProvider.addItem(i);
            private function PopulateMonths(cb:spark.components.ComboBox):void
                cb.dataProvider = new ArrayList();
                cb.dataProvider.addItem("Jan");
                cb.dataProvider.addItem("Feb");
                cb.dataProvider.addItem("Mar");
                cb.dataProvider.addItem("Apr");
                cb.dataProvider.addItem("May");
                cb.dataProvider.addItem("Jun");
                cb.dataProvider.addItem("Jul");
                cb.dataProvider.addItem("Aug");
                cb.dataProvider.addItem("Sep");
                cb.dataProvider.addItem("Oct");
                cb.dataProvider.addItem("Nov");
                cb.dataProvider.addItem("Dec");
            private function PopulateYears(cb:spark.components.ComboBox):void
                var i:int;
                var maxYear:int = new Date().getFullYear() - 18;
                cb.dataProvider = new ArrayList();
                for(i=1900; i<maxYear; i++)
                    cb.dataProvider.addItem(i);
Declaration of the comboboxes that fail is here:
                <mx:FormItem label="Employment Start Date: " direction="horizontal">
                    <s:ComboBox id="cmbEmpStartDateMM"  width="60"/>
                    <s:ComboBox id="cmbEmpStartDateDD"  width="60"/>
                    <s:ComboBox id="cmbEmpStartDateYYYY" width="100" />
                </mx:FormItem>
The only difference between these and the ones that work, is that these are declared inside a separate form and canvas.  But I thought that all the script was global to the page elements.

Yes do have the creationComplete event for the ComboBoxes...you can make use of it and give it a try....
Thanks,
Bhasker Chari

Similar Messages

  • Null Reference when zooming on hidden detail data.

    This is really weird.  I have users that have reported this error: "An unhandled exception of type 'System.NullReferenceException' occured in CrystalDecision.Windows.Forms.dll".  I got some data from them and started playing around.
    The report is an embedded report on vs2010 using crystal 2010 for vs sp1.  The report is built off a dataset.xsd that I created from the data.   The weird thing is that I can un-hide the details and zoom to the sub report for the section called "Resulting XML" just fine.  But if I hide the details and try to zoom to the sub report, it crashes every time. 
    Any Ideas?
    Edited by: Don Williams on Apr 19, 2011 12:49 PM

    Schema:
    <?xml version="1.0" encoding="utf-8"?>
    <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="root">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="unbounded" name="RecordType">
              <xs:complexType>
                <xs:sequence>
                  <xs:element maxOccurs="unbounded" name="Error">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="ErrorCategory" type="xs:string" />
                        <xs:element name="ErrorNumber" type="xs:unsignedByte" />
                        <xs:element name="ErrMsg" type="xs:string" />
                        <xs:element name="DataCode" type="xs:string" />
                        <xs:element minOccurs="0" name="RecordNumber" type="xs:unsignedByte" />
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
                <xs:attribute name="ID" type="xs:unsignedShort" use="required" />
                <xs:attribute name="ImportID" type="xs:string" use="required" />
                <xs:attribute name="Data" type="xs:string" use="required" />
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:schema>
    Sample Data:
    <?xml version="1.0" encoding="utf-8"?>
    <root>
      <RecordType ID="0" ImportID="" Data="C:\Users\isemane\AppData\Roaming\Microsoft Corporation\Microsoft Dynamics GP\11.00.0221.000\_0.xml">
        <Error>
          <ErrorCategory />
          <ErrorNumber>0</ErrorNumber>
          <ErrMsg></ErrMsg>
          <DataCode></DataCode>
        </Error>
         </RecordType>     
      <RecordType ID="22115" ImportID="ETH PRIMARY PAY" Data="C:\Users\isemane\AppData\Roaming\Microsoft Corporation\Microsoft Dynamics GP\11.00.0221.000\ETH PRIMARY PAY_22115.xml">
        <Error>
          <ErrorCategory>Imported Records</ErrorCategory>
          <ErrorNumber>0</ErrorNumber>
          <ErrMsg>Record number :1 Imported</ErrMsg>
          <DataCode>POPRCTNM: RCT0001559909</DataCode>
          <RecordNumber>1</RecordNumber>
        </Error>
        <Error>
          <ErrorCategory>impPurchaseReceipts</ErrorCategory>
          <ErrorNumber>4</ErrorNumber>
          <ErrMsg>Microsoft.Dynamics.GP.eConnect.eConnectException: Sql procedure error codes returned:</ErrMsg>
          <DataCode>POPRCTNM: RCT0001559910</DataCode>
          <RecordNumber>2</RecordNumber>
        </Error>
        <Error>
          <ErrorCategory>Imported Records</ErrorCategory>
          <ErrorNumber>0</ErrorNumber>
          <ErrMsg>Record number :3 Imported</ErrMsg>
          <DataCode>POPRCTNM: RCT0001559911</DataCode>
          <RecordNumber>3</RecordNumber>
        </Error>
        <Error>
          <ErrorCategory>Imported Records</ErrorCategory>
          <ErrorNumber>0</ErrorNumber>
          <ErrMsg>Record number :4 Imported</ErrMsg>
          <DataCode>POPRCTNM: RCT0001559912</DataCode>
          <RecordNumber>4</RecordNumber>
        </Error>
        <Error>
          <ErrorCategory>impPurchaseReceipts</ErrorCategory>
          <ErrorNumber>4</ErrorNumber>
          <ErrMsg>Microsoft.Dynamics.GP.eConnect.eConnectException: Sql procedure error codes returned:</ErrMsg>
          <DataCode>POPRCTNM: RCT0001559913</DataCode>
          <RecordNumber>5</RecordNumber>
        </Error>
        <Error>
          <ErrorCategory>Imported Records</ErrorCategory>
          <ErrorNumber>0</ErrorNumber>
          <ErrMsg>Record number :6 Imported</ErrMsg>
          <DataCode>POPRCTNM: RCT0001559914</DataCode>
          <RecordNumber>6</RecordNumber>
        </Error>
        <Error>
          <ErrorCategory>Imported Records</ErrorCategory>
          <ErrorNumber>0</ErrorNumber>
          <ErrMsg>Record number :7 Imported</ErrMsg>
          <DataCode>POPRCTNM: RCT0001559915</DataCode>
          <RecordNumber>7</RecordNumber>
        </Error>
        <Error>
          <ErrorCategory>Resulting XML</ErrorCategory>
          <ErrorNumber>0</ErrorNumber>
          <ErrMsg>Start Time for impPurchaseReceipts: 4/18/2011 6:14:47 PM
    End Time: 4/18/2011 6:17:42 PM
    Elapsed Time: 0:3:54.2538
    Records imported:5
    Errors Found:2</ErrMsg>
          <DataCode>Import Results:Purchase Receipts</DataCode>
        </Error>
      </RecordType>
    </root>
    I load the data with the following code:<turns out this little editor doesn't like to cut and paste vb code, so I'll link it.>
    [source code for load of xml|http://pastebin.com/k2At4pBC]

  • References are becoming invalid when passed to an actor using the Actor Framework

    I have having an issue with passing a couple of references to an actor using the actor framework 3.0.7 (LabVIEW 2011 & TestStand 2010 SP1). 
    Some background:
    My application has three main components:
    Main VI -- is not part of any class and Launches UI Actor.
    UI Actor -- Launches the teststand actor
    TestStand Actor -- Initializes and starts teststand.
    The two references showing similar behavior (invalid reference) are the TestStand App Manager control and the "Current VI's Menubar" reference.  The App Mgr control is on the front panel of the UI Actor's Actor Core.vi.  The menubar reference is retrieved in the block diagram of the UI Actor's Actor Core.vi
    Now,
    When I run the Main VI I get an error in the TestStand Actor's Actor Core.vi (Remember Main VI launches UI Actor launches TestStand Actor) because the App Mgr and menubar references are invalid (.  I have checked and verified that in this scenario the references are valid in the UI Actor before it launches the teststand actor. 
    If I run the UI Actor's Actor Core.vi stand alone (i.e. run it top level) the App Mgr and menubar references are passed to the teststand actor, no error occurs, and the code functions as expected. 
    Why would these references be invalid by simply starting a different top level VI?  Could it have something to do with when the references are passed vs. when the front panel is loaded into memory?
    I tried putting the App Mgr control on the front panel of the Main VI and passing it to the UI Actor and then to the TestStand Actor.  This works.... 
    Anyone have any experience or knowledge to why this is occurring?

    Generally, references in LV are "owned" by the hierarchy they are first created in, and the hierarchy is determined by the top level VI. Once the hierarchy goes idle or out of memory, the references created by that hierarchy are automatically closed. That's usually what causes something like this - the reference is created in one hierarchy (let's say the main VI hierarchy) and then that hierarchy stops running.
    I don't know the AF well enough to say if that's really the case (I actually thought that it always launches a separate top level dynamic process, which I assumed is where the UI actor's core VI would always be called), but that might help explain it. If not, you might wish to post to the AF group in the communities section.
    Try to take over the world!

  • Problem with null reference

    Hey,
    I have a "Window" class wich extends JFrame and then creates a tabbedPane. In each of the tabs it's necessary to access to another class (Code).
    Each of the tabs follows something like this:
    public class Tab1 extends JPanel {
       private Code code;
       public Tab1 ( Code c ) {
          code = c;
    }When the tabs are created they receive the Code object.
    The Code object declared in the main class and passed into the "Window" class (still a null reference) and then to each of the tabs (null). The instantiation of the Code object is done in one of the tabs. The Other tabs need it to set some values.
    The problem is the tab that instantiates the Code object is doing so, however the other tabs don't get the new instance (it's always null). Although it's always the same reference.
    Any ideas?
    Thanks.

    It looks like setting the Code is something the Window object will
    have to help with.//in Window (assuming Tab is a superclass of Tab1 Tab2
    Tab[] tabArr = {new Tab1(null, this), new Tab2(null, this)};
    void setCode(Code c) {
        for(Tab tab :tabArr) tab.setCode(c);
    //then the Tabs look like
    public class Tab1 extends Tab { // or extends JPanel implements Tab
        private Code code;
        private Window wind
        public Tab1( Code c, Window w ) {
            code = c;
            wind = w;
        void setCode(Code c) {
            code = c;
        void someEventPerformed() {
            Code c = null;
                // figure out what flavour of Code the user wants
            switch ( userOption ) {
                case 0:
                    code = new Code1 ();
                    break;
                case 1:
                    code = new CodeY ();
                    break;
                // and have the Window tell all the Tabs to use it
            wind.setCode(c);
    }

  • Flexunit stage null reference

    I am trying to test some of my AS classes in flexunit.  Some of the methods reference the stage from components that are passed to it. When I set up the flexunit testing application I use the following code:
    core = new FlexUnitCore();
    core.visualDisplayRoot = this;
    core.addListener( new UIListener( uiListener ));
    However, I still get a null reference exception whenever the stage is referenced.  I was wonding if anyone knew what is going on or what I am doing wrong.
    Thanks!

    Okay, a few things.
    If you are using Flex, you don't need to set the visualDisplayRoot. That is for ActionScript only projects.
    Second, display objects in Flash don't have access to the stage until they are on the display list. So, saying
    new Image() won't add that item to the display list.
    I am not sure what Control.initApp() does, but in one of your unit tests, they way you get something on the display list is to use the UIImpersonator:
    UIImpersonator.addChild( someImage );
    After that someImage would have access to the stage. However, bigger problem. Unit tests are about isolation and if you components need to get out to the stage or if Control.initApp() somehow adds the item directly to the display list you are going to continue to have different issues as you won't be able to keep things in isolation to test.
    Hope that clarifies a little bit,
    Mike

  • Script fails when passing values from pl/sql to unix variable

    Script fails when passing values from pl/sql to unix variable
    Dear All,
    I am Automating STATSPACK reporting by modifying the sprepins.sql script.
    Using DBMS_JOB I take the snap of the database and at the end of the day the cron job creates the statspack report and emails it to me.
    I am storing the snapshot ids in the database and when running the report picking up the recent ids(begin snap and end snap).
    From the sprepins.sql script
    variable bid number;
    variable eid number;
    begin
    select begin_snap into :bid from db_snap;
    select end_snap into :eid from db_snap;
    end;
    This fails with the following error:
    DB Name DB Id Instance Inst Num Release Cluster Host
    RDMDEVL 3576140228 RDMDEVL 1 9.2.0.4.0 NO ibm-rdm
    :ela := ;
    ERROR at line 4:
    ORA-06550: line 4, column 17:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null &lt;an identifier&gt;
    &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; avg
    count current exists max min prior sql stddev sum variance
    execute forall merge time timestamp interval date
    &lt;a string literal with character set specification&gt;
    &lt;a number&gt; &lt;a single-quoted SQL string&gt; pipe
    The symbol "null" was substituted for ";" to continue.
    ORA-06550: line 6, column 16:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null &lt;an identifier&gt;
    &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; avg
    count current exists max min prior sql stddev su
    But when I change the select statements below the report runs successfully.
    variable bid number;
    variable eid number;
    begin
    select '46' into :bid from db_snap;
    select '47' into :eid from db_snap;
    end;
    Even changing the select statements to:
    select TO_CHAR(begin_snap) into :bid from db_snap;
    select TO_CHAR(end_snap) into :eid from db_snap;
    Does not help.
    Please Help.
    TIA,
    Nischal

    Hi,
    could it be the begin_ and end_ Colums of your query?
    Seems SQL*PLUS hs parsing problems?
    try to fetch another column from that table
    and see if the error raises again.
    Karl

  • Confused about passing by reference and passing by valule

    Hi,
    I am confuse about passing by reference and passing by value. I though objects are always passed by reference. But I find out that its true for java.sql.PreparedStatement but not for java.lang.String. How come when both are objects?
    Thanks

    Hi,
    I am confuse about passing by reference and passing
    by value. I though objects are always passed by
    reference. But I find out that its true for
    java.sql.PreparedStatement but not for
    java.lang.String. How come when both are objects?
    ThanksPass by value implies that the actual parameter is copied and that copy is used as the formal parameter (that is, the method is operating on a copy of what was passed in)
    Pass by reference means that the actual parameter is the formal parameter (that is, the method is operating on the thing which is passed in).
    In Java, you never, ever deal with objects - only references to objects. And Java always, always makes a copy of the actual parameter and uses that as the formal parameter, so Java is always, always pass by value using the standard definition of the term. However, since manipulating an object's state via any reference that refers to that object produces the same effect, changes to the object's state via the copied reference are visible to the calling code, which is what leads some folk to think of java as passing objects by reference, even though a) java doesn't pass objects at all and b) java doesn't do pass by reference. It passes object references by value.
    I've no idea what you're talking about wrt PreparedStatement, but String is immutable, so you can't change its state at all, so maybe that's what's tripping you up?
    Good Luck
    Lee
    PS: I will venture a guess that this is the 3rd reply. Let's see...
    Ok, second. Close enough.
    Yeah, good on yer mlk, At least I beat Jos.
    Message was edited by:
    tsith

  • Sub Query Error When Passing Dynamic Parameter.

    Dear All, I need help for below query problem.
    I have try below query run no problem when pass a static Parameter into the query but it throw error once i have add in the dynamic parameter:-
    --Sales BatchNum Transaction
    SELECT T0.[ItemCode], T0.[ItemName], T0.[WhsCode], T0.[BatchNum], ISNULL(T4.[AvgPrice],0) AS 'Avg Price', SUM(T0.[Quantity]) AS 'Sales Quantity',
    (SELECT [Quantity] FROM [OIBT] T1 WHERE T1.[ItemCode] = T0.[ItemCode] AND T1.[WhsCode] = T0.[WhsCode] AND T1.[BatchNum]=T0.[BatchNum]) AS 'Stock OnHand'
    FROM [IBT1] T0 INNER JOIN [OITM] T2 ON T0.[ItemCode] = T2.[ItemCode]
                      INNER JOIN [OITB] T3 ON T2.[ItmsGrpCod] = T3.[ItmsGrpCod]
                      INNER JOIN [OITW] T4 ON T0.[ItemCode] = T4.[ItemCode] AND T0.[WhsCode] = T4.[WhsCode]
    WHERE T0.[BaseType] = [%0] AND T0.[DocDate] BETWEEN [%1] AND [%2] AND T3.[ItmsGrpNam] = [%3]
    GROUP BY T0.[ItemCode], T0.[ItemName], T0.[WhsCode], T0.[BatchNum], T4.[AvgPrice]
    --ORDER BY T0.[ItemCode]
    UNION ALL
    --No Sales Batch Transaction
    SELECT T4.[ItemCode], T4.[ItemName],T4.[WhsCode], T4.[BatchNum], ISNULL(T7.[AvgPrice],0) AS 'Avg Price', 0 AS 'Sales Quantity' ,SUM(T4.[Quantity])
    FROM [OIBT] T4 INNER JOIN [OITM] T5 ON T4.[ItemCode] = T5.[ItemCode]
                      INNER JOIN [OITB] T6 ON T5.[ItmsGrpCod] = T6.[ItmsGrpCod]
                      INNER JOIN [OITW] T7 ON T4.[ItemCode] = T7.[ItemCode] AND T4.[WhsCode] = T7.[WhsCode]
    WHERE NOT EXISTS
    ( SELECT T0.[ItemCode], T0.[ItemName], T0.[WhsCode], T0.[BatchNum], ISNULL(T5.[AvgPrice],0) AS 'Avg Price', SUM(T0.[Quantity]) AS 'Sales Quantity'
      FROM [IBT1] T0 INNER JOIN [OITM] T2 ON T0.[ItemCode] = T2.[ItemCode]
                        INNER JOIN [OITB] T3 ON T2.[ItmsGrpCod] = T3.[ItmsGrpCod]
                         INNER JOIN [OITW] T5 ON T0.[ItemCode] = T5.[ItemCode] AND T0.[WhsCode] = T5.[WhsCode]
      WHERE T0.[BaseType] = [%1] AND T0.[DocDate] BETWEEN [%1] AND [%2] AND T4.[ItemCode]=T0.[ItemCode] AND T4.[WhsCode]=T0.[WhsCode] AND T4.[BatchNum]=t0.[BatchNum] AND T3.[ItmsGrpNam] = [%3]
      GROUP BY T0.[ItemCode], T0.[ItemName], T0.[WhsCode], T0.[BatchNum],T5.[AvgPrice]
    AND T6.[ItmsGrpNam] = [%3]
    GROUP BY T4.[ItemCode], T4.[ItemName], T4.[WhsCode], T4.[BatchNum], T7.[AvgPrice]
    HAVING SUM(T4.[Quantity]) > 0
    ORDER BY 1, 2, 3, 5 DESC
    I think SAP Query Manager can support the sub-query, kindly advise how to solve or other alternative way to solve this issue.
    Thanks a lot.

    Dear  Thanga Raj K,
    From your solution i can get my expected result, only within your solution you miss out the @ in line 32 for ToDate variable.
    After i have added it, it working perfectly.
    Thanks once again.
    For other user References code(Corrected):-
    Declare @basetype as int
    Declare @FromDate as Datetime
    Declare @ToDate as Datetime
    Declare @ItemGroup as nvarchar(30)
    set @basetype = (select max(s0.BaseType) from IBT1 S0 where s0.BaseType = '[%0]')
    set @FromDate = (select min(S1.DocDate) from IBT1 S1 where S1.DocDate >= '[%1]')
    set @ToDate = (select max(S2.DocDate) from IBT1 S2 where S2.DocDate <= '[%2]')
    set @ItemGroup = (select max(S3.ItmsGrpNam) from OITB s3 where S3.ItmsGrpNam = '[%3]')
    --Sales BatchNum Transaction
    SELECT T0.ItemCode, T0.ItemName, T0.WhsCode, T0.BatchNum, ISNULL(T4.AvgPrice,0) AS 'Avg Price', SUM(T0.Quantity) AS 'Sales Quantity',
    (SELECT Quantity FROM OIBT T1 WHERE T1.ItemCode = T0.ItemCode AND T1.WhsCode = T0.WhsCode AND T1.BatchNum=T0.BatchNum) AS 'Stock OnHand'
    FROM IBT1 T0 INNER JOIN OITM T2 ON T0.ItemCode = T2.ItemCode
    INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod
    INNER JOIN OITW T4 ON T0.ItemCode = T4.ItemCode AND T0.WhsCode = T4.WhsCode
    WHERE T0.BaseType = @basetype AND T0.DocDate BETWEEN @FromDate AND @ToDate AND T3.ItmsGrpNam = @ItemGroup
    GROUP BY T0.ItemCode, T0.ItemName, T0.WhsCode, T0.BatchNum, T4.AvgPrice
    --ORDER BY T0.ItemCode
    UNION ALL
    --No Sales Batch Transaction
    SELECT T4.ItemCode, T4.ItemName,T4.WhsCode, T4.BatchNum, ISNULL(T7.AvgPrice,0) AS 'Avg Price', 0 AS 'Sales Quantity' ,SUM(T4.Quantity)
    FROM OIBT T4 INNER JOIN OITM T5 ON T4.ItemCode = T5.ItemCode
    INNER JOIN OITB T6 ON T5.ItmsGrpCod = T6.ItmsGrpCod
    INNER JOIN OITW T7 ON T4.ItemCode = T7.ItemCode AND T4.WhsCode = T7.WhsCode
    WHERE NOT EXISTS
    (SELECT T0.ItemCode, T0.ItemName, T0.WhsCode, T0.BatchNum, ISNULL(T5.AvgPrice,0) AS 'Avg Price', SUM(T0.Quantity) AS 'Sales Quantity'
    FROM IBT1 T0 INNER JOIN OITM T2 ON T0.ItemCode = T2.ItemCode
    INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod
    INNER JOIN OITW T5 ON T0.ItemCode = T5.ItemCode AND T0.WhsCode = T5.WhsCode
    WHERE T0.BaseType = @basetype AND T0.DocDate BETWEEN @FromDate AND @ToDate AND T4.ItemCode=T0.ItemCode AND T4.WhsCode=T0.WhsCode AND T4.BatchNum=t0.BatchNum AND T3.ItmsGrpNam = @ItemGroup
    GROUP BY T0.ItemCode, T0.ItemName, T0.WhsCode, T0.BatchNum,T5.AvgPrice
    AND T6.ItmsGrpNam = @ItemGroup
    GROUP BY T4.ItemCode, T4.ItemName, T4.WhsCode, T4.BatchNum, T7.AvgPrice
    HAVING SUM(T4.Quantity) > 0
    ORDER BY 1, 2, 3, 5 DESC

  • Pass XML in argument tag in JNLP file

    Is there a way to pass an xml string in the <argument> tag. I tried to do it but I get xml parsing error. It seems that the xml becomes the child node when I pass that to the arguments tag. the CDATA also does not work. Has anyone done this successfully. thanks
    I am trying to pass somthing like
    <argument><Settings><URL>http://xxx.com</URL></Settings></argument>
    this is just an example I have also tried
    <argument>"<Settings><URL>http://xxx.com</URL></Settings>"</argument>
    this also errors out.
    <argument><![CDATA[<Settings><URL>http://xxx.com</URL></Settings>]]</argument>
    that does not work too.
    Please let me know if there is anything else I can try

    I've successfully used CDATA to embed HTML in an argument, on JDK 1.5 at least (not tried on others yet).
    Your CDATA closing section should be: ]]> Yours is missing the end bracket - if that's not an error in your post it's probably the cause of the XML parsing error.

  • Passing array as arguments

    im very new to java, dont know much about it.can any one please tell me how ot pass array or array list as a argument to a class

    this is my main class where it calls a readfile class to read contents of file
    import java.awt.List;
    import java.io.IOException;
    public class Sample {
    public static List alist = new List();
    public static void main(final String[] args) throws IOException {
    new Readfile().readFromFile("c:/sam.txt");
    import java.io.BufferedReader;
    import java.io.FileReader;
    import java.io.IOException;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.StringTokenizer;
    this is readfile class which reads from file having comma as a delimiter and store it in an array list.
    class Readfile {
    * Declaration of arraylist.
    static List alist = new ArrayList();
    public void readFromFile(final String filename) throws IOException {
    BufferedReader bufferedReader = null;
    // Construct the BufferedReader object
    bufferedReader = new BufferedReader(new FileReader(filename));
    String line;
    while ((line = bufferedReader.readLine()) != null) {
    // storing in to arraylist
    StringTokenizer st1 = new StringTokenizer(line, ",");
    while (st1.hasMoreTokens()) {
    alist.add(st1.nextToken());
    //here just im printing the elements from arraylist.
    for (int j = 0; j < alist.size(); j++) {
    System.out.println(alist.get(j));
    if (bufferedReader != null) {
    bufferedReader.close();
    //converting arraylist to array;
    String[] strArray = new String[50];
    alist.toArray(strArray);
    //passing array as argument
    Area area1 = new Area(strArray);
    area1.calc();
    area1.print();
    Here is the class for area
    class Area {
    String[] alist1 = new String[50];
    private int[] array = new int[50];
    private int[] array1 = new int[50];
    public Area(final String[] alist) {
    alist1 = alist;
    void calc() {
    * for (int i = 0; i < 2 - (alist1.length); i = i + 2) { array1[i] =
         (Integer.valueOf(alist1).intValue() * Integer .valueOf(alist1[i ]).intValue());
    * To print the Area.
    void print() {
    System.out.println("Area of Rectangles ");
    for (int i = 0; i < array1.length; i++) {
    System.out.println(array1[i]);
    im not sure how standard my code is .please guide me

  • Passing Objects as Arguments

    Hi all.
    Please tell me how the objects passed as arguments to methods are treated.
    Actually I have a method swap(), which takes two objects as arguments. This method swaps objects without returning anything. But this does not affect original objects. Is there any other way then obvious (make changes to class wide objects) to do this thing?

    Hi all.
    Please tell me how the objects passed as arguments to
    methods are treated.The objects are always passed per reference (in order to avoid the discussion: the object references are passed per value); i.e. the changes in the method parameters don't affect the caller, the changes in the referenced objects do.
    The primitive values are passed per value, i.e. the changes in the method parameters don't affect the caller.
    Important: The same is valid for the method return value as well.
    There is no possibility to change this behaviour.
    Actually I have a method swap(), which takes two
    objects as arguments. This method swaps objects
    without returning anything. But this does not affect
    original objects. Is there any other way then obvious
    (make changes to class wide objects) to do this thing?

  • [svn] 4619: Bug: BLZ-313 - HTTPProxyService throws null pointer when non-turnkey BlazeDS app is deployed to Tomcat 6 .0.16

    Revision: 4619
    Author: [email protected]
    Date: 2009-01-22 10:47:12 -0800 (Thu, 22 Jan 2009)
    Log Message:
    Bug: BLZ-313 - HTTPProxyService throws null pointer when non-turnkey BlazeDS app is deployed to Tomcat 6.0.16
    QA: Yes
    Doc: No
    Checkintests: Pass
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-313
    Modified Paths:
    blazeds/trunk/modules/proxy/src/flex/messaging/services/HTTPProxyService.java

    I submitted a bug, and this was fixed in the latest trunk
    version.

  • Parameter type conflict from Toplink 11g when passing ArrayList as input

    When passing ArrayList as an input to a StoredProcedureCall, I am getting the following stacktrace:
    t] Exception [TOPLINK-4002] (Oracle TopLink - 11g Release 1 (11.1.1.0.0) (Build 080121)): oracle.toplink.exceptions.DatabaseException
    [junit] Internal Exception: java.sql.SQLException: Parameter Type Conflict
    [junit] Error Code: 17012
    [junit] Call: BEGIN XL_SP_ASSIGN_EVENTLIST(?, usrName=>?, assignUsrkey=>?, assignGrpkey=>?); END;
    [junit] bind => [null => eventIdList, FOO1, 117, 0]
    [junit] Query: ValueReadQuery()
    [junit] at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:295)
    [junit] at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:724)
    [junit] at oracle.toplink.internal.databaseaccess.DatabasePlatform.executeStoredProcedure(DatabasePlatform.java:1627)
    [junit] at oracle.toplink.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:534)
    [junit] at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:467)
    Here is my code snippet to pass ArrayList as input parameter :
    StoredProcedureCall spc = new StoredProcedureCall();
    spc.setProcedureName(procedureName);
    spc.addUnamedInOutputArgument("eventIdList", "eventIdList", Types.ARRAY,
    "EVENTIDS", ArrayList.class);
    String argLoggedInUsrName = "usrName";
    String argAssignedUsrKey = "assignUsrkey";
    String argAssignedGrpKey = "assignGrpkey";
    spc.addNamedArgument(argLoggedInUsrName);
    spc.addNamedArgument(argAssignedUsrKey);
    spc.addNamedArgument(argAssignedGrpKey);
    ValueReadQuery query = new ValueReadQuery();
    query.setCall(spc);
    query.addArgument("eventIdList");
    query.addArgument(argLoggedInUsrName);
    query.addArgument(argAssignedUsrKey);
    query.addArgument(argAssignedGrpKey);
    Vector args = new Vector();
    ArrayList eventIdList = new ArrayList();
    eventIdList.add(new Long(50000));
    args.add(eventIdList);
    args.add(loggedInUsrName);
    args.add(assignedUsrKey);
    args.add(assignedGrpKey);
    eventIdList = (ArrayList) session.executeQuery(query, args);
    This code chunk was working with an earlier build. Would really appreciate any inputs on the error seen.
    Please note - the EVENTIDs type in the pl/sql procedure is defined as a VARRAY(100) of NUMBER

    Well I posted a thread several weeks ago...see this thread below
    trying to get used to sql*plus, running and creating a simple procedure
    and someone made comments about the select query leading to sql injection. Now I am trying to understand the true case behind that. I have an idea made it is because of the first concatenation in the parameter or not. Not sure.

  • Workflow issue- Dereferencing of the NULL reference

    Hello All,
    I have an issue with sending mails to external e-mail ids through a workflow process. I am using the FM SO_DOCUMENT_SEND_API1 for sending mails. However, because of the latest Basis version I need to call this FM in a seperate task when the process is in BACKGROUND mode.
    The current scenario is, my workflow will trigger a method, which internally call this FM in a seperate TASK. When I run the workflow/process I get an error in the method, which triggers this FM. The erro says "Dereferencing of the NULL reference"
    Is this because of calling the FM in a seperate task, as the workflow already has a pre-defined TASK? if yes, how do we go about this?
    Thanks,
    Anil

    Hello Anil,
    I am facing a similar message when i am running the SAP standard workflow 18900044 for leave encashment. I am calling a class CL_HRPBSIN_HANDLE_LEREQ_WF and the method CALL_WORKFLOW.
    Can you please tell me how you managed to solve your issue.
    Regards,
    Ritwik

  • Error: Dereferencing of the NULL reference

    Dear Friends,
    one of our user is running a report on web bex  and he is getting following error.
    com.sap.ip.bi.base.application.exceptions.AbortMessageRuntimeException:
    Termination message sent ABEND RS_EXCEPTION (000): Dereferencing of the NULL reference 
    MSGV1: Dereferencing of the NULL reference
    But when we run this with our user we are not getting any error.
    if we run this report using RSRT usin user's user id it is not giving any error.
    only genrating error when we try to run using Web Bex .
    Any help hightly Appicated.
    Malik

    Thanks friends,
    i already check the given sap note but that note is for support pack till17 and we have already 19 support level.
    thats why this is not the solution.
    second i check it publishing. its working fine with all the users except 3 of our users. i dont know why the error is
    comming with them only.
    and i also check the url  no specific variable values.
    any other idea.
    regards
    Naeem

Maybe you are looking for

  • Enhance 0FC_OP_01 datasource for Open Items (FI-CA).

    Hello All, I am trying to enhance the business content extractor for open items in R/3 . The data source is 0FC_OP_01. i know this is coming from the table DFKKOP. I need to add sub GL ffield rom another table from DFKKOPK . Please advise the step by

  • Error msg in flat file preview

    Hi, I am trying to load the data through flat file, for 0calmonth column I gave the values in the format year/month and month/year, but when I am trying to view the preview it is diplaying the following error CONVERSION_EXIT_PERI6_INPUT. which format

  • Repository reports cannot generate HTML report

    Hello In our Computing Labs, we have Oracle9i Designer installed on Windows XP Professional. Our students are having a problem when they try to Run Report in Repository Reports. The student first sees an error message for Internet Explorer that says

  • Dynamic Groups in OAM

    Hi, Can we configure dynamic gruops in OAM, if yes, please let me know the steps to perform it. I have created a workflow for dynamic groups, but after doing dat, when i try to create a group, is says "You dont have permissions to perform this action

  • Cannot make in-app purchases or retrieve purchased in-game content

    HELP!! Before anything else, this problem started immediately after the big iTunes update a few weeks ago. I have 32gb/3rd gen ipod Touch and it should not be experiencing these problems. I have latest software, also have in-app purchases turned on i