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 Andreas Neumann <ne...@karto.baug.ethz.ch> on 2003/10/18 00:07:47 UTC

Js Debugger start fails

Hi,

I tried to use the js debugger with the CVS snapshot "batik-cvs-03-10-13.zip"

Batik starts fine and opens the file. But the js-debugger won't start.

Here is the output on my console:
--------------
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at org.apache.batik.apps.svgbrowser.JSVGViewerFrame.showDebugger(Unknown
Source)
        at
org.apache.batik.apps.svgbrowser.JSVGViewerFrame$ToggleDebuggerAction.actionPerformed(Unknown
Source)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1797)
        at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1850)
        at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:321)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1109)
        at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
        at java.awt.Component.processMouseEvent(Component.java:5093)
        at java.awt.Component.processEvent(Component.java:4890)
        at java.awt.Container.processEvent(Container.java:1566)
        at java.awt.Component.dispatchEventImpl(Component.java:3598)
        at java.awt.Container.dispatchEventImpl(Container.java:1623)
        at java.awt.Component.dispatchEvent(Component.java:3439)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
        at java.awt.Container.dispatchEventImpl(Container.java:1609)
        at java.awt.Window.dispatchEventImpl(Window.java:1585)
        at java.awt.Component.dispatchEvent(Component.java:3439)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:230)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:183)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
Caused by: java.security.AccessControlException: access denied
(java.util.PropertyPermission user.home read)
        at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
        at java.security.AccessController.checkPermission(AccessController.java:401)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
        at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1291)
        at java.lang.System.getProperty(System.java:572)
        at sun.awt.shell.ShellFolderManager.get(ShellFolderManager.java:51)
        at sun.awt.shell.ShellFolder.get(ShellFolder.java:208)
        at
javax.swing.filechooser.FileSystemView.getDefaultDirectory(FileSystemView.java:350)
        at javax.swing.JFileChooser.setCurrentDirectory(JFileChooser.java:525)
        at javax.swing.JFileChooser.<init>(JFileChooser.java:321)
        at javax.swing.JFileChooser.<init>(JFileChooser.java:273)
        at org.mozilla.javascript.tools.debugger.Main.init(Main.java:2772)
        at org.mozilla.javascript.tools.debugger.Main.<init>(Main.java:3510)
        ... 31 more


----

any idea on what could be wrong?

I am using MacOSX 10.2.8 with "Java 1.4.1_01"

Am I missing something or should there be somethin in my CLASSPATH?

Thanks,
Andreas

--     
The only thing that stands between a man and what he wants from
life is often merely the will to try it and the faith to believe
that it is possible ...
-- M. DeVos
    
----------------------------------------------     
Andreas Neumann - Department of Cartography     
Swiss Federal Institute of Technology (ETH)     
ETH Hoenggerberg, CH-8093  Zurich, Switzerland     
Phone: ++41-1-633 3031, Fax: ++41-1-633 1153     
e-mail: neumann@karto.baug.ethz.ch     
www: http://www.karto.ethz.ch/neumann/     
SVG.Open/Carto.net: http://www.svgopen.org/     

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Re: Js Debugger start fails

Posted by Andreas Neumann <ne...@karto.baug.ethz.ch>.
Great - it works now!

Now I hope to get more of my examples running in Batik and the Corel Viewer. I
know I used some none-standard methods in my examples that ASV would accept but
others don't.

This debugger will help me a lot!

Thanks,
Andreas


Zitiere Thomas DeWeese <Th...@Kodak.com>:

> Andreas Neumann wrote:
> 
> > Here is the output on my console:
> > --------------
> > java.lang.reflect.InvocationTargetException
> >         at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> > [...]
> > Caused by: java.security.AccessControlException: access denied
> > (java.util.PropertyPermission user.home read)
> >         at
> >
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
> >         at
> java.


security.AccessController.checkPermission(AccessController.java:401)
> >         at
> java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
> 
> > any idea on what could be wrong?
> 
>     The problem is the 'enforce secure scripting' option
> in the Preferences->browser Options->security settings pane.
> When this is on everything executing in the context of the
> JavaScript jar file runs in the 'sand box' this prevents
> reading almost all properties including getting your
> home directory (which it only wants for the open file
> dialog :).
> 
>     This should probably be granted somehow although it
> would in fact be tricky to do for now I suggest turning
> off secure scripting while debugging.  Sorry about this.
> 
> > I am using MacOSX 10.2.8 with "Java 1.4.1_01"
> > 
> > Am I missing something or should there be somethin in my CLASSPATH?
> > 
> > Thanks,
> > Andreas
> > 
> > --     
> > The only thing that stands between a man and what he wants from
> > life is often merely the will to try it and the faith to believe
> > that it is possible ...
> > -- M. DeVos
> >     
> > ----------------------------------------------     
> > Andreas Neumann - Department of Cartography     
> > Swiss Federal Institute of Technology (ETH)     
> > ETH Hoenggerberg, CH-8093  Zurich, Switzerland     
> > Phone: ++41-1-633 3031, Fax: ++41-1-633 1153     
> > e-mail: neumann@karto.baug.ethz.ch     
> > www: http://www.karto.ethz.ch/neumann/     
> > SVG.Open/Carto.net: http://www.svgopen.org/     
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: batik-users-help@xml.apache.org
> > 
> > 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
> 
> 



--     
The only thing that stands between a man and what he wants from
life is often merely the will to try it and the faith to believe
that it is possible ...
-- M. DeVos
    
----------------------------------------------     
Andreas Neumann - Department of Cartography     
Swiss Federal Institute of Technology (ETH)     
ETH Hoenggerberg, CH-8093  Zurich, Switzerland     
Phone: ++41-1-633 3031, Fax: ++41-1-633 1153     
e-mail: neumann@karto.baug.ethz.ch     
www: http://www.karto.ethz.ch/neumann/     
SVG.Open/Carto.net: http://www.svgopen.org/     

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Re: Js Debugger start fails

Posted by Thomas DeWeese <Th...@Kodak.com>.
Andreas Neumann wrote:

> Here is the output on my console:
> --------------
> java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> [...]
> Caused by: java.security.AccessControlException: access denied
> (java.util.PropertyPermission user.home read)
>         at
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
>         at java.security.AccessController.checkPermission(AccessController.java:401)
>         at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)

> any idea on what could be wrong?

    The problem is the 'enforce secure scripting' option
in the Preferences->browser Options->security settings pane.
When this is on everything executing in the context of the
JavaScript jar file runs in the 'sand box' this prevents
reading almost all properties including getting your
home directory (which it only wants for the open file
dialog :).

    This should probably be granted somehow although it
would in fact be tricky to do for now I suggest turning
off secure scripting while debugging.  Sorry about this.

> I am using MacOSX 10.2.8 with "Java 1.4.1_01"
> 
> Am I missing something or should there be somethin in my CLASSPATH?
> 
> Thanks,
> Andreas
> 
> --     
> The only thing that stands between a man and what he wants from
> life is often merely the will to try it and the faith to believe
> that it is possible ...
> -- M. DeVos
>     
> ----------------------------------------------     
> Andreas Neumann - Department of Cartography     
> Swiss Federal Institute of Technology (ETH)     
> ETH Hoenggerberg, CH-8093  Zurich, Switzerland     
> Phone: ++41-1-633 3031, Fax: ++41-1-633 1153     
> e-mail: neumann@karto.baug.ethz.ch     
> www: http://www.karto.ethz.ch/neumann/     
> SVG.Open/Carto.net: http://www.svgopen.org/     
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
> 
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org