Public Caching Problem with Login Token

Hi All,
I am trying to publicly cache a Portlet on a community (at community level) when using a login token. From my initial testing it looks like any Portlet which has a login token passed (through the webservice) can only exhibit PRIVATE caching and is cached on a per user basis not a per community basis.Can you please advise if it is possible (and if so how) to cache at a public level when using a login token.A speedy response is appreciated as I have a Tuesday deadline to meet (that's right tomorrow)

And here is the code for the database connection
import java.sql.*;
import java.util.*;
public class TryConnect_10g
        public static void main(String abc[])
    String cs = "jdbc:oracle:thin:@255.255.255.255:1234:a000studs";
//    String cs = "jdbc:oracle:thin:@255.255.255.255:1234:a000studs";
         String user = "123456";
         String pass = "123456";
         try
               Class.forName("oracle.jdbc.driver.OracleDriver");
               //Connection conn = DriverManager.getConnection("jdbc:odbc:myOracle");
               Connection conn = DriverManager.getConnection(cs,user,pass);
               Statement stmt = conn.createStatement();
               String query = "SELECT * FROM members";
               ResultSet rs = stmt.executeQuery(query);
             // ResultSet rs = stmt.executeQuery("SELECT * FROM members WHERE member_id = 'M0001'");
               while(rs.next())
                     String s = rs.getString("member_id");
                     System.out.println("\n Member ID. : " + s);
               System.out.println("\nOracle10g at 255.255.255.255  is working!");
          catch(SQLException e)
               System.out.println("\n\nException Occured " +
                         "(Incorrect IP address, Server may be down, or SQL Exception)");
               e.printStackTrace();
          catch(ClassNotFoundException e)
               System.out.println("\n\nException Occured (CLASSNOTFOUND Exception)");
}

