We have been using FCK editor in our project, for quiete sometime now. It is was being used on IE till now and was working fine. Now we need to make it work on google Chrome.
Looks like Chrome sends string "Chrome" fro browser Version and FCKEditor (library) is trying to parse it as Double. Find below the error.
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.NumberFormatException: For input string: "chrome/"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1222)
at java.lang.Double.parseDouble(Double.java:510)
at com.fredck.FCKeditor.FCKeditor.retrieveBrowserVersion(FCKeditor.java:264)
at com.fredck.FCKeditor.FCKeditor.isCompatible(FCKeditor.java:251)
at com.fredck.FCKeditor.FCKeditor.create(FCKeditor.java:292)
at com.fredck.FCKeditor.tags.FCKeditorTag.doAfterBody(FCKeditorTag.java:689)
at org.apache.jsp.WEB_002dINF.views.app.social.central_005fcomm_005fcentre.emai
l.email_jsp._jspx_meth_FCK_005feditor_005f0(email_jsp.java:3542)
at org.apache.jsp.WEB_002dINF.views.app.social.central_005fcomm_005fcentre.emai
l.email_jsp._jspService(email_jsp.java:1451)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
77)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDis
patcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:302)
at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutput
Model(InternalResourceView.java:238)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:2
50)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.j
ava:1031)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServl
et.java:815)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServle
t.java:717)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkSer
vlet.java:644)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java
:549)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
at uk.co.reed.util.servlet.XpressRequestFilter.doFilter(XpressRequestFilter.jav
a:56)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(Char
acterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestF
ilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127
)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102
)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http
11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
19-Dec-2012 11:59:07 org.apache.catalina.core.StandardWrapperValve invoke
Please let me know if there is any fix for this on FCK Editor releases?
Thanks.
FCKeditor is a retired
FCKeditor is a retired product that is no longer supported nor updated. Since its development stopped years ago, it cannot offer you the same level of compatibility in browsers that were released after its development ceased.
Because of that your best bet is to upgrade to CKEditor -- its successor, and a much more advanced, modern, and mature product that is being actively developed (and bug-fixed) by our team.
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!