A friendly way to treat the error 401 - Unauthorized

Hello experts!

In my Jdev 12.1.2 application sufficient to handle 401 (unauthorized) errors in an easy way.

I mean, after the users log in, if they don't have the appropriate business role, ADF won't have access (it's ok), but I want to show them a nice message instead that horrible:

http://snag.Gy/TAl1D.jpg

Thanks in advance!

Jose.

Two problems with your solution:

one)

401

/faces/LoginError.JSPX

Gives a warning in web.xml 'Reference /faces/loginError.jspx not found' and the page is accessible to all without error 401.

(b)

401

LoginError.JSPX

Give this exception!

<30-may-2014 10h36'="" cest=""><[ServletContext@1719436940[app:SCP module:scp="" path:null="" spec-version:3.0]]="" servlet="" failed="" with="" an="">

java.lang.NullPointerException

at javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1858)

I do not think that there are problems with my solution, because I have not told you to use a JSF page as an error page, or told you to call a JSF page without "/ faces" at the beginning of the URI, you did.

You can use a simple HTML page or a plain (non - ADF Faces) JSP in an error page. If you want to use a page ADF Faces as an error page, you must apply a trick to call it by redirect - by setting up a simple HTML page as an error page that is redirected to the necessary page ADF Faces, for example:

In the web.xml file:

401

LoginError.html

In loginError.html:

NB. not put / in front of ' faces/loginError, jspx' in loginError.html above, or it will not work correctly when the application context root is not /.

Dimitar

Tags: Java

