Problems with $HOME/.java.policy

hi,
i'm using suse linux 7.3 & jdk 1.4.
i have a simple test applet that prints the user name. i signed it by:
cprokt@linux:~/java/applets/uname> jarsigner -signedjar strapp.jar trapp.jar cprokt
Enter Passphrase for keystore: dubel07
cprokt@linux:~/java/applets/uname> jarsigner -verify strapp.jar
jar verified.then i created the java policy file /home/cprokt/.java.policy
keystore "/home/cprokt/.keystore";
grant SignedBy "cprokt"
permission java.util.PropertyPermission "user.name", "read";
};Running this applet with appletviewer resulted in a AccessControlException which said:
java.security.AccessControlException: access denied (java.util.PropertyPermission user.name read)I got the same result when I ran the applet with Konqueror (blackdown vm 1.3).

It's not neccessary to have a .java.policy file if you sign the applet. I run my applets (intranet only) with a policy file alone, without signing them. The only drawback to the policy file security is that it will have to be deployed to your users, this does not work in the internet, who's going to accept your policy file, but it's not so bad in an intranet. If you sign the applet succesfully, by default you'll get "all permissions" and getting the user name should not be a problem.
Hope this helps...

Similar Messages

  • Problems with home button on iPhone 4

    problems with home button on iphone 4

    If its due to sensitivity issues, these self help guides might help.
    http://www.youtube.com/watch?v=zNwr_mxgs9Q
    http://www.youtube.com/watch?v=lSqPC1V0PPg&feature=related
    By the way, alcohol based hand sanitisers work too.
    Don't overapply it in one go though. You'll have to allow the alcohol to evaporate.
    One final tip, after its dried, I'd recommend you to leave your iPhone's home button facing a laptop's vent just to bake it a little drier.

  • SB Xtreme Audio Notebook optical out problem with Home TheaterSystem-HELP!

    JSB Xtreme Audio Notebook optical out problem with Home TheaterSystem-HELP!, I have this sound card connected?(optical OUT) ?to my home?theater system's digital IN ?through the recommended /8in. optical miniplug-to-optical SPDIF cable. Theater system is set correctly to Digital-In mode. I have no sound!
    The cable is a Velocity Toslink-to-Optical Mini Plug digital cable. I don't see any settings in the Creative Console Launcher. The notebook is a Dell XPS M730 (Vista 32).
    I have a PS3, DirecTV, and the SB Xtreme Audio Notebook cable on a hub switch that connects to the system's?one Optical IN. The PS3 and DirecTV sound perfect!
    The sound card works fine with standard PC speakers. I'm at a loss as?to what to try next. I set this whole system up myself, so I'm pretty good at working out the kinks, except this one!
    Karen

    OK. I just went to Control Panel - Sound - Playback - Digital Output Device (SB Xtreme Audio Notebook) - Properties - Advanced. I experimented with different sample rates and bit depths. Clicked the test button and lo and behold - sound from the HTS! I've tried iTunes, PowerDVD (configured to digital output) and YouTube - no sound! Am I missing something really obvious?
    HA! Just backed out to Playback and selected Digital Output Device (SPDIF) and set as Default. Sound is emunating from HTS! Well, that mystery is solved! Who knew.
    Thanks anyway! Any comments or advice will still be appreciated.

  • Solution Manager systems RAM requirements - problems with the Java Engine

    Hello,
    I am about to install SAP Solution Manager 7 on a WIndows 2003 Server x64 but I need to know what the RAM requirements are? I have been having problems with the Java Engine starting and it seems to time out, I have heard that this is a very RAM hungry process and it might be why?
    Many thanks for your help in advance,
    Omar

    Hello Omar,
    To size SAP Solution Manager 7.0 EHP1 we recommend to use the SAP Solution Manager Quicksizer Tool at:
    http://service.sap.com/sizing-solman
    Here you find information on how to use the tool, how to collect input data for E2E Scenario Sizing, on SAP E2E RCA Sizing, Introscope Tuning, Wily Enterprise Manager Cluster Setup for E2E RCA Scenario and BI Aggregation Strategy in E2E Scenario.
    Please find more information about installing Solution Manager in:
    http://service.sap.com/instguides -> SAP Solution Manager
    I hope this information helps.
    Thanks,
    Mark

  • I have some problem with home sharing

    I have some problem with home sharing. I have iPad, iPhone, MacMini, MacBook and Apple Tv. Five items. I can't add other items to home sharing, like iPhones and pc of my sons, and my wife's pc. More than home (Family) sharing it becomes Single sharing. Is there any solution?

    Post in the iPhoto forums.

  • Problem with home wifi and nokia n8

    I have a problem with home wifi and nokia n8.
    The problem is that seamlessly connects to wifi but 2 or 3 mb download is blocked and I have to reset router.
    I have other devices like nokia n86 and other phones that connect well and do not give this problem.
    Could anyone help me?
    Thanks

    i have a similar problem. it connects prefectly to  wlan but after sometime the connection goes and i have to disconnect and reconnect cause ovi music or maps or opera says internet not connected. Can someone help me out here?

  • JCoIDoc IDocLibrary 3.0.2 Problems with IDocServerExample.java

    Hello, I´m facing a problem with IDocServerExample.java. I created a new project in eclipse, added the package com.sap.conn.idoc.examples and the class IDocServerExample.java. I configured the files "MYSERVER.jcoServer" and "BCE.jcoDestination" and started the application. Then I get the following error messages: *********************************************************************************************************************************************************
    com.sap.conn.jco.JCoException: (102) RFC_ERROR_COMMUNICATION: Unable to get repository at com.sap.conn.jco.rt.DefaultServer.update(DefaultServer.java:136) at com.sap.conn.jco.rt.DefaultServer.(DefaultServer.java:105) at com.sap.conn.idoc.jco.DefaultJCoIDocServer.(DefaultJCoIDocServer.java:35) at com.sap.conn.idoc.jco.DefaultJCoIDocServerFactory.createServer(DefaultJCoIDocServerFactory.java:17) at com.sap.conn.idoc.jco.DefaultJCoIDocServerFactory.createServer(DefaultJCoIDocServerFactory.java:13) at com.sap.conn.jco.rt.DefaultServerManager.getServer(DefaultServerManager.java:108) at com.sap.conn.jco.rt.StandaloneServerFactory.getServerInstance(StandaloneServerFactory.java:170) at com.sap.conn.idoc.jco.JCoIDoc.getServer(JCoIDoc.java:78) at com.sap.conn.idoc.examples.IDocServerExample.main(IDocServerExample.java:18) Caused by: com.sap.conn.jco.JCoException: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connection parameters: TYPE=B DEST=JCOSERVER01 MSHOST=arm115tx GROUP=PUBLIC R3NAME=T01 PCS=1 LOCATION CPIC (TCP/IP) on local host rz1462 with Unicode ERROR service '?' unknown TIME Tue Jul 07 09:09:40 200 RELEASE 711 COMPONENT NI (network interface) VERSION 39 RC -3 DETAIL NiErrSet COUNTER 2 at com.sap.conn.jco.rt.MiddlewareJavaRfc.generateJCoException(MiddlewareJavaRfc.java:615) at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1280) at com.sap.conn.jco.rt.ClientConnection.connect(ClientConnection.java:661) at com.sap.conn.jco.rt.PoolingFactory.init(PoolingFactory.java:103) at com.sap.conn.jco.rt.ConnectionManager.createFactory(ConnectionManager.java:171) at com.sap.conn.jco.rt.DefaultConnectionManager.createFactory(DefaultConnectionManager.java:44) at com.sap.conn.jco.rt.ConnectionManager.getFactory(ConnectionManager.java:160) at com.sap.conn.jco.rt.RfcDestination.initialize(RfcDestination.java:789) at com.sap.conn.jco.rt.RfcDestination.getSystemID(RfcDestination.java:817) at com.sap.conn.jco.rt.RepositoryManager.getRepository(RepositoryManager.java:32) at com.sap.conn.jco.rt.RfcDestination.getRepository(RfcDestination.java:891) at com.sap.conn.jco.rt.DefaultServer.update(DefaultServer.java:132) ... 8 more Caused by: RfcException: [null] message: Connect to message server host failed Connection parameters: TYPE=B DEST=JCOSERVER01 MSHOST=arm115tx GROUP=PUBLIC R3NAME=T01 PCS=1 LOCATION CPIC (TCP/IP) on local host rz1462 with Unicode ERROR service '?' unknown TIME Tue Jul 07 09:09:40 200 RELEASE 711 COMPONENT NI (network interface) VERSION 39 RC -3 DETAIL NiErrSet COUNTER 2 Return code: RFC_FAILURE(1) error group: 102 key: RFC_ERROR_COMMUNICATION at com.sap.conn.rfc.engine.RfcIoControl.error_end(RfcIoControl.java:255) at com.sap.conn.rfc.engine.RfcIoControl.ab_rfcopen(RfcIoControl.java:94) at com.sap.conn.rfc.api.RfcApi.RfcOpen(RfcApi.java:83) at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1273) ... 18 more
    Does anyone know what I´m doing wrong? With thanks, Veit

    Im having the same issue here.  Has anyone found a solution to this?

  • Performance problems with new Java Tiger style recommendations

    Performance problems with jdk 1.5 on Linux plattform
    (not tested on Windows, might be the same)
    using the new style recommendations.
    I need fast Vector loops for high speed mathematical calculations, some
    hints about the fastest way to program that loop would be also great!
    After refactoring using the new features from java 1.5 (as recommended from
    SUN) I lost performance significantly:
    using a vector:
    public Vector<unit> units;
    The new code (recommended from SUN for Java Tiger for redesign):
    for (unit u: units) u.accumulate();
    runs more than 30% slower than the old code:
    for (int i = 0; i < units.size(); i++) units.elementAt(i).accumulate();
    I expected the opposite.
    Is there any information available that helps?
    The following additional information I got from Mr. Shankar Unni:
    I got some fairly anomalous results comparing ArrayList and Vector: for the
    1.5-style loops, ArrayList was faster then Vector, but for a loop with get()
    calls, Vector was faster. Vector was even faster than that using
    elementAt(), which was a surprise:
    For a million summing iterations over a 100-element array:
    vector elementAt loop took 3446 ms.
    vector get loop took 3796 ms.
    vector iterator loop took 5469 ms.
    arraylist get loop took 4136 ms.
    arraylist iterator loop took 4668 ms.

    If your topic doesn't change, please stay in your original post.

  • Problem with home button and "messages" app after upgrade to iOS 4.1

    Hello,
    I have noticed two interesting problems with my iPhone 4. I am not sure if it is in conjunction with the upgrade to the iOS 4.1 software, but I did not notice the problem prior to this. Both of these problems are very odd and are hit or miss. I have tried restoring and the problem is still present. Also, since both problems have presented at the same time, that is why I am starting to believe it is not hardware...
    Problem 1: The home button has become considerably unresponsive. This is not all the time, but it does happen a lot. Sometimes it won't work for about 5-8 clicks and I have to use the power button to access the phone.
    Problem 2: When composing a new text message the cursor would always default into the "To:" section of the app which allows you to easily type what contact you are trying to message. However, I am having the issue now occasionally when I am in the messages app and select to compose a new text message that the cursor now defaults into the chat box (where you type your actual message). This is very annoying and I know that this is not the intended behavior of this.
    Please let me know if anyone has experienced similar issues and can provide me with some feedback.

    I have not experienced the same.
    I have tried restoring and the problem is still present.
    You restored from your iPhone's backup, or as a new iPhone or not from your iPhone's backup?
    If whatever software problem is causing this is included with your iPhone's backup, restoring from the backup will also restore the problem.
    Try restoring as a new iPhone or not from your iPhone's backup to see if this makes any difference. If not, more than likely your iPhone has a hardware problem.

  • Problems with a java bean in Weblogic 5.1

    Hello,
              I am having a problem deploying a java bean in Weblogic 5.1:
              I have been given a .class and a .jar file for a java bean (not an EJB). I
              placed the .class file into e:\temp\WEB-INF\classes and added the following
              line to my weblogic.properties file:
              weblogic.httpd.webApp.testApp=e:/temp/
              I have also updated the web.xml file in the WEB-INF directory as follows:
              <?xml version="1.0" encoding="UTF-8"?>
              <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
              Application 1.2//EN"
              "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              <web-app>
              <servlet>
              <servlet-name>EdIface</servlet-name>
              <jsp-file>test.jsp</jsp-file>
              </servlet>
              <servlet-mapping>
              <servlet-name>EdIface</servlet-name>
              <url-pattern>EdIface</url-pattern>
              </servlet-mapping>
              </web-app>
              When I try to access my http:\\server:port\testApp\test I get an "Error
              500 - internal server error".
              Has anyone had experice with deploying a java bean with jsut the .class and
              .jar file? Where should I put the .jar file?
              I appreciate any advice!
              

    Bump

  • A problem with my Java Scrabble game

    Hello
    I am making a Java Scrabble game for a school assignment and I have a problem with the following:
    The number of players is input by the user (2 to 4) and i need to create a number of arrays based on the number of players. These arrays must have 7 playing pieces at all times until the "bag" of pieces has less pieces than those required to replace the ones a certain player just used (in wich case the bag would give that player all of it's remaining pieces and, from this point on, the player arrays would not necessarily need to have 7 pieces).
    this is my procedure to take a piece from the bag:
         public Piece takePiece()
              if (this.pieceCounter > 0) {
                   Arrays.sort(this.pieces, 0, this.pieceCounter);
                   int i = this.generator.nextInt(this.pieceCounter);
                   Piece p = this.pieces;
                   this.pieceCounter--;
                   this.pieces[i] = this.pieces[this.pieceCounter];
                   return p;
              else
                   return null;
    this is my Piece class:
    public class Piece implements Comparable {
         private int scorePiece;
         private char letterPiece;
         public Piece(char letterPiece, int scorePiece)
              this.scorePiece = scorePiece;
              this.letterPiece = letterPiece;
         public int scorePiece()
              return scorePiece;
         public String letterPiece()
              return letterPiece();
         public String toString()
              return letterPiece+ " " + scorePiece;
         public int compareTo(Object a)
              Piece piece= (Piece) a;
              return (int) letterPiece - (int) piece.letterPiece;
    }Thanks in advance for your help

    Ok, if i create a Players class and do this in Main class:
         if(nPlayers >= 2 && nPlayers <= 4)
              Players arrayPlayers[];
              arrayPlayers= new Players [nPlayers ];
              for(int i=0 ; i < nPlayers ; i++)
                       arrayPlayers[i] = new Players ();
              }My Players Class should contain something like this:
             // Array of 7 that contains Pieces...
         Piece[] pieces= new Piece[7];how can i get pieces from takePiece(); (Class Bag) and put them in the pieces arrays until takePiece(); returns null?

  • Problems with VA Java Visual Composition

    Hi!
    I have some problems with reopening (even simple) visually in VA Java created
    beans (JFrame, JDialog). IDE behaves somehow unpredictable. Sometimes it reopened it into the
    visual composition editor, anothe time the reoppening fails with following log message:
    Java exception during layout of bean(<unnamed>): java.lang.NullPointerException
    Java exception during layout of bean(JFrameContentPane): java.lang.NullPointerException
    An exception occurred in a system program.
    Terminating TimeSlotGUI (VCE) (System) (25/07/01 10:05:07)
    Can anybody help?
    Ivan

    Which Version do you use? This VAJ 3.5 was quite bugy and you had to use patches. Now there is an Update 3.5.2 which fixes most of the bugs ( although there are new ones). When I work with the VCE ( avoid this normally) I get problems if I rename Beans which were generated with th VCE. then your stuff is lost. Sometimes you can recover if you delete the generated[i] initialize() method and then open the VCE.
    Nevertheless, VAJ 3.5.3 works quite good, great debugging tools.

  • Problems with home hub 2

    Since Xmas we have experienced problems with our home hub 2. We introduced 2 new mobiles onto the hub and since then have been having real problems with the connection. My blackberry and ipad will no longer connect to the hub, one of the samsung galaxy s3 has interrupted service.
    We have a total of 6 devices connected to the hub plus bt vision ! Is this the cause of the problem.
    Even when nothing else is connected to the hub the ipad still won't connect although I get a signal and connection through BTFON .
    I tried doing a speed test using the link provided by another forum member but got only upload nod download rates which didn't bare any resemblance to those posted and mean nothing to me.
    The hub is well over 2 years old so wondering if its time to renew.
    I'm not a techi so really need an idiots guide of how to rule out other options. Please help I'm tearing my hair out!

    Have you tried a factory reset of the home hub, by pressing in the recessed button?
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • IPad 2 (iOS 8.0.2) Problem with Home Sharing TV HD 1080p

    hello,
    have someone also the problem with Video Home Sharing by iPad2? Wenn TV is HD1080p, Shows" cannot open, unauthorized" only by HD1080P.
    Hardware/Software:
    iPad2 (iOS 8.0.2), compare iPad mini / iPhone 5c/5s (iOS 8.0.2)
    iTunes 11.4, Home Sharing activated and Apple ID authorized
    iTunes TV SD
    iPad2 ... OK
    iPad mini / iPhone 5c/5s ...OK
    Apple TV ... OK
    iTunues TV HD 1080p
    iPad2 ... cannot open, unauthorized
    iPad mini / iPhone 5c/5s ...OK
    Apple TV ... OK
    is that a buy of iOS 8???
    best regards

    IOS 8.03 no better. No probs with 8 8.01 and 8.02.....now with 8.03 ipad not responding at all. White screen is all I have when "home button" used to start ipad. Unable to power down or soft reboot. Now have crashed ipad!

  • Problems with home sharing on my iPhone

    So my home sharing keeps crashing after it gets to 50% on my iPhone. I choose the computer I want and it just sits there and loads until it hits 50% then it stops and refuses to load anymore. I first thought it was the computer I was connected to. At the time it started I was connected to my dads iMac and thought it was something to do with the apple IDs we were using on that computer. He has a different apple ID then me and I thought it was something to do with the multiple IDs. So I logged out from His sharing and logged in onto mine using my computer. After changing the IDs and restarting both my iPhone and my computer I tried it again. Same exact thing. It loads 50% and stops no matter how long I leave it for. I tried turning off my firewall and logging out of home sharing and logging back in on my iPhone. No joy. So I'm stumped. I have no idea why my phone will not connect with home sharing. Also my dads phone will connect to home sharing. Its just my phone this happens with. And this started to happen about 1 month ago when the new iPhone 5 came out. I'm also sure that it started happening after I installed IOS 6 on my phone.

    Personally I think recognition of libraries has always been a bit flaky with both versions of AppleTV.
    Sometimes this is down to local network issues, but sometimes, for whatever reason I think communication to say iTunes is available or not between the 2 devices is not always robust, and a restart of itunes, AppleTV, router or all can be required to kick start things.
    Some people have lots of issues. I don't see that many but occasionally a library isn't available when I know itunes is running or seen and then can't be accessed.
    AC

Maybe you are looking for

  • Macbook pro does not detect TV

    Hi, I have macbook pro Mid 2010. It used to work fine with Sony Bravia TV but today when I tried it was not detecting my TV. I do not see any "Arrangements" tab under System Preferences -> Displays. Here are my macbook pro details: Processor  2.53 GH

  • Oracle 11g -select on dictionary view hangs

    Hi Experts, I have issued the below query and it's hanging for a long time. SQL> select * from gv$session where rownum<=1; Could you please someone shed light on this issue? Regards, Richard Edited by: user12075620 on May 16, 2011 8:44 PM

  • Adobe Photoshop CS6 wont allow me to drag images from a folder to my canvas?

    When I try I get a circle with a diagonal line going through it, as a result the only way I am able to get images into Photoshop is by clicking File then open wich is really annoying and a waste of time.

  • I installed iworks on my mac pro.  how do i get the disk out of my laptop

    I installed iworks on my mac and I don't know how to get the disk out.  please tell me how to get the disk out of my mac.  thanks

  • JVRD (VAT) is not appearing in PO

    hi I am using TAXINN procedure ,for VAT calculation i have maintained JVRD condition type in taxprocedure,I have maintained condition record in FV11 for  JVRD.now when i create PO ,by entering tax code V1,i have clicked on Taxes tab,in next screen al