Bookmark this page: Add To any mapxtreme java experts   to Yahoo MyWeb Add To any mapxtreme java experts   to Google Bookmarks Add To any mapxtreme java experts   to Windows Live Add To any mapxtreme java experts   to Del.icio.us Digg To any mapxtreme java experts  ! Add To any mapxtreme java experts   to Netscape
  •  
  • Subject
  • Author
  • Date
If you were  Registered and logged in, you could reply and use other advanced thread options
Posted by JimmyHoffa on December 14, 2006, 12:23 pm
Hi,

I have created an applet, and have been testing it within my IDE,
netbeans.. all was well.

Now i'm trsting the applet from a web page and get a
"accesscontrolexception" so the map(using visualMapJ) is never shown.

The full exception line is AccessControlException: access denied
(java.io.FilePermission C:\maps\ForWEB\UAE\Streets\AE_Streets_1.tab

Now what i'm confused about is if its a security issue why is my applet
trying to access the TAB file on my C drive in the first place !?. I
thought it was the mapxtreme servlets job...

I have visualMapJ set to do remote rendering using ..
RendererParams rParams = new RendererParams();
rParams.setURL(mxUrl);
m_visualMapJ.setRendererParams(rParams);

Where mxURL is /mapxtreme480 etcetc...

I am loading an MDF into the visualMapJ object via a URL.

However I am confused because the MDF itself contains references to
local .TAB files..

I was under the impression that the MDF is loaded by the mapxtreme
servlet, So it would be the servlet analysing the MDF and looking the
.TAB files on its own local drive.

Any advice appreciated...