[need help] masalah dengan java.util.PropertyPermission

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[need help] masalah dengan java.util.PropertyPermission

novan ananda
Dear all,

Saya sedang mencoba applet untuk mengakses webcam, dgn memakai Netbeans 7.2
dan JDK 1.7.0_07. Saya bikin ada dua project, yaitu project Applet nya
sendiri, dan project Web-nya (yg menggunakan applet nya).

Sewaktu saya test dari project applet-nya, berhasil dgn bagus dan tidak ada
masalah. Tetapi sewaktu saya coba lewat web-nya (jsp), saya dapat error spt
tertulis di bagian bawah.

Yang jadi perhatian saya adalah:
Caused by: java.security.AccessControlException: access denied
("java.util.PropertyPermission" "com.ibm.vm.bitmode" "read").

Pertanyaan saya:
1. Kenapa applet ini meng-akses ke "com.ibm.vm.bitmode", apakah karena saya
menggunakan PC merk Lenovo (produk baru, setelah lenovo membeli IBM)??
2. Saya sudah mencoba menambahkan grant ke catalina.policy, tetapi tetap
tidak ada perubahan. Masih error. Kira2 bagaimana penyelesaiannya?

Thanks atas bantuannya.

Regards,
Novan Ananda
[hidden email]


***
Java Plug-in 10.17.2.02
Using JRE version 1.7.0_17-b02 Java HotSpot(TM) Client VM
User home directory = C:\Users\Sharkie
----------------------------------------------------
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>
----------------------------------------------------
08:43:30.875 [AWT-EventQueue-2] INFO  c.g.sarxos.webcam.WebcamDriverUtils -
Searching driver com.github.sarxos.webcam.ds.openimaj.OpenImajDriver
08:43:30.903 [AWT-EventQueue-2] DEBUG c.g.sarxos.webcam.WebcamDriverUtils -
Driver com.github.sarxos.webcam.ds.openimaj.OpenImajDriver not found
08:43:30.904 [AWT-EventQueue-2] INFO  c.g.sarxos.webcam.WebcamDriverUtils -
Searching driver com.github.sarxos.webcam.ds.civil.LtiCivilDriver
08:43:30.928 [AWT-EventQueue-2] DEBUG c.g.sarxos.webcam.WebcamDriverUtils -
Driver com.github.sarxos.webcam.ds.civil.LtiCivilDriver not found
08:43:30.928 [AWT-EventQueue-2] INFO  c.g.sarxos.webcam.WebcamDriverUtils -
Searching driver com.github.sarxos.webcam.ds.jmf.JmfDriver
08:43:30.963 [AWT-EventQueue-2] DEBUG c.g.sarxos.webcam.WebcamDriverUtils -
Driver com.github.sarxos.webcam.ds.jmf.JmfDriver not found
08:43:30.964 [AWT-EventQueue-2] INFO  com.github.sarxos.webcam.Webcam -
Webcam driver has not been found, default one will be used!
08:43:30.967 [webcam-discovery-service] DEBUG
c.g.s.w.d.b.WebcamDefaultDriver - Searching devices
Exception in thread "atomic-processor" java.lang.ExceptionInInitializerError
at
com.github.sarxos.webcam.ds.buildin.natives.OpenIMAJGrabber.<clinit>(OpenIMAJGrabber.java:59)
 at
com.github.sarxos.webcam.ds.buildin.WebcamDefaultDriver$WebcamNewGrabberTask.handle(WebcamDefaultDriver.java:44)
at
com.github.sarxos.webcam.WebcamProcessor$AtomicProcessor.run(WebcamProcessor.java:56)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied
("java.util.PropertyPermission" "com.ibm.vm.bitmode" "read")
 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.checkPropertyAccess(Unknown Source)
 at java.lang.System.getProperty(Unknown Source)
at org.bridj.Platform.<clinit>(Platform.java:153)
 ... 6 more

***
Reply | Threaded
Open this post in threaded view
|

Re: [need help] masalah dengan java.util.PropertyPermission

Endy Muhardin
Coba baca ini dulu
http://software.endy.muhardin.com/java/tips-melaporkan-error/

Nanya error gak nunjukin source code gimana kita2 bisa nyari errornya
dimana?

