Help: access right session context in servlet

Hello,
I've an master detail table in an adf app working fine. I've a servlet accessing the View of the detail Table woking fine (getBindingContext, ApplicationModule, findViewObject, and going thru the details Table wit a RowSetIterator).
BUT if i change the "detail" in the details View in the faces app, the servlet still get's only the first "detail" of the detail table. It looks like the servlet is on a different instance of the ViewObject although in the same browser session.
Do I have somehow to "tell" the servlet which "session" to use??
Ognian

Hello,
Jdev is 11.1.1.2
ADF Business Components     11.1.1.55.36
Java(TM) Platform     1.6.0_14
Oracle IDE     11.1.1.2.36.55.36
Versioning Support     11.1.1.2.36.55.36
I have 2 tables MA and MAPO
MA has a column name and contans 3 rows AA, BB, CC
MAPO has 2 columns name and value and rows: AA 1, AA 2, BB 4 BB 5, CC 6, CC 7
The ADF model has 2 Views MAView1 and MAPOView1.
The ADF Faces UI has 2 Tables and when you select AA ind MA yiou see AA 1 and AA 2 in MAPO
so far so good.
Now I have a servlet GENO accesing MAPOView1
BindingContext bc=DCUtil.getBindingContext(request);
DCDataControl dc = bc.findDataControl("AppModuleDataControl"); //see DataBindings.cpx
ApplicationModule am=(ApplicationModule)dc.getDataProvider();
ViewObject vo = am.findViewObject("MAPOView1");
RowSetIterator iter = vo.createRowSetIterator(null);
while (iter.hasNext()) {
Row r = iter.next();
I've also added the servlet to the adfBindings Filter
This servlet is called from within the same session where the ADF Faces Master Detail Tables are displayed.
I would expect, that the result of the servlet is dependent from the selection in the MA Table, since it should be bound to the same instance of MAPOView1.
if MA has BB selected MAPOView1 should return BB 4, and BB 5, both in the ADF Faces Table AND in the Servlet, but it does so only in the ADF Faces Table.
The servlet allways returns the AA rows of MAPO, it looks like it is bound to another instance of MAPOView1.
I hope this clearifies the problem...
Ognian

Similar Messages

  • Accessing Managed Session Bean in Servlet Filter

    I wrote a Servlet Filter to handle user authentication. Now I'm trying to access my Managed Session Bean in the filter in order to save the current user. Unfortunately the Session Bean is created after the Filter executes for the first time.
    I'm trying to access the Session Bean in this way:
    (SessionBean) FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("sessionBean");
    In this case getExternalContext() is equals null.
    Is there any way to create the Session bean before the filter executes or any other ideas how to handle this?
    I already searched around the internet but couldnt figure out something.
    Thanks guys,
    Paul

    Ok, fixed it like this. Works perfect. JSF finds and uses the handmade Session Bean as well.
    if(request.getSession().getAttribute(BeanNames.SESSION_SCOPE_BEAN) == null) {
         SessionBean sessionBean = new SessionBean();
         request.getSession().setAttribute(BeanNames.SESSION_SCOPE_BEAN, sessionBean);
    }Thanks,
    Paul

  • Maintaining Sessions through Multiple Servlets and Contexts

    Hi,
    I have a webapplication that works like this:
    * User connects to a login servlet on HTTPS
    * Users information is authenticated on HTTPS
    * An object is stored in the session for other servlets to validate the users access
    * Authenticated users are forwarded to an HTTP page where the session is used to make sure they were granted access
    My problem is this....Since I create the session in an HTTPS context, when I am in the HTTP context, I am unable to access the session and constantly get NULL. Is there any way that I can access the session from an HTTP context?

    What you can do is, just login using HTTPS and switch over to HTTP
    and then store data in session.That is true, but what I want in the session is basically a flag on whether or not the user was granted access. I would much rather set all that up on the secure line, and then just access it from the unsecure ones...
    For example, you are creating session using the
    http://testdev:port/index.jsp page.
    If access the same page(with hostname)
    http://10.300.20.18:8080/index.jsp, you can't get the session even
    though both are same web server and same web application. Because the
    browser treats it different sessionI think if you use my above solution with the explicit passing of the jsessionid, you can move from one domain to another and still maintain session. Not positive on that though...

  • You do not have sufficient access rights, pls help

    Hi folks,
    I'm getting the "You do not have sufficient access rights" error accessing the Identity System Console. The same admin account can access User/Group/Org Manager screen, however, for some reasons user and group searches return no results. This is the second OIS install against the same ldap dir (ovd to sun 6.3), so I had to specify Id server was not the first one to avoid profile conflict with oblix DBAgents. The admin user had been selected during prev install, and exists under o=Oblix in both cn=Web Masters and cn=Directory Administrators.
    I have LDAPMaxNoOfRetries set to the number of dir servers +1 in all globalparams.xml on OIS. I also can modify ldap dir via both ldapmodify and ldap browser binding to OVD as same user. Turning the TRACE on didn't showed any errors except for the following:
    DB_RUNTIME WARNING 0x00000504 ldap_config_db.cpp:187 "Exception during DB runtime code" function^LDAPConfigDB::Open() status^17
    DB_RUNTIME WARNING 0x00000504 ldap_config_db.cpp:355 "Exception during DB runtime code" function^LDAPConfigDB::ReadOblixDBConfig()status^17
    SCHEDULER_FRAMEWORK ERROR 0x00000501 ../obschedulerthread.cpp:316 "ObError exception caught" ObScheduledTaskLiaison::LoadTasks^ObWFScheduledTaskLiaison
    PPP INFO 0x000008C7 obeventcatalog.cpp:183
    Cannot find the action
    function^ObEventCatalog::GetActionEntry2Modify()
    actionName^front_page_admin_klogin_post
    APP_BASE WARNING 0x00000833 oblixbasecommon2.cpp:1235
    Login failed
    Error^You do not have sufficient access rights
    numLoginFailures^1
    There's nothing in the ldap logs either. The only warning I get per that user is in the ovd log:
    DoSManager: Found unbound connection from active ip addresses
    DoSManager: Found unbound connection from active users
    The Oracle Support is clueless, please help.
    Thank you, Roman

    Hi Vinod,
    Thanks for the post. OK, if I got it right, I have two entries under obcontainerId=DBAgents for each of my primary Id servers. For the one I currently use, I have this towards the bottom:
    obname=oblixConfig-OIS_mdi-oamlx-3
    obname=default-OIS_mdi-oamlx-3
    Both entries have obdbusedby set to OIS_mdi-oamlx-3 which is my OIS id. The obsearchbasestr is different: o=Oblix,o=paychex inc for the oblixConfig, and o=paychex inc,c=us for the default one. Is that's the way it should be?
    Thanks Roman
    P.S: I've noticed I get same error accessing My profile under User Manager.

  • Access rights folders all messed up: HELP

    Hi Guys,
    *First the good news:*
    A few days ago I picked up my new (2008 model) iMac. Yeah baby!
    *Yep now the bad news:*
    Because I allready have an MacBook I started migrating all kind off content to my iMac. I started out creating two accounts for my girlfriend and me. Then used my Time Machine backup to restore all kinds of files foto's etc to my iMac.
    Because TimeMachine puts al these files in the account from my MacBook I copied everything from that account to my 2 new accounts and when I didn't have access I just added me with read and write access to the folders true the info pane.
    (Yep I'm a Windows user and didn't know anything about the Unix way of live)
    So what happens now is that when I move a file/folder it doens't move it, it copies the file. Some files/folders even ask for a password when copying. When I try to delete them I also have to putt in a password. ARGRHGRHRGH
    (In finder it says: com.apple.desktopservices)
    For Example:
    Rights folder Pictures:
    Marketeer (Me) Read and Write
    Staff Read and Write
    everyone No Access
    But a picture in this folder
    Everyone Custom
    (Unknown) Read and Write
    Marketeer (Me) Read and Write
    Staff Read and Write
    everyone Only read
    I tried the disktools and to restore access rights but this didn't work and it keeps giving the same errors.
    Can I fix this? Or should I just start over, copy all my files to a FAT32 external windows disk delete my accounts en import everything back?
    Message was edited by: Goldy Goldstone

    My folders do not appear in the right place, what do I do?
    Please do nothing with your folders until you do this:
    Beside the word Folders is a +, click the +"
    The file navigator will appear.
    Navigate to the parent folder of your pictures and choose the folder.
    Lightroom will put the folders in the right place now.
    do i have to do this one folder at a time (there is no "parent" directory in the left panel. I could do a select all for the folders and then choose my lightroom/photos directory, but want to make sure that's what the FAQ is saying,
    thanks

  • My page is split left sidw is the site i am trying to access, right side is the Mozilla fire fox help page how do i remove the right side? How do I make home page? How do i syncranize?

    As above. I can not find any were to close the right side page?

    Opening in the side bar is the default for bookmarks that are created via a link or button on a website.<br />
    You can check the Properties of a bookmark via the right-click context menu in the side bar (Ctrl+B; Cmd+B on Mac).<br />
    In the Bookmarks Manager (Bookmarks > Show All Bookmarks) you can click the More button in the Details pane at the bottom right.<br />
    Make sure that "Load this bookmark in the side bar" is not selected.<br />

  • Update for RDP 8.1 Windows 7 SP1 changed explorer right click context menu

    I have a 4 pcs and 3 nas drive on my network.  previous to the update I could view my pcs and nas drives in explorers right pane left click one and access the folders on it.  since the update I can no longer do this because "remotedesktopconnection"
    has been added as the default (previously it was "open") to the right click context menu.  can someone help me change this back so when I right click a network computer icon in explorer I only see:
    open                                                                   
    AND NOT                              remotedesktop
    open in a new window                                                                                       open
    create shortcut                                                                                                 open
    in a new window
                                                                                                                           create
    shortcut
    the exact update that makes the change is: kb2592687

    Hi
    Theoretically it could be done by modify registry. For example you could
    modify right click menu on .exe file by changing values under
    HKEY_CLASSES_ROOT\exefile\shellex\
    However there are some problems that I cannot define that what kind of “file”
    the network computer is.
    And I found no article specific to this.
    If you really need to restore your context menu and also need this update, I
    suggest you uninstall this update first. Then back up your registry, install it
    again. This time using process monitor you could record all registry modifications during
    this update installation. It might take lots of work.
    I tried to do that for you, unfortunately this update has been deployed in our environment which cannot be uninstalled from update history.
    For more information about process monitor
    https://technet.microsoft.com/en-us/library/bb896645.aspx?f=255&MSPPError=-2147217396
    Regards
    D. Wu
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Urgent : How to create a new variable in session context

    Hi all
    I am using JDeveloper 11.1.1.2.0 and am implementing adf security using WLS
    I am loging in using loginame. and I am able to retieve the login_name in VO's using adf.context.securityContext.userName
    My requirement is I want to set id (number datatype) in sessioncontext as userId.
    The id should be taken from the database table according to the login_name and set in sessioncontext.
    I want to populate the VO's in my various pages using this userId in session,since our tables are based on Id not login_name
    Please help,its an urgent requirement
    Susan

    Hi,
    Can u give me the code for getApplicationModuleForDataControl(DataControl dc)?
    What is the '*u*' in u.getPageFlowScopeAttribute("userid"));?oh.. refer my following code.
        public static final ADFLogger LOGGER =
            ADFLogger.createADFLogger(Util.class);
        public ApplicationModule getApplicationModuleForDataControl(String dcName) {
            DCDataControl dcControl =
                getDCBindingContainer().findDataControl(dcName);
            if (dcControl == null) {
                logSevere(String.format("getApplicationModuleForDataControl(String dcName) : DCDataControl [%s] not found",
                                        dcName));
                return null;
            return dcControl.getApplicationModule();
        public BindingContainer getBindingContainer() {
            return getBindingContext().getCurrentBindingsEntry();
        public DCBindingContainer getDCBindingContainer() {
            return (DCBindingContainer)getBindingContainer();
    public String getUserIdFromLoginName(String loginName){
            ApplicationModule am = getApplicationModuleForDataControl("Users_DataControl");
            ViewObject vo = am.findViewObject("Users_VO1");
                    vo.setNamedWhereClauseParam("B_LOGIN_NAME",
                                        loginName);
            vo.executeQuery();
                Row row = vo.first();
                if (row == null) {
                    return null;
                } else {
                return row.getAttribute("UserId")==null ? null : row.getAttribute("UserId").toString();
        private static void logSevere(String msg) {
            LOGGER.log(Level.SEVERE, msg);
    public void setUserIdInSessionForLoginLoginName(String loginName){
      String userId=getUserIdFromLoginName(loginName);
      FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("userid", userId);
    }where as accessing the session in adf bc layer is conserned you can use ADFContext, which will help you to access the session(HttpSession) attributes.
    import oracle.adf.share.ADFContext;
    Object obj = ADFContext.getCurrent().getSessionScope().get("userBean");Regards,
    Santosh

  • Way to get access to the context menu

    I assume there is no official way to get access to the context menu, so you can add a menu item when, say, you right-click on a photo in the publish service collection. You can tweak the behaviour for the two existing items, but there does not seem to be a way to add your own.
    Regular menu Export, Library, Help menu items are too coarse, as they apply across the whole app. It would be nice to be able to add an item that invokes a script to do some stuff to the item.
    I can hack in a workaround using the various edit collection callbacks, but this is a kludge of the highest order.

    Context menu access would be nice. If squeaking helps, maybe an FR - I've already cast one, and assume Adobe only counts one per person...

  • CoA Session Context Not Found

    Hello Guys,
    I am using a Cisco 2951 with 15.3(3)M1, and when doing some tests with CoA i got the following error:      
    *Nov  7 10:34:24.780: COA: 1.1.1.1 request queued
    *Nov  7 10:34:24.780: RADIUS:  authenticator 52 CF BB 58 BB D5 69 4E - 59 3B 09 75 E9 83 54 4C
    *Nov  7 10:34:24.780: RADIUS:  User-Name           [1]   2   ""
    *Nov  7 10:34:24.780: RADIUS:  Acct-Session-Id     [44]  10  "0000002B"
    *Nov  7 10:34:24.780: RADIUS:  Vendor, Cisco       [26]  42
    *Nov  7 10:34:24.780: RADIUS:   Cisco AVpair       [1]   36  "subscriber:command=reauthenticate "
    *Nov  7 10:34:24.780: RADIUS:  Message-Authenticato[80]  18
    *Nov  7 10:34:24.780: RADIUS:   B6 78 8B EA DE 3B 73 26 57 53 C0 E7 47 89 2C 6D         [ x;s&WSG,m]
    *Nov  7 10:34:24.780: COA: Message Authenticator decode passed
    *Nov  7 10:34:24.780:  ++++++ CoA Attribute List ++++++
    *Nov  7 10:34:24.780: 01EEAF6C 0 00000081 username(450) 0
    *Nov  7 10:34:24.780: 01EEB7EC 0 00000001 session-id(408) 4 43(2B)
    *Nov  7 10:34:24.780: 01EEB820 0 00000081 ssg-command-code(490) 1 32
    *Nov  7 10:34:24.780:
    *Nov  7 10:34:24.780:  ++++++ Received CoA response Attribute List ++++++
    *Nov  7 10:34:24.780: 01EEB7EC 0 00000082 reply-message(273) 16 No valid Session
    *Nov  7 10:34:24.780: 01EEB820 0 00000002 error-cause(272) 4 Session Context Not Found
    This is very strange, because the session-id is correct.
    Can anyone advice me on this? Thanks!
    David

    Hello Manuel,
    Thanks for all your help. Here is the show output
    LNS#show subscriber session uid 47 detailed internal
    Subscriber session handle: EC00005E, state: connected, service: Local Term
    Unique Session ID: 47
    Identifier: [email protected]
    SIP subscriber access type(s): VPDN/PPP
    Root SIP Handle: 5300005D, PID: 313
    Child SIP Handle: 7900002F, PID: 318
    Current SIP options: Req Fwding/Req Fwded
    Session Up-time: 19:52:55, Last Changed: 19:52:55
    Switch handle: 211E
    Interface: Virtual-Access2.2
    Policy information:
      Context 10EC39C0: Handle 7B00002F
      AAA_id 0000003B: Flow_handle 0
      Authentication status: authen
    Policy internals:
      Policy state                        : wait-for-events
      Authorization type                  : AAA service
      Active key                          : apply-config-only
      Authorization active key            : Auth-User
      Last top level rule type            : session-service-found
      Client                              : SM
      Last message from client            : Apply Config Success
      Last message to client              : Apply Config Success
      Current key list from client        :
        Identifier: Auth-Domain = "xxx.xx"
        Identifier: Protocol-Type = 0 (PPP Access Protocol)
        Identifier: Session-Handle = 3959423070 (EC00005E)
        Identifier: Tunnel-Name = "LNS"
        Identifier: Media-Type = 2 (IP)
        Identifier: Input Interface = "GigabitEthernet0/1.2000"
        Identifier: AAA-Acct-Enbl = 1 (YES)
        Identifier: Authen-Status = 0 (Authenticated)
        Identifier: Nasport = Vty Terminal: port 47 IP 69.17.193.90
        Identifier: Auth-User = "[email protected]"
      Network plumbing done yet           : Yes
      Network plumbing directive proposed : None
      AIE handle                          : 2B00002F
      AIE user ID                         : 47
      AAA user ID                         : 0000003B/59
      Authorization index                 : 0
      Authorization priority              : 1
      Context                             : 7B00002F
      North handle                        : 00000000
      North callback                      : 00000000
      South handle                        : EC00005E
      South callback                      : 06B898A8
      Current access-type                 : PPP
      All access-types                    : [0] VPDN
                                          : [1] PPP
      No more keys available from         : PPP
      Session activated                   : Yes
    Session inbound features:
    Feature: QoS Policy Map
      Input Policy Map: INTERNET-15Mb-IN
    Session outbound features:
    Feature: QoS Policy Map
      Output Policy Map: INTERNET-15Mb-OUT
    Configuration sources associated with this session:
    Interface: Virtual-Template1, Active Time = 19:52:55
    Pending status associated with this session:
    Bind status: Success, Delay delete: No, Pending mask: 0
    And the debug output for a reauthenticate command
    *Nov  8 10:21:58.367: RADIUS: COA  received from id 1 x.x.x.x:60590, CoA Request, len 108
    *Nov  8 10:21:58.367: COA: x.x.x.x request queued
    *Nov  8 10:21:58.367: RADIUS:  authenticator 1D 92 FF 04 43 EA 0E 11 - DE 49 2F AE 81 46 42 78
    *Nov  8 10:21:58.367: RADIUS:  User-Name           [1]   18  [email protected]
    *Nov  8 10:21:58.367: RADIUS:  Acct-Session-Id     [44]  10  "0000003B"
    *Nov  8 10:21:58.367: RADIUS:  Vendor, Cisco       [26]  42
    *Nov  8 10:21:58.367: RADIUS:   Cisco AVpair       [1]   36  "subscriber:command=reauthenticate "
    *Nov  8 10:21:58.367: RADIUS:  Message-Authenticato[80]  18
    *Nov  8 10:21:58.367: RADIUS:   7F CA 0A 96 A7 4C 5F 05 57 33 4D 36 D6 7A 37 7E         [ L_W3M6z7~]
    *Nov  8 10:21:58.367: COA: Message Authenticator decode passed
    *Nov  8 10:21:58.367:  ++++++ CoA Attribute List ++++++
    *Nov  8 10:21:58.367: 01FCE77C 0 00000081 username(450) 16 [email protected]
    *Nov  8 10:21:58.367: 01FCFBAC 0 00000001 session-id(408) 4 59(3B)
    *Nov  8 10:21:58.367: 01FCFBE0 0 00000081 ssg-command-code(490) 1 32
    *Nov  8 10:21:58.367:
    *Nov  8 10:21:58.367: RADIUS/ENCODE(00000000):Orig. component type = Invalid
    *Nov  8 10:21:58.367: RADIUS(00000000): sending
    *Nov  8 10:21:58.367: RADIUS(00000000): Send CoA Nack Response to 69.17.193.4:60590 id 1, len 62
    *Nov  8 10:21:58.367: RADIUS:  authenticator A3 EC 85 01 C3 31 E2 B3 - 25 22 38 79 DA 8E 95 46
    *Nov  8 10:21:58.367: RADIUS:  Reply-Message       [18]  18
    *Nov  8 10:21:58.367: RADIUS:   4E 6F 20 76 61 6C 69 64 20 53 65 73 73 69 6F 6E  [ No valid Session]
    *Nov  8 10:21:58.367: RADIUS:  Dynamic-Author-Error[101] 6   Session Context Not Found [503]
    *Nov  8 10:21:58.367: RADIUS:  Message-Authenticato[80]  18
    *Nov  8 10:21:58.367: RADIUS:   AC 83 2A 7C DE 7D 78 8E B7 91 C9 F0 16 8B 86 D2              [ *|}x]
    Even the PoA is not working
    *Nov  8 10:24:04.022: RADIUS: POD  received from id 4 x.x.x.x:57061, POD Request, len 66
    *Nov  8 10:24:04.022: POD: 69.17.193.4 request queued
    *Nov  8 10:24:04.022:  ++++++ POD Attribute List ++++++
    *Nov  8 10:24:04.022: 01FCFBAC 0 00000081 username(450) 16
    [email protected]
    *Nov  8 10:24:04.022: 01FCE77C 0 00000001 session-id(408) 4 59(3B)
    *Nov  8 10:24:04.022: 01FCE7B0 0 00000081 Message-Authenticator(274) 16 20 2C D0 32 B2 B7 70 BC CE 0F 57 30 8A 0B 52 B7
    *Nov  8 10:24:04.022:
    *Nov  8 10:24:04.022: RADIUS/ENCODE(00000000):Orig. component type = Invalid
    *Nov  8 10:24:04.022: RADIUS(00000000): sending
    *Nov  8 10:24:04.022: RADIUS(00000000): Send Disconnect Nack Response to x.x.x.x:57061 id 4, len 44
    *Nov  8 10:24:04.022: RADIUS:  authenticator 86 6C A4 7E EC E6 D8 DA - 30 03 38 E7 51 03 78 86
    *Nov  8 10:24:04.022: RADIUS:  Reply-Message       [18]  18
    *Nov  8 10:24:04.022: RADIUS:   4E 6F 20 76 61 6C 69 64 20 53 65 73 73 69 6F 6E  [ No valid Session]
    *Nov  8 10:24:04.022: RADIUS:  Dynamic-Author-Error[101] 6   Session Context Not Found [503] *Nov  8 10:24:04.022: RADIUS: POD  received from id 4 x.x.x.x:57061, POD Request, len 66
    *Nov  8 10:24:04.022: POD: x.x.x.x request queued
    *Nov  8 10:24:04.022:  ++++++ POD Attribute List ++++++
    *Nov  8 10:24:04.022: 01FCFBAC 0 00000081 username(450) 16 [email protected]
    *Nov  8 10:24:04.022: 01FCE77C 0 00000001 session-id(408) 4 59(3B)
    *Nov  8 10:24:04.022: 01FCE7B0 0 00000081 Message-Authenticator(274) 16 20 2C D0 32 B2 B7 70 BC CE 0F 57 30 8A 0B 52 B7
    *Nov  8 10:24:04.022:
    *Nov  8 10:24:04.022: RADIUS/ENCODE(00000000):Orig. component type = Invalid
    *Nov  8 10:24:04.022: RADIUS(00000000): sending
    *Nov  8 10:24:04.022: RADIUS(00000000): Send Disconnect Nack Response to x.x.x.x:57061 id 4, len 44
    *Nov  8 10:24:04.022: RADIUS:  authenticator 86 6C A4 7E EC E6 D8 DA - 30 03 38 E7 51 03 78 86
    *Nov  8 10:24:04.022: RADIUS:  Reply-Message       [18]  18
    *Nov  8 10:24:04.022: RADIUS:   4E 6F 20 76 61 6C 69 64 20 53 65 73 73 69 6F 6E  [ No valid Session]
    *Nov  8 10:24:04.022: RADIUS:  Dynamic-Author-Error[101] 6   Session Context Not Found [503]
    Thanks!!
    David

  • Exception while accessing a com port from servlet

    I am trying to access communication port from a Servlet using java communications api's.
    But Following exception was thrown
    Caught java.lang.NullPointerException:name can't be null while loading driver com.sun.comm.Win32Driver
    The SecurityManager do not allow that opeartion.
    java.security AccessControlException:access denied (java.io.FilePermission c:\j2sdk1.4.1\jre\lib\javax.comm.properties delete)
    at java.security.AccessControlContext.java:270) at java.security.AccessController.checkPermission(SecurityManager.java)
    at java.lang.SecurityManager.checkDelete()
    at java.comm.CommPortIdentifier.getPortIdentifiers(CommportIdentifier.java)
    Please help me.Tell me what to do.how to successfully access a communication port from a Servlet.

    Solved!!. Just make sure u r placing neccessary files (comm.jar, win32com.dll and javax.comm.properties)onto the right JVM folders. Since JVM may be installed in many different location in your PC, U might want to do some search around looking for java.exe elsewhere in the system. Good luck!

  • The session context in the socket project

    hello
    in the j2ee program,i can set the user login info in the session context(such
    as user name and password or permisson),and trace them during the session,the
    servlet container help me a lot.
    but in my current project,i use the socket communication to connect the c# client
    and the java server,after the client login in one socket connection,it must close
    the socket,when it reconnect to the server to send the data,the server don't know
    who it is,that is the server don't know whether the client login or not and if
    the client is just one who has just login.
    i wonder how can i implement the session function that is similar to servlet do
    in my socket project?
    who can help me?
    thank you!!

    Hi Form
    Any Enlightining Ideas.....
    Still thinking. E.g. why the GUI is doing the authentication. Well it does have >> to prove a user ID. That'd be enough to identify a sessionOk after the UserId is authenticated , (???? Session ???) on a pure GUI...
    How about doing further tasks, Also How to uses this Session API in a
    Pure GUI env...
    Plz
    with regards
    Karthik

  • Dp* commands failed w/ SMSLdapObject: insufficient access rights to access

    My dpadmin list/modify fails to execute. The amSMS log is below. What aci I lost? Any help is appreciated.
    Regards
    11/20/2005 03:17:15:659 AM MST: Thread[main,5,main]
    SMSEntry: cache enabled: true
    11/20/2005 03:17:16:023 AM MST: Thread[main,5,main]
    SMSLdapObject: LDAP Initialized successfully
    11/20/2005 03:17:16:349 AM MST: Thread[main,5,main]
    Initialized LDAPEvent listner
    11/20/2005 03:17:16:412 AM MST: Thread[main,5,main]
    CachedSubEntries::getInstance DN: ou=DAI,ou=services,dc=sun,dc=com
    11/20/2005 03:17:16:432 AM MST: Thread[main,5,main]
    CachedSMSEntry::getInstance: ou=DAI,ou=services,dc=sun,dc=com
    11/20/2005 03:17:16:441 AM MST: Thread[main,5,main]
    SMSLdapObject.read() retry: 0
    11/20/2005 03:17:16:451 AM MST: Thread[main,5,main]
    WARNING: SMSLdapObject: insufficient access rights to access DN=ou=DAI,ou=services,dc=sun,dc=com
    11/20/2005 03:17:16:461 AM MST: Thread[main,5,main]
    ERROR: CachedSubEntries: unable to register for notifications:
    Message:The user does not have permission to perform the operation.
    at com.sun.identity.sm.ldap.SMSLdapObject.read(SMSLdapObject.java:231)
    at com.sun.identity.sm.SMSEntry.read(SMSEntry.java:334)
    at com.sun.identity.sm.SMSEntry.read(SMSEntry.java:326)
    at com.sun.identity.sm.SMSEntry.<init>(SMSEntry.java:162)
    at com.sun.identity.sm.CachedSMSEntry.getInstance(CachedSMSEntry.java:307)
    at com.sun.identity.sm.CachedSubEntries.<init>(CachedSubEntries.java:72)
    at com.sun.identity.sm.CachedSubEntries.getInstance(CachedSubEntries.java:204)
    at com.sun.identity.sm.ServiceManager.getVersions(ServiceManager.java:409)
    at com.sun.identity.sm.ServiceManager.serviceDefaultVersion(ServiceManager.java:427)
    at com.sun.identity.sm.ServiceConfigManager.<init>(ServiceConfigManager.java:94)
    at com.iplanet.am.sdk.AMCommonUtils.populateManagedObjects(AMCommonUtils.java:497)
    at com.iplanet.am.sdk.AMCommonUtils.<clinit>(AMCommonUtils.java:113)
    at com.iplanet.am.sdk.AMStoreConnection.<clinit>(AMStoreConnection.java:141)
    at com.sun.portal.desktop.context.DSAMEConnection.<init>(DSAMEConnection.java:89)
    at com.sun.portal.desktop.context.DSAMEAdminDPContext.init(DSAMEAdminDPContext.java:110)

    - what's the complete command ?
    - which user is used ?
    /ulf

  • SMSLdapObject: insufficient access rights to access

    The dpadmin command failed w/ SMSLdapObject: insufficient access rights to access. The amSMS log is below. What aci did I lose? Any help is appreciated.
    Regards
    11/20/2005 03:17:15:659 AM MST: Thread[main,5,main]
    SMSEntry: cache enabled: true
    11/20/2005 03:17:16:023 AM MST: Thread[main,5,main]
    SMSLdapObject: LDAP Initialized successfully
    11/20/2005 03:17:16:349 AM MST: Thread[main,5,main]
    Initialized LDAPEvent listner
    11/20/2005 03:17:16:412 AM MST: Thread[main,5,main]
    CachedSubEntries::getInstance DN: ou=DAI,ou=services,dc=sun,dc=com
    11/20/2005 03:17:16:432 AM MST: Thread[main,5,main]
    CachedSMSEntry::getInstance: ou=DAI,ou=services,dc=sun,dc=com
    11/20/2005 03:17:16:441 AM MST: Thread[main,5,main]
    SMSLdapObject.read() retry: 0
    11/20/2005 03:17:16:451 AM MST: Thread[main,5,main]
    WARNING: SMSLdapObject: insufficient access rights to access DN=ou=DAI,ou=services,dc=sun,dc=com
    11/20/2005 03:17:16:461 AM MST: Thread[main,5,main]
    ERROR: CachedSubEntries: unable to register for notifications:
    Message:The user does not have permission to perform the operation.
    at com.sun.identity.sm.ldap.SMSLdapObject.read(SMSLdapObject.java:231)
    at com.sun.identity.sm.SMSEntry.read(SMSEntry.java:334)
    at com.sun.identity.sm.SMSEntry.read(SMSEntry.java:326)
    at com.sun.identity.sm.SMSEntry.<init>(SMSEntry.java:162)
    at com.sun.identity.sm.CachedSMSEntry.getInstance(CachedSMSEntry.java:307)
    at com.sun.identity.sm.CachedSubEntries.<init>(CachedSubEntries.java:72)
    at com.sun.identity.sm.CachedSubEntries.getInstance(CachedSubEntries.java:204)
    at com.sun.identity.sm.ServiceManager.getVersions(ServiceManager.java:409)
    at com.sun.identity.sm.ServiceManager.serviceDefaultVersion(ServiceManager.java:42 7)
    at com.sun.identity.sm.ServiceConfigManager.<init>(ServiceConfigManager.java :94)
    at com.iplanet.am.sdk.AMCommonUtils.populateManagedObjects(AMCommonUtils.java:497)
    at com.iplanet.am.sdk.AMCommonUtils.<clinit>(AMCommonUtils.java:113)
    at com.iplanet.am.sdk.AMStoreConnection.<clinit>(AMStoreConnection.java:141)
    at com.sun.portal.desktop.context.DSAMEConnection.<init>(DSAMEConnection.jav a:89)
    at com.sun.portal.desktop.context.DSAMEAdminDPContext.init(DSAMEAdminDPContext.jav a:110)

    - what's the complete command ?
    - which user is used ?
    /ulf

  • Forms6i Accessing HTTP Session Object in APache JServ

    I want to create an HTTP session object via a servlet in Apache JServ. This session object contains user profile data as well as session context information. The servlet will redirect the user to the forms6i listener servlet. Can the Forms servlet access the session object and retrieve/modify its values? Does Forms6i provide APIs to do this natively?

    Maybe the Java Importer is what you are looking for.
    You can use it to call the servlet from within forms and get the information you need.(But only after forms is running).
    look at the Java integration section on Forms section of otn.

Maybe you are looking for

  • How to find Fragmentation of tables and tablespaces in oracle 8i

    Hi, How can i measure the fragmentation of Tables and Tablespaces in oracle 8i. Do any one have any handy script to find the same. What are the attributes to be determined to do health checkup of a database.

  • ITV Catchup TV picture too big

    We have two laptops – the first one is an HP and works OK in Firefox for all TV Channels The second one – an Advent Verona produces the following problem ITV and Catchup TV viewed in Firefox - the picture is about 4 times too big BBCi, 4OD and Demand

  • JSF View Error

    Requirement is like that first it will go to another servlet ,will do some processing like session id ,security and then it will generate JSF view. When I am forwarding from my login servlet to JSF page , i am getting this error Oracle.ClassLoader.Ut

  • ITUNES shows a eq where whats playing usually goes??!?

    Hey All, I have an issue, well not really I just want to know how I did it. In ITUNES - where it usually shows the name of the song and a bar showing where it is in the song etc - it shows a Equilizer that goes with the music. Does anyone know how I

  • Creation of  Enterprise aliases for LDAP or AD accounts in BO XIR2

    Hello All, As per the SAP note --u201C1401058 I tried to run the script attached for creating enterprise aliases for LDAP account in BO XIR2.However am getting the error "Couldn't create SessionManager ".Below is my system configuration: BO XIR2 Wind