ProviderContext get/setClientProperty problem with authlessanonymous

Hi all,
We have a Sun One Portal 6.2 where the desktop is the same for everyone. Its just a simple channel provided by a JSPSingleContainerProvider where one jsp will handle all the navigation.
The problem we have is related to authlessanonymous user for which we have to keep some properties values. From the documentation (ProviderContext class API), we have see that for anonymous user properties should be kept using get/setClientProperty.
So in our jsp, we retrieve the JSPProvider (using JSProvider object in pageContext) and then get the ProviderCXontext from it. The context object is used to call set/getPropertyClient.
But it seems that there's a twist with the context and his methods that we dont catch or this might be a bug. Still when the jsp is executed the call to setClientProperty dont seems to execute correctly every time.
Here's a sample jsp:
<%@page import="com.sun.portal.providers.jsp.JSPProvider
,com.sun.portal.providers.context.ProviderContext
,java.util.Date
%>
<%
// Objet SunOnePortal disponible uniquement en JSP, utilis� pour les variables de session
JSPProvider provider = (JSPProvider)pageContext.getAttribute("JSPProvider");
ProviderContext providerContext = provider.getProviderContext();
// debug
out.println(new Date(System.currentTimeMillis()).toString());
String nbstring = providerContext.getClientProperty("NB");
int nb=0;
if (nbstring != null) {
nb = Integer.valueOf(nbstring).intValue();
out.println("<br/>debut nb="+nb);
// Construction du path vers le Container et la page courante
String url_container = request.getContextPath()+request.getServletPath();
String url_courant = url_container+request.getPathInfo();
%>
<html>
<body>
<a href="<%=url_container%>/homel.html"><%=url_container%>/home.html</a>
<a href="<%=url_container%>/a_page.html"><%=url_container%>/a_page.html</a>
<a href="<%=url_container%>/about_us/about.htm"><%=url_container%>/about_us/about.htm</a>
<a href="<%=url_container%>/about_us/who_we_are/who.htm"><%=url_container%>/about_us/who_we_are/who.htm</a>
<a href="<%=url_container%>/another_path/another_page.html"><%=url_container%>/another_path/another_page.html</a>
<%
// Debug
nb=0;
nbstring = providerContext.getClientProperty("NB");
if (nbstring != null) {
nb = Integer.valueOf(nbstring).intValue();
out.println("<br/>fin nb ="+nb);
int xxx = nb + 1;
providerContext.setClientProperty("NB",String.valueOf(xxx));
out.println("<br/>apres set nb="+Integer.valueOf(providerContext.getClientProperty("NB")).intValue());
%>
</body>
</html>
In this we have a "NB" property that is a number we increase everytime the jsp is executed and the value is stored/retrieved using get/setClientProperty.
So when you click on the links on this page, the jsp is executed again and that should lead to increase of NB. The page is not complete, its just a sample to illustrate our problem. The goal is to force revisiting our jsp everytime.
But if you look at the link, the value is increased:
- For links where the static page (html) is directly a child of the /portal/dt URL, the value is increased everytime except the first time you click on the link???
- For links where the html page is in subfolder (that is not really a subfolder, i know) of /portal/dt (like /portal/dt/any_path/page.html), the value is increased only the first time we click on the link.
Also if you refresh/reload the page the value is increased everytime (that is correct).
Finaly, knows that this happens with anonymous user only, if you're login in that value is increased everytime you click a link!!!
We have defined the authlessanonymous user as described in the documentation. I also tried to add the authlessState property to the provider using the 3 allowed values: server, client, none.... This doesn't seems to have any effect at all.
PLEASE PLEASE! Can anyone can test this and confirm. Just define a new desktop with a single channel with JSPSingleContainerProvider, make the content a single jsp file and copy the code above in it. Then, make this desktop the default for authlessanonymous users. Then use a browser and click the links in the generated page....
What we need is simple, store string properties for the session for all users including anonymous. Since all anonymous share the same session, we have to use set/getClientProperty to store our value in the ProviderContext. That's what we do right now, but that does'nt seems to work as you see. So is there any other solutions?
Im sure we're not the only one to allows anonymous users in. And that you have some values to store for the session. So how are you doing this?
Any help/advices is welcome! We're really in deep s... because of this problem!
Dave Castonguay
[email protected]

Thx for the quick reply,
I tried both "Restart" and "Stop + Start" but still run into the problem when trying to connect Web Matrix unfortunately. 
I can go through the trouble of deleting the site and creating it anew if worst come but I'm willing to try other ideas before that if you have any :)

Similar Messages

  • Getting error "Problem with SSL Certificate" but I'm connecting to my private server without SSL

    I wanted to create a PDF from a subtree at a website. The first problem was that Acrobat Pro (11.0.7) wouldn't spider it (probably because there was a robot.txt file there) so I had to use SiteSucker to pull the pages down to my Mac.
    Then I discovered that Acrobat Pro can't handle file:/// URLs so that was no good either
    So then I copied all the pages to a folder on my Linux server where I use a non-standard port (86) for http connection as a minor security precaution.
    When I tried to access that from Acrobat Pro, it bitched about a problem with SSL Certificate but gave me no option to do anything about it. More relevantly, all the files were accessible using http protocol, not https so there shouldn't have been any need to deal with SSL certificates at all
    I had to temporarily enable port 80 on my apache server at which point it's now pulling all the files in and hopefully converting them.
    A) We're at version 11 ---- these kinds of issues should have been fixed years ago
    B) While you're at it, fix the stupid UI issue where the download dialog disappears completely if Acrobat Pro doesn't have the focus. On a long download, I'd like to be able to see progress while working on other stuff. Acrobat Pro is not the center of the universe!

    Interesting point 2, I am working on a Mac plugin at the moment. It does not hide its dialogs when switching to a different app. I consider this a bug and will fix it so the dialog disappears. I hadn't considered the question of progress but there is a very strong reason to do this on the Mac.
    My tests seem to show that
    (a) to get a dialog to sit above PDF documents all the time, it must be on a higher "level".
    (b) if a dialog is at a higher level, this is a global setting.
    So, if the dialog is not hidden when switching all, it will typically sit on top of the other app's document windows. This would not be popular, as the end user, unless they have mountains of screen space and choose to use it that way, must either close or move the dialog when switching app, then bring the dialog back.  So, because Acrobat Pro is not the centre of the universe, it will hide dialogs (or rather, the Mac will, as it's a standard option when creating a window).

  • Why am I getting a "Problem With Previous Purchase" when I haven't purchased anything?

    Sometimes, quite randomly when I open anything on my iPad or iPhone and try to update an app or something of the like, iTunes asks me to verify my billing information. It gives me the reason "There was a problem with a previous purchase." And asks me to enter my security code on my debit card. When I do, even though I have plenty of money in my checking, it tells me I was declined and refuses to let me update anything.
    I don't understand where the previous purchase problem is coming from, seeing as I have made no recent purchases.
    This happens quite often and after several days of entering it again and again it will randomly work and everything will be back to normal. Later, at random, it will happen again and this whole process will repeat.
    Please help me understand why this keeps happening.

    How fast is your G-Drive? Safest for video work is 7200RPM. It must be connected via firewire to work reliably with video applications.
    Try changing your RT settings (RT button at top left of Timeline window) to Unlimited RT with dynamic video quality and frame rate.

  • Using Firefox 7. Can log on and run problem for a while, then get message "Not connected. Trying to re-connect" But it never succeeds in re-connecting. If I exit Firefox and re-launch, it cures the problem. Get this problem with several different PCs

    Chrome works fine. Haven't got desperate enough to try IE.
    Friend reports similar problem with her system, which is not connected to mine.

    * Try this.
    * Type in the address bar about:config.
    * Accept the warning.
    * In the page that appears, in the Filter box, type network.http.max-connections.
    * Change the value to 32 (which is probably set to 256 in your case).
    * Close the about:config page.
    * Restart the browser.

  • I'm getting some problems with mDNSResponder

    These messages keep appearing in the log:
    6/22/11 5:21:34 PM mDNSResponder[16] ERROR: mDNSPlatformWriteTCP - send Broken pipe
    6/22/11 5:21:34 PM mDNSResponder[16] ERROR: mDNSPlatformWriteTCP - send Broken pipe
    6/22/11 5:21:34 PM mDNSResponder[16] tcpConnectionCallback: error writing
    The symptoms seem to be that it apache cannot retrieve some files (this is happening mostly with css files for some reason)
    Running 10.5.8
    Apache 2.2.17
    PHP 5.2.15
    Setup:
    I have my system set up with some virtual hosts for some web sites I'm developing. In my /etc/hosts file, I have the following:
    # Host Database
    # localhost is used to configure the loopback interface
    # when the system is booting.  Do not change this entry.
    127.0.0.1    localhost miishka.local miishka transadvice.miishka.local transadvice portfolio.miishka.local portfolio inabwiki.miishka.local inabwiki inabwww.miishka.local inabwww ttwiki.miishka.local ttwiki
    255.255.255.255    broadcasthost
    ::1             localhost
    fe80::1%lo0    localhost
    # other machines
    192.168.1.1    router lynksys
    192.168.1.100    paladin.local paladin macbook lappie
    An example of one of the vhosts is:
    <VirtualHost *:80>
        ServerName ttwiki.miishka.local
        ServerAlias ttwiki
        ServerAdmin tamara@localhost
        DocumentRoot "/Users/tamara/Sites/tamaratemple.com/subdomains/wiki/httpdocs-dev"
        ErrorLog "/Users/tamara/Sites/tamaratemple.com/subdomains/wiki/logs/error_log"
        CustomLog "/Users/tamara/Sites/tamaratemple.com/subdomains/wiki/logs/access_log" combined
    </VirtualHost>
    If just browse to the web page http://twiki/, i get the contents but not the styles. Looking at the source, the style sheet declaration is:
    <link type="text/css" href="http://ttwiki/pub/skins/marinee.mine/style.css" rel="stylesheet">
    If I use curl on that same link, I can obtain the css file no problem.
    So I'm pretty stumped.

    Try here >  Can't connect to the iTunes Store
    and here >  iTunes for Windows: Network Connectivity Tests

  • How can I get round problem with itunes. I get message saying computer isnt authorised to play some tracks Ive downloaded, tells me to authorise which I do, then a message appears saying the computer is already authorised but I still cant access the track

    how can I get round the problem I have with itunes. I have bought and downloaded various tracks to my library. When I try to sync my iphone from my PC I get a message on screen saying that it is not authorised to play them and tells me to authorise the computer by clicking store, entering apple id and password then clicking authorise this computer. I do that then get a message saying that my computer is already authorised yet when I try syncing the track again the same thihng happens. Im getting nowhere!

    If only some of the songs on an album are giving you the authorisation message, that suggests those song files are damaged.
    If your country's iTunes Store allows you to redownload purchased tracks, I'd delete your current copies of the dodgy tracks and try redownloading fresh copies. For instructions, see the following document:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Otherwise, I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the items that are not playing properly. If you can't see "Report a Problem" next to the items, click the "Report a problem" button. Now click the "Report a Problem" links next to the items.

  • I am getting sync problems with Exchange Server and local outlook. Error code is 18439. Does anybody have an idea what the problem might be?

    I am using Outlook on my Imac, which is linked to the Windows Exchange Server. All off a sudden I keep receiving messages saying that the message Re: xxxx cannot be synchronized with the exchange server. When I delete the message from my local mail box, all is fine, but after a while another one pops up. The error code is 18493. Does anyone have an idea what could be going wrong???
    Thanks for your help already now!

    Hello Wolfgang,
    I get the same error, but I cannot figure it out too. I hope you or I get some responses back! I do not know why there isnt an edit feature in outlook to acknowledge the individual alarm so it does not alarm again!
    Fil

  • "get connected" problem with 6233

    ive tried bluetooth and an accepted cable
    they both connect to the phone fine and i can transfer files with theblue soleil
    i have all latest file versions
    BUT when i go through the "get connected" process so i can use my phone with PC suite it doesnt let me click next in the "authenticate phone" stage after all connections have been made and work
    i have tried for a week and nothing seems to make a difference
    any ideas?Message Edited by pauld on 28-Dec-2006
    03:22 PM

    See my message from here (and try it)
    /discussions/board/message?board.id=connectivity&m​essage.id=3431&page=1
    if that did not help, could you send PC Suite's system info?
    (You find it from PC Suite > Help > About Nokia PC Suite > System Info... ) select all, Ctrl + C and paste that you response.

  • I use FF 13, I keep getting this problem with youtube (see link)

    http://screencast.com/t/oFkj6gBzBksd
    IE doesnt have the problem, so i assume the problem is firefox's

    This may be caused by a recent Flash 11.3 update.
    See:
    *https://support.mozilla.org/kb/keep-flash-up-to-date-and-troubleshoot-problems
    *https://support.mozilla.org/kb/flash-crashes-or-does-not-load-firefox-13
    Try to disable protected mode as a test.
    *http://forums.adobe.com/thread/1018071?tstart=0
    *http://blogs.adobe.com/asset/2012/06/inside-flash-player-protected-mode-for-firefox.html

  • Design Problem with GUI sub vi

    Hello community,
    in general, I would like to separate the GUI from the data, but I get
    a problem with this design approach in LabView:
    I often have sub VIs that are supposed to control something.
    Therefore, these VIs consist of a control loop. A GUI window should
    show the regulation process (showing how the tracking error is
    hopefully approaching zero etc.). As I said, this GUI should be a
    separate VI (separate from the control loop VI). Since the GUI has to
    be updated on each sample, it is clear that the GUI VI should be
    inside the control loop, and therefore, it should be a sub VI of the
    control loop VI.
    Now, the problem is that the control loop VI itsself is a sub VI
    because the whole regulation is just a subsystem of the whole program
    (The main VI doesn't have a GUI, but first starts a (GUI) input mask
    for the same reason: separate the GUI from the rest).
    But back to the GUI VI inside the control loop. I must check the 'Show
    Front Panel When Called' option. But I can't check the 'Close
    Afterwards if Originally Closed' option since the GUI VI would appear
    and disappear in the control loop - according to the loop's sample
    rate. However, if I don't check the 'Close Afterwards if Originally
    Closed' option then the GUI VI will continue to show, even after the
    control process is finished.
    So in other words: I need the possiblity to close the GUI VI
    programatically, after the control process is finished.
    Any ideas?
    Regards
    Johannes

    Hi tmh,
    thanks for your answer
    On Tue, 11 Nov 2003 10:26:32 -0600 (CST), tmh wrote:
    >I think you're on the wrong track trying to put your 'GUI VI' inside
    >your control loop. It might be a better design to have the control and
    >GUI handled by separate loops and use an appropriate method to pass
    >data between the two, e.g. a global variable to pass the setpoint from
    >GUI to control...
    I try to avoid globals. Now, suppose I had multiple unrelated control
    loops. I had to suppose a global variable for each of these
    subsystems. I already use globals for the GPIB device IDs. I wouldn't
    like more.
    >and a queue to pass readings from control to GUI. In
    >fact, you could even split the GUI into two loops: one to read user
    >input from the front pa
    nel controls and one to display data returned
    >by the control loop.
    But if I split the GUI: How can I view them simultaneously? The user
    must see input and output simultaneously, in one window.
    >You may find it's more convenient to make the GUI
    >the top-level VI and make the control loop a subVI of that (but
    >outside the GUI loops).
    Your approach sounds interesting. Is there a sample for this
    architecture in the examples?
    Anyway, I have to point out that I have several unrelated GUI windows
    in my application. There is no notion of a main GUI in my application.
    The control loop is just one feature of my application, so it doesn't
    make sense to use the control GUI as the top-level VI. At application
    startup a user input form is displayed (it also has some sort of menu
    selection). But even this window can't be toplevel since it provides
    an Option radio button (that shows and hides controls, accordingly) a
    CONTINUE button, and a STOP button which implies that the input
    form.vi must be
    in a loop.
    The problem is that I can't send messages to windows in LabView as I
    am used to in Win32/VC++.
    Johannes

  • Problem with pictures for hierarchy trees

    Hello
    I get a problem with tiles involving trees :
    For example in the "pascategoryselect" tile, method "InitializeTree" :
            .LabelEdit = 1
            .Images.Add 1, "", LoadPicture(ResourcePath + "FolderClosed.gif")
            .Images.Add 2, "", LoadPicture(ResourcePath + "FolderOpen.gif")
            .Images.Add 3, "", LoadPicture(ResourcePath + "Leaf.gif")
            .Images.Add 4, "", LoadPicture(ResourcePath + "Iba_comp_prod.gif")
            .Nodes.Clear
    The '.Image.Add ..." lines crash, the Err.Description statement is "Automation Error, Catastrophic failure" (Err.Number = -2147418113)
    I have looked for the RessourcePath and file requested, all exist.
    For the moment here is my "workaround"
            .LabelEdit = 1
    on error resume next
            .Images.Add 1, "", LoadPicture(ResourcePath + "FolderClosed.gif")
            .Images.Add 2, "", LoadPicture(ResourcePath + "FolderOpen.gif")
            .Images.Add 3, "", LoadPicture(ResourcePath + "Leaf.gif")
            .Images.Add 4, "", LoadPicture(ResourcePath + "Iba_comp_prod.gif")
    on error goto 0
            .Nodes.Clear
    Have anyone ever had this problem ? How can I solve it ?
    Some other trees (don't remember which though) load without problem and the FolderClosedand FolderOpenimages are displayed....
    Thanks and Regards,
    François

    Thanks Markus, you're right I forgot to mention it : I am using version 4 with SP8.
    I will have to try again to confirm this but I think it also happens in the generated application (basically, the erro is caught by the calling method, and the tile appear empty)
    Regards,
    François

  • JsCookMenu - Problem with display of Menu (Oracle ADF)

    I am using Oracle ADF with JSF components. The jsCookMenu displays the menu along with "x" representing images on the right and left side of the menu label. Please suggest me how to remove this icon from the menu display. Please find the code below.
    <t:jscookMenu layout="hbr" theme="ThemeOffice" styleLocation="/css/jscookmenu" >
    <t:navigationMenuItem id="nav_1" itemLabel=" Menu1 " >
    <t:navigationMenuItem id="nav_1_1" itemLabel="Menu1.1" > </t:navigationMenuItem>
    </t:navigationMenuItem>
    </t:jscookMenu>
    I am getting this problem with IE when the application starts. When I do ctrl+refresh, this issue doesnot occur. Also, with Firefox I am not getting any problem. I need to know how to fix this issue with IE when the application starts. Any suggestions on this would be of great help.

    User, please always tell us your jdev version.
    The interesting part is what you did not tell us.
    Kindly let me know as to why Iam not to replicate the issue in my earlier WLS.Please find my code means hte code has once run OK and now after you did some changes doesn't any longer. Querstion: what did you change, not oly to the code but to the environment.
    Timo

  • Problem with sound in games requiring quicktime

    I recently purchased CSI 1. I installed the game and the latest version of quicktime player. As soon as the game starts and the first character starts talking the game pauses as if loading and then plays for a second and pauses again for a few seconds. This intermittent sound problem makes it impossible to play the game as the freezing stops everything from functioning. I tried another game that requires quicktime to be installed and that game is pausing the same. Has anyone else had this problem? I have all the latest drivers installed for Vista. Any help would be much appreciated.

    Do you get any problems with sound in other (older) games? You didn't mention which drivers in particular you updated, but make sure the graphics card's ones are included.
    With regards to Half Life 2, check out this page on the Steam site:
    http://steampowered.custhelp.com/cgi...wYWdlPTE*&p_li=
    If that page doesn't open correctly for you, just go to http://www.steampowered.com , then Support, and select Half Life 2 in the product list. It should be one of the first cases listed.
    Cat

  • Problem with sound in games

    Hi all welcome as you can see I'm new to your forum. So I have a problem as it concerns the sound in games.
    Namely, I bought a Creative Headset HS-800 Fatality everything good in listening to music, etc.
    But when I go to the game, I turned the sound (someone shoots to the left I hear him right, and vice versa.)
    Yes, in all games but mostly it is felt such a battlefiel or call of duty.
    At first I thought that this is the fault of my sound card but it's not because I was in a mate and in him was the same ... This recently replaced the computer and the same thing.
    I came across the net to reverse the channels, but unfortunately I do not know how to set it up.
    Here, the data on my computer:
    Sound Card Speakers (Realtek High Definitie
    Sound Card Realtek Digital Output (Realtek
    Sound Card Realtek Digital Output (RCA) (Re
    Operating system: Windows 7 64 bit
    I would add that in tests Realtek win7 and everything is fine.
    Regards and please help as soon as possible.

    Do you get any problems with sound in other (older) games? You didn't mention which drivers in particular you updated, but make sure the graphics card's ones are included.
    With regards to Half Life 2, check out this page on the Steam site:
    http://steampowered.custhelp.com/cgi...wYWdlPTE*&p_li=
    If that page doesn't open correctly for you, just go to http://www.steampowered.com , then Support, and select Half Life 2 in the product list. It should be one of the first cases listed.
    Cat

  • Problem with multiple Toplink/JPA apps in same server

    Anyone have experence of running serveral Toplink/ EJB-3 Web apps in the same server (OC4J, alas)?
    We seem to get a problem with the second app failing to initialise toplink, with an entity not found message. Each app runs OK on it's own.

    Yes, they access the same datasource and most of the tables overlap.
    We're thinking it might help to have common entity classes and put them in a shared library, but I don't know if this is relevant (setting up shared libraries complicates testing and tends to snowball, I reckon we need about 15 jars all told).
    I''ve had some funnies on OC4J before which I think may be to do with it's use of ClassLoaders, for example I initially put persistence.xml in the libary jar with the data model, but for some reason I get the entity not found error that way. It only seems to work if it's in the classes folder.
    For the moment we're getting arround the problem with multiple OC4J instances in the server.

Maybe you are looking for

  • I lost my only navigation tool bar, so I can only open one window at a time, and can't use google. Help.

    I'm not sure what I did, but I right clicked on my google tool bar (which I use since I can't find the Firefox navigation toolbar) and I somehow disabled it. Now I can only use one window at a time, and if I go to a website, I can't go to another wit

  • Printing a multipage document (7 pg) only prints 1 page windows 7

    Printing a multipage document (7 pg) only prints 1 page windows 7. The original document shows 7 pages but when going to print preview only show pg 1 of 1

  • Custom Report For Vvendor Evaluation

    Hai All, My client requires custom report to show the vendor evaluation i.e., it has to show the working how it has arrived at the final score, to be clear systems works automatically and displays the final score based on certain main and sub criteri

  • Weird Terminal problem with AIX

    Hi, I have kind of an odd problem with the Terminal.app that I hope someone can assist me in figuring out. I'm connecting to an AIX 5.3 server and the top portion of the window is always "cut off". It's there, it's just one screen up in the buffer an

  • Shared Photo Albums

    I have a shared photo album but fear the source photo album may be deleted as I have a broken phone. Does anyone know if my shared album will remain in tact without it's source?