Code is very big hence mentioning only relevant stuff , When I click on 'DocumentCallAll' tab, from the class I am getting the value in string jsonStr1 and then it need to pass on page and display the same, but I am getting error "System.SerializationException: Not Serializable: dom.Document"

<apex:form id="wrap">
    <apex:actionFunction action="{!DocumentCallDefault}" name="DocumentCallDefault" status="callWebService" reRender="wrap,json,json1" oncomplete="Tree1();"/>
    <apex:actionFunction action="{!DocumentCallAll}" name="DocumentCallAll" status="callWebService" reRender="wrap,json,json1"  oncomplete="Tree2();"/>
    <apex:inputHidden value="{!jsonStr}" id="json"/>

      function Tree1(){
            var parsedJson = jq1.parseJSON(document.getElementById("{!$Component.wrap:json}").value);
        function Tree2(){
            var parsedJson = jq1.parseJSON(document.getElementById("{!$Component.wrap:json1}").value);

{08:21:57.0 (211339483)|VF_APEX_CALL_END|get(selectedTab)|

08:21:57.0 (212097073)|VF_EVALUATE_FORMULA_BEGIN||#{$Component.wrap:json} 08:21:57.0 (212143608)|VF_EVALUATE_FORMULA_END 08:21:57.0 (212151936)|VF_EVALUATE_FORMULA_BEGIN||#{$Component.wrap:json1} 08:21:57.0 (212170853)|VF_EVALUATE_FORMULA_END 08:21:57.0 (212460421)|VF_SERIALIZE_VIEWSTATE_BEGIN| 08:21:57.0 (216600810)|EXCEPTION_THROWN|[EXTERNAL]|System.SerializationException: Not Serializable: dom.Document}

Value of jsonstr1 is there in class, please help thanks

  • Please edit to include all code and log material as text, not screenshots. Use the {} tool in the editor to format code. – David Reed Sep 12 '19 at 13:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.