The issue is really weird. What’s happening is that whenever <cfdump> tag is used anywhere in the code, it throws an error like this.

Permission denied for creating Java object: coldfusion.util.DumpHelper. Access to Java objects in the ColdFusion package has been disabled by the administrator

The server is CF8 with access to internal Java Objects disabled. I have checked all the application.cfm files that can possibly be called and there are no Java objects being used anywhere. It might be worth mentioning that there is a CFC which is being used on the server which uses some Java objects but those Java objects are not the CF’s internal objects, so that should be fine and that CFC works just fine when called.

I have spent a few hours trying to figure this out and I am at a loss as to what’s going on with <cfdump> here. I have tried to reproduce the error to get to the bottom of it but there is no consistency in its behaviour. Here is what I did :-

  1. Keep the access to Java Objects disabled and restart CF.
  2. Create a Java Object that uses internal CF object and get a ‘Permissions denied’ error as expected.
  3. Now comment that line of code which uses the internal CF object, and use a simple <cfdump> tag that dumps any var.
  4. Unexpectedly, It would throw the error I stated above (not always though – it did this just once, the first time)
  5. Enable access to internal Java objects and the error is gone, as expected.
  6. Disable the access again and you might see the error again.
  7. Repeat the whole exercise and you might see the error thrown by cfdump at Step 4.

Anyone came across this issue ever? Any info would be appreciated. This is a very useful tag and is used all the time while coding and its a big issue when it doesn’t work.