Getting Permission Denied using sendXMLRequest

Hi,
I'm trying to do some admininistration of MapViewer using the Java API, but get the following response:
****** response = <?xml version="1.0" encoding="UTF-8" ?> <oms_error> Permission denied for this operation!</oms_error>
My reading of Chapter 6 " MapViewer Administrative Requests" implies that the following should work:
MapViewer mv = new MapViewer(mvURLStr);
StringBuffer buf = new StringBuffer();
buf.append("<?xml version=\"1.0\" standalone=\"yes\"?> ");
buf.append(" <non_map_request> ");
buf.append(" <clear_cache data_source=\"mvdemo\"/> ");
buf.append(" </non_map_request> ");
mv.sendXMLRequest(buf.toString());
System.out.println("****** response = " +mv.getXMLResponse());
How to get this working?
Thanks,
--BobC                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

All admin requests are disabled since MapViewer 10.1.2 for security reasons.
If you need to clear the cache, you either need to do it manually, or disable the caching of a theme entirely.
Or, there is an undocumented attribute that you can set in mapViewerConfig.xml, which completely disables the security checking for all admin requests:
<mv_security enforce_sec_role="false" />
Obviously you need to be very careful as any user can now send admin requests, such as deleting existing data soruces.

Similar Messages

  • I'm wondering about using Apple loops in music. Is it ok to do so to make music for people to hear, without it being sold. And how do you get permission to use them in music to sell?

    I'm wondering about using Apple loops in music. Is it ok to do so to make music for people to hear,like on soundcloud or other websites, without it being sold. And how do you get permission to use them in music to sell?

    From the LOGIC STUDIO SOFTWARE LICENSE AGREEMENT   :
    C. Except as otherwise indicated, you may use the Apple and third party audio file content (including, but not limited to, the Apple Loops, built-insound files, samples and impulse responses) (collectively the “Audio Content”), contained in or otherwise included with the Apple Software, on aroyalty-free basis, to create your own original soundtracks for your film, video and audio projects. You may broadcast and/or distribute your ownsoundtracks that were created using the Audio Content, however, individual Apple loops, audio files, sound settings, samples and impulse responsesmay not be commercially or otherwise distributed on a standalone basis, nor may they be repackaged in whole or in part as audio samples, soundfiles, sound effects or music beds.
    This means, you can use all Apple Loops in your music, they're royality-free.
    Best,
    DaCaptain

  • Script ran by Lingon gets "permission denied" error

    I am trying to use Lingon to run a script every 60 minutes, and am getting a permission denied error:
    2009/05/27 18:12:52 com.apple.launchd[73] (Time.Machine.monitor.launcher[1006]) posixspawnp("Library/Scripts/User_scripts/Time_Machinemonitor.app", ...): Permission denied
    The script was saved as an application bundle.
    Why would permission be denied? Where does one set permissions??
    Thanks in advance for any help.

    It seems a script saved as an "application bundle" will get the "permission denied" message, while a script save as "application" will run normally.
    Note that startup screen should also be off.

  • How can I get permission to use Apple's Airplay Technology for new and innovative Speaker System?

    Hi there!
    I want to integrate Airplay technology in a new and innovative Speaker System.
    I've searched the internet, but couldn't find anything.
    Does anybody know how to get the permission to use it?

    Apple
    1 Infinite Loop
    Cupertino, CA 95014
    408.996.1010
    ...ask to speak to someone about licen$ing.

  • HT1810 i am trying to ping my printer and i get permission denied  firewall turned off. help!

    PING 169.254.1.1 (169.254.1.1): 56 data bytes
    64 bytes from 169.254.1.1: icmp_seq=0 ttl=255 time=0.065 ms
    64 bytes from 169.254.1.1: icmp_seq=1 ttl=255 time=0.146 ms
    64 bytes from 169.254.1.1: icmp_seq=2 ttl=255 time=0.184 ms
    ^Z
    [25]+  Stopped                 ping 169.254.1.1
    Admins-iMac:~ Admin$ ping 169.254.1.2
    PING 169.254.1.2 (169.254.1.2): 56 data bytes
    ping: sendto: Permission denied
    ping: sendto: Permission denied
    Request timeout for icmp_seq 0
    ping: sendto: Permission denied
    Request timeout for icmp_seq 1
    ping: sendto: Permission denied
    Request timeout for icmp_seq 2
    ping: sendto: Permission denied
    Request timeout for icmp_seq 3
    Dont get why ?  First off it printed fine . Now no matter what addresses i give it it doesnt work.
    E0 is 169.254.1.1    printer remote 169.254.1.2   mask is /16
    default gaetway for both devices is each other.
    Beggars belief!!

    Did you solve this issue?  I'm getting the same permission denied message!!
    ssdevmac1:~ $ ping 10.1.30.117
    PING 10.1.30.117 (10.1.30.117): 56 data bytes
    ping: sendto: Permission denied
    ping: sendto: Permission denied
    Request timeout for icmp_seq 0
    ping: sendto: Permission denied
    Request timeout for icmp_seq 1
    ping: sendto: Permission denied
    Request timeout for icmp_seq 2
    ping: sendto: Permission denied
    Request timeout for icmp_seq 3
    ping: sendto: Permission denied
    Request timeout for icmp_seq 4
    ping: sendto: Permission denied
    Request timeout for icmp_seq 5
    ping: sendto: Permission denied
    Request timeout for icmp_seq 6
    ping: sendto: Permission denied
    Request timeout for icmp_seq 7
    ping: sendto: Permission denied
    Request timeout for icmp_seq 8

  • Trying to update software and I get permission denied

    How can I fix "permission denied"when trying to update software

    Do it while logged into an admin user account.

  • [SOLVED]getting permission denied

    I put this in command line
    /mnt/EFI/boot /dev/sda1 vfat rw,flush,tz=UTC
    I'm getting a permission error
    Last edited by tmccaffery (2013-04-04 10:04:40)

    The only part of the page you referenced - that I can find pertaining to the bizarre command you wrote - is the section describing how you'd find the device path for the UEFI System Partition. If that's the case you need to make sure you read the guides very carefully, as (in that specific use case) the command is thus;
    # findmnt /boot/efi
    Minus the # of course, as this is to denote that you are logged in as root.
    The command you say you wrote into the terminal is in fact the type of output you'd expect from writing the aforementioned command. Having said all this, if you're writing nonsense to the terminal expecting results I think you should start from scratch, or at least double check what it is that you wish to achieve, as that section is for gummiboot which now has its own installer.

  • How do I get permission to use my DVD burner in photoshop elements.?

    I get a message telling me I cannot export my slide show to my DVD burner because I do not have permission to create a file at the specified location.
    Why not?

    Hello Andy,
    You may find the
    Can I legally use the Office icons in a website? and
    can I legally show Microsoft Office and Project icons in my desktop application? forum threads helpful.

  • How do i get permission to use a 6th computer

    i have used 5 computers and i can not load my itunes music on our new computer. i can not find a serial number to get tech support

    Use the Deauthorize All command documented in this article. If that's not an option, use the 'contact iTunes Store support' link at the bottom of it.
    (106770)

  • How do i get permission to use my camera on google plus when i by accident pressed the do not allow button- how can i change that setting?

    I want to have a conversation on google plus, but by accident i pressed the do not allow button. How am i able to change the setting?

    rwgleaves wrote:
    Is there any way I can change this for the entire drive?  Doing this one file at a time is crazy!
    Pick the entire drive>Get Info>Make sure you have read&write privledges and, of course, have added yourself. Either that, or pick all the files, and, once again, "Get info." You should be able to do this for a large group, not just file by file.

  • Do I have to get permission to use the singers vocal loops?

    There are a number of audio recordings in Apple Loops that are sung by various artists like Leena, Seif, Tom etc.
    Although its implied that we can use them commercially (sell CDs etc) in my songs,  because they are available in Logic, I would still like to confirm that.

    You should have no problem doing that according to the LPX Agreement / Terms & Conditions / EULA....
    You may use the Apple and third party audio loop content (Audio Content), contained in or otherwise included with the Apple Software, on a royalty-free basis, to create your own original music compositions or audio projects. You may broadcast and/or distribute your own music compositions or audio projects that were created using the Audio Content, however, individual audio loops may not be commercially or otherwise distributed on a standalone basis, nor may they be repackaged in whole or in part as audio samples, sound effects or music beds.

  • What can I do to create a disk image when I continue to get the prompt "permission denied"?  I have run the permission repair, restarted the computer and nothing changes.

    I want to create a disk image for important information.  I continue to get "Permission Denied" even though I have run the disk utility for repair and verify disk permissions.  Is there a solution for this?

    I had same problem as I was trying to build a windows iso following the bootcamp instructions (last evening).  I learned you cannot create a disk image at root due to changes in the operating system made by apple.  As a user (even an admin user) you can only create a disk image below root (such as in your desktop).  Any attempt to creat an image at root will return permission denied.
    The Apple Disk Utility (on three macs I have tried so far) defaults to creating an iso image at the root.  If you tell it to create the image - you immediately get a permission denied error.
    None of the iso creation instructions I have found on apple site so far speak to this. 

  • Permission denied when running runInstaller

    I'm getting 'permission denied' message when running
    runInstaller. I'm running the program directly from the CD. I'm
    logged-in as oracle with 'dba' group. I've checked the
    permissions on jre and it is fine. I can run jre on the
    command-line without any problem. I also tried running the
    runIns.sh and the same message is returned.
    What could be the other reasons why I am getting this message?
    null

    I don't know if it has anyhting to do with it but I had a similar
    problem. The difference was that I was part of the root group
    not dba as you state. The documentation suggests using a group
    called oinstall. Give it a try ... you never know how the
    packages within the installtion might have been built.
    kiwi (guest) wrote:
    : I'm getting 'permission denied' message when running
    : runInstaller. I'm running the program directly from the CD.
    I'm
    : logged-in as oracle with 'dba' group. I've checked the
    : permissions on jre and it is fine. I can run jre on the
    : command-line without any problem. I also tried running the
    : runIns.sh and the same message is returned.
    : What could be the other reasons why I am getting this message?
    null

  • ShowF4KeyAndValueHelp - Permission denied

    I am trying to use "ShowF4KeyAndValueHelp" to let the user choose from a list of Customers displayed in a pop up window. But when one of the listed customers is seleced, there is an error "Permission denied".
    Therefore the selected customer cannot be copied into the inputField.
    Do you know the cause of this error?

    I don't know if it has anyhting to do with it but I had a similar
    problem. The difference was that I was part of the root group
    not dba as you state. The documentation suggests using a group
    called oinstall. Give it a try ... you never know how the
    packages within the installtion might have been built.
    kiwi (guest) wrote:
    : I'm getting 'permission denied' message when running
    : runInstaller. I'm running the program directly from the CD.
    I'm
    : logged-in as oracle with 'dba' group. I've checked the
    : permissions on jre and it is fine. I can run jre on the
    : command-line without any problem. I also tried running the
    : runIns.sh and the same message is returned.
    : What could be the other reasons why I am getting this message?
    null

  • AddFavorite Permission Denied

    I have a piece of AS code as below;
    getURL("javascript:window,external.AddFavorite('http:\\mysite.com',
    'mySite');");
    This has been working fine adding a favorite to Internet
    Explorer 6. And then My XP machine got upgraded to Service Pack2.
    Now all I get is 'Permission Denied' error. Is there another
    way to add IE favorites from flash?
    Thanks

    I don't know if it has anyhting to do with it but I had a similar
    problem. The difference was that I was part of the root group
    not dba as you state. The documentation suggests using a group
    called oinstall. Give it a try ... you never know how the
    packages within the installtion might have been built.
    kiwi (guest) wrote:
    : I'm getting 'permission denied' message when running
    : runInstaller. I'm running the program directly from the CD.
    I'm
    : logged-in as oracle with 'dba' group. I've checked the
    : permissions on jre and it is fine. I can run jre on the
    : command-line without any problem. I also tried running the
    : runIns.sh and the same message is returned.
    : What could be the other reasons why I am getting this message?
    null

