Potential problem with XMLDOM.writeToClob()

I'm really hoping that someone can help me with this. Last fall, wrote some code that used XMLDOM to build a document and send it to a web service. I remember having problems with WriteToBuffer and WriteToClob during my development efforts, which I thought were successfully resolved. Now it looks like the problem may be occurring at a client who recently upgraded to use this code. I can't get this to fail in-house, so I can't do much debugging on it. So I'm hoping that someone else has come across a problem like this and remembers what they did to fix it.
Basically, what happened was, WriteToClob (or sometimes WriteTuBuffer) didn't return anything, even though the DOM document was not empty. I remember going back and forth between WriteToBuffer and WriteToClob, trying to get it resolved. But I don't remember specifically finding any "magic bullet". Here's what I currently have in the code:
DBMS_LOB.createtemporary (v_source_data, TRUE);
DBMS_LOB.OPEN (v_source_data, DBMS_LOB.lob_readwrite);
xmldom.writetoclob (v_main_doc, v_source_data);
DBMS_LOB.CLOSE (v_source_data);
Has anyone had a similar problem, and remember what the fix was? I'm also not sure that the Open/Close calls are necessary. Or what TRUE means on CreateTemporary (aside from some generic comment about "buffer cache" without telling me what a buffer cache is).

I'm really hoping that someone can help me with this. Last fall, wrote some code that used XMLDOM to build a document and send it to a web service. I remember having problems with WriteToBuffer and WriteToClob during my development efforts, which I thought were successfully resolved. Now it looks like the problem may be occurring at a client who recently upgraded to use this code. I can't get this to fail in-house, so I can't do much debugging on it. So I'm hoping that someone else has come across a problem like this and remembers what they did to fix it.
Basically, what happened was, WriteToClob (or sometimes WriteTuBuffer) didn't return anything, even though the DOM document was not empty. I remember going back and forth between WriteToBuffer and WriteToClob, trying to get it resolved. But I don't remember specifically finding any "magic bullet". Here's what I currently have in the code:
DBMS_LOB.createtemporary (v_source_data, TRUE);
DBMS_LOB.OPEN (v_source_data, DBMS_LOB.lob_readwrite);
xmldom.writetoclob (v_main_doc, v_source_data);
DBMS_LOB.CLOSE (v_source_data);
Has anyone had a similar problem, and remember what the fix was? I'm also not sure that the Open/Close calls are necessary. Or what TRUE means on CreateTemporary (aside from some generic comment about "buffer cache" without telling me what a buffer cache is).

