我的applet在jre1.5下运行正常,因为客户端的原因,需改用jre1.4,但装好后,其他的applet可以运行,我的运行不了,控制台显示:
sun.misc.ServiceConfigurationError: javax.imageio.spi.ImageReaderSpi: : java.io.IOException: Server returned HTTP response code: 403 for URL: http://192.168.0.79:8080/AppletView/META-INF/services/javax.imageio.spi.ImageReaderSpi at sun.misc.Service.fail(Unknown Source) at sun.misc.Service.parse(Unknown Source) at sun.misc.Service.access$100(Unknown Source) at sun.misc.Service$LazyIterator.hasNext(Unknown Source) at javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(Unknown Source) at javax.imageio.spi.IIORegistry.<init>(Unknown Source) at javax.imageio.spi.IIORegistry.getDefaultInstance(Unknown Source) at javax.imageio.ImageIO.<clinit>(Unknown Source) at org.pdfbox.pdmodel.graphics.xobject.PDJpeg.getRGBImage(PDJpeg.java:139) at org.pdfbox.util.operator.pagedrawer.Invoke.process(Invoke.java:81) at org.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:494) at org.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:207) at org.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:160) at org.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:97) at org.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:658) at yp.PDFToImage.getImages(PDFToImage.java:145) at yp.View02.loadImage(View02.java:86) at yp.View02.init(View02.java:78) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source)哪位高人知道是什么原因?
sun.misc.ServiceConfigurationError: javax.imageio.spi.ImageReaderSpi: : java.io.IOException: Server returned HTTP response code: 403 for URL: http://192.168.0.79:8080/AppletView/META-INF/services/javax.imageio.spi.ImageReaderSpi at sun.misc.Service.fail(Unknown Source) at sun.misc.Service.parse(Unknown Source) at sun.misc.Service.access$100(Unknown Source) at sun.misc.Service$LazyIterator.hasNext(Unknown Source) at javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(Unknown Source) at javax.imageio.spi.IIORegistry.<init>(Unknown Source) at javax.imageio.spi.IIORegistry.getDefaultInstance(Unknown Source) at javax.imageio.ImageIO.<clinit>(Unknown Source) at org.pdfbox.pdmodel.graphics.xobject.PDJpeg.getRGBImage(PDJpeg.java:139) at org.pdfbox.util.operator.pagedrawer.Invoke.process(Invoke.java:81) at org.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:494) at org.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:207) at org.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:160) at org.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:97) at org.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:658) at yp.PDFToImage.getImages(PDFToImage.java:145) at yp.View02.loadImage(View02.java:86) at yp.View02.init(View02.java:78) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source)哪位高人知道是什么原因?
我用的服务器是WSAD4.0,换成 Tomcat,不管在jre1.4还是jre1.5下都能正常运行,为什么WSAD4.0就只支持jre1.5呢?
但是在它jre1.4下跑其他applet又行,就不能运行自己的
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6212262着里面有针对Tomcat和IIS的解决方法, 对WSAD也应该类似。CUSTOMER SUBMITTED WORKAROUND :
For Tomcat server, modify the custom error page to be a JSP, and force the HTTP status code to be 404. For IIS server, use File access to display the custom error page instead of an URL redirect.
xxxxx@xxxxx 2004-12-23 18:35:47 GMT
请问,我把applet中的import javax.imageio.ImageIO;去掉了后,为什么在服务器中运行,还是不能load我需要的图片,控制台还是出现一样的异常?真是急死人!
而且同是jre1.4.10,我的applet可以在Tomcat5.0中运行!
多谢大侠了!