Hi Nishant, >I am using setPage method of ULCHtmlPane.In setPage method (It is in Clent >side) I am passing url of a file which is at server side.During runtime when
Let me understand this: to setPage() you are passing a URL of a file which is on the server. The file E:\Nishant\ticketfacsimile\production\157_211150003.html is on the server. The HTMLPane is on the client (it has been uploaded) so it will look for the file on the client which is obviously not there. You need to do two things: 1. Pass the URL with respect to the server i.e. an HTTP url so that you can access server side html files in the HTMLPane. The html files you want to show in your application's HTMLPane will reside in some directory of an App Server (may be the one in which your ULC app is running) or a Web server. 2. Sign all jar files in case you want to access client side files in your HTMLPane and make sure that those files are presenton every cliet that will access your application. Thanks and regards, Janak ----------------------------------------- Janak Mulani email: [EMAIL PROTECTED] url: http://www.canoo.com Beyond AJAX - Java Rich Internet Applications http://www.canoo.com/ulc ----------------------------------------- -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nishant Srivastava Sent: Tuesday, June 17, 2008 8:53 AM To: [email protected] Subject: [ULC-developer] Getting exception while using setPage method of ULCHtmlPane Hi, I am using setPage method of ULCHtmlPane.In setPage method (It is in Clent side) I am passing url of a file which is at server side.During runtime when setPage(URL url) is called I am getting following exception. 2008-01-17 11:27:25,207 INFO [STDOUT] 1 17.01.2008 11:27:25.207 900 WARNING Thread[http-0.0.0.0-8080-Processor25,5,jboss] com.ulcjava.base.server.ULCSession a Exception received from client: java.security.AccessControlException: access denied (java.io.FilePermission E:\Nishant\ticketfacsimile\production\157_211150003.html read) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkRead(Unknown Source) at java.io.File.isDirectory(Unknown Source) at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source) at sun.net.www.protocol.file.FileURLConnection.initializeHeaders(Unknown Source) at sun.net.www.protocol.file.FileURLConnection.getHeaderField(Unknown Source) at sun.net.www.URLConnection.getContentType(Unknown Source) at javax.swing.JEditorPane.getStream(Unknown Source) at javax.swing.JEditorPane.setPage(Unknown Source) at com.ulcjava.base.client.UIHtmlPane.a(UIHtmlPane.java:21) at com.ulcjava.base.client.UIHtmlPane.setPage(UIHtmlPane.java:10) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.ulcjava.base.client.UIProxy.processInvokeUI(UIProxy.java:204) at com.ulcjava.base.client.UIProxy.a(UIProxy.java:0) at com.ulcjava.base.client.UIProxy.a(UIProxy.java:222) at com.ulcjava.base.client.UIProxy.restoreState(UIProxy.java:220) at com.ulcjava.base.client.UIProxy.init(UIProxy.java:9) at com.ulcjava.base.client.UISession.newInstance(UISession.java:274) at com.ulcjava.base.client.UISession.find(UISession.java:17) at com.ulcjava.base.client.UISession.getManaged(UISession.java:343) at com.ulcjava.base.client.UIProxy.c(UIProxy.java:228) at com.ulcjava.base.client.UIProxy.c(UIProxy.java:58) at com.ulcjava.base.client.UIProxy.a(UIProxy.java:51) at com.ulcjava.base.client.UIProxy.a(UIProxy.java:222) at com.ulcjava.base.client.UIProxy.restoreState(UIProxy.java:220) at com.ulcjava.base.client.UIProxy.init(UIProxy.java:9) at com.ulcjava.base.client.UISession.newInstance(UISession.java:274) at com.ulcjava.base.client.UISession.find(UISession.java:17) at com.ulcjava.base.client.UISession.getManaged(UISession.java:343) at com.ulcjava.base.client.UIProxy.c(UIProxy.java:228) at com.ulcjava.base.client.UIProxy.c(UIProxy.java:58) at com.ulcjava.base.client.UIProxy.a(UIProxy.java:51) at com.ulcjava.base.client.UIProxy.handleRequest(UIProxy.java:134) at com.ulcjava.base.client.UISession.b(UISession.java:226) at com.ulcjava.base.client.UISession.access$1900(UISession.java:311) at com.ulcjava.base.client.UISession$4.run(UISession$4.java:2) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at com.ulcjava.base.client.FilteringEventQueue.dispatchEvent(FilteringEventQu eu e.java:1) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) can any body suggest some solution. Disclaimer: This email (including any attachments) is intended for the sole use of the recipient/s and may contain material that is CONFIDENTIAL. Any unauthorized disclosure / copying / distribution or forwarding of this message or part is STRICTLY PROHIBITED. If you have erroneously received this message, please delete it immediately and notify the sender. No liability is assumed for any errors and/or omissions in the contents of this message. Information in this message that does not relate to the official business of this Company shall be understood as neither given nor endorsed by it. If verification is required please request a hard-copy version. To know more about Kale Consultants, visit www.kaleconsultants.com -=-=-=-=-=-=-=-=-=- _______________________________________________ ULC-developer mailing list [email protected] http://lists.canoo.com/mailman/listinfo/ulc-developer _______________________________________________ ULC-developer mailing list [email protected] http://lists.canoo.com/mailman/listinfo/ulc-developer