Similar Messages

  • Problem with XMLDOM package (Oracle 10.2.0.1.0)

    Hi,
    I am using the dbms_xmldom package to generate xml files (specific structure).
    Below is the code but It produces nothing (dbms_output does not return) :
    DECLARE
    doc xmldom.DOMDocument;
    main_node xmldom.DOMNode;
    root_node xmldom.DOMNode;
    root_elmt xmldom.DOMElement;
    transmissionHeaderNode xmldom.DOMNode;
    transmissionHeaderElement xmldom.DOMElement;
    item_node xmldom.DOMNode;
    item_elmt xmldom.DOMElement;
    item_text xmldom.DOMText;
    buffer_problem CLOB;
    BEGIN
    doc := xmldom.newDOMDocument;
    main_node := xmldom.makeNode(doc);
    xmldom.setversion(doc,'1.0');
    root_elmt := xmldom.createElement(doc, 'InvoiceTransmission');
    root_node := xmldom.appendChild( main_node, xmldom.makeNode(root_elmt));
    transmissionHeaderElement := xmldom.createElement(doc, 'TransmissionHeader');
    transmissionHeaderNode := xmldom.appendChild(root_node, xmldom.makeNode(transmissionHeaderElement));
    item_elmt := xmldom.createElement(doc, 'TransmissionDateTime');
    item_node := xmldom.appendChild(transmissionHeaderNode, xmldom.makeNode(item_elmt));
    item_text := xmldom.createTextNode(doc, TO_CHAR(SYSDATE,'DD-MM-YYYY'));
    item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    item_elmt := xmldom.createElement(doc, 'IssuingOrganiszationID');
    item_node := xmldom.appendChild(transmissionHeaderNode, xmldom.makeNode(item_elmt));
    item_text := xmldom.createTextNode(doc,'0258');
    item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    item_elmt := xmldom.createElement(doc, 'Version');
    item_node := xmldom.appendChild(transmissionHeaderNode, xmldom.makeNode(item_elmt));
    item_text := xmldom.createTextNode(doc, 'IATA:ISXMLInvoiceV3.0');
    item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    xmldom.writetobuffer(doc, buffer_problem);
    dbms_output.put_line(buffer_problem);
    xmldom.freeDocument(doc);
    END;
    That's strange because when remove a code part like :
    item_elmt := xmldom.createElement(doc, 'Version');
    item_node := xmldom.appendChild(transmissionHeaderNode, xmldom.makeNode(item_elmt));
    item_text := xmldom.createTextNode(doc, 'IATA:ISXMLInvoiceV3.0');
    item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    I can get the ouput xml :
    <?xml version="1.0"?>
    <InvoiceTransmission>
    <TransmissionHeader>
    <TransmissionDateTime>26-10-2010</TransmissionDateTime>
    <IssuingOrganiszationID>0258</IssuingOrganiszationID>
    </TransmissionHeader>
    </InvoiceTransmission>
    I don't if it's a problem with xmldom or with dbms_output package...
    Please someone can help me ?

    Works fine for me
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    SQL> set serveroutput on;
    SQL>
    SQL> DECLARE
      2     doc xmldom.DOMDocument;
      3     main_node xmldom.DOMNode;
      4     root_node xmldom.DOMNode;
      5     root_elmt xmldom.DOMElement;
      6 
      7     transmissionHeaderNode xmldom.DOMNode;
      8     transmissionHeaderElement xmldom.DOMElement;
      9     item_node xmldom.DOMNode;
    10     item_elmt xmldom.DOMElement;
    11     item_text xmldom.DOMText;
    12 
    13     buffer_problem CLOB;
    14 
    15  BEGIN
    16 
    17     doc := xmldom.newDOMDocument;
    18     main_node := xmldom.makeNode(doc);
    19     xmldom.setversion(doc,'1.0');
    20     root_elmt := xmldom.createElement(doc, 'InvoiceTransmission');
    21     root_node := xmldom.appendChild( main_node, xmldom.makeNode(root_elmt));
    22 
    23     transmissionHeaderElement := xmldom.createElement(doc, 'TransmissionHeader');
    24     transmissionHeaderNode := xmldom.appendChild(root_node, xmldom.makeNode(transmissionHeaderElement));
    25 
    26     item_elmt := xmldom.createElement(doc, 'TransmissionDateTime');
    27     item_node := xmldom.appendChild(transmissionHeaderNode, xmldom.makeNode(item_elmt));
    28     item_text := xmldom.createTextNode(doc, TO_CHAR(SYSDATE,'DD-MM-YYYY'));
    29     item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    30 
    31     item_elmt := xmldom.createElement(doc, 'IssuingOrganiszationID');
    32     item_node := xmldom.appendChild(transmissionHeaderNode, xmldom.makeNode(item_elmt));
    33     item_text := xmldom.createTextNode(doc,'0258');
    34     item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    35 
    36     item_elmt := xmldom.createElement(doc, 'Version');
    37     item_node := xmldom.appendChild(transmissionHeaderNode, xmldom.makeNode(item_elmt));
    38     item_text := xmldom.createTextNode(doc, 'IATA:ISXMLInvoiceV3.0');
    39     item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    40 
    41     --buffer_problem := 'a';  -- added to initialize clob
    42     xmldom.writetobuffer(doc, buffer_problem);  -- change to writetoclob
    43     dbms_output.put_line(buffer_problem);
    44     xmldom.freeDocument(doc);
    45 
    46  END;
    47  /
    <?xml version="1.0"?>
    <InvoiceTransmission>
      <TransmissionHeader>
        <TransmissionDateTime>26-10-2010</TransmissionDateTime>
        <IssuingOrganiszationID>0258</IssuingOrganiszationID>
        <Version>IATA:ISXMLInvoiceV3.0</Version>
      </TransmissionHeader>
    </InvoiceTransmission>Suggestions:
    - Use dbms_xmldom instead of just xmldom. Oracle changed the name in the 9i days and xmldom is a synonym to dbms_xmldom.
    - Use .writeToClob intead of .writeToBuffer
    - I would suggest trying to upgrade to .4 as you pick up a lot of improvements and bug fixes. Whether what you are encountering is a bug I cannot say but would seem so.
    - See the FAQ under your sign-in name to learn how to use the tag to format the code like I did above.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Potential problems with using a report to run a commit in a separate LUW.

    I am working with a classic Badi within a transaction where I wanted to commit some information to a database before the commit that occurs at the end of the transaction.
    Putting a commit point directly inside the BADI caused problems with cursors that were open inside the transaction, so I researched some and discovered that Report Programs can run in a separate database Logical Unit of Work (LUW).
    I coded my BADI to call a report which does some database work based on input parameters, and then commits this work to the database before returning control back to the calling BADI function.
    Does anyone know of any potential problems from doing this?  It seems like a good way to get around restrictions on the use of commit points inside transactions, but I'm not sure if there could be potential undesired effects from doing this.
    Has anyone tried this before?

    Hi Clay,
    Yes I did it too. We faced some issues with commit when using fm HR_INFOTYPE_OPERATION . We had to enclose it in separate report which only then let us do physical change in DB.
    What is to be noticed here as well is (according to SAP) that DB commit is triggered each time work process is released which happens when:
    - system shows dialog message
    - RFC call is executed
    - new transaction is called
    The above however didn't work for me in couple cases, but using separate SAP LUW solves the problem (as you already read). This happens each time:
    - new report is called (SUBMIT ...),
    - new transaction is called (CALL TRANSACTION ...)
    - new asynchoronus RFC call is executed (CALL FUNCTION...STARTING NEW TASK).
    This approach works fine for cases I met and had to overcome with such solution. So far we didn't face any issues with that. Works perfectly
    Regards
    Marcin

  • ERROR WITH XMLDOM.WRITETOCLOB

    Hi,
    I have written the following procedure...............
    procedure Prc_UpdateNodes(clString in out clob, nodename varchar2, nodeValue varchar2) is
         l_doc_node xmldom.DOMNode;
         l_xml_out varchar2(2000);
         begin
                   domDocument      := Fn_GetXmlDocument(clString);
                   nodeList           := xmldom.getElementsByTagName(domDocument, nodename);
                   intNoOfNode      := xmldom.getLength(nodeList);
                   l_doc_node := xmldom.item(nodeList, 0);
                   for loopCount_int in 0.. intNoOfNode - 1 loop
         node := XmlDom.item(nodeList, loopCount_int);
                        valueNode := XmlDom.getFirstChild(node);
                        XmlDom.setNodeValue(valueNode,nodeValue);
                   end loop;
                   XmlDom.writeToClob(domDocument,clString);
    end;
    This below XML Is passed as the first parameter
    The output after this operation for an xml should be..
    <ROWSET>
    <ROW>
    <SITE_NO Key="Yes">1</SITE_NO>
    <PARAMETER_VALUE_NO Key="Yes">0</PARAMETER_VALUE_NO>
    <PARENT_PARAMETER_SPEC_NO>0</PARENT_PARAMETER_SPEC_NO>
    <PARAMETER_SPEC_NO>1</PARAMETER_SPEC_NO>
    <REF_TABLE_KEY_NO>0</REF_TABLE_KEY_NO>
    <REF_TABLE_KEY_TYPE>S</REF_TABLE_KEY_TYPE>
    <SEQ_NO>1</SEQ_NO>
    <SUB_SEQN_NO>0</SUB_SEQN_NO>
    <DATA_TYPE_NO>1</DATA_TYPE_NO>
    <INTEGER_VALUE>0</INTEGER_VALUE>
    <STRING_VALUE>00039</STRING_VALUE>
    <NUMERIC_VALUE>0</NUMERIC_VALUE>
    <DATE_VALUE>01/01/1600</DATE_VALUE>
    <CREATED_ON>0</CREATED_ON>
    <MODIFIED_ON>0</MODIFIED_ON></ROW>
    <ROW>
    <SITE_NO Key="Yes">1</SITE_NO>
    <PARAMETER_VALUE_NO Key="Yes">0</PARAMETER_VALUE_NO>
    <PARENT_PARAMETER_SPEC_NO>0</PARENT_PARAMETER_SPEC_NO>
    <PARAMETER_SPEC_NO>2</PARAMETER_SPEC_NO>
    <REF_TABLE_KEY_NO>0</REF_TABLE_KEY_NO>
    <REF_TABLE_KEY_TYPE>S</REF_TABLE_KEY_TYPE>
    <SEQ_NO>2</SEQ_NO><SUB_SEQN_NO>0</SUB_SEQN_NO>
    <DATA_TYPE_NO>2</DATA_TYPE_NO>
    <INTEGER_VALUE>0</INTEGER_VALUE>
    <STRING_VALUE/>
    <NUMERIC_VALUE>0</NUMERIC_VALUE>
    <DATE_VALUE/>
    <CREATED_ON>0</CREATED_ON>
    <MODIFIED_ON>0</MODIFIED_ON>
    </ROW>
    </ROWSET>
    But the output I get is ……….
    <ROWSET>
    <ROW>
    <SITE_NO Key="Yes">1</SITE_NO>
    <PARAMETER_VALUE_NO Key="Yes">0</PARAMETER_VALUE_NO>
    <PARENT_PARAMETER_SPEC_NO>0</PARENT_PARAMETER_SPEC_NO>
    <PARAMETER_SPEC_NO>1</PARAMETER_SPEC_NO>
    <REF_TABLE_KEY_NO>0</REF_TABLE_KEY_NO>
    <REF_TABLE_KEY_TYPE>S</REF_TABLE_KEY_TYPE>
    <SEQ_NO>1</SEQ_NO>
    <SUB_SEQN_NO>0</SUB_SEQN_NO>
    <DATA_TYPE_NO>1</DATA_TYPE_NO>
    <INTEGER_VALUE>0</INTEGER_VALUE>
    <STRING_VALUE>00039</STRING_VALUE>
    <NUMERIC_VALUE>0</NUMERIC_VALUE>
    <DATE_VALUE>01/01/1600</DATE_VALUE>
    <CREATED_ON>0</CREATED_ON>
    <MODIFIED_ON>0</MODIFIED_ON></ROW>
    <ROW>
    <SITE_NO Key="Yes">1</SITE_NO>
    <PARAMETER_VALUE_NO Key="Yes">0</PARAMETER_VALUE_NO>
    <PARENT_PARAMETER_SPEC_NO>0</PARENT_PARAMETER_SPEC_NO>
    <PARAMETER_SPEC_NO>2</PARAMETER_SPEC_NO>
    <REF_TABLE_KEY_NO>0</REF_TABLE_KEY_NO>
    <REF_TABLE_KEY_TYPE>S</REF_TABLE_KEY_TYPE>
    <SEQ_NO>2</SEQ_NO><SUB_SEQN_NO>0</SUB_SEQN_NO>
    <DATA_TYPE_NO>2</DATA_TYPE_NO>
    <INTEGER_VALUE>0</INTEGER_VALUE>
    <STRING_VALUE/>
    <NUMERIC_VALUE>0</NUMERIC_VALUE>
    <DATE_VALUE/>
    <CREATED_ON>0</CREATED_ON>
    <MODIFIED_ON>0</MODIFIED_ON>
    </ROW>
    </ROWSET>
    0</MODIFIED_ON>
    </ROW>
    </ROWSET>
    The letter in bold above are the newly introduced junk letters
    I think this problem is due to the buffer isssues………….
    Do we have any solution for clearing the buffer….
    Also this error doesnt occur all the time.........
    Sometimes it comes, Sometimes it works fine
    The error is introduced during execution of the statement
    XmlDom.writeToClob(domDocument,clString);
    Can anyone help me on this front?????
    Thanks
    Message was edited by:
    user609257

    Thx for your response
    the program looks like this:
    I executed it from a Form;
    PROCEDURE PRUEBA IS
    xml clob;
    vxml varchar2(100);
    len integer := 1;
    pos integer := 1;
    f utl_file.file_type;
    doc xmldom.DOMDocument;
    ppal_node xmldom.DOMNode;
    main_node xmldom.DOMNode;
    root_node xmldom.DOMNode;
    user_node xmldom.DOMNode;
    tercer_node xmldom.DOMNode;
    item_node xmldom.DOMNode;
    ppal_elmt xmldom.DOMElement;
    root_elmt xmldom.DOMElement;
    item_elmt xmldom.DOMElement;
    item_text xmldom.DOMText;
    --Elementos de la cabecera
    header_pi xmldom.DOMProcessingInstruction;
    header_node xmldom.DOMNode;
    CURSOR MODULOS IS
    SELECT T_COAPI AS COAPI,
    T_DNAPI AS DNAPI     
    FROM     T
    WHERE     T_COAPI = 'PES';
    BEGIN
    --Creamos un nuevo DOM document
    doc := xmldom.newDOMDocument();
    ppal_node := xmldom.makeNode(doc);
    FOR Modulo IN Modulos LOOP
    -- El nodo es cada modulo
    root_elmt := xmldom.createElement(doc, 'Modulo');
    root_node := xmldom.appendChild(main_node, xmldom.makeNode(root_elmt));
    --COAPI
    item_elmt := xmldom.createElement(doc, lit_COAPI);
    item_node := xmldom.appendChild(root_node, xmldom.makeNode(item_elmt));
    item_text := xmldom.createTextNode(doc, Modulo.COAPI);
    item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    --DNAPI
    item_elmt := xmldom.createElement(doc, lit_DNAPI);
    item_node := xmldom.appendChild(root_node, xmldom.makeNode(item_elmt));
    item_text := xmldom.createTextNode(doc, Modulo.DNAPI);
    item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    END LOOP
    f := utl_file.fopen('TEMP_DIR','PRUEBA.xml','w');
    --Obtenemos la longitud del xml lob
    len := dbms_lob.getlength(xml);
    DBMS_LOB.CreateTemporary(xml,TRUE);
    xmldom.writeToClob(doc,xml); -- HERE I GET THE ERROR
    dbms_xmldom.WriteToFile(f,xml);
    WHILE (pos < len) LOOP
    vxml := dbms_lob.substr(xml,100,pos);
    utl_file.put(f,vxml);
    pos := pos+100;
    END LOOP;
    utl_file.fclose(f);
    END;

  • Potential Problems with Airplay and Mountain Lion

    Hey Everyone,
    I recently purchased an Apple TV, and I tried to use Airplay with our Macbook Pros. Airplay would work with all of the iOS Devices, but when it came to using with the MBP, it would either show a black screen, or a frozen image of my screen. I called AppleCare, and the rep told me it was a problem with the AppleTV, so I returned it and bought a new one, and it did the same thing. I found out that the problem was occuring because of the type of router I was using. I have a dualband router, and I set everything on one band of the router. I decided to try to place the laptops on a different band, and that's all it took. My airplay now works flawlessly.
    So, if you're having a problem with airplay, and you have a dualband router, try placing your computer & iOS devices on the opposite band, and it should work perfectly.
    Hope this helps.
    - Kaytie Walters

    The VPN log looks like:
    1      13:34:36.904  09/11/12  Sev=Warning/3
    CM/0xA3100027
    Adapter address 10.211.55.6 has changed or not detected.  Current address(es): 10.98.70.169.
    2      13:34:52.044  09/11/12  Sev=Warning/2
    CVPND/0xA340000E
    Failed to get adapter index.
    3      13:35:07.044  09/11/12  Sev=Warning/2
    CVPND/0xA340000E
    Failed to get adapter index.
    4      13:35:07.123  09/11/12  Sev=Warning/2
    CVPND/0xA3400015
    Error with call to IpHlpApi.DLL: CheckUpVASettings: Found IPADDR entry addr=10.98.70.169, error 0
    5      13:35:08.123  09/11/12  Sev=Warning/2
    CVPND/0xA3400015
    Error with call to IpHlpApi.DLL: CheckUpVASettings: Found IPADDR entry addr=10.98.70.169, error 0
    6      13:35:09.123  09/11/12  Sev=Warning/2
    CVPND/0xA3400015
    Error with call to IpHlpApi.DLL: CheckUpVASettings: Found IPADDR entry addr=10.98.70.169, error 0
    7      13:35:10.123  09/11/12  Sev=Warning/2
    CVPND/0xA3400015
    Error with call to IpHlpApi.DLL: CleanUpVASettings: Was able to delete all VA settings after all, error 0
    8      13:35:11.861  09/11/12  Sev=Warning/2
    IKE/0xA3000067
    Received an IPC message during invalid state (IKE_MAIN:512)
    9      13:35:12.407  09/11/12  Sev=Warning/2
    IKE/0xA3000067
    Received an IPC message during invalid state (IKE_MAIN:512)

  • Potential problem with my monitor, please help.

    Hello
    I recently upgraded my OSX to Mavericks and I've been having problems with my monitor, I've attached a screenshot of what is happening because I didn't know how to explain it and I'm unsure if its the OSX upgrade causing the issue or not, however I'm really worried about my monitor on my macbook pro.
    The model I have is the 15" mid 2010 2.4Ghz Intel core i5 with 4GB RAM.

    Still having this issue with my macbook pro monitor... There was no updates available and I followed every other possible solution, sometimes my monotor looks perfect like there was never any problem and other times my entire screen is just covered with this stuff you've seen in the above image.
    I really have no idea what the exact issue is and how to solve it.
    This macbook was given to me for university by the government as I have a form of dyslexia and because I've just finished my degree the insurance has ended... is there anyway I can still buy applecare insurance for my machine?! I got this MBP in 2010 so I've had it for three years now.
    I'm just worried that one day I'll turn on my machine and the monitor won't work whatsoever.. and I thought apple was suppossed to be good and last a long time.
    Hope somebody can help me further.
    Thanks.

  • Potential Problem with Time Capsule after purchasing second computer?

    I have had a MacBook for 3 years and have been backing it up on a Time Capsule (about 40Gb). Now I bought an iMac and would like to set up a system
    1.with all applications and files on the iMac, as my main computer, backed up on the Time Capsule ,
    2. and with the option to easily synchronize new or adjusted files I produce when I travel with (or work on) my Macbook and iPad .
    How should I proceed to avoid trouble? Any experience with an isuue like that?
    Thank you very much
    Paul

    I have almost the identical issue to above - except for the different version of operating systems (I'm running Lion to Lion both most recently updated). I migrated from a 2009 24" iMac to a new 2011 27" iMac and the first backup to initiate following the migration failed with exactly the same error message. Notably, this was on my 2009 Mac (as I have not activated TC on the new one yet).
    Pondini is a great reference... but following his logic, I would seem to have a corrupt disk. But I can still access the TM history and browse without problem. Help

  • Potential problem with all new Macbook Aluminum Displays

    I have read in several threads across the internet (including this one) that people who have received the new aluminum Macbooks have been disappointed with the "greyish" quality of the displays, as well as the color saturation when compared to the older and newer Macbook Pro LED displays, as well as the original Macbook Air displays. Can current owners verify this?

    I hadn't seen other threads until just now actually, but earlier today I posted a comment on this board asking for comments from others who've seen both the new MacBook and Pro next to each other so they could tell me whether I was crazy or not. Essentially the MacBook screen seemed washed out compared to the clearly more vivid colours on the Pro. The Air even seemed to have a better, brighter screen. Not sure what's the issue to be honest, but I went into the store set on a new MacBook, but left considering for the first time ever the bigger Pro simply due to the screen.
    Edit: Another user posted this review, and if you scroll towards the end (where they show a DVD in the dark) the pics are quite telling and confirm (for me) that I'll get a Pro or wait for the refresh for hopefully better screens. http://gizmodo.com/5063492/macbook-and-macbook-pro-dual-review
    Message was edited by: Nick A

  • Potential Problem with Reports

    Hi,
    I operate in a multiple databases environment. I am currently working on some reports that seem to have a problem running across all the databases. The basic structure of the tables that are being used are similar on all the databases but whenever I attempt to run the reports I am getting the error:
    REP-1437 Run time error in the PL/SQL development environment(DE)
    PDE-PSD001 Could not resolve reference to <Unknown Program Unit> while loading
    <Unknown> <Unknown>
    The only way to get them to run on each database is to compile the executable on that database. This really does not seem logical to me!
    What could be the possible causes of this problem?
    I am using ref cursors in a few of them could this be contributing to the problem.
    Thanks,
    Sheika.

    Sorry for the late reply, have been on vacation. Fredrik has a point in that patching may help. Another thing you might like to try is an undocumented parameter called RECURSIVE_LOAD which was put in to address some of these types of issues. By default, the value is yes. However, if you set this to no, the report does not try to revalidate its plsql. The problem is likely because you are touching some database objects (since there are ref cursors involved, I'm sure this is the case) and because the db has changed the way it validates, Reports thinks that the objects have become invalid. If you set this parameter to no, then it does not try to revalidate at all, but just runs the report. One problem would be, of course, if you do make a change to the underlying database objects like changing the code in a stored procedure, the report will not pick that up automatically.
    Hope that helps.
    Toby

  • Potential problems with the 3 TB HDD on ThinkStation P series?

    I'm very much considering a Lenovo ThinkStation P300. I'm planning on getting two hard drives: (1) the 2.5" 256GB SATA Solid State Drive (OPAL) as the first (boot) drive
    (2) the 3.5" 3TB 7200rpm SATA Hard Drive for storage space I have a question about (2); should I get 2 TB or 3 TB? Obviously, the choice is up to me, based on how much I think I want to store and how much I want to spend. However, after tentatively choosing the 3 TB, I have been given pause after researching on the web a bit. Let me explain... The P300 specs sheet here says that Lenovo's part number for the 3 TB HDD is 4XB0F18668. If I search for part number 4XB0F18668 on the Lenovo website, I find this page. On the picture, it looks like the drive has a Seagate logo on it. So the OEM for the 3 TB HDD for the ThinkStation P300 is probably Seagate. A web image search for "4XB0F18668" suggests -- though not conclusively -- that it is a Seagate Barracuda. Unfortunately, a report from Backblaze suggests that 3 TB Seagate Barracuda drives have very high failure rates, compared to other drive sizes. Reviews here seem to corroborate that. Do you have any experience with 3 TB drives being particulary unreliabe? Do you think that I should go with 2 TB? Is there any way I can know if the 3 TB HDD option for the ThinkStation P300 is actually Seagate Barracuda? Or might the 3 TB HDD on the P300 be by an OEM other than Seagate? Thanks for your time.

    The way commodities (such as HDDs) are handled is we generally qualify several different drives for each "drive type" in order to maintain continuity of supply.  So just because you saw a picture of a Seagate drive online doesn't necessarily mean that you will get a Seagate drive when ordering your system.
    My advice, buy the capacity you need.  Any drive that's officially qualified goes through extensive testing to make sure it meets required quality levels, so there is a level of confidence there that if we're selling it, we're going to back it and warrant it if needed.  
    Also keep in mind that often retail drives aren't the same as what we're actually shipping.  Quite often, we ship drives with unique Lenovo firmware, which helps the drive meet our quality requirements.

  • Problem with php code. Please help!

    Hello!
    I'm using the following syntax to bring content into my
    websites' layout template:
    Code:
    <?php //check in the root folder first
    if(file_exists('./' . $pagename . '.php'))
    include './' . $pagename . '.php';
    //if it wasn't found in the root folder then check in the
    news folder
    elseif(file_exisits('./news/' . $filename . '.php'))
    include './news/' . $pagename . '.php';
    // if it couldn't be found display message
    else
    echo $pagename . '.php could not be found in either the root
    folder or the news folder!';
    } ?>
    What it's essentially saying is, if you can't find the .php
    file in the _root folder, look for it in the /news/ folder.
    It works perfectly if loading something from the _root folder
    but I get an error if I need to bring something from the /news/
    folder.
    Can anyone see any potential problems with my code?
    Thank you very much and I hope to hear from you.
    Take care,
    Mark

    I've never seen the code written like that before, but I'm
    assuming it's
    legal?
    Perhaps try:
    <?php
    $newsroot = $_SERVER['DOCUMENT_ROOT']."/news";
    if (!file_exists("$pagename.php")) {
    elseif (!file_exists("$newsroot/$pagename.php")) {
    else
    Or the other thing you can try is replacing the elseif
    statement with:
    elseif (!file_exists("news/$pagename.php"))
    If not - I'm sure Gary will be on here soon...
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    Proud GAWDS Member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================
    "Spindrift" <[email protected]> wrote in
    message
    news:e5mled$272$[email protected]..
    > Hello!
    >
    > I'm using the following syntax to bring content into my
    websites' layout
    > template:
    >
    > Code:
    >
    > <?php //check in the root folder first
    > if(file_exists('./' . $pagename . '.php'))
    > {
    > include './' . $pagename . '.php';
    > }
    > //if it wasn't found in the root folder then check in
    the news folder
    > elseif(file_exisits('./news/' . $filename . '.php'))
    > {
    > include './news/' . $pagename . '.php';
    > }
    > // if it couldn't be found display message
    > else
    > {
    > echo $pagename . '.php could not be found in either the
    root folder or
    > the
    > news folder!';
    > } ?>
    >
    > What it's essentially saying is, if you can't find the
    .php file in the
    > _root
    > folder, look for it in the /news/ folder.
    >
    > It works perfectly if loading something from the _root
    folder but I get an
    > error if I need to bring something from the /news/
    folder.
    >
    > Can anyone see any potential problems with my code?
    >
    > Thank you very much and I hope to hear from you.
    >
    > Take care,
    >
    > Mark
    >

  • Problem with SG200-26G

    Hi everyone,
    my switch cisco small business SG200-26G  in modality link aggregation LACP the Wake On Line doesn't work !!
    (WOL work only in link aggregation non LACP..) I already upgrade the latest firmware but not resolved..
    Do you know how to point out me as to do for resolving this problem?
    Any feedback highly appreciated!
    Many thanks!

    Hi Rudi, I did some searching around, this seems to be a common problem for all vendors.
    Netgear topic
    http://www.readynas.com/forum/viewtopic.php?f=7&t=56090
    HP topic
    http://forums.whirlpool.net.au/archive/1499385
    Here's an old post from Dave Hornstein (Cisco)
    https://supportforums.cisco.com/thread/2100652
    So it seems to be a bit of a mystery. I couldn't begin to speculate why the LACP implementation wouldn't work. It may have something to do with the LACPDU's, may be it has something to do with spanning tree TCN or configuration BPDU. It may also have something to do with the NAS being in some sort of passive mode "speak when being spoken" concept.  Other external factors may be EEE (energy efficient ethernet).
    One interesting idea, see if you can make your NAS active and use the switch passive (join NAS LACP). If your NAS advertised the link bonding and the switch joined through LACP, does the WOL work then? If so, it would indicate a potential problem with the NAS receiving the LACPDU and the magic packet concurrently.
    This may also be something that is counter-intuitive, as WOL is intended to obviously, wake up devices. The magic packet may not correctly work if LAG isn't fully established since the device is not in a fully operational state.
    -Tom
    Please rate helpful posts

  • Problem with special characters and xmldom.writetoclob

    Hi!
    I have a problem with oracle parser in pl/sql.
    My situation:
    i have a clob with valid xml with for example decoded characters:
    (spaces between & and # are for good representing characters by browser - in really there is no spaces)
    <xml>
    <any><![CDATA[ & #187; ]]> text <![CDATA[ & #187; ]]></any>
    </xml>
    i read this xml from clob, parse it and put into another clob by using
    xmldom.writetoclob procedure.
    And in second clob i have"
    <xml>
    <any>& #38;#187; text & #38;#187; </any>
    </xml>
    (ampersand is representing as & #38; !) Why there is not the cdata sections ?
    Why the value of these sections changed?
    Any ideas? I'm using newset xdk (9202) in 8.1.7.3 database.
    Please help!

    Hi John,
    According to your description, my understanding is that the Author showed incorrect character in SharePoint 2013 search result page.
    I tested the same scenario per your post in my environment, and the Müller showed correctly in SharePoint search result page.
    I recommend to reset the index in Search Service Application and run a full crawl to see if the issue still occurs.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Has anyone had a problem with Draft Emails getting sent with Mac OS 10.8.2? It just happened to me and sent a few drafts out to a potential employer I planned on sending out torrow.

    Has anyone had a problem with Draft Emails getting sent with Mac OS 10.8.2? It just happened to me and sent a few drafts out to a potential employer I planned on sending out tomorrow.

    Hi, one question & one suggestion...
    What possible things are connected at home but not at the store, inlude every cable, etc.
    One way to test is to Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, Test for problem in Safe Mode...
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive
    Reboot, test again.
    If it only does it in Regular Boot, then it could be some hardware problem like Video card, (Quartz is turned off in Safe Mode), or Airport, or some USB or Firewire device, or 3rd party add-on, Check System Preferences>Accounts>Login Items window to see if it or something relevant is listed.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.
    Also look in these if they exist, some are invisible...
    /private/var/run/StartupItems
    /Library/StartupItems
    /System/Library/StartupItems
    /System/Library/LaunchDaemons
    /Library/LaunchDaemons

  • Potential Thread Problem with JVM (1.4.2_05)

    This junit test fails on 1.4.2_05 (running on Windows XP), is there a problem with the code or the JVM?
    public class BadJVMTest extends junit.framework.TestCase {
      static byte[] b = new byte[] { -1, 1 };
      public int m2(int offset) {
        while (true) {
          if (b[offset] >= 0)
            return offset + 1;
          offset++;
      class Inner {
        int fOffset = 0;
        public void m1() {
          fOffset = m2(fOffset);
          if (fOffset == 0)
            throw new RuntimeException("Internal Error.");
      private class ReadThread extends Thread {
        int failed = 0;
        public void run() {
          for (int i = 0; i < 100000; i++) {
            try {
              new Inner().m1();
            } catch (Throwable t) {
              failed++;
              System.err.println("Problem on call number " + (i + 1) + " (" + t + ")");
      public void test() throws Exception {
        int numOfThreads = 100;
        ReadThread threads[] = new ReadThread[numOfThreads];
        for (int i = 0; i < numOfThreads; i++) {
          threads[i] = new ReadThread();
          threads.start();
    for (int i = 0; i < numOfThreads; i++) {
    threads[i].join();
    for (int i = 0; i < numOfThreads; i++) {
    assertEquals(0, threads[i].failed);

    Nothing jumps out at me about the code (other than
    its general convolutedness, which I assume you're
    aware of).
    What, exactly, are you observing? I assume it's that
    fOffset is zero after calling m2(), so you're
    throwing the RTE, right?Which does look like a bug to me, however, there are parts of nested class arcania that are beyond my paltry knowledge, so I may be basing that on faulty assumptions.

Maybe you are looking for