google-code-export / droiddraw

Automatically exported from code.google.com/p/droiddraw
1 stars 1 forks source link

Exception in thread "AWT-EventQueue-2" java.security.AccessControlException: access denied (java.awt.AWTPermission accessClipboard) #145

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make sure "Show Java Console" option is enabled in Java plugin
2. Open http://www.droiddraw.org/ 
3. Drag a button onto the design area 
4. Check Java console output.

What is the expected output? What do you see instead?
Expected - button is rendered in design area
Actual - no button, stack trace in Java  console:

Java Plug-in 1.6.0_20
Using JRE version 1.6.0_20-b02 Java HotSpot(TM) Client VM
User home directory = C:\Users\BobW

----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------

Loaded image: http://droiddraw.googlecode.com/files/ui/emu1.png
Loaded image: http://droiddraw.googlecode.com/files/ui/emu2.png
Loaded image: http://droiddraw.googlecode.com/files/ui/emu3.png
Loaded image: http://droiddraw.googlecode.com/files/ui/emu4.png
Loaded image: http://droiddraw.googlecode.com/files/ui/paint.png
Loaded image: http://droiddraw.googlecode.com/files/ui/droiddraw_small.png
Loaded image: http://droiddraw.googlecode.com/files/ui/paypal.png
Loaded image: http://droiddraw.googlecode.com/files/ui/background_01p.png
Loaded image: http://droiddraw.googlecode.com/files/ui/background_01l.png
Loaded image: 
http://droiddraw.googlecode.com/files/ui/statusbar_background_p.png
Loaded image: 
http://droiddraw.googlecode.com/files/ui/statusbar_background_l.png
Loaded image: http://droiddraw.googlecode.com/files/ui/title_bar.9.png
Loaded image: 
http://droiddraw.googlecode.com/files/ui/stat_sys_data_connected.png
Loaded image: 
http://droiddraw.googlecode.com/files/ui/stat_sys_battery_charge_100.png
Loaded image: http://droiddraw.googlecode.com/files/ui/stat_sys_signal_3.png
Loaded image: http://droiddraw.googlecode.com/files/ui/scrollbar.9.png
Loaded image: http://droiddraw.googlecode.com/files/ui/scrollfield.9.png
Loaded image: 
http://droiddraw.googlecode.com/files/ui/light/checkbox_off_background.png
Loaded image: 
http://droiddraw.googlecode.com/files/ui/light/checkbox_on_background.png
Loaded image: http://droiddraw.googlecode.com/files/ui/light/clock_dial.png
Loaded image: http://droiddraw.googlecode.com/files/ui/light/clock_hand_hour.png
Loaded image: 
http://droiddraw.googlecode.com/files/ui/light/clock_hand_minute.png
Loaded image: 
http://droiddraw.googlecode.com/files/ui/light/radiobutton_off_background.png
Loaded image: 
http://droiddraw.googlecode.com/files/ui/light/radiobutton_on_background.png
Loaded image: 
http://droiddraw.googlecode.com/files/ui/light/button_background_normal.9.png
Loaded image: 
http://droiddraw.googlecode.com/files/ui/light/editbox_background_normal.9.png
Loaded image: 
http://droiddraw.googlecode.com/files/ui/light/progress_circular_background.png
Loaded image: 
http://droiddraw.googlecode.com/files/ui/light/progress_particle.png
Loaded image: 
http://droiddraw.googlecode.com/files/ui/light/progress_circular_indeterminate.p
ng
Loaded image: http://droiddraw.googlecode.com/files/ui/light/arrow_up_float.png
Loaded image: 
http://droiddraw.googlecode.com/files/ui/light/arrow_down_float.png
Loaded image: 
http://droiddraw.googlecode.com/files/ui/light/spinnerbox_background_focus_yello
w.9.png
Loaded image: 
http://droiddraw.googlecode.com/files/ui/light/spinnerbox_arrow_middle.9.png
Loaded image: http://droiddraw.googlecode.com/files/ui/def/btn_check_off.png
Loaded image: http://droiddraw.googlecode.com/files/ui/def/btn_check_on.png
Loaded image: http://droiddraw.googlecode.com/files/ui/def/btn_radio_off.png
Loaded image: http://droiddraw.googlecode.com/files/ui/def/btn_radio_on.png
Loaded image: http://droiddraw.googlecode.com/files/ui/def/textfield.9.png
Loaded image: 
http://droiddraw.googlecode.com/files/ui/def/btn_default_normal.9.png
Loaded image: 
http://droiddraw.googlecode.com/files/ui/def/progress_wheel_medium.png
Loaded image: http://droiddraw.googlecode.com/files/ui/def/spinner_normal.9.png
Loaded image: 
http://droiddraw.googlecode.com/files/ui/def/btn_dropdown_neither.9.png
Exception in thread "AWT-EventQueue-2" java.security.AccessControlException: 
access denied (java.awt.AWTPermission accessClipboard)
    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.checkSystemClipboardAccess(Unknown Source)
    at sun.awt.dnd.SunDropTargetContextPeer.getTransferData(Unknown Source)
    at sun.awt.datatransfer.TransferableProxy.getTransferData(Unknown Source)
    at java.awt.dnd.DropTargetContext$TransferableProxy.getTransferData(Unknown Source)
    at org.droiddraw.gui.Viewer.drop(Viewer.java:190)
    at java.awt.dnd.DropTarget.drop(Unknown Source)
    at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(Unknown Source)
    at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(Unknown Source)
    at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Unknown Source)
    at sun.awt.dnd.SunDropTargetEvent.dispatch(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processDropTargetEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(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)
Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException
    at org.droiddraw.gui.ViewerListener.createWidget(ViewerListener.java:90)
    at org.droiddraw.gui.Viewer.drop(Viewer.java:192)
    at java.awt.dnd.DropTarget.drop(Unknown Source)
    at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(Unknown Source)
    at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(Unknown Source)
    at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Unknown Source)
    at sun.awt.dnd.SunDropTargetEvent.dispatch(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processDropTargetEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(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)

What version of the product are you using? On what operating system?

Version dd.r1.b14, Windows 7 x64. Behaviour is the same in 
Chrome-5.0.375.85/Firefox-3.6.3/IE-8.0.7600.16385
Java version: Sun JDK 1.6.0_20, x86 version

Please provide any additional information below.

Original issue reported on code.google.com by rjewal...@gmail.com on 30 Jun 2010 at 10:05

GoogleCodeExporter commented 9 years ago
Hi,

maybe it's related to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6945178

cheers
Frank

Original comment by Dietrich.Frank@gmail.com on 25 Aug 2010 at 11:31

GoogleCodeExporter commented 9 years ago
Same problem here on Ubuntu 10.04 x86

Original comment by cedarsoftgmbh@googlemail.com on 25 Aug 2010 at 1:10

GoogleCodeExporter commented 9 years ago

Original comment by brendan....@gmail.com on 6 Sep 2010 at 4:36

GoogleCodeExporter commented 9 years ago
Confirmed fixed by 1.6.0_21-b07 on WIN7x64. Thanks for looking into it!
Regards,
Bob 

Original comment by rjewal...@gmail.com on 6 Sep 2010 at 9:23

GoogleCodeExporter commented 9 years ago
Hola, podrias decirme que hiciste para solucionarlo?

Original comment by shana.n...@gmail.com on 22 Jun 2012 at 11:29