chiara
YaBB Newbies
Offline
Posts: 5
Re: twitter4j applet problem
Reply #3 - May 22nd , 2010, 12:44am
Hello friends, I need some help to understand why I've signed an applet to put online (the sketch doesn't uses opengl) via terminal that uses the twitter4j jar just following this example http://processing.org/hacks/hacks:signapplet but doesn't works, doesn't loads any sketch into the browser (I've try safari and firefox), even if the browser recognize the sign and ask to me to accept the content but nothing appear. Any suggestions or ideas? Thanks in advance, Chiara. the java console error: Sat May 22 08:36:53 CEST 2010 JEP creating applet chiara_3_terra (file:/Users/.......) Exception in thread "Animation Thread" java.lang.ExceptionInInitializerError at twitter4j.Twitter.<init>(Twitter.java:98) at chiara_3_terra.setup(chiara_3_terra.java:38) at processing.core.PApplet.handleDraw(PApplet.java:1571) at processing.core.PApplet.run(PApplet.java:1496) at java.lang.Thread.run(Thread.java:613) Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission twitter4j.configurationFactory read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java: 264 ) at java.security.AccessController.checkPermission(AccessController.java: 427) at java.lang.SecurityManager.checkPermission(SecurityManager.java: 532) at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java: 1285) at java.lang.System.getProperty(System.java:662) at twitter4j.conf.ConfigurationContext.<clinit>(ConfigurationContext.java: 42) this is the HTML CODE page, where i had explicity insert the TWITTER4J JAR: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <!-- charset must remain utf-8 to be handled properly by Processing --> <meta http-equiv="content-type" content="text/html; charset=utf-8" / > <title>chiara_3_terra : Built with Processing</title> <style type="text/css"> /* <![CDATA[ */ body { margin: 60px 0px 0px 55px; font-family: verdana, geneva, arial, helvetica, sans-serif; font-size: 11px; background-color: #ddddcc; text-decoration: none; font-weight: normal; line-height: normal; } a { color: #3399cc; } a:link { color: #3399cc; text-decoration: underline; } a:visited { color: #3399cc; text-decoration: underline; } a:active { color: #3399cc; text-decoration: underline; } a:hover { color: #3399cc; text-decoration: underline; } /* ]]> */ </style> </head> <body> <div id="content"> <div id="chiara_3_terra_container"> <!-- This version plays nicer with older browsers, but requires JavaScript to be enabled. http://java.sun.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html --> <script type="text/javascript" src="http://www.java.com/js/deployJava.js"></script> <script type="text/javascript"> /* <![CDATA[ */ var attributes = { code:'chiara_3_terra.class', archive: 'twitter4j-core-2.1.2- SNAPSHOT.jar,chiara_3_terra.jar,core.jar', width:712, height:712 } ; var parameters = { }; var version = '1.5'; deployJava.runApplet(attributes, parameters, version); /* ]]> */ </script> <noscript> <div> <!--[if !IE]> --> <object classid="java:chiara_3_terra.class" type="application/x-java-applet" archive="chiara_3_terra.pde,chiara_3_terra.jar,core.jar,twitter4j- core-2.1.2-SNA PSHOT.jar" width="712" height="712" standby="Loading Processing software..." > <param name="archive" value="chiara_3_terra.pde,chiara_3_terra.jar,core.jar,twitter4j- core-2.1.2-SNAPS HOT.jar" /> <param name="mayscript" value="true" /> <param name="scriptable" value="true" /> <param name="image" value="loading.gif" /> <param name="boxmessage" value="Loading Processing software..." /> <param name="boxbgcolor" value="#FFFFFF" /> <param name="test_string" value="outer" /> <!--<![endif]--> <!-- For more instructions on deployment, or to update the CAB file listed here, see: http://java.sun.com/javase/6/webnotes/family-clsid.html http://java.sun.com/javase/6/webnotes/install/jre/autodownload.html --> <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="http://java.sun.com/update/1.6.0/ jinstall-6u18-windows-i586.cab" width="712" height="712" standby="Loading Processing software..." > <param name="code" value="chiara_3_terra" /> <param name="archive" value="chiara_3_terra.jar,core.jar" / > <param name="mayscript" value="true" /> <param name="scriptable" value="true" /> <param name="image" value="loading.gif" /> <param name="boxmessage" value="Loading Processing software..." /> <param name="boxbgcolor" value="#FFFFFF" /> <param name="test_string" value="inner" /> <p> <strong> This browser does not have a Java Plug-in. <br /> <a href="http://www.java.com/getjava" title="Download Java Plug-in"> Get the latest Java Plug-in here. </a> </strong> </p> </object> <!--[if !IE]> --> </object> <!--<![endif]--> </div> </noscript> </div> <p> </p> </div> </body> </html>