Maybe you are looking for

  • Slow browsing on windows server

    I upgraded 4 stations that were running under Tiger to Lion and now the browsing of my Windows server via the Finder is awfully slow. I've a read a number of so-called fixex whcih none seems to work for everyone.

  • Upgrading T430 preloaded with Windows 7 Pro to Windows 8 With Recovery Disks

    I just got 19 T430 laptops that we thought would have Windows 8 on them but them came with a preload of Windows 7 Pro and recovery disks for Windows 8. The recovery disks have instructions for using them to upgrade to 8, but the laptop won't boot to

  • I cant get my iphone to sync any new music or playlists.

    both  my itunes and iphone 5s are up to date. how can i fix it or is it just another bug that apple didn't bother to test before updating? I wont be updating software in a hurry again! sort it out Apple!!!

  • An explorer with java ! is it possible?

    hi ! one of my tasks or rather my problmes that i am facing now is to implement a java application that plays the same role as the windows eplorere with its common fonctionalities ( copy , paste , drag and drop , rename ...) is it possible ! can you

  • Problem creating asm disk groups after installation.

    I just completed the grid install successfully on Oracle Linux: Candidate ASM disks not showing up in 11.2 installer (Oracle Linux) Thanks for the help. I am running into the same type of issue where I can't see the asm disks like I ran ran into duri