Accessibility

TechNote

Deeply nested cftry/cfcatch/cffinally can result in java.lang.VerifyError

Issue


Under certain conditions, ColdFusion can throw a java.lang.VerifyError due to nested coding.   This can be caused in the following conditions, examples:

  1. nested cftry/cfcatch/cffinally block
  2. using a nested cffinally when on WebSphere with JDK1.5 on Microsoft Windows
  3. using nested <cfthrow>/throw 

The following sample shows how the code may be structured when recieiving this exception:

<cftry>
   .... do code ...

  <cfcatch type="any">
    <cftry>
       .... do code ...

      <cfcatch type="any">
        <cftry>
           .... do code ...

          <cfcatch type="any">
             .... do code ...
          </cfcatch>

          <cffinally>
              .... do code ...
          </cffinally>
        </cftry>
      </cfcatch>
    </cftry>
  </cfcatch>
</cftry>

Reason


This is a known issue.  

Solution


Remove the levels of nesting in the your code.

 

AlertThis content requires Flash

To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.

Download the free Flash Player now!

Get Adobe Flash Player

Creative Commons License

Search Support


Document Details

ID:cpsid_51706

Products Affected:

coldfusion