I am trying to run FarCry with CF8 and everything seems to work quite
well with the exception of uploading images.  When an images is
uploaded, actually it seems like it in the part of the code trying to
resize the image, I get the following error:

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

The error occurred in D:\websites\FarCry4\core\packages\farcry
\simpleImage.cfc: line 234
Called from D:\websites\FarCry4\core\packages\formtools\image.cfc:
line 515
Called from D:\websites\FarCry4\plugins\farcrycfximage\packages
\formtools\image.cfc: line 81
Called from D:\websites\FarCry4\core\packages\farcry\formtools.cfc:
line 749
Called from D:\websites\FarCry4\core\tags\formtools
\processFormObjects.cfm: line 179
Called from D:\websites\FarCry4\core\tags\formtools
\processFormObjects.cfm: line 156
Called from D:\websites\FarCry4\core\tags\formtools
\processFormObjects.cfm: line 134
Called from D:\websites\FarCry4\core\tags\formtools
\processFormObjects.cfm: line 1
Called from D:\websites\FarCry4\core\admin\facade\library.cfm: line
113
Called from D:\websites\FarCry4\core\admin\facade\library.cfm: line
111
Called from D:\websites\FarCry4\core\admin\facade\library.cfm: line 1
Called from D:\websites\FarCry4\core\packages\farcry\simpleImage.cfc:
line 234
Called from D:\websites\FarCry4\core\packages\formtools\image.cfc:
line 515
Called from D:\websites\FarCry4\plugins\farcrycfximage\packages
\formtools\image.cfc: line 81
Called from D:\websites\FarCry4\core\packages\farcry\formtools.cfc:
line 749
Called from D:\websites\FarCry4\core\tags\formtools
\processFormObjects.cfm: line 179
Called from D:\websites\FarCry4\core\tags\formtools
\processFormObjects.cfm: line 156
Called from D:\websites\FarCry4\core\tags\formtools
\processFormObjects.cfm: line 134
Called from D:\websites\FarCry4\core\tags\formtools
\processFormObjects.cfm: line 1
Called from D:\websites\FarCry4\core\admin\facade\library.cfm: line
113
Called from D:\websites\FarCry4\core\admin\facade\library.cfm: line
111
Called from D:\websites\FarCry4\core\admin\facade\library.cfm: line 1

232 :           }
233 :           //
resizedImage.init(javacast("int",w),javacast("int",h),myImage.getType());
234 :           resizedImage.init(w,h,myImage.getType());
235 :           w = w / myImage.getWidth();
236 :           h = h / myImage.getHeight();

Resources:

    * Check the ColdFusion documentation to verify that you are using
the correct syntax.
    * Search the Knowledge Base to find a solution to your problem.

