Problem with authorization scheme

In my aplication homepage should be public, so that everyone can see.
Now when logging in I created patterns of custom authentication which checks if the connection user name and password are stored in a table in the database. Managed to do. Now, in the same table I column containing user Type because I have 3 types of users.

In the authorization for the first program called BUYER scheme I have this as a PL/SQL function returning a Boolean:

declare
type_of_user number: = 0;
Start
Select type_of_user from users where username = user_type: APP_USER.
If type_of_user = "BUYER" then
Returns true;
otherwise return false;
end if;
end;


Now when I go to the development of another page this page 1 and run it, it connect and works perfectly, but when I run the Application it does not display the login page, go to page 1 and hangs by saying:

ORA-01403: no data found


ERR-1082 error in authorisation system code execution.

Back by demand.

I don't know how to fix this, so any help would be appreciated.

Kind regards
Raphaël

Raphael:

You can make the error go away if you manage the "non-donnees-not found" exception However, it would be useful to know why the code is executed at all! Maybe you could run page 1 in "debug mode" and who might reveal what is happening.

declare
type_of_user number :=0;
begin
select user_type into type_of_user from users where username= :APP_USER;
if type_of_user = 'BUYER' then
return true;
else return false;
end if;
exception when others then
return false;
end;

CITY

Tags: Database

