Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IllegalStateException: unread block data while running GettingStartedApp #1

Open
aekrylov opened this issue May 1, 2017 · 0 comments

Comments

@aekrylov
Copy link

aekrylov commented May 1, 2017

I'm trying to run GettingStartedApp example. I have updated all the artifacts in pom to version 0.1 from releases repository, so now my pom.xml looks like this.
When I run the application, I get the following error:

12:49:46.881 [main] INFO  c.t.t.m.o.r.DictionaryDeserializer - About to deserialize MorphDictionary from InputStream of jar:file:/home/anth/.m2/repository/com/textocat/textokit/core/textokit-dictionary-opencorpora-resource/0.1-20140407-1/textokit-dictionary-opencorpora-resource-0.1-20140407-1-rnc.jar!/opencorpora-0.92-390668-rnc.dict.ser...
Exception in thread "main" org.apache.uima.resource.ResourceInitializationException: Unexpected Exception thrown when initializing Custom Resource "com.textocat.textokit.morph.opencorpora.resource.ClasspathMorphDictionaryResource" from descriptor "<unknown>".
	at org.apache.uima.impl.CustomResourceFactory_impl.produceResource(CustomResourceFactory_impl.java:94)
	at org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62)
       ...
	at org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:448)
	at org.apache.uima.fit.pipeline.SimplePipeline.runPipeline(SimplePipeline.java:166)
	at com.textocat.textokit.examples.GettingStartedApp.main(GettingStartedApp.java:52)
Caused by: org.apache.uima.resource.ResourceInitializationException
	at com.textocat.textokit.morph.opencorpora.resource.ClasspathMorphDictionaryResource.initialize(ClasspathMorphDictionaryResource.java:60)
	at org.apache.uima.impl.CustomResourceFactory_impl.produceResource(CustomResourceFactory_impl.java:92)
	... 23 more
Caused by: java.lang.IllegalStateException: unread block data
	at java.io.ObjectInputStream$BlockDataInputStream.setBlockDataMode(ObjectInputStream.java:2449)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1385)
	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2018)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1942)
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1808)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:373)
	at com.textocat.textokit.morph.opencorpora.resource.DictionaryDeserializer.from(DictionaryDeserializer.java:53)
	at com.textocat.textokit.morph.opencorpora.resource.CachedDictionaryDeserializer.getDictionary(CachedDictionaryDeserializer.java:76)
	at com.textocat.textokit.morph.opencorpora.resource.ClasspathMorphDictionaryResource.initialize(ClasspathMorphDictionaryResource.java:54)
	... 24 more

I couldn't find any similar resources, as well as any instructions on how to create my own serialized file.
How should I run this application?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant