Error in accessing pageContext or current session for JSP/servlet in frames

I am creating a web application on iPlanet application server (ver 6.0 SP4) and display a page
consists of frames in web browser (IE6). The framset and the content of each frames are
JSPs or servlets. There where no problem to display each content frames individually at all.
However, when the overall page (the frame set and the 3 frames) is displayed, the following
problem occurs.
Only the outermost frameset and just one or two of the frame contents displayed successfully
in browser. Others have either 1 of the following errors:
1. When accessing pageContext object in _jspService routine when displaying the JSP page, Null
Pointer Exception occurs:
java.lang.NullPointerException
Exception Stack Trace:
java.lang.NullPointerException
at jsp.APPS.intl.acct_type_option._jspService(acct_type_option.java:653)
2. When calling the req.getSession method in doGet() method for servlets, the following
exception occurs:
Exception in doGet(): This session has already been invalidated
The occurance of error is random among all the frames. With the frame on top or left size
having the most chance to be displayed successfully.
It seems that the Application server cannot entertain 3 or 4 requests simultaneously (which
happens when displayed a page consists of frames), having some of them throw an exception.
Are they any tuning or setting for iPlanet server to overcome this problem?

I'll give you the same advice as I have been given regarding the use of frames.
Don't use them at all. Use scrollable DIV's instead.
The use of frames is such that you would have different JSP's who cannot collaborate together since each is in his own frame and does not know about the others.
In case I'm mistaken, I'd like to hear about it, but the combination of JSP's and frames is an unhappy one.

Similar Messages

  • What is the best editor to use for JSP/Servlet?

    Hello,
    What is the best editor to use for JSP/Servlet database development.
    I'm looking at Dreamweaver,Java Studio Creator.
    I want some thing fairly easy to use that has database helper wizards like dreamweaver.
    Thanks for the help.
    Frank

    Is it better to have a servlet do the database work and call it from JSP?No, it's better to have persistence objects do the database work. Servlets handle HTTP requests, and JSPs are HTML factories that should be pure view.
    But there are lots of ways to do things. You just have to understand the tradeoffs when you decide.
    I do not want to hammer out code, I want to learn the
    best way to do things from experienced developers. Sorry, sounded like you just wanted to churn stuff.
    "best way" can be subjective. In one app, "best" might be "delivered fastest". For another, "best" might be "most secure" or "most easily modified" or "best performing" or whatever. You won't get a "best" answer, only different choices. And they aren't always so easy to explain or execute.
    I'd recommend that you start by reading about layered applications (3-tier architectures) and MVC separation. Once you've Googled enough about that, look into a framework like Struts or Spring or WebWork. That'll help you figure out where to put each responsibility in your app.
    I can use dreamweaver to create web apps, but I hate
    the arrays used to define fields. It also seems not
    to take advantage of connection pooling.Don't know what you're talking about here, Frank. What do fields have to do with connection pooling?
    %

  • What is the plugin used for jsp/servlet development , deployment in eclipse

    what is the plugin used for jsp/servlet development , deployment in eclipse?
    can some body tell me what are the other plugins to be used in enterprise java developement
    is eclipse would be a best choice j2ee application development?
    thanks

    what is the plugin used for jsp/servlet development ,
    deployment in eclipse?There are several J2EE plugins I think. One is Lomboz.
    can some body tell me what are the other plugins to
    be used in enterprise java developementPfft...
    1) Might depend on what you're doing. J2EE is not just JSP, you know?
    2) Why do you ask about Eclipse IDE at Sun's Java Programming forum?
    3) Do you really want me to list the 5000 plug-ins someone might use for J2EE-related development?
    4) Open fucking Google and search yourself
    is eclipse would be a best choice j2ee application
    development?IMO: no. Simply because you have to look for J2EE plugins. I'm too lazy for that. Though it has other benefits that might outweigh the plug-in-searching issue.

  • Error while accessing application of Mobile Sales for Handhelds

    Hi all,
       I am working with Mobile Sales for Handhelds. I downloaded a source code for "Mobile Sales & Service for HH using CRM 4.0 SP08" from SAP note 824427. After creating a WAR file out of this code and assigning it to the user through web console successfully, I synchronized. But when I tried to access the application by the link, I get a Included servlet error. The stack trace is as follows :
    Included servlet error: 500
    Location: /CRMHHSALES/start
    Error Location: /CRMHHSALES/main/BaseMenu.jsp
    Internal Servlet Error:
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    C:\Program Files\SAP Mobile Infrastructure\work\localhost_8080%2FCRMHHSALES\_0002fsystem_0002fError_0002ejspError_jsp_0.java:15: Class com.sap.crm.handheld.logic.gui.Skin not found in import.
    import com.sap.crm.handheld.logic.gui.Skin;
           ^
    C:\Program Files\SAP Mobile Infrastructure\work\localhost_8080%2FCRMHHSALES\_0002fsystem_0002fError_0002ejspError_jsp_0.java:16: Class com.sap.crm.handheld.core.utils.EncodingHelper not found in import.
    import com.sap.crm.handheld.core.utils.EncodingHelper;
           ^
    C:\Program Files\SAP Mobile Infrastructure\work\localhost_8080%2FCRMHHSALES\_0002fsystem_0002fError_0002ejspError_jsp_0.java:17: Class com.sap.crm.handheld.logic.gui.Skin not found in import.
    import com.sap.crm.handheld.logic.gui.Skin;
           ^
    3 errors, 1 warning
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
         at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
         at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.facade.RequestDispatcherImpl.doInclude(RequestDispatcherImpl.java:400)
         at org.apache.tomcat.facade.RequestDispatcherImpl.include(RequestDispatcherImpl.java:270)
         at com.sap.crm.handheld.core.webtools.ControllerServlet.displayPage(Unknown Source)
         at com.sap.crm.handheld.core.webtools.ControllerServlet.saveStateAndDisplayPage(Unknown Source)
         at com.sap.crm.handheld.core.webtools.ControllerServlet.handleRequest(Unknown Source)
         at com.sap.crm.handheld.core.webtools.ControllerServlet.handleRequestWrapper(Unknown Source)
         at com.sap.crm.handheld.core.webtools.ControllerServlet.doGet(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:402)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:534)
    Can anybody help me in this issue?
    Thanks in advance.
                     Saptak.

    Hi Saptak Kulkarni ,
    <<<
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    C:\Program Files\SAP Mobile Infrastructure\work\localhost_8080%2FCRMHHSALES\_0002fsystem_0002fError_0002ejspError_jsp_0.java:15: Class com.sap.crm.handheld.logic.gui.Skin not found in import.
    import com.sap.crm.handheld.logic.gui.Skin;
    ^
    C:\Program Files\SAP Mobile Infrastructure\work\localhost_8080%2FCRMHHSALES\_0002fsystem_0002fError_0002ejspError_jsp_0.java:16: Class com.sap.crm.handheld.core.utils.EncodingHelper not found in import.
    import com.sap.crm.handheld.core.utils.EncodingHelper;
    ^
    C:\Program Files\SAP Mobile Infrastructure\work\localhost_8080%2FCRMHHSALES\_0002fsystem_0002fError_0002ejspError_jsp_0.java:17: Class com.sap.crm.handheld.logic.gui.Skin not found in import.
    import com.sap.crm.handheld.logic.gui.Skin;
    ^
    >>>
    Check whether u have imported these classes or not,,
    import com.sap.crm.handheld.logic.gui.Skin;
    import com.sap.crm.handheld.core.utils.EncodingHelper;
    import com.sap.crm.handheld.logic.gui.Skin;
    these classes in your JSP file during modification ..
    i think u have used these all external classes in your JSP files without importing these classes...
    If u have imported these class files , then check , u have properly set path for these library (jar files) in the MI client itself.
    <b>If ur MI applications are using some extra jar files , then in the client device , that jar files must present in the lib directory of MI installation</b>.
    <b> These jar files must be set in the classpath while  starting the  MI client...</b>
    just refer this forum for setting classpaths in the client device for additional jar files ...
    Re: External API in MI application
    Regards
    Kishor Gopinathan

  • Configuration of sessions for deployed servlet, jsp, wdp

    Hello,
    I wonder how to configure session for a specific servlet. As there are several locations where to deal with session management.
    I have found the Security Provider->SessionExpirationPeriod property which is fixed to ~27 hours, this is a general parameter for all security providers.
    I need to do it per application, I have then tried to set the session in the servlet descriptor it is not taken into account.
         <session-config>
              <session-timeout>10000</session-timeout>
         </session-config>
    The security provider of the servlet is set to SAML authentication.
    Thanks for your input on this topic,
    Tanguy Mezzano

    Finally, it was that parameter.

  • Using a single connection for jsp, servlets and classes

    Hi! I'm building a web site that uses JSP, Servlets and some classes. I use database access in all my pages. I want to open a connection and use it for all the pages while the user is in my site, so I don't need to open a connection with every new jsp or servlet page. My software must be capable of connection with various databases, like SQLServer, Oracle, Informix, etc... so the solution must not be database (or OS or web server) dependant.
    Can you help me with this? Some ideas, links, tips? I'll REALLY appreciate your help.
    Regards,
    Raul Medina

    use an initialiation servlet with pooled connection which can be accessed as sesssion object.
    Abrar

  • How to create session in JSP & Servlet

    Hi All
    I'm really new to JSP & Servlet. So I want to know how to create sessions and how to pass details to another web page
    Thanks
    Padma

    You can easily pass objects from one jsp or servlet to another.
    On your servlet execute method (for example), you can do this as follows:
    HttpSession session = request.getSession();
    User u = new User();
    session.setAttribute("user", u);And get it again on other servlets:
    HttpSession session = request.getSession();
    User user = (User) session.getAttribute("user");I hope this helps you.

  • Different Classloader for JSP, Servlets?

    Hi!
              Does the WL5-JSP-servlet use an other classloader then the other
              servlets??
              I've previous posted an article with the subject "JSP - Servlet - Static
              Code in Classes".
              I will try to describe my problem better:
              At server startup I pass information to my startup servlet, for example
              the user and pw for our connection pool. The startup servlet instanciates
              the class Global which creates a db-pool with the user and pw getting
              from
              the startup-servlet.
              startup-servlet {
              public void init(ServletConfig config)
              Global.init("user","pw");
              The class Global looks like this:
              class Global {
              static {
              // register jdbc driver
              // store file informations
              static public init(string, string) {
              // init the connection pool with user and pw
              static public getConnection() {
              // returns connection from pool
              All our other servlets then just use the methode Global.getConnection()
              and other methods from the class Global.
              All servlets works perfect and can access the db-pool.
              When a jsp-file is called which also uses the methode
              Global.getConnection(), a new Instance of the class Global will be made.
              In order to init all values again, I would have to call the
              Global.init(user, pw) methode again.
              So my question is: Why does the jsp file causes a new instance of the
              class Global?
              Does the WL5-JSP-servlet use an other classloader then the other
              servlets??
              

    I am seeing the problem is sp3. I can't use sp4 becuase form based
              authentication, FBA, was broken. I can only hope that FBA will be
              re-fixed in sp5.
              Kumar Allamraju wrote:
              >
              > If you are seeing this problem in SP4, yes this is a regression in SP4 &
              > SP5. We are already aware of this
              > problem. SP5 will be out in a week or so. But this fix won't be available
              > in SP5. Follow-up with
              > support.
              >
              > --
              > Kumar
              >
              > "Bryon G. Rigg" wrote:
              >
              > > I have an application which has a servlet that controls page navigation
              > > via an xml file. The servlet class is located beneath the
              > > WEB-INF/classes as is the xml file. When I have weblogic pointing to
              > > the app directory, my servlet finds the xml file, using the
              > > Class.getResourceAsStream() method, without a hitch. But when I
              > > package everything up into a war file, and point weblogic at the war
              > > file instead, the servlet can not locate the xml file.
              > >
              > > What gives? Is there some kind of brain-dead classloader being used
              > > for war files versus a normal classloader used for directories? Any
              > > workarounds? And when will sp5 be released? I have been hearing a
              > > week or two for weeks.
              [bryon.vcf]
              

  • How to install eclipse and MyEclipse and use it for jsp-servlet-web service

    hi ,
    please help me to install eclipse 3.1 and How to integrate MyEclipse to do jsp-servlet programming and web services.
    please also help me to include application server like tomcat and axis and use that environment in MyEclipse ide.
    please help me.....

    At the time of installation , you can't change SID XE.
    After installation, you can add another service name
    Check following thread for more details
    Re: How to create service on Oracle 10g XE
    - Virag Sharma
    http://virag.sharma.googlepages.com
    http://viragsharma.blogspot.com

  • Host for jsp servlet

    Hi all, I did an web application using jsp servlet.
    For broadcasting which is suitable linux cpanel or windows flesk?
    Thanks

    BumpIf nobody cared about this the first time, why do you
    think it needs to be bumped?1. My original post was on Friday, probably not the best time to get a response. So I bumped it up Sunday night to try for a response Monday morning.
    2. Fred visits the forums on Friday, but doesn't have a comment. Bob on the other hand doesn't visit the forum on Friday, but he does on Monday, and he has some advice.
    3. Do you give up the first time?

  • Good IDE for JSP/Servlets Development

    Guys, I was looking for a good IDE for JSP/Sevlets development. I for myself wouldn't need or atleast wouldn't want to have one, but for our production they say they need one. So please can u guys advise one. I have downloaded and tried JDeveloper but it just hangs, dont know but looks like its too memory intensive. Any suggestions??? Thanks in advance

    IBM's Websphere Studio Application Developer (WSAD) is a good one. It can also connect to any CVS servers, which allows you to control the versions. Hope this may help you...

  • Error when accessing the web-based portal for SQL Azure

    Hi,
    when trying to access SQL azure management portal, the following error is thrown:
    [MoreThanOneMatch]
    Arguments:
    Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See
    http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.30214.00&File=System.Core.dll&Key=MoreThanOneMatch -
    Looking at the site in question, the problem seems to be Silverlight related. However, I am unable to debug as suggested since the server is located on Microsoft premises. To rule out a wrong password, I did a reset and ruled out typos by copying username
    and password into the field. Furthermore since its not a production database, all IPv4 addresses (range 0.0.0.0-255.255.255.255) are allowed to access the database, so the problem should not be related to ip-based access restrictions. Is this a bug
    in the web interface or is the problem sitting in front of the screen?
    Regards,
    Chris

    Hello,
    I also meet this issue when connect to SQL database without specify database on the login page. But the error disappear when I specify the database name in the database section, for example, master.It may be a bug in Management Portal of SQL Database. 
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here. 
    Fanny Liu
    TechNet Community Support

  • Error - Document Access Denied. A component for viewing this document needs to be updated

    Hi,
    I am having a few problems opening a handfull of PDF documents on the network using Adobe Acrobat Reader XI & X. When opening the documents with Adobe Acrobat Reader X I receive the below error message
    I am then directed to a site to instal the FileOpen plugin which I do. I have installed the plugin both automatically using an msi file and manually by placing it in the adobe plugins folder however none work. I am still getting the same error message. As this document was located on a network share I copied it to my desktop and launched it. I still received the same error message however I updated adobe reader to XI and re-installed the fileopen plugin. Now I am receivng the below error message and I am still unable to open the document. When clixking OK it takes me to a site to download the FileOpen plugin which I have already installed.
    Protected mode is not turned on. Any help with this error would be greatly appreciated.
    Regards.

    You'd need to contact the makers of FileOpen. It isn't an Adobe product.Check especially whether your version of Reader is supposed to be compatible with it.An update to it may be needed.

  • Error in 5.1 using extends clause for JSP (works fine in 4.5)

              Error
              Wed Nov 15 11:30:01 CST 2000:<E> <ServletContext-General> Servlet failed with Exception
              java.lang.IllegalAccessError: try to access field jsp_servlet/_eqxinit.myContractManager from class jsp_servlet/_addcontract
              at jsp_servlet._addcontract._jspService(_addcontract.java:96)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:105)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)
              at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:247)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
              files
              myserver/public_html/EqxInit.jsp
              myserver/public_html/addContract.jsp
              1)EqxInit.jsp
              <%@ page import="java.io.*,
              javax.servlet.*,
              javax.servlet.http.*,
              javax.ejb.*,
              javax.naming.*,
              java.rmi.RemoteException,
              com.eqx.contract.*,
              com.eqx.formbeans.*,
              com.eqx.util.EqxConst"
              %>
              <%!
              Context ctx = null;
              ContractManagerHome myContractManagerHome = null;
              ContractManager myContractManager = null;
              boolean DEBUG=false;
              %>
              <%! public void jspInit() {
                        try{
                             Properties p = new Properties();
                             p.put(Context.INITIAL_CONTEXT_FACTORY, EqxConst.JNDI_FACTORY);
                        ctx = new InitialContext(p);
                        }catch(Exception NamingException) {
                   NamingException.printStackTrace();
                        try {
                        myContractManagerHome = (com.eqx.contract.ContractManagerHome) ctx.lookup("com.eqx.contract.ContractManagerHome");
              myContractManager = (com.eqx.contract.ContractManager) myContractManagerHome.create();
                        catch (Exception ee) {
                   ee.printStackTrace();
              %>
              2)addContract.jsp
              <%@ page import="java.io.*,
              javax.servlet.*,
              javax.servlet.http.*,
              javax.ejb.*,
              javax.naming.*,
              java.rmi.RemoteException,
              com.eqx.contract.*,
              com.eqx.formbeans.*,
              com.eqx.util.EqxConst"
                   extends="_eqxinit"
              %>
              <jsp:useBean id="contract" scope="session" class="com.eqx.formbeans.blContract" />
              <%
                   myContractManager.CreateOrUpdateContract(contract);
              %>
              

    Coolhands_99 wrote:
    But the meeting gets added to the resource calendar. We did not have this problem when we were testing but now that we have gone live it is annoying our users. When you invite a resource with Outlook Connector, an email is sent to the value of the "mail:" attribute for the resource as well as having the event added to the resource calendar directly via WCAP. This is an MS Outlook specific behaviour.
    Refer to the following link on how to have these emails automatically discarded by using a 'bitbucket' channel address:
    http://docs.sun.com/app/docs/doc/819-5200/6n7a49o05?a=view
    When resources are invited to meetings in UWC we do not get the SMTP error. UWC doesn't send an email to the "mail:" address.
    Regards,
    Shane.

  • Error while accessing remote server using applet in jsp page

    hii..
    We are accessing a data repository MDSPlus. Its used for storing data such as signals in tree like structure. We r coding for client side in JSP .
    For this we are invoking applet which uses jar files of jScope(java tool for displaying waveforms). We r getting the following error when we try to access a remote server in network. But it works fine with local server.
    So kindly help .
    ERROR IS:
    java.security.AccessControlException:access denied(java.net.SocketPermission 202.41.112.140:8000 connect,resolve)
    url mds:://202.41.112.140/SST_DAQ/11/\SST_DAQ::TOP.BOLOMETER:BOLO_1
    Use ploicytool.exe in JDK or JRE installation directory to add socket access permission.
    The IP address mentioned above in error is the computer with which v have to connect. SST_DAQ is the expt name,11 is the shot no. , BOLOMETER and BOLO_1 are the tree node s..
    plzz reply fast........

    Hi Frank,
    Are you using standalone OC4J or 9iAS ? If you are using standalone OC4J then you need to add a proper data source entry in %OC4J_HOME%j2ee\home\config\data-sources.xml file.
    If you are using 9iAS the you can log in to the Enterprise Manager console and add the data source entry by using wizard provided by 9iAS.
    Ensure the case of the JNDI lookup string, since, it is case sensitive.
    Hope this helps.
    Abhijeet

Maybe you are looking for

  • Error 1430 when adding a new VI to the program

    I have a program I developed in LV 2009 in 2009 and now I am updating it.  I accidently opened it up in 2010 and saved it.  There are Microsoft office tools that were built into LV 2009 that are removed in 2010 that I had used in my program.  So I ha

  • Login Session Variable Problem

    I've created a simple login using the inbuilt DW suite, but I don't seem to be able to display the session variable after they login. On the success page it should filter the RS based on the Username and also display the Username etc on the page but

  • Repeat Output-Type determination

    Dear all, We have a new output-type for printing invoices. Now we have to reprint a lot of "old" invoices with this new output-type. Is there a possibility to repeat the output-type determination for a big quantity of invoices (like mass change)? Tha

  • How do I call routine??

    Hi , My class implements an interface. And that interface has method which uses an object called doucment. If I want to use that document out of that method in my class how do I do that? I need to call that routine and then reference to that object (

  • How to disable/enable the cells for editing column wise in JTable in java?

    Hi All, Can any one tell me how to disable the cells for editing by column wise in JTable? Here depending upon the radio button selected, I need 2 disable some columns for editing and enable some columns for editing? how can I do tat using JAVA? Any