Servlet Sessions+dont have a clue

im trying to get a servlet session goin for a college project,i know its hard to help someone on this but please try this is driving me mad,,,
im useless at java so i have just being piecing together other peoples code and trying to get it working,
Iam trying to accept a username and password for the Oracle database and then put the resulting database connection into a session variable...
here is my useless code,,,please help....the only error iam getting is to do with the PrintWriter,,,
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
// You need to import the java.sql package to use JDBC
import java.sql.*;
public class LoginServlet1 extends HttpServlet
private Connection con=null;
public LoginServlet1(Connection con){
this.con=con;
public Connection getConnection(){
return con;
public void doGet(HttpServletRequest request,HttpServletResponse response)
          PrintWriter writer = response.getWriter();
          HttpSession session = request.getSession(true);
          String username = null;
          String password = null;
          String strHTML = "";
          boolean success = false;
               if (((username==null) || (username.compareTo("")==0)))
                    strHTML = strHTML + "<title> Lab #11 Login Error </title>";
                    strHTML = strHTML + "</head>";
                    strHTML = strHTML + "<body bgcolor=white>";
                    strHTML = strHTML + "Massive Error --- you need to provide a username ...please try again ...<BR><BR>";
                    strHTML = strHTML + "Back to the login page ..<A HREF=\"../login.html\"> click here </A>";
                    strHTML = strHTML + "</body>";
                    strHTML = strHTML + "</html>";
                    success = false;
               else if (((password==null) || (password.compareTo("")==0)))
                    strHTML = strHTML + "<title> Lab #11 Login Error </title>";
                    strHTML = strHTML + "</head>";
                    strHTML = strHTML + "<body bgcolor=white>";
                    strHTML = strHTML + "Massive Error --- you need to provide a password ... please try again ...<BR><BR>";
                    strHTML = strHTML + "Back to the login page ...<A HREF=\"../login.html\"> click here </A>";
                    strHTML = strHTML + "</body>";
                    strHTML = strHTML + "</html>";
                    success = false;
               else
               try
                         // Load Oracle driver
                         DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
                         LoginServlet1 holder=(LoginServlet1) session.getValue("servletapp.connection");
                         if(holder==null){
                         try{
                         holder= new LoginServlet1(DriverManager.getConnection("jdbc:oracle:thin:@macha.wit.ie:1521:MACH"));
                         session.putValue("servletapp.connection",holder);
                         catch(SQLException e){
                         getServletContext().log(e, "No");
                         success= true;
                    catch (SQLException sqlex)
                         strHTML = strHTML + "connection failed ....<BR>";
                         if (sqlex.getErrorCode()==1017)
                              strHTML = strHTML + "OUPS !!! wrong username or password lads ...please try again ...<BR><BR>";
                         else
                              strHTML = strHTML + "SQL Error happened ....<BR>";
                              strHTML = strHTML + "Error Number = " sqlex.getErrorCode() "<BR>";
                              strHTML = strHTML + "Error Message = " + sqlex.getMessage() + "<BR>";
                              strHTML = strHTML + "ah common cheer up, it's not the end of the world...<BR>";
                         strHTML = strHTML + "Back to the login page<A HREF=\"../login.html\"> click here </A>";
                         success = false;
                    if (success)
                         try
                         getServletConfig().getServletContext().getRequestDispatcher("/WEB-INF/jsp/query.jsp").forward(request,response);
                         catch (Exception ex) {
          ex.printStackTrace ();

back again,,
the code above is causing the following error when i try to run it,,
Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
the error goes on to give a very long list of exceptions and root causes,there is nothing wrong with Tomcat because i can run the other version of this program that doesnt have any sessions is it,,,
thanks

Similar Messages

  • Recently got went through the process of unlocking my phone through itunes, i am now unable to back my phone up to my computer, its asking me for a passcode that i used to unlock it, but i dont have a clue what it is. any ideas?

    recently got went through the process of unlocking my phone through itunes, i am now unable to back my phone up to my computer, its asking me for a passcode that i used to unlock it, but i dont have a clue what it is. any ideas?

    that works on my phone! But when im on ITunes on my computer and back it up manually, it comes up with a message saying, the passcode used to unlock iPhone is incorrect

  • First iMac and I dont have a clue which one to buy :(

    I have seen the light and now looking to buy a second hand Apple iMac 4,1. The specs are
    Intel Core Duo 1.83GHz  2MB L2 Cache
    2GB 667MHz RAM
    160GB Hard Drive
    17" screen.
    Tiger10.4.11
    My friend wants £200 for it which seems a good deal...but i dont know much about iMac's, as I have had windows based pcs for many years.
    I do a lot of video editing and my widnows PC just cant cope at all, constant crashing and performace issues.
    so my questions are
    Is this sutible for HD/SD video editing and what software would you recommend ? Anyone have any slow down or performance problems ?
    I will have to upgrade the HDD as 160gb is far to small, whats the largest HDD i could install and is it any more difficult to fit then a PC ?
    Thanks
    Donna

    It isn't a bad deal but it probably isn't a good deal for you. I have its big brother (so to speak) in my guest bedroom for visitors to use while they are with us. I have upgraded it to Snow Leopard and have Photoshop Elements 8, as well as Office 2008, a few games, and other programs. Back when it was my main computer, about 3-4 years ago I even did some video editing in iMovie.
    But as captfred said, Snow Leopard is as far as you can take it which means in about 18 months you are likely to see software coming out that it cannot use. Already it is too slow for the newer versions of video editing software (unless you intend to use iMovie). The drive is too small which isn't a deal killer - for the last year or so I was booting mine from a 500GB FireWire drive.
    But I strongly urge you to look elsewhere. The good deal your friend is offering would make a very good second computer for the household. I don't think it begins to fit your needs. BTW - Apple's refurbished computers are generally top notch. They tend to be returns as opposed to used. They come with a full year warranty and are elligible for AppleCare extended warranty just like a brand new computer.

  • Itunes will not play my music, when it does it plays for about 10 seconds then speeds through the rest of the song then jumps through the nexts songs in the album, anyone got any ideas dont have a clue

    Hi anyone
    i am having a problem with itunes, i cannot play tracks and when they do play they play for about 10 seconds then speed through to the end then jump down the next few tracks.
    Getting really frustrated as i am a complete novice on this type of thing, any help would be appreciated. i have uninstalled itunes and reinstalled no joy

    Dave, you are a god among mere mortal men!
    I had used the check to only load certain tracks on my iPod mini that my kids use, while loading everything on my iPod 60GB.
    I guess I should come up with a different method for that.
    Thank you for clueing me in on how the checkmark works.
    I'm a happy man once again.
    Mac mini & Power Mac G5 & PowerBook G4   Mac OS X (10.4.6)  

  • I normally dont need a login when I install new program, but I try to Install a new flash player im asked to write a login and I have no clue? when I search for help it suggest to put in the original installation cd but that doesnt work. Please help!

    When Trying to install the newest Flash player, Im asked to fill in my login.
    I have no clue what my login is. (It happened very rarely that I was asked to fill in this when installing a new program, and the login I have used before are not valid now.
    When I search for help, I am suggested to put in the original installation Cd.. and press the "C" button when I hear the starting sound... but when I do this nothing is happening.
    Please Help me If you have an idea for a solution to this problem!
    / Joel

    You need the admin password you created when you first set up the machine.  Just about every installer running under OS X will require you to authorize the installation by entering an administrator password - even software update requires this.  You really should not forget your admin password, as it is required for many things in OS X since, unlike Windows, you often need to manually type in the admin password to proceed with an install or update (whereas Windows will take admin authority, if you are logged in as an admin, by simply clicking continue or yes).
    If you cannot remember your admin password, you can reset it from the recovery CD that came with your mac - http://support.apple.com/kb/HT1274

  • A few days ago with the new Itunes update, i forgot to restart my computer and now itunes will not open. I don't feel comforable uninstalling becuase i dont have all my music saved on an external hard drive. Any advice? Help please!

    I have a Toshiba Laptop and I dont know the exact model or anything, might be a windows 7...i have no clue. Every other answer is saying to uninstall then reinstall but i really dont feel safe doing that without all my songs externally saved (just incase) and now i cant even get into itunes! Any help is greatly appreciated

    What error message are you getting when you try to launch iTunes? (Precise text, please.)

  • How to identify the locks in oracle db objects? i dont have access to check

    How to identify the locks in oracle db objects? i dont have access to check the v$lock or v$ objects. i dont have dba access. what are the symptoms for table, row or objects lock? how v guess it would be lock?
    Thanks in advance friends..

    I believe you will have to call your DBA on the phone in that case.
    You can query something with a select ... for update nowait.
    If it raises an exception you can handle it within a when section.
    -- Running in one session
    SQL> create table t1 as select 1 col1 from dual;
    Table created
    SQL> select * from t1 for update nowait;
          COL1
             1
    SQL>
    -- now running in a different session
    SQL> select * from t1 for update nowait;
    select * from t1 for update nowait
    ORA-00054: resource busy and acquire with NOWAIT specified
    SQL> set serveroutput on
    SQL>
    SQL> DECLARE
      2    CURSOR cur1 IS
      3      SELECT col1 FROM t1 FOR UPDATE NOWAIT;
      4    v_col1 NUMBER;
      5    locking_error EXCEPTION;
      6    PRAGMA EXCEPTION_INIT(locking_error, -00054);
      7  BEGIN
      8    OPEN cur1;
      9  EXCEPTION
    10    WHEN locking_error THEN
    11      dbms_output.put_line('Busted locking my rows!');
    12  END;
    13  /
    Busted locking my rows!
    PL/SQL procedure successfully completed
    SQL> Now, surely you won't be able to tell anything else other than there was something locked there.
    But none of the details you would find in the views.

  • Weblogic 8.1 SP2 + Struts + Internal Servlet Session Process Error Found!

    Hi,
              I have developed a struts 1.1 based webapplication which runs fine on
              weblogic 7 (for one year in production), tomcat 4.1,5 and others but
              refuses to function in weblogic 8.1 sp2!
              This is the stacktrace I get when I try to call an action via the browser:
              java.lang.IllegalStateException: Internal Servlet Session Process Error
              Found!
                   at
                   weblogic.servlet.internal.session.SessionData.checkProcess(SessionData.java:1148)
                   at
                   weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:501)
                   at
                   org.apache.struts.action.RequestProcessor.processLocale(RequestProcessor.java:638)
                   at
                   org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:230)
                   at
                   org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
                   at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:502)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
                   javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
                   weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
                   at
                   weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
                   at
                   weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
                   at
                   weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
                   at
                   weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
                   at
                   weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
                   at
                   weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
                   at
                   weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at
                   weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              Just out of curiosity I deployed the struts-examples webapplication from
              the apache jakarta struts distribution and it also fails to run with the
              same error!
              Can anybody help me out with this one? Does anybody experience the same
              thing?
              regards,
              oliver
              p.s. I will also post this message on the struts user list.
              

    Hi,
              I have developed a struts 1.1 based webapplication which runs fine on
              weblogic 7 (for one year in production), tomcat 4.1,5 and others but
              refuses to function in weblogic 8.1 sp2!
              This is the stacktrace I get when I try to call an action via the browser:
              java.lang.IllegalStateException: Internal Servlet Session Process Error
              Found!
                   at
                   weblogic.servlet.internal.session.SessionData.checkProcess(SessionData.java:1148)
                   at
                   weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:501)
                   at
                   org.apache.struts.action.RequestProcessor.processLocale(RequestProcessor.java:638)
                   at
                   org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:230)
                   at
                   org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
                   at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:502)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
                   javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
                   weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
                   at
                   weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
                   at
                   weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
                   at
                   weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
                   at
                   weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
                   at
                   weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
                   at
                   weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
                   at
                   weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at
                   weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              Just out of curiosity I deployed the struts-examples webapplication from
              the apache jakarta struts distribution and it also fails to run with the
              same error!
              Can anybody help me out with this one? Does anybody experience the same
              thing?
              regards,
              oliver
              p.s. I will also post this message on the struts user list.
              

  • HT201195 i dont have any credite card. what do i do?

    i dont have any credit card.
    what can i do for session itune?

    There are instructions on this page for how to create a new iTunes account without giving credit card details : http://support.apple.com/kb/HT2534
    If those instructions aren't used when creating an account then credit card details will need to be entered before the account can be used to download any item from the store.

  • Servlet Session Object

              I need to get the lastAccessTime of the servlet which I have deployed on Weblogic
              7.0.
              I have found that by using ServletSessionRuntimeMBean interface which has a method
              called getTimeLastAccessed, I can get the same.
              I am not able to get the same. Can any one sujject the way I have to go for this.
              

    Hello Linus,
    Actually, you would want to retrieve the necessary objects from your servlet context
    and then pass them along to your session EJBs. It's not necessary to pass the
    entire ServletContext object to your session bean. You should wrap the values
    in DTOs (Data Transfer Objects / Value Objects) and pass them along to your session
    beans. Also, it's not good to couple your EJBs with Servlets, as they may be eventually
    accessed from standalone clients in the future. For more information on this design
    pattern, please see the following link:
    http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObject.html
    Best regards,
    Ryan LeCompte
    [email protected]
    http://www.louisiana.edu/~rml7669
    "Linus Nikander" <[email protected]> wrote:
    Is it possible to accesss objects stored in a Servlet session context
    from
    an EJB ? If so, how ?
    //Linus Nikander - [email protected]

  • IllegalStateException: Internal Servlet Session Process Error Found!

              I keep getting the annoying error as listed, and the server also keeps reporting
              that I can only connect from 0 unique ip addresses. Has anybody else seen these
              type of frustrations on 8.1 sp2, or can explain them.
              With as much detail omitted for simplicity;
              Frustration 1.
              I have a 8sp2 server running all ok, occasionally after a redeploy of an ear file
              I attempt to load a jsp file, and the error below is thrown.
              The JSP has a bean which is session based, and as from following the stack trace
              it is around some weblogic code which tests if my license allows access to the
              http session (on a developer license). I then have to start another server instance
              and do a deployment of a v.simple war, and access this, then deploy the same war
              to the broken server and access that, then the initial jsp works fine. no code
              changes just environment stops, starts and redeploys!
              Frustration 2
              Server runs ok, tray and connect from two machines (I have an ldap server that
              wants to 'broadcast' messages to my server), error of too many connections.
              The ip connection issues can in most cases be removed with a server restart.
              EXCEPTION TRACE
              java.lang.IllegalStateException: Internal Servlet Session Process Error Found!
              With the following stack trace:
              java.lang.IllegalStateException: Internal Servlet Session Process Error Found!
                   at weblogic.servlet.internal.session.SessionData.checkProcess(SessionData.java:1148)
                   at weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:501)
                   at jsp_servlet._security.__changeprofile._jspService(__changeprofile.java:135)
                   at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
                   at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:446)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
                   at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
                   at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
                   at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
                   at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
                   at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              

              I have the same problem. Could any one help us?
              "David" <[email protected]> wrote:
              >
              >I keep getting the annoying error as listed, and the server also keeps
              >reporting
              >that I can only connect from 0 unique ip addresses. Has anybody else
              >seen these
              >type of frustrations on 8.1 sp2, or can explain them.
              >
              >With as much detail omitted for simplicity;
              >
              >Frustration 1.
              >I have a 8sp2 server running all ok, occasionally after a redeploy of
              >an ear file
              >I attempt to load a jsp file, and the error below is thrown.
              >
              >The JSP has a bean which is session based, and as from following the
              >stack trace
              >it is around some weblogic code which tests if my license allows access
              >to the
              >http session (on a developer license). I then have to start another
              >server instance
              >and do a deployment of a v.simple war, and access this, then deploy the
              >same war
              >to the broken server and access that, then the initial jsp works fine.
              > no code
              >changes just environment stops, starts and redeploys!
              >
              >Frustration 2
              >Server runs ok, tray and connect from two machines (I have an ldap server
              >that
              >wants to 'broadcast' messages to my server), error of too many connections.
              >The ip connection issues can in most cases be removed with a server restart.
              >
              >
              >EXCEPTION TRACE
              >
              >java.lang.IllegalStateException: Internal Servlet Session Process Error
              >Found!
              >
              >With the following stack trace:
              >
              >java.lang.IllegalStateException: Internal Servlet Session Process Error
              >Found!
              >     at weblogic.servlet.internal.session.SessionData.checkProcess(SessionData.java:1148)
              >     at weblogic.servlet.internal.session.SessionData.setAttribute(SessionData.java:501)
              >     at jsp_servlet._security.__changeprofile._jspService(__changeprofile.java:135)
              >     at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
              >     at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
              >     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
              >     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:446)
              >     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
              >     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
              >     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
              >     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
              >     at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
              >     at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
              >     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              >     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              >
              >
              

  • How to share objects between two ADF Faces servlet sessions

    I gather the application scope is one way to go for sharing data between sessions in an ADF application. Are there other more generic methods of sharing data between servlet sessions?
    For example, let's say we have a JDev 101.3 ADFBC/JSF app. (or JDev 11g for that matter). In this app we also register a servlet in web.xml. So two people log into this application and access this defined servlet, creating two instances of that servlet...I guess. Is there a way for those two instances/sessions to talk to each other? Pass data back and forth? Should I read about JMS? Or does application scope sound better? I guess a direct communication would be more tidy, than putting data on an application bulletin board, lilke application scope.
    Any thoughts?

    Hi,
    Only one instance of each servlet defined in web.xml gets created, not one per user. You're right about the sessions though, one per user is created. You're right on the other parts as well I think you could use application scope to do something like that, or the data base for that matter, depending on the use case.
    Regards,
    ~ Simon

  • Servlet Session Monitoring via MBeans turns up no MBeans

    Hi,
    I discovered more about why I'm not seeing any Servlet Session Runtime
    MBeans when I enable session monitoring. It looks like each time my
    managed server creates a new session, two errors get written to my
    WebLogic log:
    "####<Sep 22, 2002 6:46:43 PM EDT> <Warning> <Dispatcher>
    <chile.iso-ne.com> <adminserver> <ExecuteThread: '7' for queue:
    '__weblogic_admin_rmi_queue'> <> <> <000000> <RuntimeException thrown
    by rmi server: 'weblogic.rmi.internal.BasicServerRef@10b - jvmid:
    '7074298665992588400S:10.145.220.82:[7001,7001,7002,7002,7001,7002,-1]:smsdomain:adminserver',
    oid: '267', implementation:
    'weblogic.management.internal.AdminMBeanHomeImpl@3c7b65''>
    weblogic.management.NoAccessRuntimeException: User guest does not have
    access permission on weblogic.admin.mbean.MBeanHome
    at weblogic.management.internal.Helper.checkAdminPermission(Helper.java:1637)
    and
    "####<Sep 22, 2002 6:46:43 PM EDT> <Error> <HTTP Session>
    <chile.iso-ne.com> <webuiserver> <ExecuteThread: '0' for queue:
    'default'> <> <> <100032> <Error creating servlet session runtime>
    weblogic.management.NoAccessRuntimeException: User guest does not have
    access permission on weblogic.admin.mbean.MBeanHome
    at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:85)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:136)
    at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
    at $Proxy7.getMBeanServer(Unknown Source)
    at weblogic.management.internal.MBeanHomeImpl.isAdminHome(MBeanHomeImpl.java:93)
    at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.java:118)
    at weblogic.management.internal.MBeanHomeImpl.getRuntimeMBean(MBeanHomeImpl.java:590)
    at weblogic.management.internal.MBeanHomeImpl.getRuntimeMBean(MBeanHomeImpl.java:568)
    at weblogic.servlet.internal.session.SessionData$1.run(SessionData.java:185)
    at weblogic.management.internal.Helper.doLocally(Helper.java:1656)
    at weblogic.servlet.internal.session.SessionData.getRuntimeMBean(SessionData.java:179)
    at weblogic.servlet.internal.session.SessionData.<init>(SessionData.java:166)
    Looks like the managed server is making a request of the admin server
    and propagating the "guest" principal instead of "system".
    These principal propagation errors from managed-to-admin seem to
    happen all over the place with different MBeans, and get patched one
    place at a time in various BEA service packs. For instance, there's
    another issue with accessing the XML Entity Cache from a managed
    server, and I'm sure I've read about others. Isn't there a way to
    make sure these errors no longer occur with any MBean requests from
    the managed server?
    Jim

    Add
    acl.access.weblogic.admin.mbean.MBeanHome=guest
    in the filerealm.properties file.
    Jim Doyle wrote:
    Hi,
    I discovered more about why I'm not seeing any Servlet Session Runtime
    MBeans when I enable session monitoring. It looks like each time my
    managed server creates a new session, two errors get written to my
    WebLogic log:
    "####<Sep 22, 2002 6:46:43 PM EDT> <Warning> <Dispatcher>
    <chile.iso-ne.com> <adminserver> <ExecuteThread: '7' for queue:
    '__weblogic_admin_rmi_queue'> <> <> <000000> <RuntimeException thrown
    by rmi server: 'weblogic.rmi.internal.BasicServerRef@10b - jvmid:
    '7074298665992588400S:10.145.220.82:[7001,7001,7002,7002,7001,7002,-1]:smsdomain:adminserver',
    oid: '267', implementation:
    'weblogic.management.internal.AdminMBeanHomeImpl@3c7b65''>
    weblogic.management.NoAccessRuntimeException: User guest does not have
    access permission on weblogic.admin.mbean.MBeanHome
    at weblogic.management.internal.Helper.checkAdminPermission(Helper.java:1637)
    and
    "####<Sep 22, 2002 6:46:43 PM EDT> <Error> <HTTP Session>
    <chile.iso-ne.com> <webuiserver> <ExecuteThread: '0' for queue:
    'default'> <> <> <100032> <Error creating servlet session runtime>
    weblogic.management.NoAccessRuntimeException: User guest does not have
    access permission on weblogic.admin.mbean.MBeanHome
    at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:85)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:136)
    at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
    at $Proxy7.getMBeanServer(Unknown Source)
    at weblogic.management.internal.MBeanHomeImpl.isAdminHome(MBeanHomeImpl.java:93)
    at weblogic.management.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.java:118)
    at weblogic.management.internal.MBeanHomeImpl.getRuntimeMBean(MBeanHomeImpl.java:590)
    at weblogic.management.internal.MBeanHomeImpl.getRuntimeMBean(MBeanHomeImpl.java:568)
    at weblogic.servlet.internal.session.SessionData$1.run(SessionData.java:185)
    at weblogic.management.internal.Helper.doLocally(Helper.java:1656)
    at weblogic.servlet.internal.session.SessionData.getRuntimeMBean(SessionData.java:179)
    at weblogic.servlet.internal.session.SessionData.<init>(SessionData.java:166)
    Looks like the managed server is making a request of the admin server
    and propagating the "guest" principal instead of "system".
    These principal propagation errors from managed-to-admin seem to
    happen all over the place with different MBeans, and get patched one
    place at a time in various BEA service packs. For instance, there's
    another issue with accessing the XML Entity Cache from a managed
    server, and I'm sure I've read about others. Isn't there a way to
    make sure these errors no longer occur with any MBean requests from
    the managed server?
    Jim--
    Rajesh Mirchandani
    Developer Relations Engineer
    BEA Support

  • Get the Web users Clipboard text in Servlet session

    We have a small web application � uses JSPs , Servlets and runs on Tomcat Server.
    We are trying to get the end web user�s ( browsers ) Clipboards copied text in our Servlets session.
    We know there is some AWT API to get the Clipboards copied data.
    java.awt.datatransfer.Clipboard clipboard = java.awt.Toolkit.getDefaultToolkit().getSystemClipboard();
    // Get data from clipboard
    java.awt.datatransfer.Transferable clipData = clipboard.getContents(clipboard);
    But if we use this piece of code in our servlet session, we always get the Clipboard text, which is copied on the Server. Not at the users / browsers.
    So, we wonder are there any ways or similar to get the Users clipboard text in that users session.
    Any help would be great.

    Its the same old story.
    Java code is only running on the server.
    At the client end all you can work with is HTML and javascript.
    With Internet explorer you can access clipboard data:
    http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/clipboarddata.asp?frame=true
    Grab it with javascript, put it into a hidden field, and submit the page.
    That will pass it as a request parameter to your jsp/servlet, and you can get at it that way.

  • Apparently I have MULTIPLE Apple ID's, many linked to very old computers/emails that I no longer use and I have no clue what they are nor what the passwords could possibly be. I just want to be able to listen to music THAT I OWN!

    I am trying to play music on my iTunes that I had burned from either CD's that I had bought & own (in order to preserve the CD from damage and it is all only for my personal use) or purchased through iTunes. Much, but not all of this was done on an old computer, and on old e-mails that no longer exist, and for that matter I have no clue what the passwords could possibly be! The computer that I use now is at least 10 years old, so how am I supposed to remember passwords from that long ago? I am constantly being told to reset my password, but that apparently just seems to compound the issue. One account will not even accept my birthday and my security question which I know with 100% certainty are correct. I JUST WANT ACCESS TO MUSIC I OWN OR HAVE PURCHASED over the past 20+ years, and I don't care what computer I did it on or what e-mail address I used, and forget about trying to recall my password! Apple makes it so difficult to do passwords it's ridiculous! I would need a book to write down every password that I have tried, and apparently not succeeded in using! add to my frustration is that my son put literally TONS of his music onto my computer and used his various Apple ID's and passwords, and it's just a bumble cluck of a mess. AGAIN, I only want access to MY MUSIC!

    You're supposed to remember them or make note of them because they are key to a resource in which you have invested financially, just like keeping records for bank accounts you have or keys to your car.  It is just that people haven't woken up to the importance of having a digital legacy too.
    Here are resources for forgotten passwords:
    https://iforgot.apple.com/
    http://www.apple.com/support/appleid/contact/
    Contact Apple for help with Apple ID account security - http://support.apple.com/en-us/HT5699 "This article provides country-specific Apple Support contact information for customers seeking help with their Apple ID password or other security-related issues."

Maybe you are looking for

  • Thank You, App #1 Complete

    This is a big THANK YOU to Ray Newbie, etresoft, K T, Q Lazarus, Tech Guru and the others who have been so helpful in this forum, and others who asked the same questions I have had, and gotten answers found in these forums. In a little less than two

  • Document not relevant for billing

    Hi experts, i want to create a forma invoice for delivery(delivery document type: NL), but i did not succeed. I have already assigned this billing type to NL under intercompany billing. The process of moving goods from one plant to another was also c

  • String parsing - better solution needed :-(

    Hi Folks, Basically I will be taking in a string that represents the name of the output file the user wants, this will be specified in an xml file. The issue I have is that it needs to have non-static elements as part of the name as well (like a time

  • Captivate 7 - Videos not playing

    I have inserted videos into a Captivate 7 presentation.  However, when I publish they do not play in the SWF file format, work fine in PDF (of course).  I have encoded the videos from mp4 to flv to f4v using the Adobe Media Encoder.  I have ensured a

  • ITunes won't update!!!!! HELP!!!!

    I updated iTunes and it said i did, but iTunes 7 won't open. Do i have to download iTunes from the disc all over again?