Browser         Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6)
Gecko/20070725 Firefox/2.0.0.6 ColdFire/0.0.802
Remote Address          127.0.0.1
Referrer
http://alagad.dev/farcry/facade/library.cfm?FTLIBRARYPICKLISTSTYLE=&WIZARDID=&FTSHOWREMOVESELECTED=true&PRIMARYTYPENAME=dmProfile&FTLIBRARYSELECTEDLISTSTYLE=&FTLIBRARYPICKLISTCLASS=thumbNailsWrap&FTJOIN=dmImage&FTALLOWLIBRARYEDIT=dmImage&PACKAGETYPE=types&CURRENTPAGE=1&FTLIBRARYSELECTEDLISTCLASS=arrayDetail&FTLIBRARYPICKWEBSKIN=libraryPick&PRIMARYFIELDNAME=image&LIBRARYTYPE=uuid&FTLIBRARYSELECTEDWEBSKIN=librarySelected&FTALLOWLIBRARYADDNEW=dmImage&PRIMARYFORMFIELDNAME=5F71007E0BC79116E9D64D956907B8F3image&PRIMARYOBJECTID=5F71007E-0BC7-9116-E9D64D956907B8F3&UPDATEAPP=false&FTLIBRARYADDNEWWEBSKIN=libraryAdd&librarySection=addnew
Date/Time       17-Aug-07 06:50 PM
Stack Trace
at cfsimpleImage2ecfc57379436$funcRESIZE.runFunction(D:\websites
\FarCry4\core\packages\farcry\simpleImage.cfc:234) at
cfimage2ecfc1201123059$funcGENERATEIMAGE.runFunction(D:\websites
\FarCry4\core\packages\formtools\image.cfc:515) at
cfimage2ecfc858761110$funcGENERATEIMAGE.runFunction(D:\websites
\FarCry4\plugins\farcrycfximage\packages\formtools\image.cfc:81) at
cfformtools2ecfc1187286970$funcIMAGEAUTOGENERATEBEFORESAVE.runFunction(D:
\websites\FarCry4\core\packages\farcry\formtools.cfc:749) at
cfprocessFormObjects2ecfm208044143._factor4(D:\websites\FarCry4\core
\tags\formtools\processFormObjects.cfm:179) at
cfprocessFormObjects2ecfm208044143._factor6(D:\websites\FarCry4\core
\tags\formtools\processFormObjects.cfm:156) at
cfprocessFormObjects2ecfm208044143._factor11(D:\websites\FarCry4\core
\tags\formtools\processFormObjects.cfm:134) at
cfprocessFormObjects2ecfm208044143.runPage(D:\websites\FarCry4\core
\tags\formtools\processFormObjects.cfm:1) at
cflibrary2ecfm793935735._factor1(D:\websites\FarCry4\core\admin\facade
\library.cfm:113) at cflibrary2ecfm793935735._factor12(D:\websites
\FarCry4\core\admin\facade\library.cfm:111) at
cflibrary2ecfm793935735.runPage(D:\websites\FarCry4\core\admin\facade
\library.cfm:1) at cfsimpleImage2ecfc57379436$funcRESIZE.runFunction(D:
\websites\FarCry4\core\packages\farcry\simpleImage.cfc:234) at
cfimage2ecfc1201123059$funcGENERATEIMAGE.runFunction(D:\websites
\FarCry4\core\packages\formtools\image.cfc:515) at
cfimage2ecfc858761110$funcGENERATEIMAGE.runFunction(D:\websites
\FarCry4\plugins\farcrycfximage\packages\formtools\image.cfc:81) at
cfformtools2ecfc1187286970$funcIMAGEAUTOGENERATEBEFORESAVE.runFunction(D:
\websites\FarCry4\core\packages\farcry\formtools.cfc:749) at
cfprocessFormObjects2ecfm208044143._factor4(D:\websites\FarCry4\core
\tags\formtools\processFormObjects.cfm:179) at
cfprocessFormObjects2ecfm208044143._factor6(D:\websites\FarCry4\core
\tags\formtools\processFormObjects.cfm:156) at
cfprocessFormObjects2ecfm208044143._factor11(D:\websites\FarCry4\core
\tags\formtools\processFormObjects.cfm:134) at
cfprocessFormObjects2ecfm208044143.runPage(D:\websites\FarCry4\core
\tags\formtools\processFormObjects.cfm:1) at
cflibrary2ecfm793935735._factor1(D:\websites\FarCry4\core\admin\facade
\library.cfm:113) at cflibrary2ecfm793935735._factor12(D:\websites
\FarCry4\core\admin\facade\library.cfm:111) at
cflibrary2ecfm793935735.runPage(D:\websites\FarCry4\core\admin\facade
\library.cfm:1)

java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at coldfusion.runtime.java.JavaProxy.CreateObject(JavaProxy.java:173)
        at coldfusion.runtime.java.JavaProxy.invoke(JavaProxy.java:63)
        at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2260)
        at cfsimpleImage2ecfc57379436$funcRESIZE.runFunction(D:\websites
\FarCry4\core\packages\farcry\simpleImage.cfc:234)
        at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)
        at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
        at coldfusion.runtime.UDFMethod
$ReturnTypeFilter.invoke(UDFMethod.java:360)
        at coldfusion.runtime.UDFMethod
$ArgumentCollectionFilter.invoke(UDFMethod.java:324)
        at
coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:
56)
        at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)
        at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192)
        at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:448)
        at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:308)
        at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2260)
        at cfimage2ecfc1201123059$funcGENERATEIMAGE.runFunction(D:\websites
\FarCry4\core\packages\formtools\image.cfc:515)
        at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)
        at coldfusion.runtime.UDFMethod
$ReturnTypeFilter.invoke(UDFMethod.java:360)
        at coldfusion.runtime.UDFMethod
$ArgumentCollectionFilter.invoke(UDFMethod.java:324)
        at
coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:
56)
        at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)
        at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:463)
        at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:453)
        at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:320)
        at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2210)
        at cfimage2ecfc858761110$funcGENERATEIMAGE.runFunction(D:\websites
\FarCry4\plugins\farcrycfximage\packages\formtools\image.cfc:81)
        at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)
        at coldfusion.runtime.UDFMethod
$ReturnTypeFilter.invoke(UDFMethod.java:360)
        at coldfusion.runtime.UDFMethod
$ArgumentCollectionFilter.invoke(UDFMethod.java:324)
        at
coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:
56)
        at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)
        at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:463)
        at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:453)
        at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:320)
        at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2210)
        at
cfformtools2ecfc1187286970$funcIMAGEAUTOGENERATEBEFORESAVE.runFunction(D:
\websites\FarCry4\core\packages\farcry\formtools.cfc:749)
        at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)
        at coldfusion.runtime.UDFMethod
$ReturnTypeFilter.invoke(UDFMethod.java:360)
        at coldfusion.runtime.UDFMethod
$ArgumentCollectionFilter.invoke(UDFMethod.java:324)
        at
coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:
56)
        at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)
        at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:463)
        at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:453)
        at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:320)
        at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2210)
        at cfprocessFormObjects2ecfm208044143._factor4(D:\websites
\FarCry4\core\tags\formtools\processFormObjects.cfm:179)
        at cfprocessFormObjects2ecfm208044143._factor6(D:\websites
\FarCry4\core\tags\formtools\processFormObjects.cfm:156)
        at cfprocessFormObjects2ecfm208044143._factor11(D:\websites
\FarCry4\core\tags\formtools\processFormObjects.cfm:134)
        at cfprocessFormObjects2ecfm208044143.runPage(D:\websites\FarCry4\core
\tags\formtools\processFormObjects.cfm:1)
        at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:192)
        at
coldfusion.filter.CFVariablesScopeFilter.invoke(CFVariablesScopeFilter.java:
63)
        at coldfusion.tagext.lang.ModuleTag.doAfterBody(ModuleTag.java:361)
        at cflibrary2ecfm793935735._factor1(D:\websites\FarCry4\core\admin
\facade\library.cfm:113)
        at cflibrary2ecfm793935735._factor12(D:\websites\FarCry4\core\admin
\facade\library.cfm:111)
        at cflibrary2ecfm793935735.runPage(D:\websites\FarCry4\core\admin
\facade\library.cfm:1)
        at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:192)
        at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:366)
        at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
        at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:
279)
        at
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:
48)
        at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:
40)
        at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
        at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
        at
coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:
74)
        at
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:
28)
        at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
        at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
        at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
        at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:
22)
        at
coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:
126)
        at coldfusion.CfmServlet.service(CfmServlet.java:175)
        at
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:
89)
        at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
        at
coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:
42)
        at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:
46)
        at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
        at jrun.servlet.FilterChain.service(FilterChain.java:101)
        at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
        at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
        at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
257)
        at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
541)
        at
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:
204)
        at jrunx.scheduler.ThreadPool
$ThreadThrottle.invokeRunnable(ThreadPool.java:426)
        at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
Caused by: java.lang.IllegalArgumentException: Unknown image type 0
        at java.awt.image.BufferedImage.<init>(BufferedImage.java:490)
        ... 87 more

What's odd is in a completely different application, I got a similar
error message when trying to call init() of a Java object.

Does anyone know a way around this?

I tried using cfximage, but it didn't seem to 'take'.  The app is
configured to use the plugin and the tag is registered in CF Admin,
but I continue to get the same error in the same file.

Thanx in advance!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to