org.zanata.exception.ZanataServiceException: A document was not found.

JIRA | Sean Flanigan | 1 year ago
  1. 0

    Description of problem: When pushing a translation, if the source document doesn't exist, the client error message is unhelpful: Caused by: java.lang.RuntimeException: Failed while pushing document translations: [] at org.zanata.client.commands.push.PushCommand.pushTargetDocToServer(PushCommand.java:526) at org.zanata.client.commands.push.PushCommand.access$100(PushCommand.java:49) at org.zanata.client.commands.push.PushCommand$1.visit(PushCommand.java:348) at org.zanata.client.commands.push.AbstractGettextPushStrategy.visitTranslationResources(AbstractGettextPushS at org.zanata.client.commands.push.PushCommand.pushCurrentModule(PushCommand.java:341) at org.zanata.client.commands.push.PushCommand.run(PushCommand.java:197) at org.zanata.maven.ConfigurableMojo.runCommand(ConfigurableMojo.java:158) at org.zanata.maven.PushPullMojo.runCommand(PushPullMojo.java:33) at org.zanata.maven.ConfigurableMojo.execute(ConfigurableMojo.java:129) ... 21 more Whereas a more useful error message is generated in the server log: 2013-02-12 00:42:08,559 ERROR [org.zanata.process.AsynchronousExecutor] (DefaultQuartzScheduler_Worker-5) Exception with long running process: A document was not found. 2013-02-12 00:42:08,559 ERROR [org.zanata.rest.service.AsynchronousProcessResourceService] (DefaultQuartzScheduler_Worker-5) Error pushing translations org.zanata.exception.ZanataServiceException: A document was not found. at org.zanata.service.impl.TranslationServiceImpl.translateAllInDoc(TranslationServiceImpl.java:438) at org.zanata.service.impl.TranslationServiceImpl.translateAllInDoc(TranslationServiceImpl.java:411) ... at org.zanata.service.impl.TranslationServiceImpl_$$_javassist_seam_45.translateAllInDoc(TranslationServiceImpl_$$_javassist_seam_45.java) at org.zanata.rest.service.AsynchronousProcessResourceService$3.run(AsynchronousProcessResourceService.java:267) at org.zanata.rest.service.AsynchronousProcessResourceService$3.run(AsynchronousProcessResourceService.java:253) at org.zanata.process.AsynchronousExecutor.runAsynchronously(AsynchronousExecutor.java:61) ... at org.zanata.process.AsynchronousExecutor_$$_javassist_seam_54.runAsynchronously(AsynchronousExecutor_$$_javassist_seam_54.java) Version-Release number of selected component (if applicable): zanata-maven-plugin:2.0.1:push Zanata version 2.1.5-SNAPSHOT (20130212-0019). How reproducible: Steps to Reproduce: 1. mvn -e org.zanata:zanata-maven-plugin:2.0.1:push -Dzanata.pushType=trans Actual results: A generic error message: "Failed while pushing document translations: []" Expected results: Error message indicating that the source document does not exist Additional info:

    JIRA | 1 year ago | Sean Flanigan
    org.zanata.exception.ZanataServiceException: A document was not found.
  2. 0

    Uploading a .pot file to a Podir project indicates the file is of the acceptable type, but fails to upload. 1. Create a project/version of type Podir 2. Click settings, documents, then the "+" 3. Select the desired .pot file and press Upload documents {code:java} 2015-06-18T04:22:46,308Z ERROR [org.jboss.seam.exception.Exceptions] (default task-57) handled and logged exception: javax.servlet.ServletException: org.zanata.exception.ZanataServiceException: Unsupported Document file: .GETTEXT at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:96) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.zanata.servlet.MultiFileUploadServlet.doPost(MultiFileUploadServlet.java:142) [classes:] at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final] at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final] at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:86) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:164) [javamelody-core-1.52.0.jar:1.52.0] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176) [urlrewritefilter-4.0.4.jar:4.0.4] at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145) [urlrewritefilter-4.0.4.jar:4.0.4] at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92) [urlrewritefilter-4.0.4.jar:4.0.4] at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389) [urlrewritefilter-4.0.4.jar:4.0.4] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at org.zanata.seam.interceptor.MonitoringWrapper.doFilter(MonitoringWrapper.java:67) [classes:] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at org.zanata.servlet.GWTCacheControlFilter.doFilter(GWTCacheControlFilter.java:61) [classes:] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at org.zanata.servlet.MDCInsertingServletFilter.doFilter(MDCInsertingServletFilter.java:70) [classes:] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.2.7.Final.jar:1.2.7.Final] at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.2.7.Final.jar:1.2.7.Final] at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51) [undertow-core-1.2.7.Final.jar:1.2.7.Final] at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46) [undertow-core-1.2.7.Final.jar:1.2.7.Final] at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) [undertow-core-1.2.7.Final.jar:1.2.7.Final] at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:72) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50) [undertow-core-1.2.7.Final.jar:1.2.7.Final] at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) [undertow-core-1.2.7.Final.jar:1.2.7.Final] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.2.7.Final.jar:1.2.7.Final] at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.2.7.Final.jar:1.2.7.Final] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.2.7.Final.jar:1.2.7.Final] at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:274) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:253) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:80) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:172) [undertow-servlet-1.2.7.Final.jar:1.2.7.Final] at io.undertow.server.Connectors.executeRootHandler(Connectors.java:199) [undertow-core-1.2.7.Final.jar:1.2.7.Final] at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:774) [undertow-core-1.2.7.Final.jar:1.2.7.Final] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_79] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_79] at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79] Caused by: org.zanata.exception.ZanataServiceException: Unsupported Document file: .GETTEXT at org.zanata.service.impl.TranslationFileServiceImpl.parseUpdatedPotFile(TranslationFileServiceImpl.java:219) [classes:] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_79] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_79] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_79] at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_79] at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:79) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:196) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:114) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.zanata.service.impl.TranslationFileServiceImpl_$$_javassist_seam_85.parseUpdatedPotFile(TranslationFileServiceImpl_$$_javassist_seam_85.java) [classes:] at org.zanata.file.SourceDocumentUpload.parsePotFile(SourceDocumentUpload.java:337) [classes:] at org.zanata.file.SourceDocumentUpload.tryValidatedUploadSourceFile(SourceDocumentUpload.java:168) [classes:] at org.zanata.file.SourceDocumentUpload.tryUploadSourceFileWithoutHash(SourceDocumentUpload.java:103) [classes:] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_79] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_79] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_79] at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_79] at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:79) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:196) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:114) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] at org.zanata.file.SourceDocumentUpload_$$_javassist_seam_98.tryUploadSourceFileWithoutHash(SourceDocumentUpload_$$_javassist_seam_98.java) [classes:] at org.zanata.servlet.MultiFileUploadServlet$FileUploadRequestHandler.processFileItem(MultiFileUploadServlet.java:339) [classes:] at org.zanata.servlet.MultiFileUploadServlet$FileUploadRequestHandler.processFilesFromItems(MultiFileUploadServlet.java:294) [classes:] at org.zanata.servlet.MultiFileUploadServlet$FileUploadRequestHandler.process(MultiFileUploadServlet.java:273) [classes:] at org.zanata.servlet.MultiFileUploadServlet.processMultipartPost(MultiFileUploadServlet.java:219) [classes:] at org.zanata.servlet.MultiFileUploadServlet.registerForUploadAndProcessMultipartPost(MultiFileUploadServlet.java:189) [classes:] at org.zanata.servlet.MultiFileUploadServlet.processPost(MultiFileUploadServlet.java:159) [classes:] at org.zanata.servlet.MultiFileUploadServlet.access$100(MultiFileUploadServlet.java:73) [classes:] at org.zanata.servlet.MultiFileUploadServlet$2.process(MultiFileUploadServlet.java:145) [classes:] at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:65) [jboss-seam-2.3.1.Final.jar:2.3.1.Final] ... 61 more {code}

    JIRA | 2 years ago | Damian Jansen
    javax.servlet.ServletException: org.zanata.exception.ZanataServiceException: Unsupported Document file: .GETTEXT
  3. 0

    When attempting to merge an account from Yahoo with the enforce.matching.usernames property set true, it fails for the reason username not being returned from Yahoo's OpenID. The message given to the user on the RSOD is "You are attempting to merge the same account." Log: {code} 10:56:52,077 ERROR [org.zanata.exception.handler.AbstractExceptionHandler] (default task-14) exception happened in view: /profile/create_user.xhtml: org.zanata.exception.ZanataServiceException: Server option zanata.enforce.matchingusernames is set, but username from external authentication is missing. at org.zanata.action.NewProfileAction.onCreate(NewProfileAction.java:100) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) (snip) 10:56:52,080 INFO [org.zanata.ui.faces.FacesMessages] (default task-14) message to user (wid: -356): An unexpected error has occurred. Please report this problem with details of what you were attempting.) 10:56:52,154 INFO [javax.enterprise.resource.webcontainer.jsf.renderkit] (default task-18) WARNING: FacesMessage(s) have been enqueued, but may not have been displayed. sourceId=null[severity=(ERROR 2), summary=(You are attempting to merge the same account.), detail=(You are attempting to merge the same account.)] sourceId=null[severity=(ERROR 2), summary=(An unexpected error has occurred. Please report this problem with details of what you were attempting.), detail=(An unexpected error has occurred. Please report this problem with details of what you were attempting.)] {code}

    JIRA | 7 months ago | Damian Jansen
    org.zanata.exception.ZanataServiceException: Server option zanata.enforce.matchingusernames is set, but username from external authentication is missing.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.zanata.exception.ZanataServiceException

      A document was not found.

      at org.zanata.service.impl.TranslationServiceImpl.translateAllInDoc()
    2. org.zanata.service
      TranslationServiceImpl.translateAllInDoc
      1. org.zanata.service.impl.TranslationServiceImpl.translateAllInDoc(TranslationServiceImpl.java:438)
      2. org.zanata.service.impl.TranslationServiceImpl.translateAllInDoc(TranslationServiceImpl.java:411)
      2 frames