Spell checker error when opening document

Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
Johann
Posts: 161
Joined: Wed Jun 17, 2015 12:46 pm

Spell checker error when opening document

Post by Johann »

Hello,

I use a 24.1.0.0 Author web version.

I have a problem when opening a document related to the spell checker:

Code: Select all

2022-11-08 09:13:41,905 ERROR [ http-nio-8080-exec-4 ] ro.sync.servlet.errors.DefaultExceptionHandler - java.lang.NoClassDefFoundError: Could not initialize class ro.sync.ecss.webapp.f,
java.lang.NoClassDefFoundError: Could not initialize class ro.sync.ecss.webapp.f,
	at ro.sync.ecss.webapp.AuthorDocumentModelImpl.getSpellchecker(Unknown Source),
	at ro.sync.servlet.spellcheck.SpellCheckerService.getTextDescriptorsForDocument(SpellCheckerService.java:123),
	at ro.sync.servlet.RESTSpellChecker.fullSpellCheck(RESTSpellChecker.java:210),
	at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source),
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43),
	at java.lang.reflect.Method.invoke(Method.java:498),
	at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:170),
	at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:130),
	at org.jboss.resteasy.core.ResourceMethodInvoker.internalInvokeOnTarget(ResourceMethodInvoker.java:643),
	at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTargetAfterFilter(ResourceMethodInvoker.java:507),
	at org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invokeOnTarget$2(ResourceMethodInvoker.java:457),
	at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:364),
	at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:459),
	at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:419),
	at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:393),
	at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:68),
	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:492),
	at org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:261),
	at org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:161),
	at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:364),
	at org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:164),
	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:247),
	at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:249),
	at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:60),
	at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55),
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741),
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231),
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166),
	at ro.sync.servlet.config.UnlockDocumentsFilter.doFilter(UnlockDocumentsFilter.java:61),
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193),
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166),
	at ro.sync.ecss.webapp.h.h.doFilter(Unknown Source),
	at ro.sync.ecss.extensions.api.webapp.license.LicenseEnforcerFilter.doFilter(Unknown Source),
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193),
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166),
	at ro.sync.servlet.config.OxygenLanguageFilter.doFilter(OxygenLanguageFilter.java:44),
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193),
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166),
	at ro.sync.servlet.config.OxygenContextFilter.doFilter(OxygenContextFilter.java:61),
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193),
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166),
	at ro.sync.servlet.config.UTF8CharsetEnforcer.doFilter(UTF8CharsetEnforcer.java:28),
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193),
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166),
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53),
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193),
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166),
	at ro.sync.auth.CsrfFilter.doFilter(CsrfFilter.java:72),
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193),
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166),
	at ro.sync.auth.ClientSessionFilter.doFilter(ClientSessionFilter.java:66),
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193),
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166),
	at ro.sync.servlet.ssl.SSLRedirectFilter.doFilter(SSLRedirectFilter.java:69),
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193),
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166),
	at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61),
	at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108),
	at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137),
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125),
	at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66),
	at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:450),
	at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365),
	at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90),
	at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83),
	at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387),
	at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362),
	at ro.sync.auth.WebappShiroFilter.doFilterInternal(WebappShiroFilter.java:85),
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125),
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193),
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166),
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199),
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96),
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502),
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140),
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81),
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:651),
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87),
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342),
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:501),
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66),
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:754),
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1376),
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49),
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149),
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624),
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61),
	at java.lang.Thread.run(Thread.java:748),

Would you have an idea of the root cause?

For information, we have several ways to open Author web in our implementations (EMBEDDED / STANDALONE), we reproduce the problem only in EMBEDDED version.

No significant difference in the configurations implemented allows me to understand where the problem comes from at the moment.

Thank you,

Johann
cristi_talau
Posts: 435
Joined: Thu Sep 04, 2014 4:22 pm

Re: Spell checker error when opening document

Post by cristi_talau »

Hello,

This NoClassDefFound exception usually has a "cause" in its stack trace when it first appears. Can you check the first instance of this exception in the server logs?

One possible cause is that the spellchecker in Web Author uses some native libraries and maybe there are some errors when they are loaded.

Best,
Cristian
Johann
Posts: 161
Joined: Wed Jun 17, 2015 12:46 pm

Re: Spell checker error when opening document

Post by Johann »

Hello,

I managed to solve the problem by cleaning up the duplicate versions of the libraries.
I am not sure which one was the problem but it works now.

Thank you,

Johann
Post Reply