AW: AccessControlException when running Batik Squiggle 1.11
Kerschbaum Michael <[email protected]> Fri, 5 Jul 2019 10:28:29 +0000
| Newsgroups | gmane.text.xml.batik.user |
|---|---|
| Message-ID | <[email protected]> |
--_000_739151dd2a1d49458a996dafe52ec0fapkeat_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I would test the function, so i would rename the file and see if there is a= nother error. Next i would put an own svg as init.svg in the folder. Perha= ps so you get closer to the problem. Easiest way would be if you have the source - to debug it. mfg Von: John-Val Rose <[email protected]> Gesendet: Freitag, 5. Juli 2019 11:18 An: [email protected] Betreff: RE: AccessControlException when running Batik Squiggle 1.11 Thanks. I understand what you are saying regarding the permissions but Squiggle for= Batik 1.9 works perfectly on the exact same machine. I've checked the file permissions in question and everything appears to be = as expected. -JVR From: Kerschbaum Michael<mailto:[email protected]> Sent: Friday, 5 July 2019 18:18 To: [email protected]<mailto:[email protected]= e.org> Subject: AW: AccessControlException when running Batik Squiggle 1.11 Hello, I would say, you dont have permission to the file "init.svg". Perhaps you r= un the application from a different user, as the user that created the file= ? Sorry I don't know Squiggle and the other environment you're a running bati= k on. But the exceptions itself says that the file can't be read ! mfg Dipl.-Ing. (FH) Michael Kerschbaum Entwickler PKE Holding AG Technologie und Systeme Computerstra=DFe 6 1100 Wien T: +43 50150 1210 M: +43 664 80470 1210 F: +43 50150 1042 [email protected]<mailto:[email protected]> www.pke.at Aktiengesellschaft mit Sitz in Wien / Firmenbuchnummer 103264i / Ronald D= =FCller - Vorsitzender des Vorstandes / Bruno Faustka - Mitglied des Vorsta= ndes / Matthias Koppensteiner - Mitglied des Vorstandes / Klaus D=FCller - = Vorsitzender des Aufsichtsrates Von: John-Val Rose <[email protected]<mailto:[email protected]= ogy>> Gesendet: Montag, 1. Juli 2019 08:34 An: [email protected]<mailto:[email protected]= e.org> Betreff: AccessControlException when running Batik Squiggle 1.11 I am new to both Batik and this list so apologies if this question has been= asked before. I have tried to run Squiggle for Batik 1.11 both using the JARs and also vi= a source but each time I get the attached exception. It seems to stem from this exception: java.security.AccessControlException: access denied ("java.net.NetPermissio= n" "setDefaultAuthenticator") at java.base/java.security.AccessControlContext.checkPermissi= on(AccessControlContext.java:472) at java.base/java.security.AccessController.checkPermission(A= ccessController.java:1042) at java.base/java.lang.SecurityManager.checkPermission(Securi= tyManager.java:408) at java.base/java.net.Authenticator.setDefault(Authenticator.= java:130) at org.apache.batik.apps.svgbrowser.Main.<init>(Main.java:410= ) at org.apache.batik.apps.svgbrowser.Main.main(Main.java:164) I am running Squiggle on Windows 10 x64 and have tried with both the latest= versions of Java 8 and 12. I note that this problem does not occur when I= tried another version namely Batik 1.9. Could someone please help me understand what the nature of this problem is? Graciously, John-Val --_000_739151dd2a1d49458a996dafe52ec0fapkeat_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr= osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:= //www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-= 1"> <meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Verdana; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri",sans-serif;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:#954F72; text-decoration:underline;} p.msonormal0, li.msonormal0, div.msonormal0 {mso-style-name:msonormal; mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; font-size:12.0pt; font-family:"Times New Roman",serif;} span.E-MailFormatvorlage18 {mso-style-type:personal-reply; font-family:"Calibri",sans-serif; color:#1F497D;} .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt;} @page WordSection1 {size:612.0pt 792.0pt; margin:72.0pt 72.0pt 72.0pt 72.0pt;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3D"DE" link=3D"blue" vlink=3D"#954F72"> <div class=3D"WordSection1"> <p class=3D"MsoNormal"><span style=3D"color:#1F497D;mso-fareast-language:EN= -US">Hello,<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"color:#1F497D;mso-fareast-language:EN= -US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span style=3D"color:#1F497D;mso-fareast-language:EN= -US">I would test the function, so i would rename the file and see if there= is a nother error. Next i would put an own svg as init.svg in the folder. = Perhaps so you get closer to the problem.<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"color:#1F497D;mso-fareast-language:EN= -US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span style=3D"color:#1F497D;mso-fareast-language:EN= -US">Easiest way would be if you have the source – to debug it.<o:p><= /o:p></span></p> <p class=3D"MsoNormal"><span style=3D"color:#1F497D;mso-fareast-language:EN= -US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span style=3D"color:#1F497D;mso-fareast-language:EN= -US">mfg</span><span style=3D"font-size:7.0pt;font-family:"Verdana&quo= t;,sans-serif;color:black"><br> <br> </span><span style=3D"color:#1F497D;mso-fareast-language:EN-US"><o:p></o:p>= </span></p> <div> <div style=3D"border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm = 0cm 0cm"> <p class=3D"MsoNormal"><b>Von:</b> John-Val Rose <[email protected]= ogy> <br> <b>Gesendet:</b> Freitag, 5. Juli 2019 11:18<br> <b>An:</b> [email protected]<br> <b>Betreff:</b> RE: AccessControlException when running Batik Squiggle 1.11= <o:p></o:p></p> </div> </div> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU">Thanks.<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU">I understand what you are sayin= g regarding the permissions but Squiggle for Batik 1.9 works perfectly on t= he exact same machine.<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU">I’ve checked the file per= missions in question and everything appears to be as expected.<o:p></o:p></= span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU">-JVR<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU"><o:p> </o:p></span></p> <div style=3D"border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm = 0cm 0cm"> <p class=3D"MsoNormal"><b><span lang=3D"EN-AU">From: </span></b><span lang= =3D"EN-AU"><a href=3D"mailto:[email protected]">Kerschbaum Michael</a><br= > <b>Sent: </b>Friday, 5 July 2019 18:18<br> <b>To: </b><a href=3D"mailto:[email protected]">batik-user= [email protected]</a><br> <b>Subject: </b>AW: AccessControlException when running Batik Squiggle 1.11= <o:p></o:p></span></p> </div> <p class=3D"MsoNormal"><span lang=3D"EN-AU"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span style=3D"color:#1F497D;mso-fareast-language:EN= -US">Hello,<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"color:#1F497D;mso-fareast-language:EN= -US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span style=3D"color:#1F497D;mso-fareast-language:EN= -US">I would say, you dont have permission to the file „init.svg̶= 0;. Perhaps you run the application from a different user, as the user that= created the file ?<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"color:#1F497D;mso-fareast-language:EN= -US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span style=3D"color:#1F497D;mso-fareast-language:EN= -US">Sorry I don’t know </span><span lang=3D"EN-AU" style=3D"mso-fareast-language:EN-US">Squiggle a= nd the other environment you’re a running batik on. But the exception= s itself says that the file can’t be read !<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"color:#1F497D;mso-fareast-language:EN= -US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span style=3D"color:#1F497D;mso-fareast-language:EN= -US">mfg<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"color:#1F497D;mso-fareast-language:EN= -US"><o:p> </o:p></span></p> <p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><b><span style=3D"fon= t-size:9.0pt;font-family:"Verdana",sans-serif;color:black">Dipl.-= Ing. (FH) Michael Kerschbaum</span></b><span style=3D"font-size:8.0pt;font-= family:"Verdana",sans-serif;color:black"><br> Entwickler <br> <br> </span><b><span style=3D"font-size:9.0pt;font-family:"Verdana",sa= ns-serif;color:#008FD0">PKE Holding AG </span></b><span style=3D"font-size:8.0pt;font-family:"Verdana",s= ans-serif;color:black"><br> Technologie und Systeme <br> Computerstra=DFe 6 <br> 1100 Wien <br> T: +43 50150 1210 <br> M: +43 664 80470 1210 <br> F: +43 50150 1042 <br> <a href=3D"mailto:[email protected]"><span style=3D"color:black">m.kersch= [email protected]</span></a><br> <a href=3D"www.pke.at"><span style=3D"color:black">www.pke.at</span></a><br= > <br> </span><span style=3D"font-size:7.0pt;font-family:"Verdana",sans-= serif;color:black">Aktiengesellschaft mit Sitz in Wien / Firmenbuchnummer 1= 03264i / Ronald D=FCller - Vorsitzender des Vorstandes / Bruno Faustka= - Mitglied des Vorstandes / Matthias Koppensteiner - Mitglied des Vorstandes / Klaus D=FCller - Vorsitzender des Aufsichtsrat= es </span> <span style=3D"color:#1F497D;mso-fareast-language:EN-US"><o:p></o:p></span>= </p> <div> <div style=3D"border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm = 0cm 0cm"> <p class=3D"MsoNormal"><b>Von:</b> John-Val Rose <<a href=3D"mailto:john= @rosethorn.technology">[email protected]</a>> <br> <b>Gesendet:</b> Montag, 1. Juli 2019 08:34<br> <b>An:</b> <a href=3D"mailto:[email protected]">batik-user= [email protected]</a><br> <b>Betreff:</b> AccessControlException when running Batik Squiggle 1.11<o:p= ></o:p></p> </div> </div> <p class=3D"MsoNormal"><span style=3D"mso-fareast-language:EN-US"><o:p>&nbs= p;</o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU" style=3D"mso-fareast-language:E= N-US">I am new to both Batik and this list so apologies if this question ha= s been asked before.<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU" style=3D"mso-fareast-language:E= N-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU" style=3D"mso-fareast-language:E= N-US">I have tried to run Squiggle for Batik 1.11 both using the JARs and a= lso via source but each time I get the attached exception.<o:p></o:p></span= ></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU" style=3D"mso-fareast-language:E= N-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU" style=3D"mso-fareast-language:E= N-US">It seems to stem from this exception:<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU" style=3D"mso-fareast-language:E= N-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU" style=3D"mso-fareast-language:E= N-US">java.security.AccessControlException: access denied ("java.net.N= etPermission" "setDefaultAuthenticator")<o:p></o:p></span></= p> <p class=3D"MsoNormal"><span lang=3D"EN-AU" style=3D"mso-fareast-language:E= N-US"> &nb= sp; at java.base/java.security.AccessControlContext.checkPermission(A= ccessControlContext.java:472)<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU" style=3D"mso-fareast-language:E= N-US"> &nb= sp; at java.base/java.security.AccessController.checkPermission(Acces= sController.java:1042)<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU" style=3D"mso-fareast-language:E= N-US"> &nb= sp; at java.base/java.lang.SecurityManager.checkPermission(SecurityMa= nager.java:408)<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU" style=3D"mso-fareast-language:E= N-US"> &nb= sp; at java.base/java.net.Authenticator.setDefault(Authenticator.java= :130)<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU" style=3D"mso-fareast-language:E= N-US"> &nb= sp; at org.apache.batik.apps.svgbrowser.Main.<init>(Main.java:4= 10)<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU" style=3D"mso-fareast-language:E= N-US"> &nb= sp; at org.apache.batik.apps.svgbrowser.Main.main(Main.java:164)<o:p>= </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU" style=3D"mso-fareast-language:E= N-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU" style=3D"mso-fareast-language:E= N-US">I am running Squiggle on Windows 10 x64 and have tried with both the = latest versions of Java 8 and 12. I note that this problem does not o= ccur when I tried another version namely Batik 1.9.<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU" style=3D"mso-fareast-language:E= N-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU" style=3D"mso-fareast-language:E= N-US">Could someone please help me understand what the nature of this probl= em is?<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU" style=3D"mso-fareast-language:E= N-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU" style=3D"mso-fareast-language:E= N-US">Graciously,<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU" style=3D"mso-fareast-language:E= N-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU" style=3D"mso-fareast-language:E= N-US">John-Val<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-AU" style=3D"mso-fareast-language:E= N-US"><o:p> </o:p></span></p> </div> </body> </html> --_000_739151dd2a1d49458a996dafe52ec0fapkeat_--