Access Denied when trying to print in an applet

Hello Friends,

I'm trying to print a pdf document from an applet. I have managed to get it to the point that it detects the default [as well as all other network] printers. However, it gives me an Access Denied error, that I have no idea of how to tackle.

The url that I try to get the pdf doc from: http://shan:7001/printPDFApp/New_Test.pdf

"shan" is my machine name and I have already signed the applet

Here's the Java console output:

======================================================

initializing...

starting...

pdfUrl after = http://shan:7001/printPDFApp/New_Test.pdf

initialising pdfprinter

pdfprintercom.activetree.pdfprint.AtPdfStreamPrinter@da2cef

defaultPrintService : Win32 Printer : Lexmark Z25-Z35

found printer: Win32 Printer : \\ocdc2\ALPHA

found printer: Win32 Printer : Lexmark Z25-Z35 (Copy 2)

found printer: Win32 Printer : Lexmark Z25-Z35

finally found printers: 3

printerSupportedPageFormat.getOrientation() : 1

java.lang.RuntimeException: access denied (java.net.SocketPermission shan:7001 connect,resolve)

at com.activetree.pdfprint.AtPdfStreamPrinter$a$a.a(Unknown Source)

at com.activetree.pdfprint.AtPdfStreamPrinter.a(Unknown Source)

at com.activetree.pdfprint.AtPdfStreamPrinter.print(Unknown Source)

at activetree.pdfprint.PdfPrintFromURLApplet.start(PdfPrintFromURLApplet.java:100)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

java.lang.RuntimeException: access denied (java.net.SocketPermission shan:7001 connect,resolve)

at com.activetree.pdfprint.AtPdfStreamPrinter.print(Unknown Source)

at activetree.pdfprint.PdfPrintFromURLApplet.start(PdfPrintFromURLApplet.java:100)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

=====================================================================

Any help will be appreciated.

Thanks

Karen

[2052 byte] By [kpan1a] at [2007-10-1 6:36:20]
# 1
Is the applet signed and trusted?You can see here how to check the trace to see if there are any problems with signature,policy or trusting the applet. http://forum.java.sun.com/thread.jspa?threadID=600033Any jar files used that are not signed or trusted?
harmmeijera at 2007-7-9 15:58:23 > top of Java-index,Security,Signed Applets...