Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Coldfusionmx 6.0 charset=big5 error

0 views
Skip to first unread message

dilleyl

unread,
Sep 22, 2003, 12:19:07 AM9/22/03
to
We are currently running ColdfusionMX on Linux with Apache, and a mysql server. The big5 chinese character set is displaying properly on webpages, and being stored/retrieved from mysql.

I would like to migrate our website to Windows2003 server, IIS, ColdfusionMX 6.0, and mysql server. The problem is that I now get errors displaying chinese on the coldfusionmx 6/windows 2003 configuration. I tracked down the problem to the <cfcontent type="text/html; charset=big5"> line on my pages that display chinese, this line will generate the following error on my new windows2003/coldfusionmx 6 server, but works fine on the linux/coldfusionmx server.

sun.io.CharToByteBig5.getIndex1()[S
java.lang.NoSuchMethodError: sun.io.CharToByteBig5.getIndex1()[S
at sun.nio.cs.ext.Big5$Encoder.<init>(Big5.java:58)
at sun.nio.cs.ext.Big5.newEncoder(Big5.java:37)
at sun.nio.cs.StreamEncoder$CharsetSE.<init>(StreamEncoder.java:290)
at sun.nio.cs.StreamEncoder$CharsetSE.<init>(StreamEncoder.java:274)
at sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamEncoder.java:69)
at java.io.OutputStreamWriter.<init>(OutputStreamWriter.java:82)
at jrun.servlet.io.JRunPrintWriter.setWriter(JRunPrintWriter.java:59)
at jrun.servlet.JRunResponse.getWriter(JRunResponse.java:200)
at coldfusion.runtime.NeoJspWriter.initWriter(NeoJspWriter.java:88)
at coldfusion.runtime.NeoJspWriter.flush(NeoJspWriter.java:167)
at coldfusion.runtime.NeoPageContext.flushOutput(NeoPageContext.java:1557)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:39)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:43)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.CfmServlet.service(CfmServlet.java:105)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:252)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

If i change the line to <cfcontent type="text/html;charset=utf-8"> I don't get the error (but then I don't get chinese characters either, which is what I need. And the reason I use big5 and not utf-8 is because mysql server doesn't support utf-8 to my knowledge).

It's easy to replicate the error, a simple cfm page like the following will give me the error.

<!--- test.cfm --->
<cfcontent type="text/html; charset=big5">
Test
<!--- end test.cfm --->

Is there some special setting for IIS that I am missing?

Any help would be greatly appreciated!!


rigulife

unread,
Sep 25, 2003, 11:06:16 PM9/25/03
to
Hello!

I was having the same "charset_encoding_method_missing" errors...

After download of j2ee and configuration of coldfusion to use the new jre it worked!
No more charset errors!

http://www.sun.com
Download j2ee beta version.

Configure C:\CFusionMX\runtime\bin\jvm.config:

There is a line:
java.home=C:/CFusionMX/runtime/jre

Change it to jre folder of your new installation and be happy!

Hope it works for you,

Norikuni Kofuji



0 new messages