NullPointerException and Permissions

Hi.
OK, I am trying to use the java.io package to create an applet which gets a file name from the user and filters info out of that file and puts it into a new one (called results).
I am not sure what the NullPointerException is referring to. I have created a policy file, but I am not sure whether I have correctly entered the pathways for those files; I am wondering if this is the source of my error.
Also, I have used code in the following format:
String results = System.getProperty("user.home",                File.separatorChar + "home" +
File.separatorChar + "zelda") +
File.separatorChar + "results.dat";
and from my diagnostic prints I have found that this points to C:\Windows. I don't understand why this would be a problem as long as my policy file was compatible with that, which is why I am suspicious that the policy file is the cause of the error.
Finally, in the policy file, when I define my PropertyPermission - is it correct to set the target name to user.home? I assume this means C:\Windows, but I can't find anywhere that explicitly tells me so.
Help would be greatly appreciated.
Thanks.

If you look in the java documentation for System.getProperties(), you will see a list of standard properties. "user.home" is the user's home directory, which means more in Unix than in does in Windows. Under Windows 9x you will probably get C:\Windows, but under Windows NT/2000/XP, you will most likely get "C:\Documents and Settings\Username", or something like that. Basically, under Windows, you can't really rely on user.home pointing to something meaningful.
Robin

