|
|
| New Topic Reply Subscription Options |
|
| Forums: ImageCFC Forum: Object Instantiation Exception ERRO | |||
|
|||
| Toadsteraz
Joined: 09/04/07 Posts: 1 |
Object Instantiation Exception ERROR V2.19 Posted Tuesday, September 4, 2007 at {ts '2013-05-25 15:28:00'} I am having a problem using the cfcimage 2.19. My command in my cfm is: <cfset imgInfo = imageCFC.resize("", "#CurrentPaths#player_images/#Picture_File#", "#CurrentPaths#player_images/thumb_#Picture_File#",105,0)>This line would come out as followed : /var/www/vhosts/99legacy.com/httpdocs/player_images/881968199405_0_BG.jpg When I run this page on WINDOWS it works GREAT NO ERRORS! When I run this page on my Linux machine using Fedora Core I get an error! The error is as followed: Object Instantiation Exception. An exception occurred when instantiating a java object. The cause of this exception was that: . 744 : out = createObject("java", "java.io.BufferedOutputStream");Anyone have any ideas on why it doesnt work on my Unix/Linus machine? Also to add to this, my debug says the following as well
|
||
|
|||
| JoeZack
Joined: 09/17/07 Posts: 2 |
RE: Object Instantiation Exception ERRO Posted Monday, September 17, 2007 at {ts '2013-05-25 18:12:00'} I just started having this problem as well. I don't know what the hosting situation is (long story) but it just started happening? |
||
|
|||
| rickroot
Joined: 11/08/06 Posts: 126 |
RE: Object Instantiation Exception ERRO Posted Monday, September 17, 2007 at {ts '2013-05-25 19:22:00'}
Anyone have any ideas on why it doesnt work on my Unix/Linus machine? Permissions. Check the permissions to make sure the user that coldfusion is running as (ie, apache, nobody, or www) has the right to write to files in the temporary output directory. By default, that is the same as the destination directory. Rick |
||
|
|||
| JoeZack
Joined: 09/17/07 Posts: 2 |
RE: Object Instantiation Exception ERRO Posted Monday, September 17, 2007 at {ts '2013-05-25 19:31:00'} Actually it turns out my problem was a little different. My hosting company had upgraded to CF8 and I found this: http://imagecfc.riaforge.org/index.cfm?event=page.issue&issueid=3FCF0E9E-CF19-2FFF-EB9DA2CC9A6D83EA Thanks for the quick reply though!!! |
||
|
|||
| admin
Location: Apex, NC Posts: 193 |
RE: Object Instantiation Exception ERRO Posted Tuesday, September 18, 2007 at {ts '2013-05-25 09:05:00'} curious, since that bug was fixed (though I apparently didn't close it). I've tested resizing of images numerous times on CF8 and it has worked fine. Have you actually resolved the problem? Rick Root
|
||
|
|||
| rickroot
Joined: 11/08/06 Posts: 126 |
RE: Object Instantiation Exception ERRO Posted Sunday, September 23, 2007 at {ts '2013-05-25 11:03:00'} JoeZack - still waiting to here if you actually solved the problem, and how. |
||
|
|||
| ievolve
Joined: 10/12/07 Posts: 3 |
RE: Object Instantiation Exception ERRO Posted Friday, October 12, 2007 at {ts '2013-05-25 22:03:00'} I am testing imagecfc on linux mx7 I do a resize just like the code above and get this error: http://www.lostriverlog.com/imagecfc/index.cfm Looks pretty much the same as what was going on above? It is on a hosted server so I really dont know what to tell the host to do to fix it. One thing that stood out in the trace though was: Caused by: java.io.FileNotFoundException: /var/www/vhosts/lostriverlog.com/httpdocs/imagecfc\970EA6E0-909E-EDCA-9BFADA5DA3B8188D.jpg note that after imagecfc the slash is going the wrong way, thus this makes the path invalid. Is this the problem? (and the reason why it would be fine in windows but not in linux?) |
||
|
|||
| ievolve
Joined: 10/12/07 Posts: 3 |
RE: Object Instantiation Exception ERRO Posted Sunday, October 21, 2007 at {ts '2013-05-25 21:17:00'} Can anyone tell me if my suspicions above are correct? If so is there any way to fix the path so it plays nice with linux? |
||
|
|||
| ievolve
Joined: 10/12/07 Posts: 3 |
RE: Object Instantiation Exception ERRO Posted Wednesday, October 24, 2007 at {ts '2013-05-25 21:42:00'} ievolve wrote: Can anyone tell me if my suspicions above are correct? If so is there any way to fix the path so it plays nice with linux? It was indeed a permissions issue afterall. Got it fixed by making the folder writable. |
||
|
|||
| webolution
Joined: 10/30/10 Posts: 1 |
RE: Object Instantiation Exception ERRO Posted Saturday, October 30, 2010 at {ts '2013-05-25 18:10:00'} I am getting this same error. I thought it was a permissions thing, but my CF's tmp directory is set to read&write. I am simply trying the resize method. Here is my specific error... An exception occurred when performing a file operation moving a file to another filesystem on files /Applications/ColdFusion9/runtime/servers/coldfusion/SERVER-INF/temp/wwwroot-tmp//F78274E4-AD0A-BDDF-815B16860E4B17A2.jpg and http://localhost/stark%20images/proof/15/myimage1.jpg. The cause of this exception was: java.io.FileNotFoundException: /Applications/ColdFusion9/runtime/bin/http:/localhost/stark%20images/proof/15/myimage1.jpg (No such file or directory). Any thoughts would be appreciated. |
||
|
|||
| rickroot
Joined: 11/08/06 Posts: 126 |
RE: Object Instantiation Exception ERRO Posted Monday, November 1, 2010 at {ts '2013-05-25 13:50:00'}
/Applications/ColdFusion9/runtime/bin/http:/localhost/stark%20images/proof/15/myimage1.jpg (No such file or directory). well, this certainly implies that either the file doesn't exist, or coldfusion ("java") is unable to read it due to either permissions or ownership. |
||
|
|||
| New Topic Reply Subscription Options |
|
| Subscription Options |
| Subscription options are available after you log in. |
There are 8 active user sessions right now.