Free Support Forum - aspose.com

java.lang.IllegalStateException: Cannot find resource '/Aspose/Resources/GenBasR.ttf'. with Aspose slides 3.0.0 for Java (Linux only)

Hey,

I am trying trying to merge two PPTX presentations but the addClone method throws java.lang.IllegalStateException exception. Interestingly this exception only happens with Linux, the same code works just fine with Windows.

Stack trace:

Caused by: java.lang.IllegalStateException: Cannot find resource ‘/Aspose/Resources/GenBasR.ttf’.
at com.aspose.slides.a.B.if(Unknown Source)
at com.aspose.slides.a.h.r.do(Unknown Source)
at com.aspose.slides.a.l.h.char(Unknown Source)
at com.aspose.slides.a.l.h.byte(Unknown Source)
at com.aspose.slides.a.l.h.do(Unknown Source)
at com.aspose.slides.a.l.j.do(Unknown Source)
at com.aspose.slides.a.l.j.do(Unknown Source)
at com.aspose.slides.a.l.j.do(Unknown Source)
at com.aspose.slides.lU.(Unknown Source)
at com.aspose.slides.GU.int(Unknown Source)
at com.aspose.slides.GU.final(Unknown Source)
at com.aspose.slides.co.do(Unknown Source)
at com.aspose.slides.Gm.do(Unknown Source)
at com.aspose.slides.Gm.do(Unknown Source)
at com.aspose.slides.Gm.do(Unknown Source)
at com.aspose.slides.Gm.(Unknown Source)
at com.aspose.slides.TextFrameEx.do(Unknown Source)
at com.aspose.slides.AutoShapeEx.do(Unknown Source)
at com.aspose.slides.AutoShapeEx.case(Unknown Source)
at com.aspose.slides.AutoShapeEx.do(Unknown Source)
at com.aspose.slides.ShapesEx.do(Unknown Source)
at com.aspose.slides.GroupShapeEx.do(Unknown Source)
at com.aspose.slides.BaseSlideEx.do(Unknown Source)
at com.aspose.slides.MasterSlideEx.do(Unknown Source)
at com.aspose.slides.PresentationEx.do(Unknown Source)
at com.aspose.slides.MasterSlidesEx.if(Unknown Source)
at com.aspose.slides.MasterSlidesEx.addClone(Unknown Source)
at com.aspose.slides.SlidesEx.if(Unknown Source)
at com.aspose.slides.SlidesEx.addClone(Unknown Source)
<!–[if gte mso 9]>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:HyphenationZone>21</w:HyphenationZone>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>FI</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<w:DoNotOptimizeForBrowser/>
<m:mathPr>
<m:mathFont m:val=“Cambria Math”/>
<m:brkBin m:val=“before”/>
<m:brkBinSub m:val="–"/>
<m:smallFrac m:val=“off”/>
<m:dispDef/>
<m:lMargin m:val=“0”/>
<m:rMargin m:val=“0”/>
<m:defJc m:val=“centerGroup”/>
<m:wrapIndent m:val=“1440”/>
<m:intLim m:val=“subSup”/>
<m:naryLim m:val=“undOvr”/>
</m:mathPr></w:WordDocument>
<![endif]–><!–[if gte mso 10]>

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-fareast-language:EN-US;}

<![endif]–>

Hi Tapio,


Thanks for your interest in Aspose.Slides.

I have observed the stack trace shared by you and like to share that exception that is arising seems due to missing font on your end in Linux environment. You need to install the used fonts in Linux environment as well. I also like to add that Aspose.Slides for Java allows to load font from custom location as well without installing them. You can copy the fonts from Windows environment to your Java environment and try loading them in your application using the the code snippet shared over this link . Please also try using our latest version of Aspose.Slides for Java 6.7.0 on your end. I will also share the new hotfix of Aspose.Slides for Java 6.7.1 by December 10, 2012 and suggest you to please try using that.

If there is still issue on your end by using mentioned latest versions then please share the sample code, source presentation and complete platform information with us for further investigation.

Many Thanks,