The Artima Developer Community
Sponsored Link

Java Answers Forum
Security and JMF in applets

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
-

Posts: 3
Nickname: raiders30
Registered: Jan, 2003

Security and JMF in applets Posted: Jan 29, 2003 8:51 AM
Reply to this message Reply
Advertisement
I am trying to utilize the JMF sample code AVReceive2 from Sun in an applet. The output I am receiving is as follows:


Starting session: 146.142.11.179/1022

- Open RTP session for: addr: 146.142.11.179 port: 1022 ttl: 1

Cannot create the RTP Session: access denied (java.net.SocketPermission localhost:1022 listen,resolve)

Failed to initialize the sessions.

Exception occurred during event dispatching:

java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM)

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.checkExit(Unknown Source)

at java.lang.Runtime.exit(Unknown Source)

at java.lang.System.exit(Unknown Source)

at VideoReceiveRTP.start(VideoReceiveRTP.java:32)

at VideoReceiveApplet.receiveVideo(VideoReceiveApplet.java:147)

at VideoReceiveApplet.action(VideoReceiveApplet.java:132)

at java.awt.Component.handleEvent(Unknown Source)

at java.awt.Component.postEvent(Unknown Source)

at java.awt.Component.postEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)


I am getting this error when the following line in AVReceive2 is executed:

mgrs.addTarget(destAddr);


Most instances of JMF refer to applications. I need to use it in an applet. Can anyone help me?

Topic: Simple println command question Previous Topic   Next Topic Topic: boolean equals(Object) and interfaces

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use