The Coldfusion Open Source Forums
Home | ImageCFC | CFFM | BlogCFM | CFMBB | CFOpenMail / ImapCFC | CFOpenChat
Forums | Profile | Inbox | Members | Chat | Search | Login | RSS
Vivio Technologies VPS Hosting
New Topic Reply Subscription Options   Previous Page  Page: 1   Previous Page

Forums: BlogCFM Forum: Error resizing image for gallery
Created on: 09/22/07 {ts '2013-05-21 14:40:00'} Views: 17228 Replies: 15
Error resizing image for gallery
Posted Saturday, September 22, 2007 at {ts '2013-05-21 14:40:00'}

I created a test gallery and uploaded a file. When it tried to resize the image or create the thumbnail I get this error

The image was not uploaded correctly.

Object Instantiation Exception. - An exception occurred when instantiating a Java object. The class must not be an interface or an abstract class. Error: ''.

The image did upload, but it's full size and there is no thumbnail.

I'm running this on my dev cf8 connected to a mssql 2005 server.

Thanks for any help, let me know if you need more details.

www
RE: Error resizing image for gallery
Posted Sunday, September 23, 2007 at {ts '2013-05-21 11:14:00'}

Can you paste the full error?

If you're on a shared server with robust error trapping disabled, then wrap the offending code with this:

<cftry>
.... offending code ---
<cfcatch type="any"><cfdump var="#cfcatch#"><cfabort></cfcatch>
</cftry>

RE: Error resizing image for gallery
Posted Sunday, September 23, 2007 at {ts '2013-05-21 13:04:00'}

Rick,

Here's my complete debug output.

Debugging Information
ColdFusion Server Developer    8,0,0,176276
Template    /admin/gallery.cfm
Time Stamp    23-Sep-07 11:53 AM
Locale    English (US)
User Agent    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20061201 Firefox/2.0.0.6 (Ubuntu-feisty)
Remote IP    127.0.0.1
Host Name    localhost

Execution Time

Total Time    Avg Time    Count    Template
1865 ms    1865 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/gallery.cfm
1299 ms    650 ms    2    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc | readImage(file, /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/1/photos/1/deathvalley.jpg) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc
394 ms    394 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc | readImage(file, /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/1/photos/1/DSCF0367.JPG) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc
190 ms    190 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/Application.cfm
81 ms    81 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | savePhoto(1, [complex value], BLOG_ID,GALLERY_ID,PHOTO_ID,ORIG_FILENAME,PHOTO_DESC) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
48 ms    48 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | authCookie(1, 2E84B0F8-AB7A-C378-729E9037D03E6F8B, 127.0.0.1) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
7 ms    7 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | deletePhoto(1, 1, 0) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
7 ms    7 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | init(/opt/jrun4/servers/package1/cfusion.ear/cfusion.war/, package1, , mssql) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
6 ms    6 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | getBlogConfig(1) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
3 ms    3 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | getGallery(1, 1) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
2 ms    2 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | listPhotos(1, 1) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
1 ms    1 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/frmGallery.cfm
1 ms    1 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/messages.cfm
1 ms    1 ms    2    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc | height() ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc
0 ms    0 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/above.cfm
0 ms    0 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/below.cfm
0 ms    0 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/udf.cfm
0 ms    0 ms    3    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc | width() ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc
1 ms       STARTUP, PARSING, COMPILING, LOADING, & SHUTDOWN
2056 ms       TOTAL EXECUTION TIME
red = over 250 ms average execution time

Exceptions

11:53:47.047 - Object Exception - in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc : line 169

    Object Instantiation Exception.
   

SQL Queries

