Slight Issue with JTextField Returning Null

Hey everyone,
I just have a slight problem involving a null value returned when I call the getText method of a textField, even when there is text in the field.
Here is the code to create the GUI
  public static void createGUI()
       JFrame frame = new JFrame("Chatter");
       frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
       JPanel panel = new JPanel(new BorderLayout());
       panel.add(new ChatterGui(), BorderLayout.CENTER);
       panel.add(new JPanel(), BorderLayout.NORTH);
       panel.add(new JPanel(), BorderLayout.SOUTH);
       panel.add(new JPanel(), BorderLayout.EAST);
       panel.add(new JPanel(), BorderLayout.WEST);
       frame.add(panel);
       frame.pack();
       frame.setVisible(true);
  }Here is the constructor of the ChatterGui class
  public ChatterGui()
       super(new GridBagLayout());
       JTextField chatInput = new JTextField(50);
       chatInput.addActionListener(this);
       chatInput.setFocusable(true);
       JTextArea chatList = new JTextArea(30, 50);
       chatList.setEditable(false);
       JScrollPane scrollPane = new JScrollPane(chatList);
       JButton submit = new JButton("Submit");
       submit.addActionListener(this);
       GridBagConstraints c = new GridBagConstraints();
       c.gridwidth = GridBagConstraints.REMAINDER;
       c.fill = GridBagConstraints.BOTH;
       add(scrollPane, c);
       c.weightx = 1.0;
       c.weighty = 1.0;
       c.fill = GridBagConstraints.HORIZONTAL;
       add(new JPanel(), c);
       c.fill = GridBagConstraints.HORIZONTAL;
       add(chatInput, c);
       c.fill = GridBagConstraints.HORIZONTAL;
       add(new JPanel(), c);
       c.fill = GridBagConstraints.HORIZONTAL;
       add(submit, c);
  }and here is the code for the actionListener for the JButton and the JTextField
  public void actionPerformed(ActionEvent evt)
       chatInput.selectAll();
       String in = chatInput.getText();
       Grammar.parseQuestion(in);
       chatList.append("User: " + in + "\n");
       chatList.append("Computer: " + Global.currentResponse + "\n");
       Global.flushResponse();
       chatInput.setText("");
  }Any help would be appreciated, here's a link to the full code if its needed [http://pastebin.com/m9fc91a9].

     JTextField chatInput = new JTextField(50);This chatInput is a local variable.
     chatInput.selectAll();Whatever this 'chatInput' is, it isn't the one above.
It seems to me that your real problem must be an NPE using 'chatInput'.

