Free Support Forum - aspose.com

Access denied error for code in asposewobfuscated.ss

Hi,

I am seeing the following error message in server log. I have noticed this many times.

Permission:
www.xyz.com : access denied (java.net.SocketPermission www.xyz.com resolve)
Code:
asposewobfuscated.ss in {file:/opt/httpd/root/…/xyz.war/WEB-INF/lib/Aspose.Words.jdk14.jar}

Stack Trace:
java.security.AccessControlException: access denied (java.net.SocketPermission wwwin.cisco.com resolve)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java(Compiled Code))
at java.security.AccessController.checkPermission(AccessController.java(Compiled Code))
at java.lang.SecurityManager.checkPermission(SecurityManager.java(Compiled Code))
at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java(Compiled Code))
at java.lang.SecurityManager.checkConnect(SecurityManager.java(Compiled Code))
at java.net.InetAddress.getAllByName0(InetAddress.java(Compiled Code))
at java.net.InetAddress.getAllByName(InetAddress.java(Compiled Code))
at java.net.InetAddress.getAllByName(InetAddress.java(Inlined Compiled Code))
at java.net.InetAddress.getByName(InetAddress.java(Compiled Code))
at sun.net.www.http.HttpClient.(HttpClient.java:330)
at sun.net.www.http.HttpClient.(HttpClient.java:301)
at sun.net.www.http.HttpClient.New(HttpClient.java:373)
at sun.net.www.http.HttpClient.New(HttpClient.java:354)
at sun.net.www.http.HttpClient.New(HttpClient.java:349)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:562)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:539)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:667)
at java.net.URL.openStream(URL.java:947)
at asposewobfuscated.ss.gZ(UriUtil.java:208)
at com.aspose.words.DocumentBuilder.insertImage(DocumentBuilder.java:1145)
at com.aspose.words.DocumentBuilder.insertImage(DocumentBuilder.java:1054)
at com.aspose.words.DocumentBuilder.insertImage(DocumentBuilder.java:989)
at com.aspose.words.oy.u(HtmlReader.java:1075)
at com.aspose.words.oy.c(HtmlReader.java(Compiled Code))
at com.aspose.words.oy.b(HtmlReader.java(Compiled Code))
at com.aspose.words.oy.a(HtmlReader.java(Compiled Code))
at com.aspose.words.oy.k(HtmlReader.java(Compiled Code))
at com.aspose.words.oy.k(HtmlReader.java(Compiled Code))
at com.aspose.words.oy.k(HtmlReader.java(Compiled Code))
at com.aspose.words.oy.k(HtmlReader.java(Compiled Code))
at com.aspose.words.oy.k(HtmlReader.java(Compiled Code))
at com.aspose.words.oy.f(HtmlReader.java(Compiled Code))
at com.aspose.words.oy.a(HtmlReader.java:44)
at com.aspose.words.Document.b(Document.java:1265)
at com.aspose.words.Document.a(Document.java:1217)
at com.aspose.words.Document.(Document.java:248)



Note: domain name and war file name has been changed for privacy
purpose.

We are using the licensed version of ASPOSE Word for Java. Please advice what is the root cause of this issue and fix.Details about the environment:
Java version: IBM jdk 1.4
Server: IBM WebSphere 1.5

Let me know if any other details are required.

Thanks,
Sanjay

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Could you please provide me sample code, which will allow me to reproduce the problem on my side? I will check the issue and provide you more information.

Best regards.