An error occurred when extracting from the ms-word file with tikal

Create issue
Issue #1053 new
FJ created an issue

Okapi_1.41.0/tikal.sh -x short.docx -trace

Okapi Tikal - Localization Toolset

Version: 2.1.41.0

Trace: 1 class net.sf.okapi.applications.tikal.Main
Trace: 2 ProtectionDomain (file:/Users/jin/temp/Okapi_1.41.0/lib/okapi-application-tikal-1.41.0.jar <no signer certificates>)
sun.misc.Launcher$AppClassLoader@29453f44
<no principals>
java.security.Permissions@7e7f0f0a (
("java.lang.RuntimePermission" "exitVM")
("java.io.FilePermission" "/Users/jin/temp/Okapi_1.41.0/lib/okapi-application-tikal-1.41.0.jar" "read")
)

Trace: 3 (file:/Users/jin/temp/Okapi_1.41.0/lib/okapi-application-tikal-1.41.0.jar <no signer certificates>)
Trace: 4 file:/Users/jin/temp/Okapi_1.41.0/lib/okapi-application-tikal-1.41.0.jar
Trace: 5 /Users/jin/temp/Okapi_1.41.0/lib/okapi-application-tikal-1.41.0.jar
Extraction
Source language: en
Target language: ja-JP
Default input encoding: UTF-8
Filter configuration: okf_openxml
Output: /Users/jin/temp/short.docx.xlf
Input: /Users/jin/temp/short.docx
Trace:
Opening file:/Users/jin/temp/short.docx
Trace:
Opening file:/Users/jin/temp/short.docx
Trace: startBlock: [Stax Event #1]
Trace: startRun: [Stax Event #1]
Trace: processRun: [Stax Event #1]
java.lang.IllegalStateException: Unexpected structure: [Stax Event #1]
at net.sf.okapi.filters.openxml.RunParser.parseSimpleElement(RunParser.java:410)
at net.sf.okapi.filters.openxml.RunParser.parseComplexField(RunParser.java:311)
at net.sf.okapi.filters.openxml.RunParser.startRunParsing(RunParser.java:193)
at net.sf.okapi.filters.openxml.RunParser.parse(RunParser.java:165)
at net.sf.okapi.filters.openxml.BlockParser.processRun(BlockParser.java:312)
at net.sf.okapi.filters.openxml.BlockParser.parse(BlockParser.java:231)
at net.sf.okapi.filters.openxml.StyledTextPart.process(StyledTextPart.java:270)
at net.sf.okapi.filters.openxml.StyledTextPart.open(StyledTextPart.java:223)
at net.sf.okapi.filters.openxml.StyledTextPart.open(StyledTextPart.java:125)
at net.sf.okapi.filters.openxml.OpenXMLFilter.nextInDocument(OpenXMLFilter.java:442)
at net.sf.okapi.filters.openxml.OpenXMLFilter.next(OpenXMLFilter.java:252)
at net.sf.okapi.filters.openxml.OpenXMLFilter.next(OpenXMLFilter.java:261)
at net.sf.okapi.steps.common.RawDocumentToFilterEventsStep.handleEvent(RawDocumentToFilterEventsStep.java:166)
at net.sf.okapi.common.pipeline.Pipeline.execute(Pipeline.java:117)
at net.sf.okapi.common.pipeline.Pipeline.process(Pipeline.java:227)
at net.sf.okapi.common.pipeline.Pipeline.process(Pipeline.java:199)
at net.sf.okapi.common.pipelinedriver.PipelineDriver.processBatch(PipelineDriver.java:182)
at net.sf.okapi.applications.tikal.Main.extractFile(Main.java:1624)
at net.sf.okapi.applications.tikal.Main.process(Main.java:1005)
at net.sf.okapi.applications.tikal.Main.main(Main.java:604)

Comments (0)

  1. Log in to comment