Similar Messages

  • Having Problems with Login Token

    I'm constructing a search method.This is my code:
    //Get portlet context object IPortletContext portletContext = PortletContextFactory.createPortletContext(request,response); IPortletRequest portletRequest = portletContext.getRequest(); IPortletUser portletUser = portletContext.getUser(); // Use PRC URL urlEndPoint = portletRequest.getRemoteAPIEndpoint(); String strToken = portletRequest.getLoginToken().toString(); IRemoteSession Session = portletContext.getRemotePortalSession(); Session = RemoteSessionFactory.getTokenContext(urlEndPoint, strToken);
    I'm getting this exception:
    com.plumtree.remote.portlet.NotInRequestException: The Login Token was not configured to be sent to this portlet.
    It points to this line of code:
    String strToken = portletRequest.getLoginToken().toString();
    What am I missing?

    In the web service object -> advanced settings page
    you have to check mark "send login token"

  • Choosing between external and partner application and problem with login

    We have an application on Oracle App Server 10.1.3.3 and we have an OID server.
    I had taken this for granted that I should define the application as 'Partner Application' and not external application for single sign on.
    Now that we need the 'PASSWORD' retrieved by application, we are considering defining it as an external application.
    There are at least two problems I have encountered defining the application as external:
    1. 'pageConfig:serverDate' is among the login form's inputs in the login page, but I can't set it in orasso 'Edit External Applications' page
    2. After login using SSO as external application and when I click on the application's new link, the login page is shown with the username and password field filled, but I have to click on login button anyway (no automatic and invisible login).
    I will be very grateful if someone gives a general view on the differences between external and partner, whether in this case external has to be used or partner and finally give some comment on my specific problem with login button and manual login.
    Thank you

    Just some information :
    - The problem with LOGIN page exists. I don't have that problem with for example GMAIL when defined as external application, but with my applications in Oracle Application Server.
    - There is also another thing I don't understand. The link to external application is something like:
    javascript:open_jwindow('../ealogin?ID=76D4766','76');
    and couldn't be executed outside pls/orasso
    in other words we can't give that to our users, can we? They should login to orassso and see that?
    We don't want to involve them in Identity Management...
    Any help is appreciated....
    Regards

  • I have problem with login in sql Server give me support .pre login handshake

    I have problem with login in sql Server give me support .pre login handshake

    The following threads are on the same topic:
    http://www.sql-server-performance.com/forum/threads/pre-login-handshake-error-when-connecting-to-db.687/
    http://stackoverflow.com/questions/12308340/sql-server-2000-connection-error-pre-login-handshake
    http://dbaspot.com/sqlserver-server/458011-error-occurred-during-pre-login-handshake-microsoft-sql-server-error-10054-a.html
    Kalman Toth Database & OLAP Architect
    IPAD SELECT Query Video Tutorial 3.5 Hours
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Macbook Pro late 2013 - problem with login screen resolution

    Hi,
    I've got problem with login screen resolution, after upgrade to Yosemite. I use the 4rd resolution (last one) on my Mac Pro (late 2013), and after restart login screen is always on optimum mode... But it's only about the login screen.
    Do you know how can I fix it? I would like to have the same resolution on every screen.
    thx in advance

    I  Reformatted the CF card  on the new computer   it works fine now on the new Mac Pro
    Interesting point about  the low power  of the usb ports   I had to deal with all devices ejecting them selves  when the mac pro  was idle or slept  Drobo needed a Firmware update and another drives  needed  me  to change the sleep setting  or the Mac Pro   to never and  i also  had to deploy a  script to write to each device  ever minute,   this  kind  of sold the problem  with external Hard drives.   I wonder if the lowering  power  to a CF card   can eject  it  in a manor  which would make the  computer  think it is corrupt.
    I have looked at  buying a power usb Hub    but seems only one or two  of the ports are powered. 
    Seems to be a bit problem with the mac pro especially  as everything has to be connected externally  
    Will assume the Firewire Connector does not work.

  • Lenovo x230: Problems with Login and Startup of programs

    Hello,  Lenovo or Lenovo Users 
    I have a few problems with my Lenovo X230 Laptop
    1.
    Every time when i'm pressing Win + L to lock my account for windows. It will go smoothly to the lock screen and when I return to my laptop. And I press ctrl + alt + del  to unlock the laptop it's going to a blue screen and the mouse is still visible and I can move it around. ( The laptop is not crashing it is not a BSOD ) its just go's to a blue screen and then I must restart the Laptop if I want to use it again
    have someone the same issues?  And is there a solution for this problem?
    And i meant the background screen color of qquestion  ( 3. ) with blue screen
    2.
    And when I'm starting a application in Windows 8 and not 8.1  it's starts. And then I will close automatically there our no errors or problems will be displayed in a box or something like that 
    someone have the same problems and is there a solution for this problem?
    3.
    end i have another problem with login in to windows  when i have type in my username and password And then i press enter to login. It will not login it will get stuck on this screen Welcome  and then i must restart the laptop end when i have restarted my laptop it will work perfect    i have this problem only when i have turned af my pc end start him the next day op 
    do someone else have this problem to ? And how do you solved the problem 
    I thought its was maybe a driver issue. But i have update every driver that was available for my laptop
    oke but if someone else have the same issues i want to hear how you have solved you problem because i have 5 laptop with the same issues   
    and i'm thinking to go back to Windows 7 but windows 8 was pre-install on the laptop and i think it's maybe a Windows 8 issues
    and i have another question can Windows 8.1 solve all the problems ?  Because i think Windows 8 i the problem

    Our company also has almost the same problems with our Lenovo 2324CTO series. Any help with the problem please because it might also solve one of the biggest problems for us and it is holding us back with buying new laptops in this series.

  • Caching problem with iFS web server / index.html

    There seems to be a problem with the iFS Java web server serving cached index.html documents after they have been modified.
    This only happens when the document is referenced by the folder name (e.g. /home/kennu/). If you reference it by the full name (/home/kennu/index.html), the new modified version comes up alright.
    I wonder if this is a bug or some kind of a feature? Is there an quick and easy workaround?
    Byt the way, is this the correct place to post bug reports? I didn't see iFS mentioned in the OTN Bug Database.
    null

    well, this is certainly not an intended effect. i'll look into it. in the meantime, the workaround already posted should pull you through.
    sorry about the inconvenience.
    -ilya
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Kenneth Falck ([email protected]):
    There seems to be a problem with the iFS Java web server serving cached index.html documents after they have been modified.
    This only happens when the document is referenced by the folder name (e.g. /home/kennu/). If you reference it by the full name (/home/kennu/index.html), the new modified version comes up alright.
    I wonder if this is a bug or some kind of a feature? Is there an quick and easy workaround?
    Byt the way, is this the correct place to post bug reports? I didn't see iFS mentioned in the OTN Bug Database.<HR></BLOCKQUOTE>
    null

  • Caching problem with Internet Explorer

    Hi,
    users of an ApEx application I'm working on are reporting that when they're deleting an uploaded file from one of the pages in the application (using Internet Explorer), the link to the file remains. This is however not an issue in FireFox, and after some research I found out that this is a caching problem in IE. It can be avoided by making IE check for newer versions of stored pages every time a page is visited, but it is clearly not an option to ask all our users to do this. I also learned that it can be fixed by randomizing the file URL every time the page is loaded, but I don't know how to randomize a URL, nor how to make it still point to the uploaded file.. Any help would be appreciated!
    Thanks,
    -Kjetil

    Kjetil,
    This problem is also there if you use Flash Charts with a drilldown. See this posting:
    http://www.deneskubicek.blogspot.com/
    It will also link you to a corresponding thread and to an example in my demo application.
    The idea with a random number changing you link is the same I used in extending my
    xml chart package.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • ASO cache problem with Windows 7

    I have a large base of AS2 classes that support my application.  I've been working on it for a few years and I'm very familiar with the ASO cache problem that causes edits to not be compiled.  Well, I hit it today and I can't get rid of the old files.  I'm running CS5.5 and I used the menu first.  Then I manually deleted the ASO files.  Then I rebooted the computer and searched the entire C: drive for ASO files and deleted all of them.  Nothing worked.  I finally renamed one of my class files (and the the necessary edits that flowed therefrom) and that one file was recompiled. Obviously there is a hidden cached file somewhere.  I have Win7 Pro 64-bit.  Has anyone had a similar problem?  The last thing I want to have to do is rename all of my class files or tear down and rebuild my development box.  TIA

    3.1 is not "fine" and the drivers leave much to be desired.
    You will probably need to do a Safe Mode and uninstall, rollback, system restore. Use your DVD for Windows 7.
    Not sure of the support issues and details on MacBook Pro 13" as to whether you have graphic driver issue, AppleHFS, or other (and to say 'total hangup' doesn't really lead to what and why).

  • DI Server sample: problem with login

    Hi,
    I am studying the DI Server/WSClient sample and I try to connect with de DI Server to my company.
    When I try with the DI API, with the same username and passwords, servername etc..., it will succeed.
    When I use the DI Server it generates the following error for the sessionID:
    Error env:Receiver -1 General Error Login
    Because it is the sample delivered with SAP BO, I assume that there are people who examined this example.
    Does anyone know what I do wrong??
    I found that in administration->licence
    I select the tab Properties and select "DI-Server (DIS)"
    I see: Total Number = 2 and Available licence numbers = 2.
    Which means that the licences are not assigned to any user yet.
    When I select the Configuration tab and I select user manager, I see that I can select licences for professional user, SAP Addons and SDK Tools. But I can't assign a licence for the DIS. This could be te reason of the problem. The question is: How can I solve this??
    Greetz
    Eddy
    Message was edited by: Eddy Aper

    > Eddy,
    >
    > Please look at this link to another question and
    > answer in this forum that looks similar to the issue
    > that you are having.
    >
    > https://www.sdn.sap.com/sdn/collaboration.sdn?contentt
    > ype=url&content=https%3A//forums.sdn.sap.com/thread.js
    > pa%3FforumID%3D56%26threadID%3D33989%26messageID%3D342
    > 192%23342192
    >
    > Hope this helps,
    >
    > Eddy
    Eddy,
    i am having a similar problem with the DI server, but i can find the post that you have mentioned, it goes to a page moved screen and then back to the main page. Can you please advice how to fix the DI server Genreal Error issue.
    Thanks in advance
    Mitesh

  • Having problems with login with bank today. Then...

    Well my bank just listed a warning on their site that those customers with FF are having problems logging in. I still tried and yep I can't login either. Also last week when I was on Lee's jean site and looking at pants not all the offerings were show on the page since I was talking with customer service rep. I had no idea it was not pulling up everything. So I have no error message to tell me when FF is not doing it's job. This concerns me since I have no way of knowing if I am getting entire search results using FF. Now my bank is having problems with your browser. So I am resorting to Chrome for now. I like the idea of FF and all but when it impacts so many important abilities online I really can't justify using FF. I know you all are doing your best but I also have to do my best too and using FF is not going to get me the best results right now. Have no idea what is going on. I also just clicked the check our browser on your site to see if I needed updates and what it did instead is it took out all addons and well that was another reason I am not sure what is going on here at FF. I also have been having crash problems with Adobe Flash too with browser off and on for months and I just keep reporting it but it still keeps cropping up. I think maybe it also has something to do with FF. Any addons I have had I installed from your website and I didn't have much at all in addons either. Pinterest is the only one I can think of. I also have problems with my browser locking up like for watching videos online and maybe that has to do with Adobe Flash??? I have no idea and so many things have been glitchy off and on with browser that I am tired of it all and need to find better alternative. Thanks and good luck : (

    No I don't feel quiet sure about posting the screen shots of my bank here. But it is Columbia Bank in Washington State that has a warning to their customers who are using FF. "A recent update to Firefox is creating access problems for some customers in Personal Online Banking. We are working on a resolution as quickly as possible. If you are experiencing difficulty accessing Personal Online Banking while using FF we recommend accessing from a different browser until the issue has been resolved. "
    When I click and try it anyways I get:
    "Secure Connection Failed to web9.secureinternetbank.com It was interrupted while the page was loading. The page you are trying to view cannot be shown because the authenticity of the received data could not be verified. Please contact the website owners to inform of this problem."
    I switched to Chrome this morning and I was able to access bank account no problem. I also went to daily mail and usually my computer gets whiny with all the ads that load up and none of them loaded with Chrome it was way better.
    Watched a video and no problems. I appreciate the suggestion to Sea Monkey but I have done that browser before. I forget why I left SM long time ago but had to be a good reason. IF FF is not that well supported then I would seriously doubt that SM would be any better. I have too much to do to play tech detective on this or that. I don't care for Google docs since so limited on what you can do with those programs and don't like how invasive it is but I am strapped for time and can't wait for open source to catch up. I have waited so many years and I have pretty much given up. When my desktops give out I may even consider Apple at this point which I NEVER thought I would do.

  • Cache problem with bigger files in Flash 15

    Hello,
    I'm playing some MMORPG game. Since two days I have problem with entering one map, it always load from server, not from my cache like other ones.
    I've talked with developers, they didn't change anything, and the only thing that makes this map special is it weight. Other game files are small, this one is biggest, it weight 15 mb.
    Is any option that I can change to cache it? Or it is some bug?
    Hope you will help me.
    Regards.

    I have the exact same problem, but with an MMO game of 1.7Mb. Clients with the newest chrome/flash cant cache the game in the browser. If I configure Chrome to use the system flash player (v14), the game files are cached as always did. The problem seems to be related with the flash 15 embedded in Chrome.
    The strangest thing is that if I create a separate html page and embed the SWF there, it seems to be cached fine. But in the original dynamic page where the game needs to be embedded it doesn't get cached.
    rzuffi, did you try embedding your flash in an static html file?
    Regards

  • Cache problem with one site

    I have a problem with not getting the latest version of a page on one site (that I am aware of).
    I can get the latest version of http://www.thefa.com/thefacup/more/competition-bulletins on IE but Firefox gives me a page that hasn't been updated. Attached file 1 shows the Firefox cache entry, file 2 shows the page displayed on FF and file 3 shows the page on IE.
    This has been a problem with that page since I started using FF over a year ago.
    The only way to get the latest version is to "reload the current page" which is not a major problem but is annoying.
    Is this likely to be happening with other pages that are not so obvious or is it some incompatibility between that page and FF?

    I disabled cookies and deleted the existing ones for this site but it didn't make any difference - I didn't expect it to.
    I didn't try "forgetting" the site as my understanding is that this just clears the cache and cookies at that time but it doesn't stop them being saved again.
    Is there a way of not caching a specific site? If not, I'll just continue to "reload the current page" when I need to.

  • Cache problem with IE !

    Hy Guys,
    I've got a problem with the cache management in (my dear) Internet Explorer 7 :
    I've got a report page, with a list of records and in this list a link to a details page. In this page i could update my record, save it and go back to the first page. When I return to my page 2 (record's details) the value I have updated before is always set to the old value. Whereas the update is done in the database ...
    This problem only happens under IE and not under mozilla ...
    When I refresh my page (F5), the old value is erased and the new value is loaded and displayed.
    IE : V6.0 or V7.0
    Mozilla : V3.0
    APEX : 3.0.1.00.08
    All these versions are required by the customer, so I can't change it ...
    PS : excuse for my english, I'm french and I do my best !
    Thanks for you answers !

    You're welcome

  • Problem with login on(ERROR 10061)

    hie all i'm having a problem with logging on to the system,. everything else installed ok and is working fine. i think its my connection to the server, i used Ms loopback.. help on the configuration especially in the windows folder(system32/drivers/etc/hosts)..
    Plus i'm getting this windows report after the GUI error connection ERROR disp+work.exe failed.
    Edited by: Daniel T nehanda on Jul 16, 2008 10:13 PM

    i'm using XP SP2
    and the Netweaver  is SAP Netweaver7.0 ABAP Trial
    hosts info 10.10.10.10 localhost
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\Administrator>ipconfig/all
    Windows IP Configuration
            Host Name . . . . . . . . . . . . : tt-2565535e5bc6
            Primary Dns Suffix  . . . . . . . :
            Node Type . . . . . . . . . . . . : Unknown
            IP Routing Enabled. . . . . . . . : No
            WINS Proxy Enabled. . . . . . . . : No
    Ethernet adapter Local Area Connection 2:
            Connection-specific DNS Suffix  . :
            Description . . . . . . . . . . . : Microsoft Loopback Adapter
            Physical Address. . . . . . . . . : 02-00-4C-4F-4F-50
            Dhcp Enabled. . . . . . . . . . . : No
            IP Address. . . . . . . . . . . . : 10.10.10.10
            Subnet Mask . . . . . . . . . . . : 255.255.255.0
            Default Gateway . . . . . . . . . :
    C:\Documents and Settings\Administrator>
    Edited by: Daniel T nehanda on Jul 17, 2008 8:22 PM

Maybe you are looking for

  • Capture Excise Invoice

    Hello All, I am facing one problem. I did MIGO with Only refer excise invoice. Now what are the steps for capturing & posting the excise. I am aware about J1iex but is there any other procedure?

  • How do you change default swatches?

    Where is the default color swatches file located for Photoshop CS6? I'm tired of constantly deleting dozens of useless swatches; I want Photoshop to start with a blank Swatches palette every time.

  • Class not found for Startup servlet

    I have deployed a war file under weblogic 7. The application has some startup servlets, which are failing to load during startup. It returns the following error messages for each servlet ####<Jan 8, 2003 2:00:25 PM CST> <Error> <HTTP> <abc-web1> <abc

  • Detecting serial ports when program is already running

    hi, i've tried detecting the available ports of my computer usingEnumeration portList = CommPortIdentifier.getPortIdentifiers (); while (portList.hasMoreElements()) { ... }, i use it when my program starts to run and it works well. but i have a butto

  • Dreamweaver CS3 stops, with blank registration screen

    Today I started to work with Dreamweaver CS3 Mac, It opened fine until a registration screen appeared, on top of everything. The screen is blank but I remembered that sometimes Dreamweaver asks me to register. I always say: Later! But now, I cannot w