Similar Questions

  • Firefox reports an error of TLS for a website that I trust, but provides no way to override the error message.

    For a few months (end of 2015) Firefox returned an error of "secure connection failed" when I try to access my account at a major insurance. The site worked fine in Firefox for years and works very well with Microsoft Edge, but I prefer to use Firefox. The link "more info" in the error message indicates that the message the site uses outdated TLS security and I have to contact the owners to tell them to update. I've tried and failed; Blue Cross makes it even more difficult to "contact us" that Mozilla does.

    Why is there no no "I trust this site - go anyway" option? I'm experienced enough to make my own decisions of safety.

    Thank you! The security.tls.version.max had been "user set" with a value of 1, and I have reset as you indicated. The value is now 3 and I could access my Blue Cross account normally.

    I guess that dates this problem when I got my new computer and did a new install of Firefox to August 10. The TLS parameter is perhaps one provided with the download.

    BTW, I noticed BitDefender in the news of the page also. The error page didn't identify its source; 'other info' led to support from Mozilla, but I was wondering if my antivirus was the culprit. Apparently, this is the setting in place of security of Firefox.

    Problem solved, thank you, jscher2000!

  • HP OfficeJet 4650: How should I treat the error Code 0 x 80240017?

    Tried to install an update and received this error code.

    The steps of troubleshooting in the post here by @Rainbow7000 can help solve the error 0 x 80240015 after an update on your Officejet 4650 printer.

  • that means error 401 Unauthorized operation. average (101000)

    I'm trying to publish a website of muse, I built.

    My client has a catalyst for business account which runs the site. I changed the preferences to publish towards their catalyst for business account but when I try to publish the muse file, the following error message appears?

    "Operation 401 Unauthorized. (101000).

    Any suggestions?

    Please check if the user in detail you are using is authorized to make changes to the site, there must be an associated user or site administrator. Best way to check is to connect on any portal site or existing BC partner.

    In case the user has administrator privileges, but can not add content, you need to add the user as an administrator of the site.

    Thank you

    Sanjit

  • Best way to display the error message to the end user?

    I want a small error message box to the pop-up window on the top layer, when a customer makes a selection incorrect or invalid.

    Can someone help me find the best way to do it?

    attachMovie() allows you to instantiate a library movieclip that contains a dynamic textfield. You can assign to the text property of the textfield object and position the movieclip as needed.

  • A better way to treat the form as a table with the variable column type?

    I wanted to make a column to return according to the status of a flag column as readonly. I have a column defined as follows in the report query.

    Decode (sys_flag, 'Y', APEX_ITEM. DISPLAY_AND_SAVE 3, TYPE_CODE, APEX_ITEM. SELECT_LIST_FROM_LOV (3, TYPE_CODE, 'LOV_TYPE_CODE_LOV')) AS TYPE_CODE

    To get the SRM process noting that column, I had to put this 'band of HTML code' to 'No', then the column attributes, I put:
    "Expression HTML" to "#TYPE_CODE #
    ' Display under "to"text display (saves the State).

    And then it took me to get new lines of work:
    "Default of Type" to "Expression of PL/SQL.
    'Default' to APEX_ITEM. SELECT_LIST_FROM_LOV (3, NVL(:P18_TYPE_CODE,'LOV_TYPE'), NULL, 'LOV_TYPE_CODE_LOV', ' NO')

    This makes large, however submit that it seems that the checksum of line used by MRU included the raw HTML generated by the APEX_ITEM package and not just the value of the column. I worked around this by including an element hidden checksum and creating a process that replaces the checksum generated automatically with my custom.

    Is there a better way to intercept this checksum, preferably before it is rendered on the page? I now hide the sum of hidden HTML control in the output HTML of another column, so it's a bit ugly. If not, is there an easier way to achieve what I'm looking for? I tried several combinations, and it seems to work better. It's just a shame there's no way to have a standard hidden column included in the SRM process.

    Hello

    I tried different possibilities and seems to run the following:

    Create a report questioning in NORMAL SQL function to help:

    SELECT
    APEX_ITEM.HIDDEN(1,EMPNO) || APEX_ITEM.TEXT(2,ENAME) ename,
    CASE WHEN DEPTNO = 10 THEN
     APEX_ITEM.HIDDEN(3, SAL) || SAL
    ELSE
     APEX_ITEM.TEXT(3, SAL)
    END SAL,
    EMPNO,
    DEPTNO || APEX_ITEM.MD5_CHECKSUM(ENAME, SAL) DETPNO
    FROM EMP
    

    Do not specify something special for column definitions.

    Create a button that submits the page.

    Create a PL/SQL process that runs "On submit - after calculations" and Validations, triggered by this button and using the following code:

    BEGIN
    APEX_ITEM.MULTI_ROW_UPDATE('#OWNER#:EMP:EMPNO,1:,|ENAME,2:SAL,3');
    END;
    

    I've done here: http://htmldb.oracle.com/pls/otn/f?p=55041:35

    Any element with the value of DEPTNO 10 has the value SAL, read-only, as otherwise it's editable. This is done by creating a hidden input field for the actual value, followed by the text version OR by creating a single entry field. This ensures that we have the correct number of SAL elements on the page.

    APEX_ITEM. MULTI_ROW_UPDATE is the "manual" version of the MRU that you would normally get with a form of table and works for above normal as sql based query reports. The format of this very strict is that you must always allow for two primary keys. See the text of presentation here: http://download.oracle.com/docs/cd/B28359_01/appdev.111/b32258/api.htm#CHDFDACC

    Andy

  • I tried the procedure to treat the error 8007005 - I followed the steps with the subinacl. Download and return to zero from Notepad back - all pasted and copied correctly and always my windows will not update. Please tell me what to do!

    I followed the tips you posted - downloaded as it is stated and it still does not work

    Hi Dhirasantadasa,

    Thanks for posting on the Forum of answers.

    Try the location in the Microsoft Download Center and download and install it from there.

    If failure repeated, trying to get the update in Mode safe mode with network by following these steps:

    1. remove all floppy disks, CDs and DVDs from your computer and restart your computer.

    2. click on the Start button, click the arrow next to the button lock and then click restart.

    3. do one of the following:

    ·         If your computer has a single operating system installed, press and hold the F8 key as your computer restarts. You need to press F8 before the Windows logo appears. If the Windows logo appears, you need to try again by waiting until the Windows logon prompt appears, and then stop and restart your computer.

    ·         If your computer has more than one operating system, use the arrow keys to select the operating system you want to start in safe mode, and then press F8.

    4. in the display Advanced Startup Options , use the arrow keys to select Safe Mode with network, press enter

    5 sign in your computer with a user account with administrator rights.

    Posted by Brian

    Please let us know if that helps.

    Chris
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to treat the error message Adobe failed to launch its core DIL

    How to handle the message Adobe could not launch its core DIL?

    Run the Acrobat cleaning tool, reinstall.

    Mylenium

  • What is the best way to treat the pf24 Canon files?

    I'm working on a project shot mostly with pictures of Canon DSLR (1080 p, 24 fps) but now I would like to add some images from a Canon, recording in AVCHD format camcorder. It seems that most presence of shooting at 24 fps or as Canon calling pf24. The question is, is first or media encoder able to interpret images of canon and good converting 3-2? Or should I save in 30 frames per second (or pf30) and to convert the 24 frames per second in media images encode before adding it to my project? Don't forget that I can not just shoot everything in 30 p because most of the project is already shot in 24 p. Also, I use CS6. Does anyone have experience with this? Thoughts?

    OK looks like I found the solution. You must take the pf24 images in After Effects and use the interpreter image drop-down list, and then click proposal 3:2 pulldown button. Right click on the file again and choose the make-up of the selection mark. Then render the composition in a full resolution AVI (1920 x 1080, 23.976 fps) and put it in your timeline. Disappointment is that you must do this for all files and the files are large (approximately 8 gb per minute), but given that your choice of output is limited after effects avi files full resolution are the best choice to maintain the quality.  Adobe really needs to add a hypothesis 3:2 pulldown button in preview to interpret footage dropdown. It was much more difficult to.  Here again, I guess that canon created the problem in the first place. Thank you very much Canon.

  • All requests to vCAC COFFEE host failed: 401 Unauthorized

    Hi all

    I installed the plugin vCAC 6.0.1 on vCO 5.5.2 and several hosts COFFEE vCAC (for different tenants) has added to the inventory.

    But all my attempts to make any request vCAC COFFEE host failed with the error: 401 Unauthorized.

    For example, if I run the workflow example "Library/vCloud Automation Center/samples/list catalog items" I the following error in the log of vCO:

    [03:42:36.616 2015-01-22] [I] host: DynamicWrapper (Instance): [vCACCAFEHost]-[class com.vmware.o11n.plugin.vcac.model.VCACHost] - VALUE: vcac6 [https://vcac6.hfr.mydev.com/] [vsphere.local]

    [03:42:36.616 2015-01-22] [I] user: [email protected]

    [03:42:37.251 2015-01-22] [I] 401 Unauthorized (Workflow: catalog items list / list of items in the catalog (item1) #5)

    (Complete the log as an attachment)

    In addition, all the vCO for guests COFFEE vCAC inventory records are empty:

    vCAC CAFE inventory.png

    If we consider the logs on vCO configuration server the root of this problem is the same:

    2015-01-22 04:09:20.368 - 0800 [http-bio-0.0.0.0-8281-exec-17] WARN {} [RestTemplateIpv6] GET request for " " https://vcac6.HFR.MyDev.com/Component-Registry/Endpoints/types/com.VMware.CSP.Core.Designer.service.API/default " " gave rise to 401 (unauthorized), invoking the error handler "

    2015-01-22 04:09:20.368 - 0800 [http-bio-0.0.0.0-8281-exec-17] {} [InventoryService] error findChildrenInRelation! Host: vcac6 (80de8859-bdee-459f-b4c2-1b06341fdccf), type: VCACHost, id: 80de8859-bdee-459f-b4c2-1b06341fdccf, relationName: ResourceAction, exception: org.springframework.web.client.HttpClientErrorException: 401 Unauthorized

    (Complete the log as an attachment)

    Could someone advise me what could be the root of this problem and how it can be solved?

    Thanks in advance!

    Note:

    What is interesting to note that the IaaS service works very well at the same time: API call correct works of the workflow of vCO, the inventory of the IaaS instance node contains all the appropriate objects.

    My enviromnet is:

    vCAC: 6.0

    vCenter Orchestrator: 5.5.2

    vCenter Orchestrator vCAC plugin: 6.0.1

    I checked the configuration:

    vCAC 6.0 + vCO 5.5.1 + plugin vCAC 6.0.1

    and everything works well here.

    It was definitely the problem of version mismatch.

    vCAC 6.0.1 plugin can operate only with vCO 5.5.1 or embedded vCAC vCO 6.0.

    It is not compatible with the vCO 5.5.0 or vCO 5.5.2.

  • Remove the HTTP 401 Authentication dialog box

    Hi people,

    Y at - there a way to remove the HTTP 401 Authentication dialog that appears in the web app works if the user enters wrond username or password?

    Thank you

    Chaitanya

    Hi dtater,

    You need comment a few lines in Authenticator.java. You can find this file in web works folder widget sdk. Based on authenticator.java goto invokeAuthenticationDialogAndStoreCredential and comment out the call to function invokeAndWait.

    After making this change you need to compile your application.

    Note: After changing it, all of your console application which are compiled using this sdk will have this fix.

    Thank you

    Chaitanya.

  • Photoshop cannot save due to the leak of RAM; way to recover the AutoSave?

    -This is a response quickly required only read the first paragraph, if you know ways to save without using my 'alternative approach '.

    Okay, so I worked on a project of digital painting in Adobe Photoshop CS6 and when changing the type of the layer (normal - multiply) the request ran into a well noticed error and began to behave as if my PC was running on low memory. After noticing, I acted on the error while trying to save my work and restart Photoshop. Only when I tried, the program opens an error window announcing that the program "couldn't complete the registration of order because there is not enough memory [RAM]. I tried several things and looked everywhere in the community an answer, but my efforts have been unsuccessful. If on the other hand, I remembered that my Photoshop preferences are set to "auto save", so to say, every 10 minutes as a backup to recovery in the case that something does not.


    ... Basically, another action, that I mentioned would be to leave Photoshop with force; activate the backup program restore feature the progress had been made automatically. The only thing I need to know (assuming that there is no other way to fix the error of Photoshop prior to closing) is so closed that program via the Windows Task Manager causes Photoshop to restore my work auto-enregistré when starting. Will it work? That is my question.

    If you have any information that would be useful about the first paragraph, it would be very appreciated! Otherwise, I just need the answer to the main question.


    My PC specs:

    • Windows 64-bit Professional 10
    • 8 GB RAM
    • Intel Core i7-4700MQ CPU 2 .40GHz
    • Intel HD Graphics 4600 series 32-bit [59hz]
    • (Nvidia GeForce GT m 740 as secondary; however, does not work due to lack of Windows 10 for the use of the dual video card for some graphics from Nvidia.) ; ω;


    Screenshot (13).png

    First check your drive to work. Make sure that you have enough free space, and if it is a HD from spinning this space should be also contiguous (not fragmented).

    Photoshop requires a disc of functional work to function normally, even if you think you have 'enough' of RAM. Everything you do is written from scratch, and the file can be orders of magnitude larger than the size of your file.

    Think of the drive working as principal of Photoshop and the RAM as a cache for main memory access.

  • Error "Unable to establish two-way communication with the device" Windows 8 with c309g

    Operating system: windows 8, 64 - bit

    computer: desktop

    Home network: network, the computer is on a wired connection, printer is on a wireless connection

    error message: "the computer is unable to establish two-way communication with the device.

    • When you install first of all my husband's new computer, we were able to install the software and connect the printer very well, and the printed test page.
    • A few days later, I installed the HP ePrint app on my iPad, found our printer and tried to print a page of a Web site. Printing failed, and the iPad app gave a message something like "the Word document may be printed." I cancelled again tried the iPad app, print work, and has not yet. I had not heard of AirPrint, so I did that on my iPad.
    • We tried to print the page of the computer instead, but the task has failed.
    • We looked at the parameters of the printer through the computer of windows 8 and found that there are two differently named c309g printer now displayed in the printer list.
    • My husband uninstalled the printer software, the computer restarted and reinstalled and then got the "the computer is unable to establish two-way communication with the device.

    any ideas on what to do next?

    My brilliant husband fixed it. Power cycling the router.

  • I have three problems___the is first I get the error messages form I mesh and cannot access my profile or friends list ' ___Microsoft online which is a whoosie of my gave me element to modify registry keys but no items exist in the regisry

    I get the error messages form I mesh and cannot access my profile or friends list '

    MIicrosoft online which is a whoosie of my gave me element to modify registry keys but no items exist in the regisry

    For iMesh, you can go here...

    http://www.iMesh.com/community.html

    I don't understand the other two problems that you encounter.  If you please would explain what they are and what, if any, error messages that you receive.  Also, what antivirus do you use, and you run Windows XP SP3?

    --
    Gina Whipp
    Microsoft MVP (access)

    Please post all responses on the forum where everyone can enjoy.

  • Receive the Error Message"this application has requested execution to terminate in an unusual way" when starting

    Original title: when I connect I get this message

    "This application has requested the execution to terminate in an unusual way."

    Hello

    Were there any changes (hardware or software) to the computer before the show?

    Put the computer to boot and check if the problem persists.

    To help resolve the error and other messages, you can start Windows Vista by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    Note: follow step 7 to reset the computer to start as usual after the boot process.

    http://support.Microsoft.com/kb/929135

    Hope this information helps.

Maybe you are looking for

  • How can I prevent files being conversion of .pdf to HTML firefox?

    When you convert a word document to PDF on my laptop, it will not save in PDF but it will convert to Firefox .html. I need this to stop as I then need to combine it with other documents on my desktop. Thank youJulie

  • My tabs keep disappearing.

    My last update was 4/21. Since then, my tabs disappear from the view when I open several pages. If I move my cursor to the top of the page, they reappear. I wonder if it was part of the update? It temporarily allows you to display a little more of th

  • Deny access to files on my laptop HP dv6

    You just buy a new laptop and data files loaded to it a seagate drive I used to back up files from my previous laptop...  Now I get the message "You currently have no permission to access this folder." such as my documents, my music, my pictures, my

  • Standard Microsoft Sql Server 2014

    We have installed the standard version of 2014 on November 2015, suddenly prove the ASSESSMENT has expired when start management studio I may have what is happening and how to solve?

  • My second monitor lost functions of the menu and the image.

    Original title: monitors identified with reverse pilots I upgraded my second monitor.  After loading the new driver for it, he was assigned to the old monitor and the new monitor is now the old driver.  Features on the old monitor do not work and I h