• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CF8.01 ImagePaste 500 error

Participant ,
Jun 25, 2011 Jun 25, 2011

Copy link to clipboard

Copied

I'm tearing my hair out now, been trying to fix this problem for over a week.

- Pages using the imagepaste function are throwing a 500 error.

- this behaviour just started apparently out of the blue for no reason, no updates were performed, function was fine for a year +

- since then, I have: updated Java 1.6.0_26 , applied the cumulative hot fix 4 [8,0,1,195765] & applied the cfimage patch [http://kb2.adobe.com/cps/403/kb403411.html]

- still getting the same issue. on the first attempt to run the imagepaste function I get the first stack trace below, on every subsequent attempt I get the second trace.

the common thing that keeps popping up is "Could not initialize class javax.media.jai.JAI" - how do I find where/why this is not being initialized? is it a file somewhere a class in a file - could it be permissions?

HELP!!

first trace:

500 ROOT CAUSE: java.lang.ExceptionInInitializerError      at coldfusion.image.Image.paste(Image.java:2307)      at coldfusion.runtime.CFPage.ImagePaste(CFPage.java:5877)      at cftest2ecfm1941538635$funcWATERMARK.runFunction(/var/www/vhosts/bigblock.ca/subdomains/propaganda/httpdocs/filetest/test.cfm:9)      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:59)      at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)      at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192)      at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2471)      at cftest2ecfm1941538635.runPage(/var/www/vhosts/bigblock.ca/subdomains/propaganda/httpdocs/filetest/test.cfm:25)      at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)      at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:483)      at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)      at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:288)      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.CfmServlet.service(CfmServlet.java:198)      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:106)      at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)      at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)      at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)      at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)      at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)      at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)      at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)      at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) Caused by: java.lang.NullPointerException      at com.sun.media.jai.util.PropertyUtil.getString(PropertyUtil.java:159)      at javax.media.jai.JaiI18N.getString(JaiI18N.java:22)      at javax.media.jai.OperationRegistry.initializeRegistry(OperationRegistry.java:357)      at javax.media.jai.JAI.<clinit>(JAI.java:560)      ... 41 more javax.servlet.ServletException: ROOT CAUSE: java.lang.ExceptionInInitializerError      at coldfusion.image.Image.paste(Image.java:2307)      at coldfusion.runtime.CFPage.ImagePaste(CFPage.java:5877)      at cftest2ecfm1941538635$funcWATERMARK.runFunction(/var/www/vhosts/bigblock.ca/subdomains/propaganda/httpdocs/filetest/test.cfm:9)      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:59)      at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)      at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192)      at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2471)      at cftest2ecfm1941538635.runPage(/var/www/vhosts/bigblock.ca/subdomains/propaganda/httpdocs/filetest/test.cfm:25)      at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)      at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:483)      at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)      at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:288)      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.CfmServlet.service(CfmServlet.java:198)      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:106)      at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)      at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)      at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)      at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)      at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)      at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)      at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)      at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) Caused by: java.lang.NullPointerException      at com.sun.media.jai.util.PropertyUtil.getString(PropertyUtil.java:159)      at javax.media.jai.JaiI18N.getString(JaiI18N.java:22)      at javax.media.jai.OperationRegistry.initializeRegistry(OperationRegistry.java:357)      at javax.media.jai.JAI.<clinit>(JAI.java:560)      ... 41 more      at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:70)      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:106)      at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)      at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)      at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)      at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)      at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)      at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)      at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)      at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)            

second trace:

     500            ROOT CAUSE:      java.lang.NoClassDefFoundError: Could not initialize class javax.media.jai.JAI           at coldfusion.image.Image.paste(Image.java:2307)           at coldfusion.runtime.CFPage.ImagePaste(CFPage.java:5877)           at cftest2ecfm1941538635$funcWATERMARK.runFunction(/var/www/vhosts/bigblock.ca/subdomains/propaganda/httpdocs/filetest/test.cfm:9)           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:59)           at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)           at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192)           at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2471)           at cftest2ecfm1941538635.runPage(/var/www/vhosts/bigblock.ca/subdomains/propaganda/httpdocs/filetest/test.cfm:25)           at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)           at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:483)           at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)           at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:288)           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.CfmServlet.service(CfmServlet.java:198)           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:106)           at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)           at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)           at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)           at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)           at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)           at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)           at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)           at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)            javax.servlet.ServletException: ROOT CAUSE:      java.lang.NoClassDefFoundError: Could not initialize class javax.media.jai.JAI           at coldfusion.image.Image.paste(Image.java:2307)           at coldfusion.runtime.CFPage.ImagePaste(CFPage.java:5877)           at cftest2ecfm1941538635$funcWATERMARK.runFunction(/var/www/vhosts/bigblock.ca/subdomains/propaganda/httpdocs/filetest/test.cfm:9)           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:59)           at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)           at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192)           at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2471)           at cftest2ecfm1941538635.runPage(/var/www/vhosts/bigblock.ca/subdomains/propaganda/httpdocs/filetest/test.cfm:25)           at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)           at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:483)           at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)           at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:288)           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.CfmServlet.service(CfmServlet.java:198)           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:106)           at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)           at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)           at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)           at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)           at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)           at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)           at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)           at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)                 at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:70)           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:106)           at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)           at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)           at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)           at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)           at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)           at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)           at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)      at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 29, 2011 Jun 29, 2011

Copy link to clipboard

Copied

Having a furious problem with this CF8 install and image functions, most image functions [imagepaste(), etc] will throw a 500 error:

java.lang.NoClassDefFoundError: Could not initialize class javax.media.jai.JAI

other functions will not, it seems that functions that have to actually manipulate or change the image in some way fail with a 500 error, images that return information about an image run fine.

the server is a centos DV at mediatemple, CF has been patched with the cumulative HF4, & the image function hotfix. Still got errors. I've tried updating to jdk 1.6.0_24, downgrading as well! I've even tried placing new jai_*.jar jar files in the class path.

It was working fine for 2+ years, then just one day stopped working, no updates were performed before it died, nothing.

I've been wrestling with this problem for about 3 weeks now. More info at http://stackoverflow.com/questions/6270271/coldfusion-imagepaste-500-error

Has anyone got ANY ideas, this is a production server & can't exactly be reinstalled.

-thanks

-sean

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 11, 2011 Aug 11, 2011

Copy link to clipboard

Copied

Have the images you're processing started coming from a new source?  The reason why I ask is that CF has problems with idiosyncracies of image files which will cause problems.  That said, it usually just gives a "invalid image" error or similar.

Does it happen with all images, or just some / most?

As you're probably fully aware (so sorry for stating the obvious) problems don't start for "no reason" so there must've been some change that took place that has caused this to start.

--

Adam

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 11, 2011 Aug 11, 2011

Copy link to clipboard

Copied

I did get this resolved by rolling back and reapplying hotfixes and patches. But I never did track down the original cause...  literally the client called me one day and said "this function isn't working' .... I had'nt patched or updated in months, no new code, nothing... I was literally down to filesystem errors. So yea - 'something' happened... I just don't know what.

-sean

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 11, 2011 Aug 11, 2011

Copy link to clipboard

Copied

LATEST

Yeah, situations like that are slightly unfulfilling.  But sometimes all one can do is "reinstall" and chalk it up to experience, rather than fart-arse around trying to work out why something happened.  All it will be is down to some idiosyncracy of your config that Adobe didn't count on, which caused problems.  And even if you did track that down... how does it benefit the situation (pragmatically speaking, I mean)?  Some knowledge isn't particularly useful to have.

Anyway: glad you solved it.

--

Adam

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation