I have a error in my program.
error : x-windows-949 is not a supported encoding
environment :
OS : Windows 2016
java : 1.6.0_45
was : JEUS 6.0
etc : our OS encoding use chcp 949 (you can check, if you enter ‘chcp’ in cmd)
when I use Presentation class using ISO-8859-1 encoded file, It’s Okay.
But, x-windows-949 encoded file, I can see error.
I used Presentation class through uploading attach ppt, pptx file.
I really appreciate your continued support.
Contact please
Regards,
Eunsu Choi
@ChoiEunSu
Can you please provide the source PPT and PPTX files having issue so that we can investigate on our end along with working sample code.
I use aspose.slides-14.10.0.jar
I use other network, so I don’t get the PPT. if you must need the ‘x-windows-949’ encoded type file, I will find a way.
In server. I can check 2 types encoded files ‘x-windows-949’, ‘ISO-8859-1’. I can see error ‘x-windows-949’ encoded file. ‘ISO-8859-01’ encoded type It’s okay.
server environment :
OS : Windows 2016
java : 1.6.0_45
was : JEUS 6.0
etc : our OS encoding use chcp 949
In other environment (local PC), ‘x-windows-949’ encoded type, It’s okay.
local PC enviroment :
OS : Windows10
java : 1.6.0_45
was : JEUS 6.0
etc : our OS encoding use chcp 949
This is sample code.
import com.aspose.slides.*;
Presentation pres = new Presentation(multiparfile.getInputStream()); //in here, I can see error code ‘x-windows-949 is not a supported encoding’.
@ChoiEunSu
You are using an extremely old API version that is no longer supported. Please consider using Aspose.Slides for Java 20.12 and if you still face issue, please feel free to share with us.
Thanks for your reply.
I have question.
I checked the products how to use Aspose.Slides for Java 20.12 API. However, I can’t use Aspose.Slides for Java 20.12 API through pom.xml. Because I use other network.
Is there any way to download the API jar file?
@ChoiEunSu
You can download from this repo link or from our download section.
Thanks for your deatil reply.
I checked jar file for your reply, So I will test. and then tell you the result.
@ChoiEunSu
You are always welcome and I hope it will work.
1 Like
I tested Aspose.Slides for Java 20.12 API. and then I saw error.
java.lang.NoSuchMethodError : sun.awt.image. SunWritableRaster.markDirty(Ljava/awt/image/WritableRaster;) V
at com.aspose.slides.internal.m3.if.getRaster(Unknown Source)
at sun.java2d.pipe.AlphaPaintPipe.renderPathTile(AlphaPaintPipe.java:106)
…
This is error code.
Presentation.getSlides().get_Item(i).getThumbnail(folat scaleX, float scaleY);
In same code,
When I used Aspose.Slides for Java 14.10 API, It’s okay. However, When I used Aspose.Slides for Java 20.12 API, I can checked the error.
Please let me know, If you know anything.
Thanks.
@ChoiEunSu
I request you to please share the working sample example along with source file reproducing the issue. I will log the issue on our issue tracking system to further investigate this on our end.
1 Like
This is sample code.
Presentation pres = new Presentation(ppt_file.getInstance());
for(int i=0; i<pres.getSlides().size(); i++){
BufferedImage image = pres.getSlides().get_Item(i).getThumbnail(1.0256411, 1.111111); // << Error
}
Error :
org.apache.catalina.core.StandardWrapperValve invoke
심각: Servlet.service() for servlet appServlet threw exception
java.lang.NoSuchMethodError: sun.awt.image.SunWritableRaster.markDirty(Ljava/awt/image/WritableRaster;)V
at com.aspose.slides.internal.m3.if.getRaster(Unknown Source)
at sun.java2d.pipe.AlphaPaintPipe.renderPathTile(AlphaPaintPipe.java:106)
at sun.java2d.pipe.SpanShapeRenderer$Composite.renderBox(SpanShapeRenderer.java:42)
at sun.java2d.pipe.SpanShapeRenderer.renderRect(SpanShapeRenderer.java:145)
at sun.java2d.pipe.SpanShapeRenderer.fill(SpanShapeRenderer.java:87)
at sun.java2d.pipe.ValidatePipe.fill(ValidatePipe.java:142)
at sun.java2d.SunGraphics2D.fill(SunGraphics2D.java:2376)
at com.aspose.slides.internal.l5.do.if(Unknown Source)
at com.aspose.slides.internal.l5.do.do(Unknown Source)
at com.aspose.slides.internal.l5.do.new(Unknown Source)
at com.aspose.slides.internal.l5.do.do(Unknown Source)
at com.aspose.slides.internal.l3.new.do(Unknown Source)
at com.aspose.slides.internal.l3.new.do(Unknown Source)
at com.aspose.slides.internal.l3.do.do(Unknown Source)
at com.aspose.slides.internal.l3.new.do(Unknown Source)
at com.aspose.slides.internal.gk.goto.do(Unknown Source)
at com.aspose.slides.to.do(Unknown Source)
at com.aspose.slides.GeometryShape.do(Unknown Source)
at com.aspose.slides.PictureFrame.do(Unknown Source)
at com.aspose.slides.GroupShape.do(Unknown Source)
at com.aspose.slides.Slide.if(Unknown Source)
at com.aspose.slides.Slide.do(Unknown Source)
at com.aspose.slides.Slide.do(Unknown Source)
at com.aspose.slides.Slide.do(Unknown Source)
at com.aspose.slides.Slide.for(Unknown Source)
at com.aspose.slides.Slide.const(Unknown Source)
at com.aspose.slides.Slide.getThumbnail(Unknown Source)
…
@ChoiEunSu
As requested earlier, please share the source file reproducing the issue.
Sorry, I’m late.
Now I can send source code. I got the permission.
This is private source code in company. So, Can I send source code in your private Email or private thing.
If tell me your email, I’ll send you.
And I have a question. Are you support team in aspose?
Thanks for your reply.
@ChoiEunSu
You can send me information privately by clicking on my name icon. A popup will appear and you can use Message option to send me privately. Please notify us here once you have shared that.
I sent you source code with error log, ppt file using private message
Thanks.
@ChoiEunSu
A ticket with ID SLIDESJAVA-38432 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be addressed.
tell me, if you know how long it will take to fix this problem?
Thanks.
@ChoiEunSu
I regret to share that at present the issue is still unresolved owing to internally blocking API limitation. We request for your patience and will share the updates with you as soon as issue will be addressed.
thank you for the quick reply.
Okay I’ll wait
@ChoiEunSu
Thank you for your understanding.