Similar Messages

  • I want to change the sharing and permissions of a large number of photos. How can I do this in bulk rather than one at a time?

    I want to change the sharing and permissions of a large number of photos. How can I do this in bulk rather than one at a time?

    Does this involve iPhoto in some way?

  • SharePoint 2013 - Site Settings - Users and permissions - "Access Request and invitations" link missing

    I am site collection administrator and have configured the outgoing email in Central administration but "Access Request and invitations" link  is missing, pl advice any additional configurations for this link to show up
    I was though able to configure access requests by going to Site Settings->Users and permission and on the ribbon selected "Access Request Settings"
    What is the difference in either of the approaches?
    Thanks
    Abhishek

    Hi there,
    I noticed this post, and didnt really find an appropriate solution to your issue. I noticed the same issue when dealing with Access Requests. First of all to make sure that the Request feature is enabled, you need to access 
    Site Settings -> Site Permissions -> Access Request Settings -> Make sure the
    'Allow access requests' option is enabled.
    The Allow access screen just allows you to enable the feature and also to specify a email address that notifications are sent to. Whereas the 'Access Requests and Invitations' section provides a screen to manage Access Requests and request history.
    I noticed then that the Access Requests and Invitations link under 'User and Permissions' didnt actually appear until someone actually requests to join the site. It seems that this is needed to display the screen. Once actioned once, the option stays there.
    Hope it helps

  • Unable to download from AppStore, updates,etc.Messages 'the installer is damaged' to 'there might be a problem with file ownership and permissions.' I am the owner and only user of a new MBP. What could be going on?

    Is anyone having the same type of problems I'm having with Lion. I have a new MacBook Pro, received 7 weeks ago, preinstalled with Leopard 10.6.7. I didn't migrate anything from my old iMac, wanted a clean install from the Apple Store. While there, I asked for the upgrade to Lion 10.7, however their system was down.
    I  installed it myself, wirelessly about a week later, and Apple emailed me a receipt. Now, I've had to call support directly last week when I lost Mail, Address Book, was unable to open Preview or iTunes, among other problems. Seemed fixed after a session that baffled even the store tech.  Now I am unable to download or install the recent Mac updates for Lion, from the App Store, could not install Adobe Reader, etc. Messages range from 'A network error has occured - Check your Internet connection and try again' to 'The Installer is damaged and cannot open the package. There may be a problem with file ownership or permissions.'  All fail and I'll probably have to call Apple again. I am frustrated beyond words.  Logs 'Install's runner tool is not properly configured as a setuid tool', domain errors, 'attempt to write a readonly database, and on and on. I have barely done a thing on this computer except search online for help with these problems. Safari gives me a 'You are not connected to the internet' too often. Diagnostics disagrees. I do see wi-fi problems in the forum. Disk and permissions were fine at the beginning of the earlier problems, checked first by support tech. I'm not sure if support tech even knew. I was just happy they were fixed. Anyone have these download and/or install problems after a 'clean bill of health' so to speak, only a week ago?

    Let's try the following user tip with that one:
    "There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows

  • DANGER: Do Not Change Hard Drive Ownership and Permissions

    DANGER: Do Not Change Hard Drive Ownership and Permissions (Unless you know what you are doing... I didn't!)
    FIRST, THE REPAIR PERMISSIONS SOLUTION:
    Use Disk Utilities on the "Sofware Install and Restore" DVD that came with your computer to set the permissions back to the defaults. Not the MacOSX Installation Disk. (This worked in MacOS 10.3.9)
    MY SCREW UP
    In my Hard Drive's "Get Info" dialog I switched the permissions of the Owner to my username and all others to no access. I had not yet closed the dialog and decided that it was probably dangerous so I started changing them back. I first changed the owner back to system. It asked for authentication.
    After entering my password I assumed that I would be able to go back and change the others as well. Nope! The dialog disappeared, my desktop disappeared and I couldn't do anything. I was locked out.
    After ten minutes of the beachball I restarted to the "Panther Installation disk" and tried repairing permissioins using disk utility. Evertime it "lost contact" with the system and would not work. Restarting (without CD) took me to a root user login (black sreen). My username and password did nothing.
    THE SOLUTION
    I then restarted to the "Software Install and Restore" DVD that came with my computer and used its Disk Utility to repair permissions. IT WORKED! It set permissions back to the default. THANK GOD.
    NOTE: I wonder, will using the Install and Restore DVD to repair permissions reset any computer's files to the defaults? Is that a backdoor into someones currently restricted files and folders? (Assuming that you have physical access and the computer specific DVD)

    Using the Repair Permissions function will not change the permissions on an account's home folder or anything in it, but there are at least two other ways in which someone with a Mac OS X 10.4 installation disk can get access to an account's files or folders unless some or all of those files are encrypted.
    (19285)

  • Org.clamav.freshclam and permissions error on freshclam.log

    This is an adjunct to a branched discussion in this thread regarding org.clamav.freshclam continually generating error reports in the system log.
    After enabling, but not starting, Mail service on my server (XServe Dual-G5, 10.5.8 Server) my system log began filling with the error as per the referenced thread. The first entry when the error cropped up was:
    Nov 5 15:23:20 xserve1 com.apple.launchd[1] (org.clamav.freshclam): Unknown key for integer: Iterations
    Nov 5 15:23:20 xserve1 org.clamav.freshclam[40472]: ERROR: Incorrect argument format for option --checks (-c)
    Nov 5 15:23:20 xserve1 org.clamav.freshclam[40472]: ERROR: Can't parse command line options
    Nov 5 15:23:20 xserve1 com.apple.launchd[1] (org.clamav.freshclam[40472]): Exited with exit code: 1
    Nov 5 15:23:20 xserve1 com.apple.launchd[1] (org.clamav.freshclam): Throttling respawn: Will start in 10 seconds
    Per the instructions in the referenced thread, I ran
    launchctl unload /System/Library/LaunchDaemons/org.clamav.freshclam.plist
    I then used pico to edit the org.clamav.freshclamplist file, removing the space between the '-c' and value in the line:
    <string>-c 4</string>
    I also edited the /etc/freshclam.conf file to change the value:
    #DatabaseMirror db.XY.clamav.net
    to
    DatabaseMirror db.us.clamav.net
    I then ran
    freshclam -v
    followed by
    launchctl load /System/Library/LaunchDaemons/org.clamav.freshclam.plist
    Checking the log again, not only had the original error continued whilst I was editing, but also on the relaunch of freshclam a new error cropped up:
    Nov 7 08:35:39 xserve1 com.apple.launchd[127] (org.clamav.freshclam): Unknown key for integer: Iterations
    Nov 7 08:35:39 xserve1 com.apple.launchd[127] (org.clamav.freshclam): Ignored this key: UserName
    *Nov 7 08:35:39 xserve1 org.clamav.freshclam[474]: ERROR: Problem with internal logger (UpdateLogFile = /var/log/freshclam.log).*
    *Nov 7 08:35:39 xserve1 org.clamav.freshclam[474]: ERROR: Can't open /var/log/freshclam.log in append mode (check permissions!).*
    Nov 7 08:35:39 xserve1 com.apple.launchd[127] (org.clamav.freshclam[474]): Exited with exit code: 62
    Nov 7 08:35:39 xserve1 com.apple.launchd[127] (org.clamav.freshclam): Throttling respawn: Will start in 10 seconds
    Nov 7 08:35:48 xserve1 org.clamav.freshclam[475]: ERROR: Incorrect argument format for option --checks (-c)
    Nov 7 08:35:48 xserve1 org.clamav.freshclam[475]: ERROR: Can't parse command line options
    Nov 7 08:35:48 xserve1 com.apple.launchd[1] (org.clamav.freshclam[475]): Exited with exit code: 1
    Nov 7 08:35:48 xserve1 com.apple.launchd[1] (org.clamav.freshclam): Throttling respawn: Will start in 10 seconds
    Nov 7 08:35:49 xserve1 org.clamav.freshclam[476]: ERROR: Problem with internal logger (UpdateLogFile = /var/log/freshclam.log).
    Nov 7 08:35:49 xserve1 org.clamav.freshclam[476]: ERROR: Can't open /var/log/freshclam.log in append mode (check permissions!).
    Nov 7 08:35:49 xserve1 com.apple.launchd[127] (org.clamav.freshclam[476]): Exited with exit code: 62
    Nov 7 08:35:49 xserve1 com.apple.launchd[127] (org.clamav.freshclam): Throttling respawn: Will start in 10 seconds
    (Note: after the first 'Exited with exit code: 1' entry, it only repeated the last four lines as above as it respawned.)
    Checking the ownership / permissions on the freshclam.log file showed that the owner/goup was _clamav:admin and the permisions were -rw-r----- which is proper and in line with the other clamav files in the directory. Thinking that perhaps the logfile was corrupted, I deleted it and made a new one, setting the owner, group and permissions as per the original. The log errors continued.
    Finally, in desparation, I ran
    chmod 660 /var/log/freshclam.log
    setting the permissions to -rw-rw---- and the errors ceased!
    Now, this is not proper file permissions nor does it explain why freshclam suddenly could not append the logfile, but freshclam is now happily churning away without generating continuous log error entries. For the moment, I am not going to argue with successful results!
    -Doug

    Hi Fred,
    interesting.. but I'm of the mind "If it ain't broke.." and it has been running without problem since applying the fix. I may end up having to migrate Mail services to a different server soon though, so I'll keep it in mind if the error crops up again. Thanks for the tip!
    -Doug

  • Can't use Ikea Home Planner because of Sharing and Permissions on plug-in

    I'm not sure where to submit this, or if the Apple support community cares, but I swear there's an answer to this. I am on a Macbook Air using Lion 10.7.2
    When I download the "NP_2020Player_IKEA.plugin" downloadable from this website http://kitchenplanner.ikea.com/AU/UI/Pages/VPUI.htm and try to mount the plug-in I get these errors...
    1. letting me know that the Ikea plug-in can't be moved because internet plug-ins can't be modified. So I click "Authenticate".
    2. Then I "Replace" and after this selection it's asks for the Administrator's password, and I give it.
    3. I follow the directions of this prompt, but am unable to change all of the permissions to "Read and Write"..
    4.Here is a screenshot of the "Get Info" window for the plug-in.
    I am unable to change "staff" and "everyone" to "Read & Write".
    So I just ignore it and restart Safari, hoping it will work. When I return to the Home Planner main page it automatically directs me to the download page again, prompting me to download the plug-in. From what I've read it should just open the home planner. I'm assuming it's because the plug-in was never mounted because I can't allow the sharing and permissions? I don't really know a lot about computers, can someone help? I know a lot of other people have had issues with this planner download, but I haven't found any answers about how to fix it. I'm an organization freak and really really would love to have this planner work. Google sketch-up is way too much work, and I don't trust grid paper and cut outs of furniture to convey the depth I need to see. But maybe that's my only option at this point?
    < Edited by Host >

    HERE SHOULD BE YOUR SOLUTION:
    Command+Space to bring up universal search, type in "Internet plug-ins"...
    You may get multiple choices, one referencing OS-X Lion, perhaps one ref-ing your personal login...Choose one (I started with the main - OS X Lion - one)...it will open on your desktop...If you're like me (or like the Droitetgouche), you've already tried to install it, and it gave you all that crap about "can't be modified"...etc...So delete any of those plug-ins (there may be a few, depending how many installs you've tried), then right-click the "Internet Plug-ins" folder and choose "get info"...I'm not sure why "D...che" (spelling ease) couldn't change permissions...maybe wasn't logged in as the admin?...but click the "lock" symbol in the bottom right corner, unlock it, change ALL permissions to Read & Write, then relock it.  Then open the IKEA dmg again and drag the item into the folder and it should work no problem.
    Then quit Safari, restart, and it should let you work.
    IF it doesn't, try going back to your universal search and choosing a different "Internet Plug-ins" folder...(Also, if you've tried the install, and you don't find any IKEA dmg's in the "Internet Plug-Ins" folder, you're likely in the wrong folder).
    Also, you may want to go back later and restrict the read/write permissions when you're done with IKEA.
    It worked for me, let me know if it works for you.

  • Why Can't VZ do the Right Thing For Once and Permit Network Extender Owners to Close their Networks?

    Given the fact that the Network Extender can be set for managed access or open access, clearly it can technologically be configured so that a closed network could be set up so that ONLY those users that are included in the "priority list" could access the Network Extender.
    If I had to guess, Verizon, prefers to benefit from your internet connection and your investment in a network extender by bolstering their network in poor reception areas for all of their customers in the vicinity on us Network Extender owners' backs rather than to do the right thing and permit a customer who has paid for the device as well as their internet access to close the network. 
    I find this sleazy and hope VZW will rethink its approach to this.  We who subscribe to VZW for our cellular service pay the highest rates, on average, in the country for cell service.  We have also paid hundreds of dollars for the Network Extender, and pay for the internet that is used to facilitate the phone calls made through the network extender.
    Once it a while it would be nice if VZW did the right thing for its customers and not blatantly, at least, put their corporate greed about the needs of their customers. 

    I called Verizon tech support, and was informed that there is an option to close the Network Extender. This would allow only numbers on the white list to connect to the extender. Is the information I received incorrect? I spoke to them just the other day. Have you tried to configure the extender recently?
    My post asking for clarification is here: https://community.verizonwireless.com/message/1002928#1002928
    Thanks for any information you can provide.

  • Accidentally removed from,sharing and permissions the admin user,and now i do not when i find the home icon at my computer i do not have permmission,and the mac does not works properly,lots of question mark at the dock ,please help

    accidentally removed from,sharing and permissions the admin user,and now i do not when i find the home icon at my computer i do not have permmission,and the mac does not works properly,lots of question mark at the dock ,please help

    I'm going to assume that since you deleted your hard drive and all its files, you had a backup, yes? If the backup has an OS (bootable clone), then you can boot into it by holding down the option key when you start up you iMac and choose the backup drive. Then use Carbon Copy Cloner or Super Duper to copy the files back to your iMac.

  • In my library/sharing and permissions there are two users i do not recognize. One is called fetching and one is called wheel.

    If I get info on my library I see under sharing and permissions a user called fetching and a user called wheel. I am not familiar with these users. Are they there for a reason?

    I see this question was asked last Oct, and had gone unanswered.
    I, too, have suddently noticed that all my folders on my external disk are giving permission to this "Fetching", and my system disk show permission for "Wheel".
    It is gratifying to know more than one person is seeing this, but does it mean we are both being hacked by the same source, or is there some unexplained legitimate reason they are there?
    Thank you for any further information.

  • What does the term "Wheel" mean under sharing and permissions?

    Hi Everyone,
    When I select a folder (in Applications for example) and then click "get info", under the sharing and permissions section where accounts are listed with their respective permissions, the list usually starts with system or admin, then a term called "Wheel", then everyone. What is Wheel?
    Screen shot 2009-10-09 at 3.46.58 PM
    I have attempted to paste a screen shot here.
    Any thoughts?
    joe
    Screen shot 2009-10-09 at 3.46.58 PM
    Looks like I'm not having any luck pasting a screen shot...How does one do that?
    Message was edited by: K9Lover

    wheel is a system superuser group. By default only the root user belongs to it. Snow leopard has changed some permissions and now the preinstalled system apps in the main Applications folder have the group wheel (it was admin in Leopard). I don't know why they did it but this is now normal. where else do you see wheel?

  • Warning:  SUID File (11 Files) and "Permissions Differ" - No Install Disc

    Hello,
    Have had my black macbook for about 3 1/2 years now (leopard) and having problems with it being really sluggish and freezing up. Additionally, the fan is coming on a lot and being really loud. I have checked activity monitor (all processes) and nothing is running over 12...Question is are the "warning suid files" and "permissions differ" the source of these problems? I can't find my original install disc (have one for my i mac but no good I hear.) Guessing I need to go to the genius bar to fix this issue...Thanks, PoorGradStudent

    Hello and welcome to the discussions, Those warning are normal and nothing to worry about.
    While your at the genius bar see if they will run a diagnostics test on your laptop. Note, if your problems only show up after it has been on for an hour, get there an hour early and warm it up.
    No use in have them look at it if you can't replicate the problem.
    Cheers,
    Glynn

  • Roles and permissions

    I have a couple of questions.
    1. How would I go about fitting a custom permission resolver for SOA suite ?
    2. Is there a way to print the roles,users and permissions to debug ? My roles could be in LDAP or a database but permissions are in system-jazn-data.xml. Why are these permissions stored in a XML file ?
    Mohan

    Where do the LDAP implementation classes write their logs ?
    My worklist application writes logs to orabpel.log like the following.
    <2009-05-16 16:46:44,954> <DEBUG> <collaxa.cube.services> <LDAPUtil::getJNDIContext> JNDI Connection received
    My bpel console hits openldap but does not write log the same way. It shows that the user does not have enough privileges. So basically I don't see what is being done by my LDAP classes.

  • Create Roles and Permissions using API

    Hello,
    I'm new to Java and I'm trying to create Roles and Permissions in LiveCycle using API's. Can someone please check and correct my code below?
                //Create a ServiceClientFactory object
                ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
                // Create an AuthorizationManagerServiceClient object
                AuthorizationManagerServiceClient amClient = new AuthorizationManagerServiceClient(myFactory);
                RoleImpl ri = new RoleImpl();
                ri.setName("Test ES Role");
                ri.setDescription("Test Role via API");
                ri.setMutableStatus(true);
                amClient.createRole(ri);
    Executing the above code throws exception as below;
    com.adobe.idp.um.api.UMException| [com.adobe.livecycle.usermanager.client.AuthorizationManagerServiceClient] errorCode:16385 errorCodeHEX:0x4001 message:Exception thrown is NOT a DSCException : UnExpected From DSC chainedException:java.lang.IllegalStateExceptionchainedExceptionMessage:null chainedException trace:java.lang.IllegalStateException
              at com.adobe.idp.dsc.clientsdk.ServiceClientFactory$1.handleThrowable(ServiceClientFactory.j ava:72)
              at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:220)
              at com.adobe.livecycle.usermanager.client.AuthorizationManagerServiceClient.createRole(Autho rizationManagerServiceClient.java:159)
              at com.adobe.lc.ManageRolesAndPermissions.main(ManageRolesAndPermissions.java:70)
    Caused by: java.lang.NoClassDefFoundError: javax.ejb.EJBException
              at com.adobe.idp.dsc.clientsdk.ServiceClientFactory.evaluateMessageDispatcher(ServiceClientF actory.java:595)
              at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:215)
              ... 2 more
    Caused by: java.lang.ClassNotFoundException: javax.ejb.EJBException
    Thank you,
    Sandeep

    Mahesh,
    Refer to your other thread ..
    API to create new items in inventory
    API to create new items in  inventory
    Regards,
    Hussein

  • Automate ownerships and permissions

    Every time I create a new file or folder I have to - get info and change the ownership and permissions in Access and others from Read only to read and write, to allow access for others.
    Is there a way to automate this in 10.4 and 10.5?
    Cheers,
    Steve

    1. This is specified during installation.
    2. The owerships are setup per the selections provided during installation.
    3. Usually the owner is oracle with group dba
    4. You only have to run changePerm.sh if you want to open up access on your filesystem for users to access sqlplus, exp, tkprof, etc from $ORACLE_HOME/bin. If you only run applications from client machines or external applications servers, it is more secure to leave the default filesystem permissions on the Oracle Homes.

Maybe you are looking for