Strange Caching issues when going live

I am starting to get these type of errors and don’t know why with the injector.cfc

I have just migrated my site over to a ColdFusion 9.01 server, and am getting the following errors.

Application Execution Exception

Error Type: Autowire.AutowireException : [N/A]
Error Messages: Error autowiring system.modules.blog.controllers.blog. access denied (java.io.FilePermission C:\ColdFusion9\wwwroot\blogService.cfc read)
java.security.AccessControlException: access denied (java.io.FilePermission C:\ColdFusion9\wwwroot\blogService.cfc read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) at java.security.AccessController.checkPermission(AccessController.java:546) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.SecurityManager.checkRead(SecurityManager.java:871) at java.io.File.isFile(File.java:776) at coldfusion.runtime.CFPage.FileExists(CFPage.java:2786) at

It appears that it is trying to load blogService write down to the above error message, I am talking with the hosting providers. But at the moment I have no reason, or idea, or solution as to why this is only happening on the production server.

Anyone know why the caching would be causing this when trying to inject the services? And why it works on a development machine and staging machine without any issues?

Regards,

Andrew Scott

http://www.andyscott.id.au/

Sounds like a file system permissions issue. I’d start by checking what user CF runs as and checking the permissions on all the code folders.

I would guess the obvious answer to why it’s only happening on production would be that permissions are configured differently on that server.

Thanks!

~Brad

Yeah unfortunate that is the hands of the Host. It looks like they are fixing it though

Regards,

Andrew Scott

http://www.andyscott.id.au/

I guess the other thing to check would be that your mappings are correct. I have seen permissions issues before just cover up an incorrect file path.

Does the file C:\ColdFusion9\wwwroot\blogService.cfc exist on your server?

Thanks!

~Brad

Yes it runs on a dev machine and a stage machine, 100% exact code.

Regards,

Andrew Scott

http://www.andyscott.id.au/

Ok as an update the host got all this sorted, but they wouldn’t tell me what they did to get it working. It looks like WireBox does have an issue with running on some hosts, I say some because I can’t vouch for them all.

I just wish I knew what the problem was, but it seemed to be a java permission problem that was sandboxed.

Regards,

Andrew Scott

http://www.andyscott.id.au/

Ok as an update the host got all this sorted, but they wouldn’t tell me what they did to get it working.

Serious? That sounds pretty shady. It sounds like they did something really stupid and don’t want to admit to it.

~Brad

I’ve had so many issues in the past with funny Sandbox configurations from hosting companies, it was just wasting so much time.

If you get the opportunity then breaking out onto your own box makes life a great deal easier.

Rob

Maybe, but I noticed that previously that cfdump was a locked out tag. And that is now able to be used, so I am thinking that they have tried to lock it down to tight. The person answering the emails is probably some junior staff member, who really doesn’t know so I wasn’t going to push it.

It took me 2 months to get out of them why they can’t upgrade one of their servers to CF9.01, so I am assuming that the front line really knows nothing but what they need to.

Regards,

Andrew Scott

http://www.andyscott.id.au/

That is planned with the next project, but for my personal website I can’t justify the expense.

Regards,

Andrew Scott

http://www.andyscott.id.au/