Similar Questions

  • Problem with complex schema does not

    Hello

    I created the fairly complicated pattern: http://i.imgur.com/Wt2Bo7w.png

    And when I'm playing with him (some pathfinder to the cutting edge etc.) Illustrator is "not responding" problem and after a few minutes it comes back to life (with process finished). It's weird because my machine is pretty good and Illustrator, while that "does not" use only 30% of my CPU and about 6 GB of ram (I've got 16 GB). Is there a way to make it faster? What would you recommend?

    Try using fill patterns.

    Or try to use overlays raster graphics

  • Problem with Simulator and MDS Digest authorization

    I work for a BlackBerry App.

    It can connect to a Web Service and ask for a response with Digest authentication.

    I did a class to connect to the Web Service. It can work.

    Now, I have a problem.

    When the Web service returns the Digest Authorizationchallenge

    I find that the response header is not a permit to Digest but a simulator base permission and MDS.

    On my PC, I got the response packet, it contains the Digest Authorization header.

    But now it has become fundamental in the Simulator.

    What is the problem with the MDS? It changed the Authorization header?

    It is inconceivable.

    Who knows what happened?

    Thank you! Martin

    I found some ideas in the following video.

    http://www.BlackBerry.com/DevMediaLibrary/view.do?name=NetworkingTransports

    Addition of property(;deviceside=true) to connection URL will be effective.

  • How to communicate effectively with Adobe, service customer-problem with credit card authorization

    Maybe someone of you had such a problem with purchose - I bought the plan in creative cloud, but there was no e-mail coming after the purchose and what I see in my bank account information - my payment is waiting for authorization (already too long). In my profile, it seems that I have not buy aything.

    Contact customer support. Make sure that you are connected with the Adobe ID that you used to purchase the plan. I'm also moving your post on the creative forum Cloud.

    Contact the customer service

  • unexpected problem with the permission of type plsql function scheme

    Hello
    I created a schema authorization function plsql type returning a Boolean. Authorization scheme is for pages only. p2_user_priviledge is a textbox control on the home page that retrieves privilege (list of the pagenos) to the user of the database connection. Homepage has no required permissions. SCHEMA AUTHORIZATION always returns false. I am not able to trace problem in my code. same code works fine for failure to the 'c' of return area.

    -CODE OF AUTHORIZATION SCHEME-
    declare
    PageID varchar2 (10);
    VARCHAR2 (300) of privilege;
    c number (3);
    Start
    PageID: = ": P" | to_char(:app_page_id) |': '; -NUMPAGE stored in format *: P2: *
    privilege: = trim(:p2_user_priviledge); ++-List contain privileges like: P2:P13:P67:P23: etc +++ select instr (privilege, pageid) in c to double;
    If c > 0 then
    Returns true;
    on the other
    Returns false;
    end if;
    end;

    ------------------------------------------------------------------------------------------------------------------------------------------

    Another problem is again related to the authorization scheme.
    I created an application and schema of an authorization (auth_aug), which worked fine. Then, after a few days, I added more than 10 pages for the same application, but now autho_aug always returned false for new pages. Then I copied the code from the "autho_aug" to the new "autho_sept" regime, and it worked for new pages. I do not understand if code is the same for both system, why had to use two different schemas.
    Now, I've added a few pages more enforcement and problem mentioned earlier.

    any solution to the two problems...

    Hello

    You can create a component of demand through the shared components in your application, elements of Application option. All you do here is to create a new item and give it a name.

    Once this is done, the element can be used as if it were a page element. You can use an Application (also available through shared components) calculation to set the value of this element in the list of page numbers and the value can then be retrieved in a SQL statement or PL/SQL.

    You cannot use the popup window Session to change elements from page or application - you will need to create a calculation or process to do.

    Andy

  • Cannot authenticate because the authorization scheme limits the login page (101)

    Hello.

    I have a problem with authentication. I have an application with authentication and authorization schemas created from scratch. There is an option in the security attributes of the application that lets you apply a pattern of authorization for the entire application. I also have a login page (101) that I use for authentication purposes that I don't get, since approval is the application level. Even if the login page is established a system of authorisation that always succeeds APEX makes no difference. How do I approach this issue so that authorization for the entire application is always possible with authentication?

    Thank you.

    I'm not sure that it would necessarily change in the future because so many things in one schema authorization should be defined by the developer that it's probably wise for Oracle make Apex still do not know the application of the law on the login page. Although I can't think of a realistic example for now, maybe there could be reasons were based on external criteria that even the login page should not be available to a small group of people? I wouldn't exclude it as a possibility.

    That's why when you implement a system of authorisation, it is probably best that Oracle makes no assumptions about what you want to do and you just explicitly it you include in the plan.

    By dig a little and in defensive coding and style, you might not even want to consult directly the "101" page. May be wise to do a ' select PAGE_FUNCTION in the APEX_APPLICATION_PAGES where PAGE_ID =: APP_PAGE_ID and APPLICATION_ID =: APP_ID. If PAGE_FUNCTION comes back as "Login", then this is your login page and return TRUE. Otherwise, continue with some other logical returns boolean you have to leave. This way you stay clear page to hardcode and even independent of both page alias value (because they are not mandatory).

  • I can't see a message from my Union because of problems with the address changed for pop-upwindows and some other issues

    Hello
    I am from Sweden and I have problems with a Web site that has my Union. I could see messages from them before, but they changed their address and on the site, they say people that they must put the new address on the approved list of the pop-up windows. I did but it still does not. Maybe I did wrong, I don't know, but it's annoying as hell that I can't see the messages they send.

    I really need help with that.

    Best regards
    Lena

    You can control and manage permissions for all areas on the Subject: authorizations page.

    You can delete all data stored in Firefox with a specific area through "Forget this Site" from the context menu of the history entry (see the history or the history sidebar) or via the subject: permissions page.

    Using "Forget this Site" will delete all data stored in Firefox in this area as bookmarks, cookies, words of past, cache, history, and exceptions, so be careful and if you have a password or other data from this area you don't want to lose so take note of these passwords and bookmarks.
    You can't recover from which "forget" unless you have a backup of the affected files.

    It has no lasting effect, so if come back you on such a 'forgotten' site, then the data of this Web site will be saved once more.

  • Errors/problems with my brand-new Equium A200 15I (including video material)

    Hello

    I am treated to a new computer laptop last Saturday and only had for about 3 and a half days so far but I noticed a few things that I wasn't sure were errors/defects or if it was simply because its news, like the fact that sometimes I type with the keyboard and some letters do not appear on the screen , I think it's probably more to do with me not type or support pretty strongly on the keys rather than anything else, his is not so much now... the touchpad becomes a bit sticky too and he thinks I want to scroll up and down when I move the cursor does not scroll sometimes but I managed to make it work I think that most laptops have glitches like that and no doubt I could help fix it in calibrating the pad (?) touch I did have time to consider the issue and yet if... There are a few other things well and more disturbing than this morning I got an error of video material, so now im a little just worried or suspicious that it may be a real fault with him and would like to know if it is the case, if its something I can fix eventually (im no expert especially with the material, but I can always try to download and installation of updates / corrections and this kind of thing so she could solve the problems).

    The main thing that concerns me more, is that this morning a message suddenly come to the screen, warning me that there was an error in video material, last night, I clicked on a button, I think for load more information. and I took this perforated cap of it: -.

    http://img528.imageshack.us/img528/724/errorscreencapcw1.jpg

    I thought it may be useful to view the actual complete message rather try everything and paste the info., ok to be honest I've not noticed it allow you to copy to the Clipboard, but good (oops lol).

    I know there is a topic on a similar error, but I didn't want end-to-end on this discussion because I assume that it should be for this mistake of people who will be discussed, mine may be slightly different, I don't know... I followed the instructions given in this discussion and I checked the Device Manager and no material defects are appearing, btw it is said in the Manager of peripheral devices, graphics cards, it's a Mobile Intel 945 GM Express Chipset Family, I'm sure that all laptops A200 15I have the same card, but I thought I would just make it clear that. Incase that wasn't the right thing to check I also checked under "Audio, video and game controllers" (as the error says it was a video hardware error) where it lists the only as being "Realtek High Definition" Audio and I checked the properties, both under properties it says that the device works properly, without signs of defects...

    The thing is, I had read somewhere online that there is a problem with the graphics or video cards. I had read that they can be glitchy and sometimes break after a year. I also asked my father about it and we looked at it as a graphics card Intel that came with this laptop, which it is, and we counted that the Intel chips is as reliable as any other brand really... so I don't think there should be a problem, well that is there I have until September next for repair prior to the expiration of the warranty!

    What surprises or sort of worry, however, is that the error message was only introduced to me this morning. It dates from error, as having occurred at 19:53. I use it at night last, and infact, I went to take a shower and I put the laptop down before you go take a shower at around 19:35, I assumed that its ok just close the lid and it would automatically go into hibernate mode or something similar (?) im wondering if that had something to do with it as I 19:53 would have been about when I came back and lifted the lid/screen again to use the laptop again... I can only assume, given the time, he cites, is what caused the failure?

    It gives me the option to "update driver software" and "hardware change analysis" in the Device Manager, can I run both, or one of those who maybe? is this a common problem? should I worry at all etc...

    Any help is very appreciated, if more info. Please let me know and ill clarify what I can. Also in terms of whats installed, I have quite a few programs, for graphics, I have an old version of Paint Shop Pro, which I installed it yesterday morning, it seems to install fine, it is Jasc Paint Shop Pro 7, I have also some programs of converter (for files vid, 3GP and other things), scan antivirus AVG, Spybot Search & Destory DBPowerAmp, FTP Commander, Quicktime and Real Player, pretty basic stuff like that, nothing, just my old photos and vid files I transferred from my old laptop XP to it, in my documents... I don't have all the Senior Games motorized or complicated or anything else like that installed. Also at that time, indicates the video hardware error message, everything that was in progress when I got the cover down (or before putting the lid down) would have been Windows Live Messenger (although I'm pretty sure that I registered before putting the lid down) and an IE window , im pretty sure that's it, I was not working on anything just check the ' net...

    There are other things I noticed as I thought that maybe I should mention (?), something I've noticed he's doing is the screen goes blank and then back very quickly, a lot. I already asked about it a day or so there at that time, I realized he was only doing that before loading the "Windows needs your permission to continue" window/message, who apparently its supposed to do and something to with the computer to switch to display the normal desktop to the secure desktop, I kind of understand lol.
    So I think that's not something to worry about but I noticed during the lastday, that the screen seems to do it more, goes blank then back again, even if the authorization message does not appear.

    For example, this morning, when I first put on and am went to check out my home page, I clicked on a link at the bottom of the page or anywhere where to load another page into the site and display deleted for a while before coming back a second later with the requested page. Is this normal too? or an associated Vista glitch, or is it possible that there may be a small problem with the monitor? Incase of im guessing it can be more than one thing in Vista, but I thought I would ask here, I decided to not pay for any extra insurance/warranty extension because I am very careful with my items and take care of them and so I'm being careful to try to spot defects early, while they may be repairable under the basic warranty and what-not...

    Another thing I noticed is that start with, when I pressed on and kept the 'FN' key, a variety of icons, black and white appeared on the screen that told me what F button (s) to use to make certain adjustments, there still is that when I try right now, but at other times, it does not show icons , no matter how long I hold down the "fn". That didn't matter because I can tell by the symbols on the keyboard press what buttons but its just inconsistent, is there a reason why sometimes the row of icons on the screen will appear when I press and hold the "FN" key and other times it doesn't show at all?

    Also sometimes if I move the slider to the right to the top of the screen, these icons loading as they always seem to be located at the top of the screen, but sometimes it's a problem, if im trying to click on something else and one of these icons rises instead... I'm sure that you can disable this option in sort , but I'd be worried that the icons do not always show when I press and hold the right Button (?) just try to be careful!

    I think that this post is long enough and I don't see what else I could possibly add to help, so I'll leave this here. I don't want to sound too paranoid, but thought it is better to talk about this kind of things incase someone recognizes these defects/errors and can recommend a way fast to resolve potential problems before they can develop into what whether it is worse... Thank you very much in advance for any help on any of these issues!

    (mods let me know if im wrong to include so many things in a subject, I fact kind of this quickly and I apologize if im breaking any rules, I don't want to, if possible please break this into a few different themes or I can do it, although ill be at work frm 2-21:00 today so maybe not back and able to check here until Thursday morning (October 4))

    Hey Isla

    Your message is really very, very long. I think it's too long to read twice ;) s

    . Regarding your questions on this laptop well. Looks like you have installed many applications and 3 third party programs. In such cases, it s not easy to say if these problems are software or hardware related. But I guess that its software.

    I checked your screenshot pic, but I've never seen this error message. But it looks like something wrong with the graphics driver. The message says something, live events of kernel
    The core services are required by other parts of the operating system as for example graphics card driver.

    In this case I recommend updating the graphics driver. According to you, this message an Intel GPU. So you can see the Intel page for the driver for the graphics chip compatible.

    With regard to the key issue of the FN;
    The Toshiba FlashCard utility controls the key features of the FN. I read in this forum that this application does not smoothly run and in some cases it causes some issues. The new update should solve the problems. You should check the Toshiba driver page. The utility of FlashCard is a part of the Toshiba value added package.

    So finally a tip more:
    You should always check the updates of Vista on the Microsoft page. This operating system is not perfect and Microsoft releases hotfixes and patches very often

    I hope that it would help a little.

    If necessary just ask for more information :)

    Concerning

  • OfficeJet Pro 8620: problem with ink

    Hello. I have nothing else to the HP printers used in my life using the computer - more than 25 years! I bought a new Officejet Pro 8620 2 years. I also bought cartridges refilled at the same time as my father died and I would need to use the printer a lot. Unfortunately, I bought ink another 3 times for this printer, when printing somewhere near 100 pages ALTOGETHER since the purchase. Problem is the printer keeps saying cartridge is not HP and damaged - should replace the HP cartridges. I've NEVER had a problem before using reloaded cartridges. Why change now? Am very close to get back to using my old computer Win XP and more old HP all-in-one printer. I have 3, and none of them has NEVER given any problems.

    Looking for help on this. Have always had confidence in HP before - don't want to lose that now. Last cartridges were new HP, but still having the same problems. Suppliers of ink have been highly evaluated with excellent reviews. Warranty expired a year ago. Haven't had extended warranty because, as I said, never had a problem with HP printers to more than 25 years.

    In addition, cellular internet very limited - and not (!) reliable. 50 miles of the city.

    Yes, I learned a LOT over the weekend. First of all, I ordered a few inkplicity.com ink. Am curious about their ink, with their 1 year warranty. Shortly after ordering, I contacted Fuzoo, who then asked me to photograph both sides of the chip. I had no idea of the chip was removable. And actually, I see on the YoYoInk cartridges that the chip is glued in place. Then, I saw a few chips ink auto reset for sale online. And then began to find a lot of links and messages and articles on the chips of HP and the problems associated with them. Like my old printers were about 2000 or so, I had never met the problems associated with the current chips.

    Now, Fuzoo has graciously agreed to replace not only the Magenta faulty cartridge (which has their 'old' piece), but will send a full order before, which was black (2) and a set of color inks. Can't get much better than this! So it would seem that I'm no longer need an explanation of why this happens - it's all about HP and their need to force their customers (who FREELY CHOOSE to buy their printers) in the purchase of HP ONLY cartridges.

    It is a free country that is stuffed with capitalism. You'd be hard-pressed to get into any grocery store and NO search of generic items just alongside their counterparts in brand and usually for less money. You have car trouble? Generic (non - OEM) parts are available, as well as a lot of rooms refurbished. HP should remember their place in the grand scheme of things, or they will go the way of many other electronics companies. Trying to force customers to pay more for ink is bad. ... So this would increase the cost of the printers in the first place? Yes, probably. I was always ready to buy quality products when I could afford to, and HP printers had always been reliable but also easy to use. With this printer, I swore to the dang thing a lot more that I used it.

    Please, ch, make the message and ease up trying to railroad customers. Even us loyal customers for a long time "' will leave! Don't forget, we are customers of HP by "choice"!

    Problem is now solved. Thank you all for your comments!

  • Problem with window painted and scrollbars when editing (LabVIEW 8.0.1)

    I'm under LabVIEW 8.0.1 in Windows XP SP3.  For my main VI, I came across a strange problem about 5 months ago.  The front window - both in edit mode and run mode - arrested repaint itself on the right side which is no longer visible when you scroll from top to bottom, but also visible overlapping Windows.  Coinciding with the repaint problem, both bars scroll search disabled grey arrows and no boxes in the bars that you can click and drag to scroll the window.  The scroll bars work still partially if you pass the mouse over it and roll the mouse wheel but does not work by clicking and dragging.

    The façade has a lot of controls and indicators, including containers of tab control and is greater in the horizontal directions and vertical so the two scroll bars must be active.  But I deleted everything in the Panel before and everything in the schema and the problem persists.  If the problem is not directly related to a control/led display.

    I saved the simple VI to this problem (using a line of large text and a high box rounded to test), and then created a new VI and copied the two elements at the new VI.  This new VI didn't paint it and the problem of the scroll bar.  The two screws are slightly different in the memory usage and the revision number (bad is review 1785 and the good is revision 3), but otherwise the two screws are identical.  I have attached two screws at this announcement.  When you first open the bad VI, you will see the scroll bars disabled while the good VI has active scroll bars.  To replicate the repaint problem, scroll the window up and down with your mouse wheel.  If it's good when you first open the VI, click on another window, then click on the window of VI and try again the mouse wheel.  This by clicking sur-loin-and-return always causes the problem of repaint for me.  I tried the screw on two different computers, both running Windows XP SP3 and LabVIEW 8.0.1 with identical results.

    Here's what I discovered simple troubleshooting with the screws:

    always off scroll bars

    * repaint the problem in the main window for larger then 680 pixels of window widths

    * repaint the problem in the menu bar of the main window for widths of more than 646 pixels

    * entire window becomes disabled than 1348 pixels window width

    * can paint window minimize and restore, but only repaints only once

    * scrollbar boxes sometimes flicker in the display, but then disappear

    * Scroll left and right hovering mouse over the bar and horizontal scroll by using the mouse wheel

    I found something similar on this forum (thread: problem with refresh of façade)-it could be linked to the CAR on the Panel being offset internally.  I don't have access to LabVIEW 8.5 or later and do not plan to upgrade - I have not tried the trial version, as this user has done.  I could try to copy and paste my set of the block for a new VI diagram but the VI is so important I'm afraid something would break, plus I don't want to do it again in a few months.  The problem seemed to occur after a certain number of stops (or revision number).  I save copies of backup often and when the problem first happened, I was able to go to a previous version, make the missing changes and save it without any problem, but this only delayed the problem and he came later.  It is therefore perhaps the revision number.  It seems not related to a change or a particular addition in the front panel and the graph.

    The attached picture shows the repaint problems and scroll bar in bad VI.

    This raises a question I have - if this problem is a bug has been fixed in 8.5 and later, is it possible to apply bug fixes for older versions?  Or what I need to pay for an update fix these bugs?

    Seems that something got corrupted with this VI. Things to copy on a cool VI and things should be OK.

    See also this recent report of a similar problem.

  • Problem with diagram State Toolkit 1.0 - LV 8.2 upgrade to 2014

    I'm in transition a large amount of code from Labview 8.2 to 2014, and I'm having a problem with state diagrams have been added using the state diagram Toolkit V1.0.

    The figure below shows the question, Labview knows the loop and its components are associated with a state diagram, but it option to change the schema, "change the state diagram," is not available.  In Labview 8.2, which I am currently running on older machines, I would simply select "Change the state diagram" and another window of each State and arrows between States appears, allowing the mounting of the diagram.

    I think I have to install the state diagram Toolkit V1.0 software, but it is no longer available on the Web site of NOR.  There are new States transitions module I installed, but it is significantly different from the old Toolbox and does not support.  Any recommendations?

    Thank you very much
    Phil

    Good news:

    (1) SDE still works with SP1 LV2014.

    (2) I have the installer and I'm ready to send it to you. Please send me a private message with your email address.

    Be sure to support this idea.

  • Problem with the Acer, c/o Windows 7 laptop installed with the loading games

    I'm having a problem with Windows 7 which is preinstalled on a laptop Acer Aspire. Unless the laptop is on battery to 100% or pluged, games does not load upward. Because it is preinstalled serial numbers are not match so I can't get help from M/S.  Acer says it's a software problem.  Any suggestions?

    Hello

    a. What games you try to play?
    b. do you have this problem with all games or specific games?
    c. Since when are you facing this problem?

    You can also change the power on your computer and check if it helps.

    http://Windows.Microsoft.com/en-us/Windows7/change-create-or-delete-a-power-plan-scheme

    Keep the battery power:

    http://Windows.Microsoft.com/en-us/Windows7/conserving-battery-power

    You can also try to update the BIOS, for this you need to contact the manufacturer of the BIOS.
    Note: modification (CMOS) BIOS/complementary metal oxide semiconductor settings can cause serious problems that may prevent your computer
    to start properly. Microsoft cannot guarantee that problems resulting from the configuration of the BIOS/CMOS settings can be solved. Changes of
    the settings are at your own risk.

    Kind regards
    Amal-Microsoft Support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Problems with Connector.open

    I'm having a problem with the re-login to a HttpsConnection once a failure has occurred. I send a message to a php site that works 100% OK. However, if I drop the receipt when sending at the reception is retrieved Connector.open no reconnect not (even after a long wait). and gives a "java.io.InterruptedIOException: connection Local has expired" exception. The issue is not corrected until the phone is rebooted.

    I use MDS to transport and endpoint certificate has a valid certificate (does not Self-signed). Before I drop the front desk, a message is sent correctly and using the console creates the following log entries:

    [0,0] * start sending:

    [0,0] SSL :-> CH

    [0,0] SSL:<>

    [0,0] SSL:<>

    [0,0] SSL:<>

    [0,0] SSL:<>

    [0,0] SSL :-> CKE

    [0,0] SSL :-> CCS

    [0,0] TLS :-> F

    [0,0] TLS:<>

    [0,0] VMISVt = 0, h = 1a7b, id = d15a33128dfbb5d9

    [0,0] VM:LNTDa = validation, t = 1, p = D8Mobile

    [0,0] * open Stream:

    [0,0] * sending data:

    [0,0] * server response: 200

    [0,0] * Flushing bos

    [0,0] * input stream of Flushing

    [0,0] * Flushing DOUT

    [0,0] * Flushing HC

    [0,0] TLS:<-Alert -="" level="1" description="">

    [0,0] * emptied all

    Once the reception has been abandoned and valued, the connection begins to open the SSL session and shows the following:

    [0,0] * start sending:

    [0,0] SSL :-> CH

    He gets Nevers to: SSL [0,0]:<>

    After the time-out period, it then returns the exception

    IO exception: java.io.InterruptedIOException: Local connection timed out after ~ 15000

    [0,0] * Flushing bos

    [0,0] * emptied all

    Of course the connection is instantiated is no longer so I can't even try his end on the connector at this stage. I also see the following in the MDS newspapers - although I'm not sure its related:

    <2012-01-18 10:42:03.921="" gmt="">:[528]:::

    What follows is a version of my code. All this code runs since a thread to work constantly in the loop.

    HttpsConnection hc =null;

    InputStream is =null;

    Dout OutputStream =null;

    ByteArrayOutputStream Bos =newByteArrayOutputStream();

    byte [] res = null;

    VR;

    {

    System.

    HC = (HttpsConnection) Connector.open (url + ";" ConnectionTimeout = 15000; deviceside = false');

    "Credentials of string = this._username +": "+this._password;"

    byte [] encodedAuthorization = Base64OutputStream.encode (credentials.getBytes (), 0, credentials.length (),false,false);

    () hc.setRequestProperty

    "Authorization", "basic" +newString (encodedAuthorization));

    () hc.setRequestProperty

    'Content-Type', ' multipart/form-data; Boundary = "+ getBoundaryString());

    dout = hc.openOutputStream ();

    dout. Write (postBytes);

    dout. Flush();

    this._responseCode = hc.getResponseCode ();

    dout. Close();

    is = hc.openInputStream ();

    int ch;

    while ((ch = is.read (())! = - 1).

    {

    Bos.Write (ch);

    }

    RES = bos.toByteArray ();

    }

    catch (IOException ioe) {

    System.out.println ("* IO Exception:" + ioe.toString ());

    this._responseCode = 0;

    RES = null;

    }

    catch (Exception e)

    {

    System.out.println ("* send the Message of the Exception:" + try ());

    this._responseCode = 0;

    RES = null;

    }

    Finally

    {

    VR;

    {

    if (bos! = null) {

    Bos.Close ();

    }

    if (is! = null) {

    is. Close();

    }

    if (dout! = null) {

    dout. Close();

    }

    if (hc! = null) {

    HC. Close();

    }

    }

    catch (Exception e2)

    {

    System.out.println ("* Message send Exception 2:" + e2.toString ());

    }

    }

    of return ;

    }

    I tried on 8700,8900 and 9700 device simulators. I am running JRE 5.0.0 and MDS v4.1.4

    Any help or suggestions will be appreciate - I spent nearly a week debugging it and its slowly driving me crazy!

    Thank you

    Andy

    Try to use the factory connections if you are targettin devices in 5.0 or above, it might solve the prob.

  • Problem with Cisco ACS and different areas

    Hello

    We are conducting currently a problem with Cisco ACS that we put in place, and I'll try to describe:

    We have ACS related directory AD areas, where we have 2 domains and appropriate group mappings.

    Then we have our Cisco switches with the following configuration,

    AAA new-model

    AAA-authentication failure message ^ CCCC

    Failled to authenticate!

    Please IT networks Contact Group for more information.

    ^ C

    AAA authentication login default group Ganymede + local

    AAA authorization exec default group Ganymede + local

    AAA authorization network default group Ganymede + local

    AAA accounting exec default start-stop Ganymede group.

    orders accounting AAA 15 by default start-stop Ganymede group.

    !

    AAA - the id of the joint session

    But the problem is that with the users in a domain, we can authenticate, but not the other. Basically, the question is that when we check on the past of authentication, two authentications are passage and the display of 'Authentic OK', but on the side of the switch, there is a power failure.

    There may be something wrong with the ACS?

    Thank you

    Jorge

    Try increasing the timeout on IOS device using radius-server timeout 10.

    Do we not have journaling enabled on the ACS server remotely?

    -Philou

  • Problems with the downloading/uninstalling programs

    I downloaded several programs, such as Skype, which are right at the point of installation, and it says "fatal error" and will not be installed.  When I try to uninstall these programs, I then get a message that says... I do not have permission to access / and "see system administrator.  I am the system administrator, logged as such, and there is no other users on my laptop.  I have Windows 7.  Help!  Any suggestions?

    Hi Julie,

    This problem normally occurs when the Setup program is corrupted. It can also occur if the authorization is not properly defined or corrupt. We will analyze and identify the cause of the problem.

    Method 1:

    Run the Fixit described in the article. You can check if you can install or uninstall the program by using the Fixit.

    Solve problems with programs that cannot be installed or uninstalled

    http://support.Microsoft.com/mats/program_install_and_uninstall/

    If the problem persists, you can perform the following method.

    Method 2:

    Verify that the Windows Installer service is set to Automatic, to do this, follow these steps:

    a. Click Start, type services.msc in the search box and press ENTER.

    If you are prompted for an administrator password or for confirmation, type the password, or click on continue.

    b. in the list of Services , double-click Windows Installer.

    c. in the Properties Windows Installer dialog box, click Automatic in the Startup type list.

    d. Click Start, click applyand then click OK.

    e. start the installation of the software .

    Hope this information helps. Response with status so that we can help you.

Maybe you are looking for