You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by "John C. Turnbull" <oz...@ozemail.com.au> on 2008/09/09 03:13:04 UTC
AccessControlException running latest Squiggle
I am trying to build and run Batik Squiggle from the latest sources but
after successfully building it I get this error when I run it:
java.security.AccessControlException: access denied (java.io.FilePermission
D:\Projects\batik-squiggle-1.8\build\classes\org\apache\batik\apps\svgbrowse
r\resources\init.svg read)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:323)
at
java.security.AccessController.checkPermission(AccessController.java:546)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at
java.lang.SecurityManager.checkRead(SecurityManager.java:871)
at java.io.File.isDirectory(File.java:752)
at
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:6
5)
at
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection
.java:161)
at
org.apache.batik.util.ParsedURLData.openStreamInternal(ParsedURLData.java:55
3)
at
org.apache.batik.util.ParsedURLData.openStream(ParsedURLData.java:476)
at
org.apache.batik.util.ParsedURL.openStream(ParsedURL.java:428)
at
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(SAXSVGDocument
Factory.java:158)
at
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createSVGDocument(SAXSVGDocum
entFactory.java:124)
at
org.apache.batik.bridge.DocumentLoader.loadDocument(DocumentLoader.java:106)
at
org.apache.batik.swing.svg.SVGDocumentLoader.run(SVGDocumentLoader.java:84)
The file init.svg definitely exists in the right location so why is it that
Squiggle cannot access it? The default security policy file also appears to
be in the right place.
Thanks,
-JCT
RE: AccessControlException running latest Squiggle
Posted by "John C. Turnbull" <oz...@ozemail.com.au>.
Hi Tonny,
> Go to Squigle Menu - Edit - Preferences, go to Security Settings and
> tick the approriate check box, if necessary close and run Squigle
> again.
Unfortunately I cannot do that because it doesn't get to the point where the menu is displayed. It just displays the splash and then crashes out with the security exception before the main window opens.
Cheers,
-JCT
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: AccessControlException running latest Squiggle
Posted by Tonny Kohar <to...@gmail.com>.
Hi,
On Tue, Sep 9, 2008 at 8:13 AM, John C. Turnbull <oz...@ozemail.com.au> wrote:
> I am trying to build and run Batik Squiggle from the latest sources but
> after successfully building it I get this error when I run it:
>
> java.security.AccessControlException: access denied (java.io.FilePermission
> D:\Projects\batik-squiggle-1.8\build\classes\org\apache\batik\apps\svgbrowser\resources\init.svg
> read)
>
> at
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
>
> at
> java.security.AccessController.checkPermission(AccessController.java:546)
>
> at
> java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
>
> at
>
>
> The file init.svg definitely exists in the right location so why is it that
> Squiggle cannot access it? The default security policy file also appears to
> be in the right place.
>
>
Go to Squigle Menu - Edit - Preferences, go to Security Settings and
tick the approriate check box, if necessary close and run Squigle
again.
Cheers
Tonny Kohar
--
Sketsa SVG Editor
imagine, design, create ...
http://www.kiyut.com
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org