Monday, 15 February 2010

java - getMetaData() throws internal NullPointerException -



java - getMetaData() throws internal NullPointerException -

calling getmetadata() on component in coldfusion 10 seems randomly throw internal nullpointerexception. while exception neither exposed nor affects actual request (and not critical our applications itself), still fills exception.log files rapidly.

i noticed might related path caching of coldfusion since these nullpointerexception entries on production server only. noticed exception thrown 1 time per component utilize getmetadata() on, although not every first phone call seems trigger it.

for clarification: getmetadata() works well, logs nullpointerexception in coldfusion's exception.log file.

does know solution (other disabling caching or exception.log file)?

background: utilize getmetadata() identify components, useful when using <cfinterface>.

java.lang.nullpointerexception @ coldfusion.util.utils.getservletpath(utils.java:100) @ coldfusion.util.utils.getservletpath(utils.java:90) @ coldfusion.util.utils.getbasetemplatepath(utils.java:419) @ coldfusion.runtime.templateproxyfactory.gettemplatefilehelper(templateproxyfactory.java:1567) @ coldfusion.runtime.metadatautils.getcomponentmetadata(metadatautils.java:112) @ coldfusion.runtime.cfjsppage.getcomponentmetadata(cfjsppage.java:2744) @ coldfusion.runtime.templateproxy.getruntimecomponentmetadata(templateproxy.java:1940) @ coldfusion.runtime.templateproxy.getruntimemetadata(templateproxy.java:1801) @ coldfusion.runtime.metadatautils.getmetadata(metadatautils.java:54) @ coldfusion.runtime.cfjsppage.getmetadata(cfjsppage.java:2717)

you sourround getmetadata() in try/catch block, , within of grab block have empty, instead of standard e.printstacktrace(), since isn't critical how actual application runs.

java reflection coldfusion nullpointerexception coldfusion-10

No comments:

Post a Comment