qry (Datasource=package1, Time=3ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 11:53:46.046

      SELECT BLOG_ID FROM BLOG_CONFIG
   

qry (Datasource=package1, Time=3ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 11:53:46.046

      SELECT
         BLOG_ID,ADMIN_EMAIL,BLOG_TITLE,FLAG_HTML_EDITOR_ADMIN,FLAG_HTML_EDITOR_ALL,SESSION_IP_SECURITY,CREATE_ENTRY_FILES,REQUIRE_LOGIN,MONITOR_LEVEL,ENABLE_SUBSCRIPTIONS,ENABLE_CAPTCHA,WEBROOT,DISABLE_COMMENTS,COMMENT_DISABLE_AGE,PING_ON_UPDATE,CSS_OVERRIDE,
         '/opt/jrun4/servers/package1/cfusion.ear/cfusion.war/1/photos' as photoGalleryRoot,
         
            webroot + '/1/photos' as photoGalleryWebroot
         
      FROM BLOG_CONFIG
      WHERE BLOG_ID=?

Query Parameter Value(s) -
Parameter #1(cf_sql_integer) = 1

qry (Datasource=package1, Time=8ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 11:53:46.046

      select A.*, B.IP
      from USERS A INNER JOIN USER_SESSIONS B ON A.USER_ID=B.USER_ID
      where
         B.SESSION_KEY=?
            AND B.BLOG_ID=?

Query Parameter Value(s) -
Parameter #1(cf_sql_varchar) = 2E84B0F8-AB7A-C378-729E9037D03E6F8B
Parameter #2(cf_sql_integer) = 1

qry2 (Datasource=package1, Time=35ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 11:53:46.046

         UPDATE USER_SESSIONS
         SET
            ACCESS_DATE={ts '2007-09-23 11:53:46'}
         WHERE
            SESSION_KEY=?
               AND BLOG_ID=?

Query Parameter Value(s) -
Parameter #1(cf_sql_char) = 2E84B0F8-AB7A-C378-729E9037D03E6F8B
Parameter #2(cf_sql_integer) = 1

qry (Datasource=package1, Time=6ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 11:53:46.046

         select max(photo_id) as max_photo_id from GALLERY_PHOTOS
         where
            blog_id=?
            and gallery_id=?

Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 1
Parameter #2(CF_SQL_INTEGER) = 1

qry (Datasource=package1, Time=70ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 11:53:46.046

         INSERT INTO GALLERY_PHOTOS
         (
            BLOG_ID,
            GALLERY_ID,
            PHOTO_ID,
            FILENAME,
            PHOTO_DESC,
            ORIG_FILENAME,
            THUMB_FILENAME
         ) VALUES (
            ?,
            ?,
            ?,
            ?,
            ?,
            ?,
            ?
         )
      

Query Parameter Value(s) -
Parameter #1(cf_sql_char) = 1
Parameter #2(cf_sql_char) = 1
Parameter #3(cf_sql_char) = 2
Parameter #4(cf_sql_char) = deathvalley.jpg
Parameter #5(cf_sql_char) = A skycap I use
Parameter #6(cf_sql_char) = deathvalley.jpg
Parameter #7(cf_sql_char) = thumb_deathvalley.jpg

qry1 (Datasource=package1, Time=3ms, Records=0) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 11:53:47.047

      SELECT *
      FROM GALLERY_PHOTOS
      WHERE
         blog_id=?
         and gallery_id=?
         and photo_id=?

Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 1
Parameter #2(CF_SQL_INTEGER) = 1
Parameter #3(CF_SQL_INTEGER) = 0

qry2 (Datasource=package1, Time=3ms, Records=0) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 11:53:47.047

      DELETE FROM GALLERY_PHOTOS
      WHERE
         blog_id=?
         and gallery_id=?
         and photo_id=?

Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 1
Parameter #2(CF_SQL_INTEGER) = 1
Parameter #3(CF_SQL_INTEGER) = 0

qry (Datasource=package1, Time=2ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 11:53:47.047

      SELECT
         A.GALLERY_ID, A.GALLERY_NAME, A.GALLERY_DESC, A.PRIVATE,
         COUNT(B.PHOTO_ID) AS CNT,
         MAX(B.THUMB_FILENAME) AS THUMB
      FROM
         GALLERIES A LEFT JOIN GALLERY_PHOTOS B ON A.GALLERY_ID=B.GALLERY_ID
      WHERE
         A.blog_id=?
         and A.gallery_id=?
      GROUP BY A.GALLERY_ID, A.GALLERY_NAME, A.GALLERY_DESC, A.PRIVATE
      ORDER BY GALLERY_NAME DESC
   

Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 1
Parameter #2(CF_SQL_INTEGER) = 1

qry (Datasource=package1, Time=2ms, Records=2) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 11:53:47.047

      SELECT * FROM GALLERY_PHOTOS
      where
         blog_id=?
         and gallery_id=?

Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 1
Parameter #2(CF_SQL_INTEGER) = 1

Scope Variables

CGI Variables:
AUTH_PASSWORD=
AUTH_TYPE=
AUTH_USER=
CERT_COOKIE=
CERT_FLAGS=
CERT_ISSUER=
CERT_KEYSIZE=
CERT_SECRETKEYSIZE=
CERT_SERIALNUMBER=
CERT_SERVER_ISSUER=
CERT_SERVER_SUBJECT=
CERT_SUBJECT=
CF_TEMPLATE_PATH=/opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/gallery.cfm
CONTENT_LENGTH=2023485
CONTENT_TYPE=multipart/form-data; boundary=---------------------------19041473287084650901955892240
CONTEXT_PATH=
GATEWAY_INTERFACE=
HTTPS=
HTTPS_KEYSIZE=
HTTPS_SECRETKEYSIZE=
HTTPS_SERVER_ISSUER=
HTTPS_SERVER_SUBJECT=
HTTP_ACCEPT=text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_ENCODING=gzip,deflate
HTTP_ACCEPT_LANGUAGE=en-us,en;q=0.5
HTTP_CONNECTION=keep-alive
HTTP_COOKIE=CFADMIN_LASTPAGE_ADMIN=%2FCFIDE%2Fadministrator%2Fdebugging%2Findex%2Ecfm; SESSION_KEY=2E84B0F8%2DAB7A%2DC378%2D729E9037D03E6F8B; JSESSIONID=f03078730ca971b97e2114503d16662a5751; CFTOKEN=c9d47cc2715be53%2D2DE3289B%2DAD0C%2D71F3%2D126F412C2340FCC1; CFID=4701; CFAUTHORIZATION_cfadmin=YWRtaW46MDJBRTJDMzFERkFGRkIxRTQxRkI4REM4NTM4QzBDRTMxNzA0QUVEQTpjZmFkbWlu
HTTP_HOST=localhost:8301
HTTP_REFERER=http://localhost:8301//admin/gallery.cfm?GALLERY_ID=1
HTTP_USER_AGENT=Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20061201 Firefox/2.0.0.6 (Ubuntu-feisty)
PATH_INFO=
PATH_TRANSLATED=/opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/gallery.cfm
QUERY_STRING=
REMOTE_ADDR=127.0.0.1
REMOTE_HOST=localhost
REMOTE_USER=
REQUEST_METHOD=POST
SCRIPT_NAME=/admin/gallery.cfm
SERVER_NAME=localhost
SERVER_PORT=8301
SERVER_PORT_SECURE=0
SERVER_PROTOCOL=HTTP/1.1
SERVER_SOFTWARE=
WEB_SERVER_API=

Cookie Variables:
CFADMIN_LASTPAGE_ADMIN=/CFIDE/administrator/debugging/index.cfm
CFAUTHORIZATION_cfadmin=YWRtaW46MDJBRTJDMzFERkFGRkIxRTQxRkI4REM4NTM4QzBDRTMxNzA0QUVEQTpjZmFkbWlu
CFID=4701
CFTOKEN=c9d47cc2715be53-2DE3289B-AD0C-71F3-126F412C2340FCC1
JSESSIONID=f03078730ca971b97e2114503d16662a5751
SESSION_KEY=2E84B0F8-AB7A-C378-729E9037D03E6F8B

Form Fields:
ACTION=uploadPhoto
FIELDNAMES=ACTION,GALLERY_ID,PHOTO_ID,IMAGE_UPLOAD,PHOTO_DESC,RESIZE_WIDTH
GALLERY_DESC=This is the test gallery
GALLERY_ID=1
GALLERY_NAME=Test Gallery
IMAGE_UPLOAD=/opt/jrun4/servers/package1/SERVER-INF/temp/cfusion.war-tmp/neotmp5248.tmp
PHOTO_DESC=A skycap I use
PHOTO_ID=0
RESIZE_WIDTH=500

Session Variables:
cfid=4701
cftoken=c9d47cc2715be53-2DE3289B-AD0C-71F3-126F412C2340FCC1
sessionid=BLOGCFM_4701_c9d47cc2715be53-2DE3289B-AD0C-71F3-126F412C2340FCC1
showdate={ts '2007-09-23 11:51:29'}
urltoken=CFID=4701&CFTOKEN=c9d47cc2715be53-2DE3289B-AD0C-71F3-126F412C2340FCC1

Debug Rendering Time: 306 ms

www
RE: Error resizing image for gallery
Posted Sunday, September 23, 2007 at {ts '2013-05-21 13:19:00'}

Oh jeez, I forgot that blogcfm is still using Jim Dew's imagecfc 1.2 (ie, long before I nearly completely redid it).

That version of imagecfc will not work with CF8.

Integrating ImageCFC 2.x into BlogCFM shouldn't be that hard.. but I don't have time to do it right now. It would involve the use of ImageObject.cfc, a wrapper component which mimics the functionality of Jim's old image.cfc,

Try unzipping the imageCFC download into the admin directory of your blogcfm installation, and then change this:

createObject("component","image");

to this:

createObject("component","ImageObject");

in gallery.cfm (several places)

That *MIGHT* do it.

Rick

RE: Error resizing image for gallery
Posted Sunday, September 23, 2007 at {ts '2013-05-21 13:22:00'}

Thanks Rick, I'll give that a whirl and let you know.

www
RE: Error resizing image for gallery
Posted Sunday, September 23, 2007 at {ts '2013-05-21 13:33:00'}

Ok, I made the changes you suggested, but now I am getting the following error:

The image was not uploaded correctly.

The method readImage was not found in component /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/ImageObject.cfc. - Ensure that the method is defined, and that it is spelled correctly.

And here is the debug:

Debugging Information
ColdFusion Server Developer    8,0,0,176276
Template    /admin/gallery.cfm
Time Stamp    23-Sep-07 12:24 PM
Locale    English (US)
User Agent    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20061201 Firefox/2.0.0.6 (Ubuntu-feisty)
Remote IP    127.0.0.1
Host Name    localhost

Execution Time

Total Time    Avg Time    Count    Template
514 ms    514 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/gallery.cfm
107 ms    107 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/Application.cfm
56 ms    56 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | savePhoto(1, [complex value], BLOG_ID,GALLERY_ID,PHOTO_ID,ORIG_FILENAME,PHOTO_DESC) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
44 ms    44 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | authCookie(1, 2E84B0F8-AB7A-C378-729E9037D03E6F8B, 127.0.0.1) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
11 ms    11 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | deletePhoto(1, 1, 0) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
10 ms    10 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | init(/opt/jrun4/servers/package1/cfusion.ear/cfusion.war/, package1, , mssql) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
4 ms    4 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | getBlogConfig(1) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
4 ms    4 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | listPhotos(1, 1) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
3 ms    3 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | getGallery(1, 1) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
1 ms    1 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/frmGallery.cfm
1 ms    1 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/messages.cfm
0 ms    0 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/above.cfm
0 ms    0 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/below.cfm
0 ms    0 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/udf.cfm
0 ms    0 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc | setOption(throwonerror, true) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc
7 ms       STARTUP, PARSING, COMPILING, LOADING, & SHUTDOWN
628 ms       TOTAL EXECUTION TIME
red = over 250 ms average execution time

Exceptions

12:24:29.029 - Application Exception - in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/gallery.cfm : line 61

    The method readImage was not found in component /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/ImageObject.cfc.
   

12:24:29.029 - Application Exception - in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc : line 622

    The FORMODIFICATION argument passed to the readImage function is not of type boolean.
   

12:24:29.029 - Application Exception - in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc : line 622

    The FORMODIFICATION argument passed to the readImage function is not of type boolean.
   

12:24:29.029 - Application Exception - in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc : line 622

    The FORMODIFICATION argument passed to the readImage function is not of type boolean.
   

SQL Queries

qry (Datasource=package1, Time=7ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:24:28.028

      SELECT BLOG_ID FROM BLOG_CONFIG
   

qry (Datasource=package1, Time=3ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:24:28.028

      SELECT
         BLOG_ID,ADMIN_EMAIL,BLOG_TITLE,FLAG_HTML_EDITOR_ADMIN,FLAG_HTML_EDITOR_ALL,SESSION_IP_SECURITY,CREATE_ENTRY_FILES,REQUIRE_LOGIN,MONITOR_LEVEL,ENABLE_SUBSCRIPTIONS,ENABLE_CAPTCHA,WEBROOT,DISABLE_COMMENTS,COMMENT_DISABLE_AGE,PING_ON_UPDATE,CSS_OVERRIDE,
         '/opt/jrun4/servers/package1/cfusion.ear/cfusion.war/1/photos' as photoGalleryRoot,
         
            webroot + '/1/photos' as photoGalleryWebroot
         
      FROM BLOG_CONFIG
      WHERE BLOG_ID=?

Query Parameter Value(s) -
Parameter #1(cf_sql_integer) = 1

qry (Datasource=package1, Time=3ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:24:28.028

      select A.*, B.IP
      from USERS A INNER JOIN USER_SESSIONS B ON A.USER_ID=B.USER_ID
      where
         B.SESSION_KEY=?
            AND B.BLOG_ID=?

Query Parameter Value(s) -
Parameter #1(cf_sql_varchar) = 2E84B0F8-AB7A-C378-729E9037D03E6F8B
Parameter #2(cf_sql_integer) = 1

qry2 (Datasource=package1, Time=37ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:24:28.028

         UPDATE USER_SESSIONS
         SET
            ACCESS_DATE={ts '2007-09-23 12:24:28'}
         WHERE
            SESSION_KEY=?
               AND BLOG_ID=?

Query Parameter Value(s) -
Parameter #1(cf_sql_char) = 2E84B0F8-AB7A-C378-729E9037D03E6F8B
Parameter #2(cf_sql_integer) = 1

qry (Datasource=package1, Time=3ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:24:28.028

         select max(photo_id) as max_photo_id from GALLERY_PHOTOS
         where
            blog_id=?
            and gallery_id=?

Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 1
Parameter #2(CF_SQL_INTEGER) = 1

qry (Datasource=package1, Time=46ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:24:28.028

         INSERT INTO GALLERY_PHOTOS
         (
            BLOG_ID,
            GALLERY_ID,
            PHOTO_ID,
            FILENAME,
            PHOTO_DESC,
            ORIG_FILENAME,
            THUMB_FILENAME
         ) VALUES (
            ?,
            ?,
            ?,
            ?,
            ?,
            ?,
            ?
         )
      

Query Parameter Value(s) -
Parameter #1(cf_sql_char) = 1
Parameter #2(cf_sql_char) = 1
Parameter #3(cf_sql_char) = 3
Parameter #4(cf_sql_char) = cage.jpg
Parameter #5(cf_sql_char) = a cage
Parameter #6(cf_sql_char) = cage.jpg
Parameter #7(cf_sql_char) = thumb_cage.jpg

qry1 (Datasource=package1, Time=4ms, Records=0) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:24:29.029

      SELECT *
      FROM GALLERY_PHOTOS
      WHERE
         blog_id=?
         and gallery_id=?
         and photo_id=?

Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 1
Parameter #2(CF_SQL_INTEGER) = 1
Parameter #3(CF_SQL_INTEGER) = 0

qry2 (Datasource=package1, Time=4ms, Records=0) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:24:29.029

      DELETE FROM GALLERY_PHOTOS
      WHERE
         blog_id=?
         and gallery_id=?
         and photo_id=?

Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 1
Parameter #2(CF_SQL_INTEGER) = 1
Parameter #3(CF_SQL_INTEGER) = 0

qry (Datasource=package1, Time=2ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:24:29.029

      SELECT
         A.GALLERY_ID, A.GALLERY_NAME, A.GALLERY_DESC, A.PRIVATE,
         COUNT(B.PHOTO_ID) AS CNT,
         MAX(B.THUMB_FILENAME) AS THUMB
      FROM
         GALLERIES A LEFT JOIN GALLERY_PHOTOS B ON A.GALLERY_ID=B.GALLERY_ID
      WHERE
         A.blog_id=?
         and A.gallery_id=?
      GROUP BY A.GALLERY_ID, A.GALLERY_NAME, A.GALLERY_DESC, A.PRIVATE
      ORDER BY GALLERY_NAME DESC
   

Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 1
Parameter #2(CF_SQL_INTEGER) = 1

qry (Datasource=package1, Time=2ms, Records=3) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:24:29.029

      SELECT * FROM GALLERY_PHOTOS
      where
         blog_id=?
         and gallery_id=?

Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 1
Parameter #2(CF_SQL_INTEGER) = 1

Scope Variables

CGI Variables:
AUTH_PASSWORD=
AUTH_TYPE=
AUTH_USER=
CERT_COOKIE=
CERT_FLAGS=
CERT_ISSUER=
CERT_KEYSIZE=
CERT_SECRETKEYSIZE=
CERT_SERIALNUMBER=
CERT_SERVER_ISSUER=
CERT_SERVER_SUBJECT=
CERT_SUBJECT=
CF_TEMPLATE_PATH=/opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/gallery.cfm
CONTENT_LENGTH=658443
CONTENT_TYPE=multipart/form-data; boundary=---------------------------211158940418087434201578131351
CONTEXT_PATH=
GATEWAY_INTERFACE=
HTTPS=
HTTPS_KEYSIZE=
HTTPS_SECRETKEYSIZE=
HTTPS_SERVER_ISSUER=
HTTPS_SERVER_SUBJECT=
HTTP_ACCEPT=text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_ENCODING=gzip,deflate
HTTP_ACCEPT_LANGUAGE=en-us,en;q=0.5
HTTP_CONNECTION=keep-alive
HTTP_COOKIE=SESSION_KEY=2E84B0F8%2DAB7A%2DC378%2D729E9037D03E6F8B; CFADMIN_LASTPAGE_ADMIN=%2FCFIDE%2Fadministrator%2Fdebugging%2Findex%2Ecfm; CFAUTHORIZATION_cfadmin=YWRtaW46MDJBRTJDMzFERkFGRkIxRTQxRkI4REM4NTM4QzBDRTMxNzA0QUVEQTpjZmFkbWlu; CFTOKEN=c9d47cc2715be53%2D2DE3289B%2DAD0C%2D71F3%2D126F412C2340FCC1; CFID=4701; JSESSIONID=f03078730ca971b97e2114503d16662a5751
HTTP_HOST=localhost:8301
HTTP_REFERER=http://localhost:8301//admin/gallery.cfm?GALLERY_ID=1
HTTP_USER_AGENT=Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20061201 Firefox/2.0.0.6 (Ubuntu-feisty)
PATH_INFO=
PATH_TRANSLATED=/opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/gallery.cfm
QUERY_STRING=
REMOTE_ADDR=127.0.0.1
REMOTE_HOST=localhost
REMOTE_USER=
REQUEST_METHOD=POST
SCRIPT_NAME=/admin/gallery.cfm
SERVER_NAME=localhost
SERVER_PORT=8301
SERVER_PORT_SECURE=0
SERVER_PROTOCOL=HTTP/1.1
SERVER_SOFTWARE=
WEB_SERVER_API=

Cookie Variables:
CFADMIN_LASTPAGE_ADMIN=/CFIDE/administrator/debugging/index.cfm
CFAUTHORIZATION_cfadmin=YWRtaW46MDJBRTJDMzFERkFGRkIxRTQxRkI4REM4NTM4QzBDRTMxNzA0QUVEQTpjZmFkbWlu
CFID=4701
CFTOKEN=c9d47cc2715be53-2DE3289B-AD0C-71F3-126F412C2340FCC1
JSESSIONID=f03078730ca971b97e2114503d16662a5751
SESSION_KEY=2E84B0F8-AB7A-C378-729E9037D03E6F8B

Form Fields:
ACTION=uploadPhoto
FIELDNAMES=ACTION,GALLERY_ID,PHOTO_ID,IMAGE_UPLOAD,PHOTO_DESC,RESIZE_WIDTH
GALLERY_DESC=This is the test gallery
GALLERY_ID=1
GALLERY_NAME=Test Gallery
IMAGE_UPLOAD=/opt/jrun4/servers/package1/SERVER-INF/temp/cfusion.war-tmp/neotmp22234.tmp
PHOTO_DESC=a cage
PHOTO_ID=0
RESIZE_WIDTH=500

Session Variables:
cfid=4701
cftoken=c9d47cc2715be53-2DE3289B-AD0C-71F3-126F412C2340FCC1
sessionid=BLOGCFM_4701_c9d47cc2715be53-2DE3289B-AD0C-71F3-126F412C2340FCC1
showdate={ts '2007-09-23 12:24:01'}
urltoken=CFID=4701&CFTOKEN=c9d47cc2715be53-2DE3289B-AD0C-71F3-126F412C2340FCC1

Debug Rendering Time: 379 ms

www
RE: Error resizing image for gallery
Posted Sunday, September 23, 2007 at {ts '2013-05-21 13:50:00'}

you're lucky I'm sitting here listening to the Lions game (go lions!)

Okay.. try this.

There are several instances of calls to the readImage() method in gallery.cfm

Change these to call the init method and remove the "file" argument.. so the first one should look like this:

OLD - imageCFC.readImage("file",base_file);

NEW - imageCFC.init(base_file);

*THEN* the instances of writeImage need to be changed to "save"..

OLD - imageCFC.writeImage(thumb_file);

NEW - imageCFC.save(thumb_file);

Also... imageCFC.width() needs to be changed to imageCFC.imageInfo.width ... same thing with height.

They're both now a property instead of a method.

I think that'll cover it.

Damn, Lions down 21-7 now. Sad

RE: Error resizing image for gallery
Posted Sunday, September 23, 2007 at {ts '2013-05-21 13:59:00'}

The image was not uploaded correctly.

Element IMAGEINFO is undefined in IMAGECFC. -

And the debug

Debugging Information
ColdFusion Server Developer    8,0,0,176276
Template    /admin/gallery.cfm
Time Stamp    23-Sep-07 12:49 PM
Locale    English (US)
User Agent    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20061201 Firefox/2.0.0.6 (Ubuntu-feisty)
Remote IP    127.0.0.1
Host Name    localhost

Execution Time

Total Time    Avg Time    Count    Template
731 ms    731 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/gallery.cfm
671 ms    671 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/ImageObject.cfc | init(/opt/jrun4/servers/package1/cfusion.ear/cfusion.war/1/photos/1/DSCF0367.JPG) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/ImageObject.cfc
652 ms    652 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc | readImage(/opt/jrun4/servers/package1/cfusion.ear/cfusion.war/1/photos/1/DSCF0367.JPG, no) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc
60 ms    60 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/Application.cfm
39 ms    39 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | authCookie(1, 2E84B0F8-AB7A-C378-729E9037D03E6F8B, 127.0.0.1) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
19 ms    19 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | savePhoto(1, [complex value], BLOG_ID,GALLERY_ID,PHOTO_ID,ORIG_FILENAME,PHOTO_DESC) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
16 ms    16 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc | getImageInfo([complex value], ) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc
8 ms    8 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/javaloader/JavaLoader.cfc | init([complex value]) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/javaloader/JavaLoader.cfc
8 ms    8 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | init(/opt/jrun4/servers/package1/cfusion.ear/cfusion.war/, package1, /, mssql) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
7 ms    7 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | getBlogConfig(1) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
4 ms    4 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/javaloader/JavaLoader.cfc | create(com.drew.imaging.jpeg.JpegMetadataReader) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/javaloader/JavaLoader.cfc
4 ms    4 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | deletePhoto(1, 1, 0) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
3 ms    3 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | getGallery(1, 1) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
2 ms    2 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | listPhotos(1, 1) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
1 ms    1 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/frmGallery.cfm
0 ms    0 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/above.cfm
0 ms    0 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/below.cfm
0 ms    0 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/messages.cfm
0 ms    0 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/udf.cfm
0 ms    0 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc | setOption(throwonerror, true) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc
0 ms       STARTUP, PARSING, COMPILING, LOADING, & SHUTDOWN
791 ms       TOTAL EXECUTION TIME
red = over 250 ms average execution time

Exceptions

12:49:46.046 - Object Exception - in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc : line 179

    The readMetadata method was not found.
   

12:49:46.046 - Expression Exception - in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/gallery.cfm : line 62

    Element IMAGEINFO is undefined in IMAGECFC.
   

12:49:46.046 - Application Exception - in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/gallery.cfm : line 192

    The method init was not found in component /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc.
   

SQL Queries

qry (Datasource=package1, Time=6ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:49:45.045

      SELECT BLOG_ID FROM BLOG_CONFIG
   

qry (Datasource=package1, Time=6ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:49:45.045

      SELECT
         BLOG_ID,ADMIN_EMAIL,BLOG_TITLE,FLAG_HTML_EDITOR_ADMIN,FLAG_HTML_EDITOR_ALL,SESSION_IP_SECURITY,CREATE_ENTRY_FILES,REQUIRE_LOGIN,MONITOR_LEVEL,ENABLE_SUBSCRIPTIONS,ENABLE_CAPTCHA,WEBROOT,DISABLE_COMMENTS,COMMENT_DISABLE_AGE,PING_ON_UPDATE,CSS_OVERRIDE,
         '/opt/jrun4/servers/package1/cfusion.ear/cfusion.war/1/photos' as photoGalleryRoot,
         
            webroot + '/1/photos' as photoGalleryWebroot
         
      FROM BLOG_CONFIG
      WHERE BLOG_ID=?

Query Parameter Value(s) -
Parameter #1(cf_sql_integer) = 1

qry (Datasource=package1, Time=3ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:49:45.045

      select A.*, B.IP
      from USERS A INNER JOIN USER_SESSIONS B ON A.USER_ID=B.USER_ID
      where
         B.SESSION_KEY=?
            AND B.BLOG_ID=?

Query Parameter Value(s) -
Parameter #1(cf_sql_varchar) = 2E84B0F8-AB7A-C378-729E9037D03E6F8B
Parameter #2(cf_sql_integer) = 1

qry2 (Datasource=package1, Time=35ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:49:45.045

         UPDATE USER_SESSIONS
         SET
            ACCESS_DATE={ts '2007-09-23 12:49:45'}
         WHERE
            SESSION_KEY=?
               AND BLOG_ID=?

Query Parameter Value(s) -
Parameter #1(cf_sql_char) = 2E84B0F8-AB7A-C378-729E9037D03E6F8B
Parameter #2(cf_sql_integer) = 1

qry (Datasource=package1, Time=2ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:49:45.045

         select max(photo_id) as max_photo_id from GALLERY_PHOTOS
         where
            blog_id=?
            and gallery_id=?

Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 1
Parameter #2(CF_SQL_INTEGER) = 1

qry (Datasource=package1, Time=12ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:49:45.045

         INSERT INTO GALLERY_PHOTOS
         (
            BLOG_ID,
            GALLERY_ID,
            PHOTO_ID,
            FILENAME,
            PHOTO_DESC,
            ORIG_FILENAME,
            THUMB_FILENAME
         ) VALUES (
            ?,
            ?,
            ?,
            ?,
            ?,
            ?,
            ?
         )
      

Query Parameter Value(s) -
Parameter #1(cf_sql_char) = 1
Parameter #2(cf_sql_char) = 1
Parameter #3(cf_sql_char) = 1
Parameter #4(cf_sql_char) = DSCF0367.JPG
Parameter #5(cf_sql_char) = picture
Parameter #6(cf_sql_char) = DSCF0367.JPG
Parameter #7(cf_sql_char) = thumb_DSCF0367.JPG

qry1 (Datasource=package1, Time=2ms, Records=0) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:49:46.046

      SELECT *
      FROM GALLERY_PHOTOS
      WHERE
         blog_id=?
         and gallery_id=?
         and photo_id=?

Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 1
Parameter #2(CF_SQL_INTEGER) = 1
Parameter #3(CF_SQL_INTEGER) = 0

qry2 (Datasource=package1, Time=2ms, Records=0) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:49:46.046

      DELETE FROM GALLERY_PHOTOS
      WHERE
         blog_id=?
         and gallery_id=?
         and photo_id=?

Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 1
Parameter #2(CF_SQL_INTEGER) = 1
Parameter #3(CF_SQL_INTEGER) = 0

qry (Datasource=package1, Time=1ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:49:46.046

      SELECT
         A.GALLERY_ID, A.GALLERY_NAME, A.GALLERY_DESC, A.PRIVATE,
         COUNT(B.PHOTO_ID) AS CNT,
         MAX(B.THUMB_FILENAME) AS THUMB
      FROM
         GALLERIES A LEFT JOIN GALLERY_PHOTOS B ON A.GALLERY_ID=B.GALLERY_ID
      WHERE
         A.blog_id=?
         and A.gallery_id=?
      GROUP BY A.GALLERY_ID, A.GALLERY_NAME, A.GALLERY_DESC, A.PRIVATE
      ORDER BY GALLERY_NAME DESC
   

Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 1
Parameter #2(CF_SQL_INTEGER) = 1

qry (Datasource=package1, Time=2ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:49:46.046

      SELECT * FROM GALLERY_PHOTOS
      where
         blog_id=?
         and gallery_id=?

Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 1
Parameter #2(CF_SQL_INTEGER) = 1

Scope Variables

CGI Variables:
AUTH_PASSWORD=
AUTH_TYPE=
AUTH_USER=
CERT_COOKIE=
CERT_FLAGS=
CERT_ISSUER=
CERT_KEYSIZE=
CERT_SECRETKEYSIZE=
CERT_SERIALNUMBER=
CERT_SERVER_ISSUER=
CERT_SERVER_SUBJECT=
CERT_SUBJECT=
CF_TEMPLATE_PATH=/opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/gallery.cfm
CONTENT_LENGTH=1186989
CONTENT_TYPE=multipart/form-data; boundary=---------------------------11447503241973938469775657286
CONTEXT_PATH=
GATEWAY_INTERFACE=
HTTPS=
HTTPS_KEYSIZE=
HTTPS_SECRETKEYSIZE=
HTTPS_SERVER_ISSUER=
HTTPS_SERVER_SUBJECT=
HTTP_ACCEPT=text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_ENCODING=gzip,deflate
HTTP_ACCEPT_LANGUAGE=en-us,en;q=0.5
HTTP_CONNECTION=keep-alive
HTTP_COOKIE=SESSION_KEY=2E84B0F8%2DAB7A%2DC378%2D729E9037D03E6F8B; CFADMIN_LASTPAGE_ADMIN=%2FCFIDE%2Fadministrator%2Fdebugging%2Findex%2Ecfm; CFTOKEN=c9d47cc2715be53%2D2DE3289B%2DAD0C%2D71F3%2D126F412C2340FCC1; CFID=4701; JSESSIONID=f03078730ca971b97e2114503d16662a5751; CFAUTHORIZATION_cfadmin=YWRtaW46MDJBRTJDMzFERkFGRkIxRTQxRkI4REM4NTM4QzBDRTMxNzA0QUVEQTpjZmFkbWlu
HTTP_HOST=localhost:8301
HTTP_REFERER=http://localhost:8301//admin/gallery.cfm?ACTION=removePhoto&GALLERY_ID=1&PHOTO_ID=3
HTTP_USER_AGENT=Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20061201 Firefox/2.0.0.6 (Ubuntu-feisty)
PATH_INFO=
PATH_TRANSLATED=/opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/gallery.cfm
QUERY_STRING=
REMOTE_ADDR=127.0.0.1
REMOTE_HOST=localhost
REMOTE_USER=
REQUEST_METHOD=POST
SCRIPT_NAME=/admin/gallery.cfm
SERVER_NAME=localhost
SERVER_PORT=8301
SERVER_PORT_SECURE=0
SERVER_PROTOCOL=HTTP/1.1
SERVER_SOFTWARE=
WEB_SERVER_API=

Cookie Variables:
CFADMIN_LASTPAGE_ADMIN=/CFIDE/administrator/debugging/index.cfm
CFAUTHORIZATION_cfadmin=YWRtaW46MDJBRTJDMzFERkFGRkIxRTQxRkI4REM4NTM4QzBDRTMxNzA0QUVEQTpjZmFkbWlu
CFID=4701
CFTOKEN=c9d47cc2715be53-2DE3289B-AD0C-71F3-126F412C2340FCC1
JSESSIONID=f03078730ca971b97e2114503d16662a5751
SESSION_KEY=2E84B0F8-AB7A-C378-729E9037D03E6F8B

Form Fields:
ACTION=uploadPhoto
FIELDNAMES=ACTION,GALLERY_ID,PHOTO_ID,IMAGE_UPLOAD,PHOTO_DESC,RESIZE_WIDTH
GALLERY_DESC=This is the test gallery
GALLERY_ID=1
GALLERY_NAME=Test Gallery
IMAGE_UPLOAD=/opt/jrun4/servers/package1/SERVER-INF/temp/cfusion.war-tmp/neotmp22238.tmp
PHOTO_DESC=picture
PHOTO_ID=0
RESIZE_WIDTH=500

Session Variables:
cfid=4701
cftoken=c9d47cc2715be53-2DE3289B-AD0C-71F3-126F412C2340FCC1
sessionid=BLOGCFM_4701_c9d47cc2715be53-2DE3289B-AD0C-71F3-126F412C2340FCC1
showdate={ts '2007-09-23 12:41:20'}
urltoken=CFID=4701&CFTOKEN=c9d47cc2715be53-2DE3289B-AD0C-71F3-126F412C2340FCC1

Debug Rendering Time: 43 ms

I'm also on instant messenger if that is easier for you.

www
RE: Error resizing image for gallery
Posted Sunday, September 23, 2007 at {ts '2013-05-21 14:04:00'}

try

imageCFC.getImageInfo().width
and
imageCFC.getImageInfo().height

RE: Error resizing image for gallery
Posted Sunday, September 23, 2007 at {ts '2013-05-21 14:05:00'}

going to stop listening to the lions philly game soon, it's getting ugly!

RE: Error resizing image for gallery
Posted Sunday, September 23, 2007 at {ts '2013-05-21 14:08:00'}

The image was not uploaded correctly.

The method writeImage was not found in component /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/ImageObject.cfc. - Ensure that the method is defined, and that it is spelled correctly.

However the thumbnail shows up now.

Debugging Information
ColdFusion Server Developer    8,0,0,176276
Template    /admin/gallery.cfm
Time Stamp    23-Sep-07 12:59 PM
Locale    English (US)
User Agent    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20061201 Firefox/2.0.0.6 (Ubuntu-feisty)
Remote IP    127.0.0.1
Host Name    localhost

Execution Time

Total Time    Avg Time    Count    Template
5496 ms    5496 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/gallery.cfm
2492 ms    2492 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/ImageObject.cfc | resize(150, 0) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/ImageObject.cfc
2477 ms    2477 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc | resize([complex value], , , 150, 0, FALSE, FALSE) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc
1776 ms    1776 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/ImageObject.cfc | resize(500, 0) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/ImageObject.cfc
1753 ms    1753 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc | resize([complex value], , , 500, 0, FALSE, FALSE) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc
1061 ms    531 ms    2    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/ImageObject.cfc | init(/opt/jrun4/servers/package1/cfusion.ear/cfusion.war/1/photos/1/DSCF0367.JPG) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/ImageObject.cfc
1019 ms    510 ms    2    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc | readImage(/opt/jrun4/servers/package1/cfusion.ear/cfusion.war/1/photos/1/DSCF0367.JPG, no) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc
108 ms    108 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/ImageObject.cfc | save(/opt/jrun4/servers/package1/cfusion.ear/cfusion.war/1/photos/1/thumb_DSCF0367.JPG) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/ImageObject.cfc
107 ms    107 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc | writeImage(/opt/jrun4/servers/package1/cfusion.ear/cfusion.war/1/photos/1/thumb_DSCF0367.JPG, [complex value]) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc
77 ms    19 ms    4    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc | getImageInfo([complex value], ) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc
57 ms    10 ms    6    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/javaloader/JavaLoader.cfc | init([complex value]) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/javaloader/JavaLoader.cfc
39 ms    39 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/Application.cfm
30 ms    30 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | authCookie(1, 2E84B0F8-AB7A-C378-729E9037D03E6F8B, 127.0.0.1) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
22 ms    4 ms    6    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/javaloader/JavaLoader.cfc | create(com.drew.imaging.jpeg.JpegMetadataReader) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/javaloader/JavaLoader.cfc
14 ms    14 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | savePhoto(1, [complex value], BLOG_ID,GALLERY_ID,PHOTO_ID,ORIG_FILENAME,PHOTO_DESC) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
5 ms    5 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | deletePhoto(1, 1, 0) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
3 ms    3 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | init(/opt/jrun4/servers/package1/cfusion.ear/cfusion.war/, package1, /, mssql) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
2 ms    2 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | getBlogConfig(1) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
2 ms    2 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | getGallery(1, 1) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
2 ms    2 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc | listPhotos(1, 1) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc
1 ms    1 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/frmGallery.cfm
1 ms    1 ms    2    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/ImageObject.cfc | getImageInfo() ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/ImageObject.cfc
0 ms    0 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/above.cfm
0 ms    0 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/below.cfm
0 ms    0 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/messages.cfm
0 ms    0 ms    1    /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/udf.cfm
0 ms    0 ms    1    CFC[ /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc | setOption(throwonerror, true) ] from /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc
2 ms       STARTUP, PARSING, COMPILING, LOADING, & SHUTDOWN
5537 ms       TOTAL EXECUTION TIME
red = over 250 ms average execution time

Exceptions

12:59:15.015 - Object Exception - in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc : line 179

    The readMetadata method was not found.
   

12:59:17.017 - Object Exception - in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc : line 179

    The readMetadata method was not found.
   

12:59:17.017 - Object Exception - in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc : line 179

    The readMetadata method was not found.
   

12:59:18.018 - Object Exception - in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc : line 179

    The readMetadata method was not found.
   

12:59:19.019 - Object Exception - in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc : line 179

    The readMetadata method was not found.
   

12:59:19.019 - Object Exception - in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc : line 179

    The readMetadata method was not found.
   

12:59:19.019 - Application Exception - in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/gallery.cfm : line 71

    The method writeImage was not found in component /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/ImageObject.cfc.
   

12:59:19.019 - Application Exception - in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/gallery.cfm : line 192

    The method init was not found in component /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/image.cfc.
   

SQL Queries

qry (Datasource=package1, Time=3ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:59:14.014

      SELECT BLOG_ID FROM BLOG_CONFIG
   

qry (Datasource=package1, Time=2ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:59:14.014

      SELECT
         BLOG_ID,ADMIN_EMAIL,BLOG_TITLE,FLAG_HTML_EDITOR_ADMIN,FLAG_HTML_EDITOR_ALL,SESSION_IP_SECURITY,CREATE_ENTRY_FILES,REQUIRE_LOGIN,MONITOR_LEVEL,ENABLE_SUBSCRIPTIONS,ENABLE_CAPTCHA,WEBROOT,DISABLE_COMMENTS,COMMENT_DISABLE_AGE,PING_ON_UPDATE,CSS_OVERRIDE,
         '/opt/jrun4/servers/package1/cfusion.ear/cfusion.war/1/photos' as photoGalleryRoot,
         
            webroot + '/1/photos' as photoGalleryWebroot
         
      FROM BLOG_CONFIG
      WHERE BLOG_ID=?

Query Parameter Value(s) -
Parameter #1(cf_sql_integer) = 1

qry (Datasource=package1, Time=2ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:59:14.014

      select A.*, B.IP
      from USERS A INNER JOIN USER_SESSIONS B ON A.USER_ID=B.USER_ID
      where
         B.SESSION_KEY=?
            AND B.BLOG_ID=?

Query Parameter Value(s) -
Parameter #1(cf_sql_varchar) = 2E84B0F8-AB7A-C378-729E9037D03E6F8B
Parameter #2(cf_sql_integer) = 1

qry2 (Datasource=package1, Time=26ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:59:14.014

         UPDATE USER_SESSIONS
         SET
            ACCESS_DATE={ts '2007-09-23 12:59:14'}
         WHERE
            SESSION_KEY=?
               AND BLOG_ID=?

Query Parameter Value(s) -
Parameter #1(cf_sql_char) = 2E84B0F8-AB7A-C378-729E9037D03E6F8B
Parameter #2(cf_sql_integer) = 1

qry (Datasource=package1, Time=3ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:59:14.014

         select max(photo_id) as max_photo_id from GALLERY_PHOTOS
         where
            blog_id=?
            and gallery_id=?

Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 1
Parameter #2(CF_SQL_INTEGER) = 1

qry (Datasource=package1, Time=8ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:59:14.014

         INSERT INTO GALLERY_PHOTOS
         (
            BLOG_ID,
            GALLERY_ID,
            PHOTO_ID,
            FILENAME,
            PHOTO_DESC,
            ORIG_FILENAME,
            THUMB_FILENAME
         ) VALUES (
            ?,
            ?,
            ?,
            ?,
            ?,
            ?,
            ?
         )
      

Query Parameter Value(s) -
Parameter #1(cf_sql_char) = 1
Parameter #2(cf_sql_char) = 1
Parameter #3(cf_sql_char) = 1
Parameter #4(cf_sql_char) = DSCF0367.JPG
Parameter #5(cf_sql_char) = test
Parameter #6(cf_sql_char) = DSCF0367.JPG
Parameter #7(cf_sql_char) = thumb_DSCF0367.JPG

qry1 (Datasource=package1, Time=2ms, Records=0) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:59:19.019

      SELECT *
      FROM GALLERY_PHOTOS
      WHERE
         blog_id=?
         and gallery_id=?
         and photo_id=?

Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 1
Parameter #2(CF_SQL_INTEGER) = 1
Parameter #3(CF_SQL_INTEGER) = 0

qry2 (Datasource=package1, Time=1ms, Records=0) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:59:19.019

      DELETE FROM GALLERY_PHOTOS
      WHERE
         blog_id=?
         and gallery_id=?
         and photo_id=?

Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 1
Parameter #2(CF_SQL_INTEGER) = 1
Parameter #3(CF_SQL_INTEGER) = 0

qry (Datasource=package1, Time=2ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:59:19.019

      SELECT
         A.GALLERY_ID, A.GALLERY_NAME, A.GALLERY_DESC, A.PRIVATE,
         COUNT(B.PHOTO_ID) AS CNT,
         MAX(B.THUMB_FILENAME) AS THUMB
      FROM
         GALLERIES A LEFT JOIN GALLERY_PHOTOS B ON A.GALLERY_ID=B.GALLERY_ID
      WHERE
         A.blog_id=?
         and A.gallery_id=?
      GROUP BY A.GALLERY_ID, A.GALLERY_NAME, A.GALLERY_DESC, A.PRIVATE
      ORDER BY GALLERY_NAME DESC
   

Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 1
Parameter #2(CF_SQL_INTEGER) = 1

qry (Datasource=package1, Time=2ms, Records=1) in /opt/jrun4/servers/package1/cfusion.ear/cfusion.war/cfcs/blogcfm.cfc @ 12:59:19.019

      SELECT * FROM GALLERY_PHOTOS
      where
         blog_id=?
         and gallery_id=?

Query Parameter Value(s) -
Parameter #1(CF_SQL_INTEGER) = 1
Parameter #2(CF_SQL_INTEGER) = 1

Scope Variables

CGI Variables:
AUTH_PASSWORD=
AUTH_TYPE=
AUTH_USER=
CERT_COOKIE=
CERT_FLAGS=
CERT_ISSUER=
CERT_KEYSIZE=
CERT_SECRETKEYSIZE=
CERT_SERIALNUMBER=
CERT_SERVER_ISSUER=
CERT_SERVER_SUBJECT=
CERT_SUBJECT=
CF_TEMPLATE_PATH=/opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/gallery.cfm
CONTENT_LENGTH=1186979
CONTENT_TYPE=multipart/form-data; boundary=---------------------------8472149361820160204296568969
CONTEXT_PATH=
GATEWAY_INTERFACE=
HTTPS=
HTTPS_KEYSIZE=
HTTPS_SECRETKEYSIZE=
HTTPS_SERVER_ISSUER=
HTTPS_SERVER_SUBJECT=
HTTP_ACCEPT=text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_ENCODING=gzip,deflate
HTTP_ACCEPT_LANGUAGE=en-us,en;q=0.5
HTTP_CONNECTION=keep-alive
HTTP_COOKIE=SESSION_KEY=2E84B0F8%2DAB7A%2DC378%2D729E9037D03E6F8B; CFADMIN_LASTPAGE_ADMIN=%2FCFIDE%2Fadministrator%2Fdebugging%2Findex%2Ecfm; CFTOKEN=c9d47cc2715be53%2D2DE3289B%2DAD0C%2D71F3%2D126F412C2340FCC1; CFID=4701; JSESSIONID=f03078730ca971b97e2114503d16662a5751; CFAUTHORIZATION_cfadmin=YWRtaW46MDJBRTJDMzFERkFGRkIxRTQxRkI4REM4NTM4QzBDRTMxNzA0QUVEQTpjZmFkbWlu
HTTP_HOST=localhost:8301
HTTP_REFERER=http://localhost:8301//admin/gallery.cfm?ACTION=removePhoto&GALLERY_ID=1&PHOTO_ID=1
HTTP_USER_AGENT=Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20061201 Firefox/2.0.0.6 (Ubuntu-feisty)
PATH_INFO=
PATH_TRANSLATED=/opt/jrun4/servers/package1/cfusion.ear/cfusion.war/admin/gallery.cfm
QUERY_STRING=
REMOTE_ADDR=127.0.0.1
REMOTE_HOST=localhost
REMOTE_USER=
REQUEST_METHOD=POST
SCRIPT_NAME=/admin/gallery.cfm
SERVER_NAME=localhost
SERVER_PORT=8301
SERVER_PORT_SECURE=0
SERVER_PROTOCOL=HTTP/1.1
SERVER_SOFTWARE=
WEB_SERVER_API=

Cookie Variables:
CFADMIN_LASTPAGE_ADMIN=/CFIDE/administrator/debugging/index.cfm
CFAUTHORIZATION_cfadmin=YWRtaW46MDJBRTJDMzFERkFGRkIxRTQxRkI4REM4NTM4QzBDRTMxNzA0QUVEQTpjZmFkbWlu
CFID=4701
CFTOKEN=c9d47cc2715be53-2DE3289B-AD0C-71F3-126F412C2340FCC1
JSESSIONID=f03078730ca971b97e2114503d16662a5751
SESSION_KEY=2E84B0F8-AB7A-C378-729E9037D03E6F8B

Form Fields:
ACTION=uploadPhoto
FIELDNAMES=ACTION,GALLERY_ID,PHOTO_ID,IMAGE_UPLOAD,PHOTO_DESC,RESIZE_WIDTH
GALLERY_DESC=This is the test gallery
GALLERY_ID=1
GALLERY_NAME=Test Gallery
IMAGE_UPLOAD=/opt/jrun4/servers/package1/SERVER-INF/temp/cfusion.war-tmp/neotmp22239.tmp
PHOTO_DESC=test
PHOTO_ID=0
RESIZE_WIDTH=500

Session Variables:
cfid=4701
cftoken=c9d47cc2715be53-2DE3289B-AD0C-71F3-126F412C2340FCC1
sessionid=BLOGCFM_4701_c9d47cc2715be53-2DE3289B-AD0C-71F3-126F412C2340FCC1
showdate={ts '2007-09-23 12:41:20'}
urltoken=CFID=4701&CFTOKEN=c9d47cc2715be53-2DE3289B-AD0C-71F3-126F412C2340FCC1

Debug Rendering Time: 715 ms

www
RE: Error resizing image for gallery
Posted Sunday, September 23, 2007 at {ts '2013-05-21 14:20:00'}

you were supposed to replace calls to writeImage() with save()

You musta missed one.

RE: Error resizing image for gallery
Posted Sunday, September 23, 2007 at {ts '2013-05-21 14:22:00'}

hrm, I'll go back through and look.

Thanks again for your help Rick Very Happy

www
RE: Error resizing image for gallery
Posted Sunday, September 23, 2007 at {ts '2013-05-21 14:24:00'}

yep, I missed two of them. It's working fine now, thanks Rick!

www
RE: Error resizing image for gallery
Posted Sunday, September 23, 2007 at {ts '2013-05-21 14:30:00'}

awesome!

RE: Error resizing image for gallery
Posted Sunday, January 25, 2009 at {ts '2013-05-21 22:45:00'}

I downloaded today and am not seeing the lines you mentioned in your previous post to replace. However, I am seeing the same error:

Object Instantiation Exception. - An exception occurred when instantiating a Java object. The class must not be an interface or an abstract class. Error: ''.

CF 8, windows XP, IIS

New Topic Reply Subscription Options   Previous Page  Page: 1   Previous Page
Subscription Options
Subscription options are available after you log in.

There are 4 active user sessions right now.