Similar Messages

  • Issues with filter on NULL

    I have a report page with several page items - text, drop-down, radio buttons, etc. - that help filter down the returns. I need it to return everything (match everything) if there is a NULL in the filter, but I can't seem to get it to work on the drop-down. Here's the query:
    select e.EQUIP_ID,
    e.EQUIP_TYPE_ID,
    et.EQUIP_TYPE_ABBR,
    et.ICON,
    e.EQUIP_TAG,
    e.ORG_ID,
    o.ORG_ABBR,
    o.ORG_NM,
    e.ACQ_DATE,
    e.DISP_DATE,
    e.DISP_TYPE_ID,
    d.DISP_TYPE_ABBR,
    e.ACQ_TYPE_ID,
    a.ACQ_TYPE_ABBR,
    e.EQUIP_DESC,
    e.EQUIP_ID MOB
    from EQUIPMENT e, EQUIPMENT_TYPE et, EQUIP_ACQ_TYPE a, EQUIP_DISP_TYPE d, ORG_ENTITIES o
    where e.EQUIP_TYPE_ID = et.EQUIP_TYPE_ID (+)
    and e.ACQ_TYPE_ID = a.EQUIP_ACQ_TYPE_ID (+)
    and e.DISP_TYPE_ID = d.EQUIP_DISP_TYPE_ID (+)
    and e.ORG_ID = o.ORG_ID (+)
    and DECODE(e.DISP_DATE,NULL,1,0) = :P200_ACTIVE --- Works fine
    and e.EQUIP_TYPE_ID = NVL(:P200_EQUIP_TYPE,e.EQUIP_TYPE_ID) --- Gives ORA-01722: invalid number error!
    and e.ORG_ID = NVL(:P200_PROJECT_ID,e.ORG_ID); --- Works fine
    Can anyone see what is preventing the line in question from operating properly? :P200_EQUIP_TYPE is a dynamic drop-down with the NULL selection set to "-- ALL --" and returning NULL (the parameter is left blank).

    I'm not quire sure where to replace it. I tried putting it into the item's null value and that didn't seem to have any effect. Do you mean in the report query? It's not obvious to me where to make the suggested change.
    Oh, and I was able to get kind of a solution by creating two reports - one conditionally set to view when the selection IS NULL and the other when the selection IS NOT NULL. It's a workaround at least.

  • Issue with JTextField Locking

    Hey All!
    I'm working on a database access project and have most things working pretty well, with one glaring exception.
    I've got a JInternalFrame form with 13 data fields to act as a front-end for a table in my database. Most of these data fields are JTextFields, some two are JRadioButtons, one is a JCheckbox and the last one is a JCombobox.
    To prevent accidental data editing, I lock the text fields down by setting JTextField.setEditable(false) and disable the other controls. I have the following method in my form:
    // Locks the form from allowing accidental edits.
        private void unlockForm( boolean unlock ) {
            this.isModifying = unlock;
            this.txtAniv.setEditable(unlock);
            this.txtApt.setEditable(unlock);
            this.txtBDate.setEditable(unlock);
            this.txtCity.setEditable(unlock);
            this.txtFName.setEditable(unlock);
            this.txtLName.setEditable(unlock);
            this.txtPhone.setEditable(unlock);
            this.txtStreet.setEditable(unlock);
            this.txtZip.setEditable(unlock);
            this.chkSearchable.setEnabled(unlock);
            this.optAM.setEnabled(unlock);
            this.optRA.setEnabled(unlock);
            // Set up the toolbar.
            this.setupToolbar();
        } // End of unlockForm() function.If I call this method from a toolbar button ActionPerformed() event and supply `true' as the parameter, it should set the editability of the text fields to true and also enable the other widgets. This seems to work pretty much as expected, except with my txtCity field, for some reason.
    When I click on my edit or add toolbar buttons, they call the unlockForm() method with the parameter set to `true'. However, when I attempt to change the data in the txtCity field, it acts as though it is still not editable. So, in an attempt to figure out what is going on here, I placed the following code in the FocusGained() event for the txtCity textbox:
            // DEBUGGING CODE:  Remove before release build!                      //
            // The following MessageBox is being displayed because I can not find //
            // the reason for the city field to not unlock and, yet, it will not  //
            // unlock for editing.  I need to figure this out!                    //
            MessageBox mb = new MessageBox();                                     //
            String msg = "The following are the settings of the city text field:";//
            msg += "\n-----------------------------------------------------\n";   //
            msg+ = "txtCity.getName() = "  +this.txtCity.getName();               //
            msg+ = "txtCity.getText() = "  +this.txtCity.getText();               //
            msg+ = "txtCity.isEditable() = "  +this.txtCity.isEditable();         //
            msg+ = "txtCity.isEnabled() = " + this.txtCity.isEnabled();           //
            mb.codeRequired(msg, this);                                           //
            ////////////////////////////////////////////////////////////////////////Now, when I click on the txtCity text field, I get this message box as expected, with one glaring problem. I get it more than once. Then, when I click on another control, I somehow go into an infinite loop of this message box being displayed and cannot get out of it. Here is my code for the FocusLost() event:
        private void txtCityFocusLost(java.awt.event.FocusEvent evt) {
            // Deselect the text.
            this.txtCity.select(0, 0);
            // Make sure that data was entered.
            if ( this.txtCity.getText() == null ||
                    this.txtCity.getText().length() == 0 ||
                    this.txtCity.getText().equals("") ) {
                this.txtCity.setBackground(errBG);
                this.txtCity.setForeground(errFG);
                this.txtCity.setFont(errFont);
                this.getToolkit().beep();
            } else {
                this.txtCity.setBackground(stdBG);
                this.txtCity.setFont(stdFont);
                this.txtCity.setForeground(stdFG);
                // Make sure the data was stored.
                this.entry.setCity(this.txtCity.getText());
        }Does anyone have any ideas as to what is going on? Maybe you could point me to a web site or book that actually has this problem and shows how to resolve it. I am at a complete loss as to what's happening, especially since I don't have any code in my FocusLost() event that points to my FocusGained() event. Any help that you can provide will be greatly appreciated.
    If it would help to see what the form looks like, you can view it here:
    http://pekinsoft.homelinux.org/CongregationManager.png
    Thank you for any and all help you may provide.
    Cheers,
    Sean C.
    PekinSOFT Systems
    Edited by: PekinSOFT.Systems on Oct 1, 2009 2:34 PM

    warnerja and camickr:
    I think you all hit it on the nose. My problem was that NetBeans would not go into debug mode due to some vague NullPointerException. However, I deleted my NetBeans user directory and, voila, I can debug again.
    So, when I debugged the code (without my crappy work-around attempt), I found that for some reason, when I click on or tab into the JTextField in question, it actually does go through the FocusGained event more than once, which I still cannot figure out, even going into the source for the Java APIs that get called. It's really weird and the strangest thing of all is that it is now, all of a sudden, working as expected. So, even though I have no clue what caused the issue to begin with, it seems to have cleared up.
    In reference to the post about the SSCCE, I tried to post one, but when I created it, it worked as expected and so was no help in showing my problem. However, when I created the SSCCE, I had already taken the action on my NetBeans user directory, so I'm thinking that something was broken there. Hazards of verifying plugins, I guess.
    Anyway, thank you all very much for your (unneeded, as it turns out) help to my (not actually a) Java problem. Next time I get some strange behavior like this, I think that I'll check my IDE first. ;-)
    Cheers,
    Sean C.
    PekinSOFT Systems

  • XML Comparision Using XDX - Issue with Carriage Return key

    Hi
    I am using oracle XDX for doing a comparision between 2 xml files .I have issue is any node contains a enterkey chr(13)||chr(10) the xml shows that node as different.Even though they are same .

    Hi All,
    Ive updated the problem..with some output... essentially Ive get it to a situation wher I load ALL my records into the table but I still get a bad file with a "|" record issue and the log file still syas that Im trying to load 7 record when I only have the 6 records.
    ...............SQL statment...
    set trimpspool on
    set feedback off
    set heading off
    set linesize 500
    set pagesize 0
    spool loaddata_FP.lst
    SELECT '"'||spart.x_lsm_region||'"'||','||
    '"'||spart.x_sub_type||'"'||','||
    '"'||spart.x_origin_type||'"' ||'|'
    FROM siebel.cx_ls_part_ship spart;
    spool off
    -- sample of control file
    load data infile 'loaddata_FP.lst' "str '|'"
    into table siebel_data_fp fields terminated by "," optionally enclosed by '"'
    (x_lsm_region,
    x_sub_type,
    x_cust_face_staff,
    x_nature_partner,
    x_origin_type)
    --sample log file with error why is it telling me I have 7 records when I am processing 6?
    value used for ROWS parameter changed from 64 to 22
    Record 7: Rejected - Error on table SIEBEL_DATA_FP, column X_SUB_TYPE.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Table SIEBEL_DATA_FP:
    6 Rows successfully loaded.
    1 Row not loaded due to data errors.
    0 Rows not loaded because all WHEN clauses were failed.
    0 Rows not loaded because all fields were null.
    --- sample bad file showing the pipe ... whay is sqlloader trying to process this pipe when its part of the record...
    /u01/oracle/admin/adhoc/xxxl(TESTxx)$
    /u01/oracle/admin/adhoc/xxx(TESTxx)$ vi FCT_PARTNERSHIP_ldrcontrol.bad
    "FCT_PARTNERSHIP_ldrcontrol.bad" [Incomplete last line] 2 lines, 213 characters
    |
    ~
    ~
    ~
    any help appreciated!
    Edited by: spliffer on 04-May-2010 05:06

  • Strange sqlloader loader issue with carriage return in Unix

    Oracle 10g
    Solaris
    Hi All, I'm having issues in running some data into a table via sqlloader. The data was extracted using concatanated SQL with a | delimiter. sql script was executed in the shell to produce the data file.
    eg
    a,b,c|
    d,e,f|
    The control file specifies a string terminator as "str '|\n'" but when i run the sqlloadr command on the unix box I states that
    no terminator found after TERMINATED and ENCLOSED field.
    Ive tried it with \n\r same sort of issue.
    The strange scneario i encountered was when I just specified "str '|'" as I read unix would default to \n, the weird thig was that my 6 records DID load into the table succesfully but a bad file was produced with a | character in it and the log file specfied that it tried to load 7 records where 6 were succesfull and 1 failed even though I only had 6 record to play with in the 1dst place.
    Any ideas / thoughts greatly appreciated?!
    Kind regards
    Satnam

    Hi All,
    Ive updated the problem..with some output... essentially Ive get it to a situation wher I load ALL my records into the table but I still get a bad file with a "|" record issue and the log file still syas that Im trying to load 7 record when I only have the 6 records.
    ...............SQL statment...
    set trimpspool on
    set feedback off
    set heading off
    set linesize 500
    set pagesize 0
    spool loaddata_FP.lst
    SELECT '"'||spart.x_lsm_region||'"'||','||
    '"'||spart.x_sub_type||'"'||','||
    '"'||spart.x_origin_type||'"' ||'|'
    FROM siebel.cx_ls_part_ship spart;
    spool off
    -- sample of control file
    load data infile 'loaddata_FP.lst' "str '|'"
    into table siebel_data_fp fields terminated by "," optionally enclosed by '"'
    (x_lsm_region,
    x_sub_type,
    x_cust_face_staff,
    x_nature_partner,
    x_origin_type)
    --sample log file with error why is it telling me I have 7 records when I am processing 6?
    value used for ROWS parameter changed from 64 to 22
    Record 7: Rejected - Error on table SIEBEL_DATA_FP, column X_SUB_TYPE.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Table SIEBEL_DATA_FP:
    6 Rows successfully loaded.
    1 Row not loaded due to data errors.
    0 Rows not loaded because all WHEN clauses were failed.
    0 Rows not loaded because all fields were null.
    --- sample bad file showing the pipe ... whay is sqlloader trying to process this pipe when its part of the record...
    /u01/oracle/admin/adhoc/xxxl(TESTxx)$
    /u01/oracle/admin/adhoc/xxx(TESTxx)$ vi FCT_PARTNERSHIP_ldrcontrol.bad
    "FCT_PARTNERSHIP_ldrcontrol.bad" [Incomplete last line] 2 lines, 213 characters
    |
    ~
    ~
    ~
    any help appreciated!
    Edited by: spliffer on 04-May-2010 05:06

  • Query with XMLTABLE returns null rows

    Hello all,
    I'm trying a query with XMLTABLE, but even thought the number of returned rows is correct, the row content is (null).
    DB version is: 10.2.0.4.0
    Here is my query;
    SELECT s.DESCRIPTION
    FROM EXECUTIONPLAN p,
      XMLTABLE
      ('//executionPlan/executionPlanItems/summary'  
       PASSING p.DATA
       COLUMNS
         DESCRIPTION VARCHAR(250) PATH '/taskId'
      ) s
    WHERE
    trunc(extractValue(data, '/executionPlan/executionPlanHeader/statusChanged')) = to_date('2010-03-05','YYYY-MM-DD');Sorry the XML content is quite big -50k lines at average- so can't post the whole XML, but to give an idea;
    /executionPlan
       /executionPlan
          /executionPlanHeader
             /statusChanged
             /x
             /y
          /executionPlanItems
             /summary
                /taskId
             /summary
             /summary
             ...The result looks like;
    1 (null)
    2 (null)
    3 (null)
    4 (null)
    ...Suggestions are very much appreciated :)
    Cheers

    Hi guys,
    Cracked it at last. It seems the column definition part does not like the forward slash in front of it. The following works;
    SELECT s.DESCRIPTION
    FROM EXECUTIONPLAN p,
      XMLTABLE
      ( XmlNamespaces(DEFAULT 'http://www.staffware.com/frameworks/gen/valueobjects'),
       '/executionPlan/executionPlanItems/summary'  
       PASSING p.DATA
       COLUMNS
         DESCRIPTION VARCHAR(250) PATH 'taskId'
      ) s
    WHERE
    trunc(extractValue(p.data, '/executionPlan/executionPlanHeader/statusChanged'
                             , 'xmlns="http://www.staffware.com/frameworks/gen/valueobjects"')) = to_date('2010-03-05','YYYY-MM-DD');I'm not sure if this is the way it is intended since it seems a bit weird to me and is not in line with the docs - or at least my understanding of them.
    Thanks for taking the time to help out. Now on to coding :)

  • Issue with Date showing Null in interactive report

    I created an interactive report for a customer and was confused to see blanks or more specifically dashes where there should be dates in one of the fields. I knew this field should have data so I did some testing and this is what I have found:
    The sql I am running is:
    select
    assigned_to_company,
    last_resolved_date,
    incident_id
    from
    rhpd0009_im_adherence_rpt2_vw
    When I run the command in SQL workshop I get the following results with data in the last_resolved_date field:
    [http://i83.photobucket.com/albums/j299/yogibayer/apexdateissuesqlcommand.jpg]
    I copied and pasted the SQL from SQL workshop and created a new interactive report and got the following results with no last_resolved_dates showing up:
    [http://i83.photobucket.com/albums/j299/yogibayer/apexdateissueinteractivereport.jpg]
    For some reason the order is different, but the first one INC1117629 shows up in both of them and has a last_resolved_date in SQL workshop, but not in the interactive report. Any help would be appreciated.
    Thank You
    Scott

    Varad,
    It seems to be related to the function we use to convert Remedy dates to Viewable dates. Remedy dates are stored as an integer that represents the absolute number of seconds from Jan 1, 1970 at 12:00 AM. We use a function that converts this number into a human readable date. I have tried encapsulating the result of the function in a TO_DATE and a TO_CHAR with the same results as before. There is something about the resulting data from the date convert function that Apex doesn't like. It would be interesting to isolate what exactly the issue is, but right now I'm just trying to find a work around.
    Thank You
    SCott

  • Issues with data returned on application.cfc onRequeststart

    I have a shopping cart that works from main code with VD on IIS.
    So all the code is places in one directory, and for each store I create a Virtual directory on the IIS
    so a store link will look like this :
    www.shoppingcart.com/store/XXXXX
    when the xxx is the prefix of that store.
    in the application.cfc ONREQUERSTSTART I take the last part of the URL and match it with the PREFIX I in the list of stores on the DB.
    to get the prefix I do this :
    <cfset request.store.prefix = "#listgetat(cgi.SCRIPT_NAME,listlen(cgi.SCRIPT_NAME,'/')-1,'/')#">
    Then to get the right store info I used to do this :
    <cfset qreadStoreInfo = application.cfc.StoreDetails.read(filterStorePrefix request.store. prefix)>
    It all worked well (for over 4yrs) till about 2-3 moths ago (or at least then one of the client complained) when we start seeing the WRONG output of store info, like stores were "mixed" some how – totally randomly.
    After following it for a few days I noted that the query that is returned from the CFC is for the wrong store.
    At first I thought it’s the request.store.prefix not "stored" by the time I get to the query line so I changed this :
    <cfset qreadStoreInfo = application.cfc.StoreDetails.read(filterStorePrefix= "#listgetat(cgi.SCRIPT_NAME,listlen(cgi.SCRIPT_NAME,'/')-1,'/')#")>
    Yet I still get the wrong value back from the Query, and when looking at the Query I can see that the VALUE been sent in is wrong, even that I know for sure that I sent in the right value, since in the email I do an out put of the info on the page.
    Did any one encountered any thing like this before ?
    Any leads on how to maybe start handling ?
    Is there a way that if the client is looking at 2 site at the same time thus queries can get "mixed", even that they are done on the ONREQUEST part of the application.cfc (IE each page should be processed on its own)

    talofer99 wrote:
    www.shoppingcart.com/store/XXXXX
    when the xxx is the prefix of that store.
    in the application.cfc ONREQUERSTSTART I take the last part of the URL and match it with the PREFIX I in the list of stores on the DB.
    to get the prefix I do this :
    <cfset request.store.prefix = "#listgetat(cgi.SCRIPT_NAME,listlen(cgi.SCRIPT_NAME,'/')-1,'/')#">
    That wont get you the prefix, I'm afraid. You want the last list element. To get it, you could use
    <cfset request.store.prefix = listgetat(cgi.SCRIPT_NAME,listlen(cgi.SCRIPT_NAME,'/'),'/')>
    or, even better,
    <cfset request.store.prefix = listLast(cgi.SCRIPT_NAME,'/')>

  • Hello i have a slight issue with my iPhone 4s... Blue screen?

    I purchased my iphone 4s in November of 2012. Yesterday my phone was on the coffee table and I pressed the lock button and it is all blue with black lines. I can still use siri and hear it but i can't see anything. If i take a screen shot on my lock screen and plug my iphone into my macbook it shows up perfectly fine? It rings and vibrates and charges and everything works fine, I just cant see anything. I do not have a insurance and my upgrade is in November, I am NOT looking to get an android phone, because that is what some of my friends told me is the best option.I really just want to know what the problem is and how I can fix it. I would appreciate it if someone could respond very soon. Thank you.

    That's a hardware failure. Make an appointmet at the genius bar of your local Apple Store. An out of warranty replacement will cost you $199.

  • Issue with displaying Unicode Characters returned by a webservice

    Hi, We are developing a mobile application which provides multi language selection (Arabic & English). but we are having an issue with displaying returned JSON which has Arabic text. The output we get is as below. Our .net client throws the following
    exception. Appreciate your kind help and thank you in advance.
    [net_WebHeaderInvalidControlChars]
    Arguments:
    Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.7.60408.0&File=System.Net.dll&Key=net_WebHeaderInvalidControlChars
    Parameter name: name”
    Returned JSON:
    https://72.44.81.184/~shababcapital/wp-json/posts?type=news&lang=ar
    Connection ? Keep-Alive
    Content-Type ? application/json; charset=UTF-8
    Date ? Fri, 27 Feb 2015 03:35:43 GMT
    Keep-Alive ? timeout=1, max=100
    Last-Modified ? Thu, 26 Feb 2015 14:43:55 GMT
    Link ? <http://72.44.81.184/~shababcapital/wp-json/posts/131>; rel="item"; title="387 Ù?اعب Ù?Ù?اعبة ضÙ?Ù? فعاÙ?Ù?ات اÙ?تدرÙ?ب اÙ?Ù?ستÙ?ر Ù?اÙ?تشاف اÙ?Ù?Ù?اÙ?ب اÙ?رÙ?اضÙ?Ø©", <http://72.44.81.184/~shababcapital/wp-json/posts/119>;
    rel="item"; title="387 Ù?اعب Ù?Ù?اعبة ضÙ?Ù? فعاÙ?Ù?ات اÙ?تدرÙ?ب اÙ?Ù?ستÙ?ر Ù?اÙ?تشاف اÙ?Ù?Ù?اÙ?ب اÙ?رÙ?اضÙ?Ø©", <http://72.44.81.184/~shababcapital/wp-json/posts/118>; rel="item";
    title="اÙ?جÙ?در Ù?ؤÙ?د استÙ?رار "اÙ?شباب Ù?اÙ?رÙ?اضة" فÙ? دعÙ? Ù?سÙ?رة اÙ?Ù?راÙ?ز اÙ?شبابÙ?Ø©", <http://72.44.81.184/~shababcapital/wp-json/posts/117>; rel="item"; title="اÙ?جÙ?در
    Ù?Ø´Ù?د بدÙ?ر اÙ?Ù?راÙ?ز اÙ?شبابÙ?Ø© فÙ? تطبÙ?Ù? رؤÙ?Ø© Ù?اصر بÙ? Ø­Ù?د فÙ? احتضاÙ? اÙ?شباب", <http://72.44.81.184/~shababcapital/wp-json/posts/55>; rel="item"; title="اÙ?جÙ?در: Ù?دفÙ?ا
    تحÙ?Ù?Ù? أفضÙ? فرص استثÙ?ارÙ?Ø© Ù?Ù?Ø£Ù?دÙ?Ø© اÙ?Ù?Ø·Ù?Ù?Ø© Ù?Ù?بارÙ? اÙ?Ù?شرÙ?ع اÙ?جدÙ?د", <http://72.44.81.184/~shababcapital/wp-json/posts/45>; rel="item"; title="اÙ?جÙ?در Ù?Ø´Ù?د بدÙ?ر
    اÙ?Ù?راÙ?ز اÙ?شبابÙ?Ø© فÙ? تطبÙ?Ù? رؤÙ?Ø© Ù?اصر بÙ? Ø­Ù?د فÙ? احتضاÙ? اÙ?شباب"
    Server ? Apache
    Transfer-Encoding ? chunked
    X-Content-Type-Options ? nosniff
    X-Pingback ? http://72.44.81.184/~shababcapital/xmlrpc.php
    X-Powered-By ? PHP/5.4.24
    X-WP-Total ? 6
    X-WP-TotalPages ? 1

    I originally downloaded it using IE and viewed the content in Fiddler.  Use this code to get the content:
    string url = "https://72.44.81.184/~shababcapital/wp-json/posts?type=news&lang=ar";
    HttpBaseProtocolFilter MyFilter = new HttpBaseProtocolFilter();
    MyFilter.IgnorableServerCertificateErrors.Add(Windows.Security.Cryptography.Certificates.ChainValidationResult.InvalidName);
    HttpClient request = new HttpClient(MyFilter);
    string response = await request.GetStringAsync(new Uri(url));
    MyContent.Text = response;
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Slight problem with video playback

    Hi all,
    I have a slight issue with the right hand side of my 20" iMac when using frontrow. Playing back DVDs is fine, good quality but when I try to playback a Movie that I have on the HD it has a white flickering line down the right hand side, its only a thin line but very annoying. It doesn't do it on VLC but on Realplayer and Frontrow. The files are AVIs if it helps.
    Thanks in advance

    You could try adding the Codecs from Perian to Quicktime.

  • SDO_CENTROID returning null

    Hi,
    I am having a few problems with SDO_Centroid returning null if I have a polygon and a point in one record. Is this expected and is there a way around it (if I do a MBR first and then sdo_centroid it works but is slow - it is accurate enought for my needs though).
    thanks
    Chris

    Chris2,
    [1] For that function, the Oracle Docs say, +"The function returns a null value if geom1 is not a polygon, multipolygon, point, or point cluster, as identified by the SDO_GTYPE value in the SDO_GEOMETRY object"+. Your geometry is likely SDO_GTYPE 2004 (collection).
    [2] Perhaps you could extract the polygon part and perform sdo_centroid on that.
    -- "Assuming you always have 1 polygon and 1 point"
    -- "AND assuming the polygon comes first (=1)"
    SELECT SDO_GEOM.SDO_CENTROID(SDO_UTIL.EXTRACT(geometry, 1), 0.1) FROM MyTable;[3] So you have a collection comprised of a polygon and a point. Out of curiosity, where's the point with respect to the centroid?
    [4] SpatialDB Advisor has some alternatives to sdo_centroid [url http://www.spatialdbadvisor.com/oracle_spatial_tips_tricks/75/multi-centroid-shootout]here and [url http://www.spatialdbadvisor.com/oracle_spatial_tips_tricks/75/multi-centroid-shootout]here. Scroll all the way down to the bottom of those pages to see an illustration of what those do.
    Regards,
    Noel

  • Issues with book region availability? (Keeps saying it isn't available, then it is, then isn't...)

    I'm having a slight issue with a specific book series's availability (The Vorkosigan saga)-  About two weeks ago I purchased the first four books in the series through my local (Australian) ibooks store, straight onto ipad. Now I've gone back to get more, and I'm getting a very odd issue...
    If I search for the book series, it apparently doesn't exist in the store foraustralia. But, I get a message saying it is available on the US store.
    If I switch to the US store, I get a message saying it is not available on the US store, but -IS- available in australia. Swapping back to the australian store leads to the situation starting again.
    I've even swapped to canadian, english, etc and other versions of the stores, all saying that books from that series -are- available before I swap, but saying they are not available after I do it.  This is happening if I acess the store from home, from university, work, etc, and on all my different devices.
    Does anyone know if there is any way to solve this issue? Or is anyone able to check if they can find the books in one of the stores I've mentioned (which would indicate it is just me, which means this is something I should be able to fix somehow)?

    I've sent the ticket in, but I figure I may as well keep this here too, since quite often other people can help much better than support does.
    Okay. Knowing they're not showing for other regions too helps, I guess.
    If I look at my purchases on itunes and find them, I can re-downloand the ones I already have fine on my computer's itunes. But searching for them yields nothing in any store version. I deleted one off my Ipad at random, and tried to re-download it straight onto the ipad with wireless, and I got the "not avialable in your region" error there.
    Searching them with google lets me find links to them on the store eg
    https://itunes.apple.com/au/book/the-vor-game-vorkosigan-saga/id464426999?mt=11
    and
    https://itunes.apple.com/us/book/the-vor-game-vorkosigan-saga/id464426999?mt=11
    for the AU / US store versions respectively. Using one will tell me it isn't available in this region, but is in the other one's.

  • Field.get(Object obj) now returning null with Generics (Java 5.0) ??

    Hello,
    I'm currently using Java 5.0 (especially for the Generics part) on a new Java/J2EE project, but having a strange issue with code working previously in a Java 1.4 project.
    Below is an overriding of the toString() method provided by the Object class which allow me to view nicely in debug (dev. mode) the contents of my Transfer Objects (all the TO's must extend this ATO abstract class).
    Previously this code displayed me something like:
    [field1 => value1, field2 => value2] ... for a TO (sort of "Javabean") having e.g. two String fields with values initialized to "value1" (resp. "value2").
    But unfortunately, this does (or seems) not to work anymore, having such display :
    [field1 => null, field2 => null]I tried to debug, and the problem is that the call fieldValue = field.get(this); returns null while it should returns the actual value of the field.
    I thing it it strongly related to Generics, but could not at the moment found how/why it does not work.
    May someone help...? Thanks.
    public abstract class ATO {
        // Reflection for field value display
        public String toString() {
            StringBuffer sb = new StringBuffer("[");
            MessageFormat mf = new MessageFormat("{0} => {1}, ");
            Field[] fields = this.getClass().getDeclaredFields();
            for (int i = 0; i < fields.length; i++) {
                Field field = (Field) fields;
    String fieldName = field.getName();
    Object fieldValue = null;
    try {
    fieldValue = field.get(this);
    } catch (IllegalArgumentException e) {
    } catch (IllegalAccessException e) {
    mf.format(new Object[] { fieldName, fieldValue }, sb, null);
    if (sb.length() > 1) {
    sb.setLength(sb.length() - 2);
    sb.append("]");
    return sb.toString();

    ejp wrote:
    Field field = (Field) fields;
    This cast is unnecessary.
    Effectively, I haven't noticed it yet. Fixed.
    } catch (IllegalArgumentException e) {
    } catch (IllegalAccessException e) {
    }Either the field value really is null or you are getting one of these exceptions which you are ignoring. Never write empty catch blocks.That's true, I missed something. Fixed with some code to log the eventual exceptions.
    Thanks for you answer.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • EJB Issue with return empty children in join fetch query

    I'm a newbie and still trying to learn all of the facets of EJB 3.0 (and other backend capabilities) however could not find this issue anywhere resolved.
    I have a recursive table which has a 0,1-n relationship with itself. In this case, I want to query for all objects and fetch the resulting children.
    To do this I have written the following query:
    select o from Node o inner join fetch o.childrenNodeList order by o.nodeorder
    If my database has the following entries:
    Parent
    Child
    Grandchild
    The above query will get all 3 and allow me to access the list of children through getChildrenNodeList, however, for Grandchild this returns "An attempt was made to traverse a relationship using indirection that had a null Session...." for Parent and Child however it works like it should and gets the fetched rows.
    Is there a way for me to either:
    1. Modify the query so that the getChildrenNodeList will return a 0 sized array (so I can test for no children)
    2. Modify the getter such that I can check that the parent really has no children and not some issue with the query
    Thanks for any help,
    Kris

    fixed

Maybe you are looking for

  • Tried to update to 7 but it wouldn't update and now I can't activate my phone

    I've tried to update to 7 but it wouldn't update and now I can't activate my phone????

  • PLD-Relate To function

    Hi all, In Properties window of the PLD(in Content Tab) if the source Type of the field is Database , then 'Relate To' and 'Next Segment' functions appear where we can link some field . What is the actual use of these functions?  How are they differe

  • Oracle 9i Release 1 Installation problem

    Dear All While Installing Oracle9i Enterprise Edition Release on Win NT 4.0 (service pack 4.0), I am getting following error while Database Configuration Assistant creation. Not a ZIP file (End Header Not found). Pl. sugest what to do? During install

  • Advantages of oracle

    can anyone please help me?? im a poor lil uni student looking for the advantages and disadvantages of using oracle developer

  • How to manage remote users?

    One of our designers has asked if she could install our CS6 on her home computer which, I believe, is allowed by the Adobe license.  Can she use her Adobe ID, assuming she has one, to register CS6 or will she need to use ours?  Would she even need to