Get JMSSecurityException (access denied) when sending message to queue

Hi, I am using weblogic8.1 sp2, assigned a security policy with my jms queue, the security policy states that only administrators may access the queue. Make sure that this queue does not inherit any security policy from its parents.
          My jms client tried to create connection with the correct username/password, and then send messages to the secure queue. The connection is created successfully, but send operation got a JMSSecurityException : access denied..... It is almost as if the send operation is not executed anonymously. I checked the jms API, there is only one place where I can specify username/password, that is when a connection is created. There is no place to specify credential for send/receive/publish/subscribe operation. Am I missing something? everything seems to be straightforward, can't believe it is not working, could it be a bug in weblogic8.1? Please post a reply if it worked for you.. or did not work (so that I know I am not alone)
          Thanks a lot.
          Haijun

The security credentials for a JMS "send" operation are not taken from the username and password that you pass to the "createConnection" method, but from the security login context in effect when you call "send". So, if you want this to happen using a particular security context, you need to make sure that you have set this up before you make the call.
          There are a number of ways to do this in WLS. Your best bet would be to check the security documentation, or do ask on the security newsgroup for the best way to do this in 8.1.

Similar Messages

  • Get AccessControlException(access denied) when refresh page

    Our applet have AccessControlException when refresh the ie browser but the first time open no such a problem! And when we use other host which use a different proxy no such a problem either. Don't know why , is it the problem of proxy?
    any idea ? many thanks!
    here is the log:
    INFO - Wed Jan 16 16:09:30 EST 2008: getResponseTime Debug1-- openConnection time: 0ms
    network: Connecting https://hostname/_en.html with proxy=HTTP @ proxyname:8080
    network: Connecting https://hostname/_en.html with cookie "BCSI-CSA1021104=2"
    INFO - Wed Jan 16 16:09:34 EST 2008: getResponseTime Debug3-- getInputStream time: 4500ms
    liveconnect: Invoking JS method: ua
    INFO - Wed Jan 16 16:09:34 EST 2008: Log page URL -- https://hostname/result.html?timestamp=Wed Jan 16 16:09:34 EST 2008&ip=''&jvm=Sun Microsystems Inc.,1.5.0_14&os=Windows XP,5.1&echo_time=4500ms&UserAgent=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
    INFO - Wed Jan 16 16:09:34 EST 2008: logUsrInfo Debug5-- openConnection time: 0ms
    INFO - Wed Jan 16 16:09:34 EST 2008: JVM version checking passed!
    +(the first time open page can pass!)+
    liveconnect: Invoking JS method: showApplication
    basic: Stopping applet ...
    basic: Finding information ...
    basic: Releasing classloader: sun.plugin.ClassLoaderInfo@134e4fb, refcount=0
    basic: Caching classloader: sun.plugin.ClassLoaderInfo@134e4fb
    basic: Current classloader cache size: 1
    basic: Done ...
    basic: Removed progress listener: sun.plugin.util.GrayBoxPainter@1be0f0a
    basic: Joining applet thread ...
    basic: Destroying applet ...
    basic: Disposing applet ...
    basic: Joined applet thread ...
    basic: Unregistered modality listener
    basic: Quiting applet ...
    basic: Registered modality listener
    liveconnect: Invoking JS method: document
    liveconnect: Invoking JS method: URL
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@134e4fb, refcount=1
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter@50988
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@134e4fb, refcount=2
    basic: Releasing classloader: sun.plugin.ClassLoaderInfo@134e4fb, refcount=1
    INFO - Wed Jan 16 16:09:44 EST 2008: getResponseTime Debug1-- openConnection time: 0ms
    network: Connecting https://hostname/fx-canada/login_detail_fr-ca.html with proxy=HTTP @ proxyname/
    network: Server https://hostname/fx-canada/login_detail_fr-ca.html requesting to set-cookie with "BCSI-CSA1021104=2; Path=/"
    INFO - Wed Jan 16 16:09:48 EST 2008: getResponseTime Debug4-- throw exception time: 4515ms
    WARN - Wed Jan 16 16:09:48 EST 2008: Cannot get system response time!
    java.security.AccessControlException: access denied (java.net.SocketPermission hostname:8080 connect,resolve)
    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.checkConnect(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.proxiedConnect(Unknown Source)

    The security credentials for a JMS "send" operation are not taken from the username and password that you pass to the "createConnection" method, but from the security login context in effect when you call "send". So, if you want this to happen using a particular security context, you need to make sure that you have set this up before you make the call.
              There are a number of ways to do this in WLS. Your best bet would be to check the security documentation, or do ask on the security newsgroup for the best way to do this in 8.1.

  • Test message from RWB: Error when sending message: 401 Unauthorized

    Hi Experts,
    While I am sending test message from RWB, I am getting following error:
    Error when sending message: 401 Unauthorized
    I am using correct userid/password as I am working with Repository/directory. Also in one of the test scenario files are picking up from folder but never got processed because of similar issue (HTTP_RESPONSE_CODE_NOT_OK) and SERVICE NOT AVAILABLE.
    I am having SAP_ALL authorizations and few days back everything was fine.
    I think something wrong with configuration in XI but I am unable to pin point.
    Please help.
    Regards,
    Gourav

    Yes,
    but
    Role of Business System : Integration system
    Corresponding Integ. Server : http://<XI server>:<http port>/sap/xi/engine?type=entry
    How can I change it to Application system
    and RUNTIME->IS_URL = http://<XI server>:<http port>/sap/xi/engine?type=entry
    Regards,
    Gourav

  • Why am I getting an access denied message for the fox news website?

    All of a sudden I am getting an "access denied to this server" message when I try to go to the Fox News website.  What's up with that?

    I can tell you what's up with that. If this is the website you are trying to access, it works fine for me.
    http://www.foxnews.com/
    Check this Settings>Safari>Accept Cookies>From visited. Make sure that it checked.
    If it is and you still can't access the site - clear Safari.
    Go to Settings>Safari>Clear History, Cookies and Cache. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.

  • I am not able to open a PDF file that I just created. I get an access denied message instead.

    I am not able to open a PDF file that I just created. I get an access denied message instead.

    Thanks for asking.
    I was combining different types of files into a single PDF. Some of them were excel spreadsheets and I had set the print areas in each file. When I cleared the print area the problem stopped. So I am assuming that had something to do with it. Though I am not sure.
    The strange thing was that I was able to open the excel source documents after creating the faulty PDF but some of the MS word source documents also had "access denied" status. I still cannot figure that part out.

  • When using Get Others to Sign i get an access denied window associated with my Adobe ID

    Can someone please help i get an access denied window when trying to send out a form to have signatures added. It seems to be associated to Adobe ID, can someone please point in a direction to fix this.

    Did you create a NEW Apple ID or did you change the email address for your OLD Apple ID? This will affect how you update apps in the future.
    Anyway, go to Settings/iTunes&App Stores, log out, then log in with the new ID.

  • Get "Access Denied" when click open a PDF file

    Hi Friends,
    Get "Access Denied" when click open a PDF file linked from SharePoint 2013 page.
    What are the route causes any one is remove the permissions are stopped the inheritance permissions of the library.
    Can anyone face the same issue please help me.
    Thanks,
    Tiru
    tirupal

    Hi,
    If you are able to open the same document earlier,then  anonymous access enabled on your doc library then.
    If you are facing this problem in first time,then you do not have required permission (may be custom permission level has been set ) on it.
    Murugesa Pandian.,MCTS|App.Development|Configure

  • Windows 2008 R2 intermittently getting access denied when logging in

    Hi, 
    I recently built 2 new Virtual Machines. They both run on Hyper-V (version 6.2x).
    One is Windows 2008 R2 standard and the other Windows 2008 R2 Datacenter. These are both remote desktop servers. 
    These are both connected to a domain. 
    The domain controller is linux/samba based, this will mimic the Windows NT4 style domain controller environment. 
    Within each Virtual Machine I have a remote desktop users group, that is a staff group. 
    Intermittently users get an access denied error when logging on. This only happens when logging on as domain users. 
    If this happened all the time, I might think the machine needed to be removed and re-added to the domain but as it's intermittent, I don't see the trust relationship as the problem. 
    Any ideas? 
    Thanks

    Hi,
    Thanks for your post in Windows Server Forum.
    Before providing you some information, I would like to get some more information to resolve your issue.
    - Have you notice any specific error when trying to remote login?
    - Did you check GPO setting option “Allow log on through Remote Desktop Services”
    As group policy and the user group are interrelated with each other. There are 2 types of user rights.
    (1)   Logon rights  (2) Privileges
    These two plays an important part in allowing an RDP session to the server. Also need to check in GPO Setting for more option.
    a. Allow log on through Remote Desktop Services : Users\Group must be added for Remote Session
    b. Deny log on through Remote Desktop Services : Users\Group must not be added for Remote Session
    For checking the setting in GPO follow below path:
    - Start > Run >gpedit.msc
    - Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment
    For more information, refer beneath article.
    “Allow Logon through Terminal Services (Remote Desktop Services)” group policy and “Remote Desktop Users” group.
    http://blogs.technet.com/b/askperf/archive/2011/09/09/allow-logon-through-terminal-services-group-policy-and-remote-desktop-users-group.aspx
    Hope This Helps!
    Thanks.

  • I get access denied when I try to search on your site.

    Please help me. I get access denied when I try to search on your site. I have emptied cache. I tried Safe Mode the way you suggested. Still access denied (though my printer then would not respond to me and I spent $85 to have my It consultant fix that problem.

    Hi,
    You've opened 3 different threads for the same issue. Please only open '''ONE''' thread per support request.
    Continue here [https://support.mozilla.org/en-US/questions/995124?esab=a&s=&r=3&as=s /questions/995124]
    Closing thread

  • I get access denied when I add a page to a workset in EP 7

    I get access denied when I add a page to a workset in EP 7.
    Please advice.

    Hello,
    This seems to be a permission issue. Assign the user id proper permission, say system_admin_role and then try.
    Regards
    Deb

  • I get an access denied error when logging into extension builder 2.1 on Flash Builder 4.6

    I get an access denied error when logging into extension builder. The error is: You are not eligible to use CSIDE1 services due to the Service Eligibility Requirements.. Very frustrating since there is no other option than to read the adobe legal docs.
    Before this started happening I was prompted to put in my birthday (WHO KNOWS WHY ADOBE NEEDS MY BIRTHDAY). I filled it in wrong and now this....
    PLEASE HELP

    Ok this problem is fixed.
    Info for anyone else who faces this problem.
    Apparently when adobe designed the extension builder installer package, they decided to get cute and try to figure out what version of the software, the extension builder package files should be installed into. So if you have FB4, FB4.6, and FB.7 there is no telling where it will go. Also if you try moving these folders somewhere else out of the applications directory, the installer will still find them on the system. I finally figured this out by watching my system log and seeing
    11/22/13 12:13:46.258 AM cp[70909]: Cannot make directory /Applications/Adobe Flash Builder 4.6/Adobe Flash Builder 4.6.app
          Location: /Users/myuser/Downloads/Adobe Flash Builder 4.6-adobegarbage/plugins/com.adobe.cside.ui_2.1.0.201304282312/icons: No such file or directory
    After removing every single instance of places the package installer was trying to use. It finally resolved to the correct FB4.6 location. Why adobe could'nt spend a little extra time add a destination selector in the package installer is beyond me, but hey i only wasted 3 days trying to figure this out.... Sadly it isnt the first time i've wasted copius amounts of time fighting Flashbuilder problems.
    Halligrimur, thank you for your help. It did lead to me solving the problem.

  • Access denied when running Get-WmiObject -Class Win32_SystemServices -ComputerName ServerName

    When I run the following powershell WMI command 
    Get-WmiObject -Class Win32_SystemServices -ComputerName SRV_XYZ
    I get the following error:
    Get-WmiObject : Access denied
    At line:1 char:14
    + Get-WmiObject <<<<  -Class Win32_SystemServices -ComputerName SRV_XYZ
        + CategoryInfo          : InvalidOperation: (:) [Get-WmiObject], Managemen
       tException
        + FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.C
       ommands.GetWmiObjectCommand
    Note that, using the same user I run the previous command, I also run the following command, but this completes successfully with no errors:
    Get-WMIObject -query "select * from Win32_ComputerSystem" -computername SRV_XYZ
    Note also that SRV_XYZ is a remote server.
    The Question is: what additional permission I should give the current user on that SRV_XYZ remote server to be able to run the first WMI command remotely and successfully?

    Still accesee denied ! ... I tried to chnage win32_systemservices to win32_service but it gave me the same error.
    Regardless of whither it is a usable class or not! my question is related to authentication and permission that needed to be granted to the current user to be able to remotely run Win32_SystemServices or Win32_service.
    Note that running any of the commands with domain admin rights completes successfully.

  • Error when sending message: 404 not found

    Hi,
    New to XI, practicing file to jdbc scenario. File is pickedup from the source folder but nothing appearing on the receiver end ms access database.
    In the Component Monitoring, tried sending message manually with all the right info in Integration engine, getting an error message saying:
    "Error when sending message : 404 not found"
    Also tried in Adapter Engine and the result same.
    Before doing this scenario, I tried file - file scenario then also the sender file pickedup from source folder but nothing happend at the receiver end.
    Any idea's?? what might be the issue????
    Thanks,
    Venu.

    Hi Venu,
    "404 is a not found error", plz make a check of  your URL you're using is correct? do you use the right port? Normally the port is 80<SystemNo>, so rather 8001 than 7001.
    Also check in transaction SICF, if the node /sap/xi/adapter_plain has been activated, if not, activate it and try again.
    If you are testing sending the message to the Adapter Engine, then the Send Message URL should be like this:
    http://<server>:<J2EEport>/MessagingSystem/receive/AFW/XI
    For your error, refer to the following threads:
    Unable to find an associated SLD element
    Unable to refresh cache contents in XI.
    Unable to find an associated SLD element
    Also check that the Adapter Engine is successfully registered in the SLD. To do this, call the Content Maintenance function in the SLD as follows:
    http://<sld-host>:<sld-j2ee-port>/sld u2192 Administration u2192 Content Maintenance.
    Select XI Adapter Framework.
    Thirteen associations have to be registered.
    (Source: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2498bf90-0201-0010-4884-83568752a857)
    If you can't find all the associations, then you will have to create the associations manually.
    This is a very good blog which answers ur question:
    check this weblog
    https://weblogs.sdn.sap.com/pub/wlg/4061?page=last&x-showcontent=off [original link is broken] [original link is broken] [original link is broken]
    Regards,
    Vinod.

  • D'weaver:Access Denied when attempting to save files-HELP!

    This is driving me nuts. Here are some specs:
    -Using Dreamweaver CS3
    -I am logging in as administrator on IIS6
    -Been using a network mapped directory to accesss files (always worked before)
    -Tried setting up RDS (get error <h1>Bad Request (Hostname invalid)</h2>
    -Went back to using network mapped directory now I get "Access Denied" error message
    -Checked access permissions in wwwroot directory on server and all set to "Administrator (Full) Permissions
    Questions
    1) Does Dreamweaver reset permissions on files when RDS setup is attempted?
    2) If so-how do I reverse this?
    3) Does RDS create changes in the Windows Registry that I need to remove?
    Really need help as my production schedule is seriously falling behind. I work for myself and ANY work I get right now is keeping me in my house.
    Thanks in advance for any help.

    Me too..!
    are getting the access denied message when trying to save files in DW. Also the file in gone...
    But only on some files.
    Has anyone come up with a solution or workaround?  It's making us crazy and slowing down our work significantly.

  • Access denied when I move files from MacBook to desktop

    When move files from my MacBook Pro to my G5 desktop, I can't open them. I get an "access denied" message. I can fix the problem by going to "info" and changing the access, but how can I fix this so it doesn't happen at all? I don't want to have the hassle of resetting the access for each file every time I swap files back and forth between the laptop and desktop.

    Ask and you will receive:
    You can do the same thing in terminal using the chmod command, but it requires a bit more of a learning curve.
    Leo server has a Built in GUI that allows you to do the same thing as Sandbox, I really feel Apple should have included something similar in the consumer version of Leo, since we are forced to deal with ACL's in Leo whether we want to or not. They are turned on by default and can only be turned off temporarily (fsaclctl command) as they will resume automatically at the next reboot.
    Of course you must master the basics before attempting
    ACL's from the command line.
    Here are some links to some Leo ACL and command line documents:
    http://www.afp548.com/filemgmt/index.php?id=40
    http://manuals.info.apple.com/enUS/Command_Line_Adminv10.5.pdf
    http://manuals.info.apple.com/enUS/File_Services_Adminv10.5.pdf
    http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/chmod.1. html
    These tools will guide you in your quest.
    And don't forget grasshopper: "wax on - wax off"
    Kj

Maybe you are looking for

  • Satellite U400-22n and Win7 - screen hangs after 5 min

    Hi, This is my first post Ive purchased a new U400 with Vista preinstalled, last week ; 2 days ago Ive upgraded to windows 7 32bit professional when I stared Installing it windows prompted me that it requires a full installation , so I done a normal

  • Problem selecting MAX YEAR MAX MONTH MAX DATE in one query

    CREATE TABLE TEMP C_INVOICE_ID NUMBER(10), DIA NUMBER, MES NUMBER, ANO NUMBER, SOCIO_NEGOCIO NVARCHAR2(60) NOT NULL, PRODUCTO_NOM NVARCHAR2(60) NOT NULL, M_PRODUCT_ID NUMBER(10), CATEGORIA NVARCHAR2(60) NOT NULL, COSTO NUMBER INSERT INTO TEMP VALUES(

  • Installing jdk 1.4.2 and 1.5 parallel

    Hello, I would like to know it is possible to install jdk 1.5 on a windows XP machine already countaining jdk 1.4.2. I need both versions. I want to switch between them with Eclipse build in features or by selecting the whole path to the bin folder o

  • Extraction from R/3 extractor to flat file

    Hi, I want to be able to extract data using r/3 extractors (LIS/Business Content extractor) into r/3 itself loading the data into a transparent table or loading the data into a flat file on the application server. As an example, i want to extract dat

  • Cannot find documentation for MRCA

    Now that the new MRCA tool version 10.1.2.0.3 is available where is the documentation for it? I have only been able to find docs that were last updated in August. I'm going to install in a 10.2.0.1 db and I need the pre-install info. Thanks, Denise