Deeply nested cftry/cfcatch/cffinally can result in java.lang.VerifyErrorProducts affected
Issue
Under certain conditions, ColdFusion can throw a java.lang.VerifyError due to nested coding. This can be caused in the following conditions, examples:
nested cftry/cfcatch/cffinallyblock- using a nested
cffinallywhen on WebSphere with JDK1.5 on Microsoft Windows - 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.
Doc ID
(cpsid_51706)
Last updated
2009-09-29
Products affected