- Endy Muhardin -
http://software.endy.muhardin.com/about
On Mar 11, 2013 8:55 AM, "novan ananda" <[hidden email]> wrote:

> **
>
>
> Dear all,
>
> Saya sedang mencoba applet untuk mengakses webcam, dgn memakai Netbeans
> 7.2 dan JDK 1.7.0_07. Saya bikin ada dua project, yaitu project Applet nya
> sendiri, dan project Web-nya (yg menggunakan applet nya).
>
> Sewaktu saya test dari project applet-nya, berhasil dgn bagus dan tidak
> ada masalah. Tetapi sewaktu saya coba lewat web-nya (jsp), saya dapat error
> spt tertulis di bagian bawah.
>
> Yang jadi perhatian saya adalah:
> Caused by: java.security.AccessControlException: access denied
> ("java.util.PropertyPermission" "com.ibm.vm.bitmode" "read").
>
> Pertanyaan saya:
> 1. Kenapa applet ini meng-akses ke "com.ibm.vm.bitmode", apakah karena
> saya menggunakan PC merk Lenovo (produk baru, setelah lenovo membeli IBM)??
> 2. Saya sudah mencoba menambahkan grant ke catalina.policy, tetapi tetap
> tidak ada perubahan. Masih error. Kira2 bagaimana penyelesaiannya?
>
> Thanks atas bantuannya.
>
> Regards,
> Novan Ananda
> [hidden email]
>
>
> ***
> Java Plug-in 10.17.2.02
> Using JRE version 1.7.0_17-b02 Java HotSpot(TM) Client VM
> User home directory = C:\Users\Sharkie
> ----------------------------------------------------
> 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>
> ----------------------------------------------------
> 08:43:30.875 [AWT-EventQueue-2] INFO  c.g.sarxos.webcam.WebcamDriverUtils
> - Searching driver com.github.sarxos.webcam.ds.openimaj.OpenImajDriver
> 08:43:30.903 [AWT-EventQueue-2] DEBUG c.g.sarxos.webcam.WebcamDriverUtils
> - Driver com.github.sarxos.webcam.ds.openimaj.OpenImajDriver not found
> 08:43:30.904 [AWT-EventQueue-2] INFO  c.g.sarxos.webcam.WebcamDriverUtils
> - Searching driver com.github.sarxos.webcam.ds.civil.LtiCivilDriver
> 08:43:30.928 [AWT-EventQueue-2] DEBUG c.g.sarxos.webcam.WebcamDriverUtils
> - Driver com.github.sarxos.webcam.ds.civil.LtiCivilDriver not found
> 08:43:30.928 [AWT-EventQueue-2] INFO  c.g.sarxos.webcam.WebcamDriverUtils
> - Searching driver com.github.sarxos.webcam.ds.jmf.JmfDriver
> 08:43:30.963 [AWT-EventQueue-2] DEBUG c.g.sarxos.webcam.WebcamDriverUtils
> - Driver com.github.sarxos.webcam.ds.jmf.JmfDriver not found
> 08:43:30.964 [AWT-EventQueue-2] INFO  com.github.sarxos.webcam.Webcam -
> Webcam driver has not been found, default one will be used!
> 08:43:30.967 [webcam-discovery-service] DEBUG
> c.g.s.w.d.b.WebcamDefaultDriver - Searching devices
> Exception in thread "atomic-processor"
> java.lang.ExceptionInInitializerError
> at
> com.github.sarxos.webcam.ds.buildin.natives.OpenIMAJGrabber.<clinit>(OpenIMAJGrabber.java:59)
>  at
> com.github.sarxos.webcam.ds.buildin.WebcamDefaultDriver$WebcamNewGrabberTask.handle(WebcamDefaultDriver.java:44)
> at
> com.github.sarxos.webcam.WebcamProcessor$AtomicProcessor.run(WebcamProcessor.java:56)
>  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>  at java.lang.Thread.run(Unknown Source)
> Caused by: java.security.AccessControlException: access denied
> ("java.util.PropertyPermission" "com.ibm.vm.bitmode" "read")
>  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.checkPropertyAccess(Unknown Source)
>  at java.lang.System.getProperty(Unknown Source)
> at org.bridj.Platform.<clinit>(Platform.java:153)
>  ... 6 more
>
> ***
>
>
>  
>