Bug 38544 - IllegalStateException: Paragraph style ran out before character style did
Summary: IllegalStateException: Paragraph style ran out before character style did
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HSLF (show other bugs)
Version: 3.0-dev
Hardware: Other other
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-07 01:54 UTC by Trejkaz (pen name)
Modified: 2006-06-13 07:59 UTC (History)
0 users



Attachments
File exhibiting the problem (189.50 KB, application/octet-stream)
2006-02-07 01:55 UTC, Trejkaz (pen name)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Trejkaz (pen name) 2006-02-07 01:54:25 UTC
The stack trace looks like this:

java.lang.IllegalStateException: Paragraph style ran out before character style did!
	at org.apache.poi.hslf.model.TextRun.<init>(TextRun.java:133)
	at org.apache.poi.hslf.model.TextRun.<init>(TextRun.java:67)
	at org.apache.poi.hslf.model.Sheet.findTextRuns(Sheet.java:89)
	at org.apache.poi.hslf.model.Slide.<init>(Slide.java:72)
	at org.apache.poi.hslf.usermodel.SlideShow.buildSlidesAndNotes(SlideShow.java:354)
	at org.apache.poi.hslf.usermodel.SlideShow.<init>(SlideShow.java:94)
	at
com.nuix.data.file.office.poi.PoiPowerPointFileReader.<init>(PoiPowerPointFileReader.java:60)
	at
com.nuix.data.file.office.poi.PoiPowerPointFileData.getText(PoiPowerPointFileData.java:51)
	at
com.nuix.data.util.CachingReaderFactory.createReader(CachingReaderFactory.java:88)
	at com.nuix.processor.ExecutionContext.getCachedText(ExecutionContext.java:211)
	at
com.nuix.processor.lucene.LuceneDataProcessor.processInner(LuceneDataProcessor.java:255)
	at
com.nuix.processor.lucene.LuceneDataProcessor.process(LuceneDataProcessor.java:96)
	at
com.nuix.processor.QueuedDataProcessorManager.processInner(QueuedDataProcessorManager.java:252)
	at
com.nuix.processor.QueuedDataProcessorManager.process(QueuedDataProcessorManager.java:183)
	at
com.nuix.investigator.processing.ProcessingRunner.execute(ProcessingRunner.java:171)
	at
com.nuix.swing.actions.ExecutionStrategy.executeWrapper(ExecutionStrategy.java:92)
	at com.nuix.swing.actions.ExecutionStrategy.access$500(ExecutionStrategy.java:16)
	at
com.nuix.swing.actions.ExecutionStrategy$NewThreadAsynchronousExecutionStrategy$1.run(ExecutionStrategy.java:185)
	at java.lang.Thread.run(Thread.java:595)
Comment 1 Trejkaz (pen name) 2006-02-07 01:55:22 UTC
Created attachment 17611 [details]
File exhibiting the problem

Here's one file exhibiting the problem.  I'm continuing to comb the remaining
failures in the hope that I'll find another non-confidential slide show which
has less pages.
Comment 2 Trejkaz (pen name) 2006-02-07 01:56:36 UTC
Whoops.  My apologies for leaving the unimportant part of the stack trace in.
Comment 3 Nick Burch 2006-02-07 11:16:52 UTC
Thanks, I'll take a look with this one

(It might be a little while until I get around to fixing it though - I need to
finish the unit tests for the current behaviour before I go changing it, so I
can be sure I don't break anything!)
Comment 4 Nick Burch 2006-06-13 14:59:50 UTC
This should now be fixed. I've thrown away quite a lot of the code, and
re-written it to handle both paragraph and character stylings being shared
between RichTextRuns.

Please open a new bug if the code now doesn't behave properly on the rich text
stuff.