Concurrent Access of JSP

Hi ,
I am facing a strange problem. i.e. when 2 or more than 2 peopl access a same JSP from the hosting server (Orcale 9IAS application server ).. the 1st person who has accessed the jsp gets a JSP error saying "IllegalMoniterStateException" this thread is not the owner.
Cud any body please suggest me as to how to overcome this problem??
Kris

Hi
Couple of suggestions:
1. Try deploying the same sample application on another server such as Tomcat which is freely available. If the same problem occurs then we can safely assume that it is an application related problem. If not then it might be an Application Server specific problem.
2. Try searching the Application Server Vendor specific website for information on Bugs and Bug fixes. This might be listed.
3. Paste the full stack trace of the exception and also if possible a simple JSP which reproduces the problem. This way the community can better assist you.
Keep us posted on your progress.
Good Luck!
Eshwar Rao
Developer Technical Support
Sun microsystems
http://www.sun.com/developers/support

Similar Messages

  • 500 error while accessing a jsp using tiles tags

    Hi all,
    when im trying to access a jsp which makes use of tiles tags, im getting the following error.
    status 500:
    org.apache.jasper.JasperException: The absolute uri: http://struts.apache.org/tags-tiles cannot be resolved in either web.xml or the jar files deployed with this application
    what might be the problem?
    Thanks in advance.

    asp,
    1. this is a java forum, and that's a jsp/struts question... you'll do better on the jsp forum.... or maybe a struts forum.
    2. it can't find http://struts.apache.org/tags-tiles ... but you knew that already didn't you... and where in the wide world might that uri be? maybe in struts generated xml? maybe in the schema declatation?
    keith.

  • Error while accessing a jsp file

              hi all,
              i am working on weblogic5.1 under solaris platform.
              my folder hierarchy is as follows weblogic_home/classes/weblogic/sun1/sun2.
              i have an import statement as follows import sun1.sun2.* in my JSP file.
              when i access this jsp file from my browser i have an error.
              the error is import package sun1 not found.
              i have set my classpath correctly(i feel so)...
              can anybody help me with this problem.
              if there is some fault in my classpath please tell me where exactly i should set my classpath for jsp files.
              thanx in advance.
              Prasad.
              

              Hi,
              1) what is your "weblogic.httpd.documentRoot=????"
              2) if it is "public_html" put your jsp there.
              Joe
              "Prasad" <[email protected]> wrote:
              >
              >hi all,
              >
              >i am working on weblogic5.1 under solaris platform.
              >
              >my folder hierarchy is as follows weblogic_home/classes/weblogic/sun1/sun2.
              >
              >i have an import statement as follows import sun1.sun2.* in my JSP file.
              >
              >when i access this jsp file from my browser i have an error.
              >
              >the error is import package sun1 not found.
              >
              >i have set my classpath correctly(i feel so)...
              >
              >can anybody help me with this problem.
              >
              >if there is some fault in my classpath please tell me where exactly i should set my classpath for jsp files.
              >
              >thanx in advance.
              >Prasad.
              

  • 500 error while trying to access a jsp which makes use of tiles tags

    Hi all,
    when im trying to access a jsp which makes use of tiles tags, im getting the following error.
    status 500:
    org.apache.jasper.JasperException: The absolute uri: http://struts.apache.org/tags-tiles cannot be resolved in either web.xml or the jar files deployed with this application
    what might be the problem?
    Thanks in advance.

    Hi all,
    sorry...got the reason for the above error..missed to include the tld file in WEB-INF.

  • Database access in JSP?

    Can I easily access MS access using JSP? If it is, what kind of drive should be used to access the MS Access database?
    Thank you so much!

    <%!
    // define database parameters
    String host="localhost";
    String user="";
    String pass="";
    String db="";
    String conn;
    %>
    <%
    Class.forName("org.gjt.mm.mysql.Driver");
    // create connection string
    conn = "jdbc:mysql://" + host + "/" + db + "?user=" + user + "&password=" +
    pass;
    // pass database parameters to JDBC driver
    Connection Conn = DriverManager.getConnection(conn);
    // query statement
    Statement SQLStatement = Conn.createStatement();
    This is when accessing a database in a JSP, not a javabean... Try searching this forum, there are LOTS of topics about this.

  • How to synchronize concurrent access to static data in ABAP Objects

    Hi,
    1) First of all I mwould like to know the scope of static (class-data) data of an ABAP Objects Class: If changing a static data variable is that change visible to all concurrent processes in the same Application Server?
    2) If that is the case. How can concurrent access to such data (that can be shared between many processes) be controlled. In C one could use semaphores and in Java Synchronized methods and the monitor concept. But what controls are available in ABAP for controlling concurrent access to in-memory data?
    Many thanks for your help!
    Regards,
    Christian

    Hello Christian
    Here is an example that shows that the static attributes of a class are not shared between two reports that are linked via SUBMIT statement.
    *& Report  ZUS_SDN_OO_STATIC_ATTRIBUTES
    REPORT  zus_sdn_oo_static_attributes.
    DATA:
      gt_list        TYPE STANDARD TABLE OF abaplist,
      go_static      TYPE REF TO zcl_sdn_static_attributes.
    <i>* CONSTRUCTOR method of class ZCL_SDN_STATIC_ATTRIBUTES:
    **METHOD constructor.
    *** define local data
    **  DATA:
    **    ld_msg    TYPE bapi_msg.
    **  ADD id_count TO md_count.
    **ENDMETHOD.
    * Static public attribute MD_COUNT (type i), initial value = 1</i>
    PARAMETERS:
      p_called(1)  TYPE c  DEFAULT ' ' NO-DISPLAY.
    START-OF-SELECTION.
    <b>* Initial state of static attribute:
    *    zcl_sdn_static_attributes=>md_count = 0</b>
      syst-index = 0.
      WRITE: / syst-index, '. object: static counter=',
               zcl_sdn_static_attributes=>md_count.
      DO 5 TIMES.
    <b>*   Every time sy-index is added to md_count</b>
        CREATE OBJECT go_static
          EXPORTING
            id_count = syst-index.
        WRITE: / syst-index, '. object: static counter=',
                 zcl_sdn_static_attributes=>md_count.
    <b>*   After the 3rd round we start the report again (via SUBMIT)
    *   and return the result via list memory.
    *   If the value of the static attribute is not reset we would
    *   start with initial value of md_count = 7 (1+1+2+3).</b>
        IF ( p_called = ' '  AND
             syst-index = 3 ).
          SUBMIT zus_sdn_oo_static_attributes EXPORTING LIST TO MEMORY
            WITH p_called = 'X'
          AND RETURN.
          CALL FUNCTION 'LIST_FROM_MEMORY'
            TABLES
              listobject = gt_list
            EXCEPTIONS
              not_found  = 1
              OTHERS     = 2.
          IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          CALL FUNCTION 'DISPLAY_LIST'
    *       EXPORTING
    *         FULLSCREEN                  =
    *         CALLER_HANDLES_EVENTS       =
    *         STARTING_X                  = 10
    *         STARTING_Y                  = 10
    *         ENDING_X                    = 60
    *         ENDING_Y                    = 20
    *       IMPORTING
    *         USER_COMMAND                =
            TABLES
              listobject                  = gt_list
            EXCEPTIONS
              empty_list                  = 1
              OTHERS                      = 2.
          IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
        ENDIF.
      ENDDO.
    <b>* Result: in the 2nd run of the report (via SUBMIT) we get
    *         the same values for the static counter.</b>
    END-OF-SELECTION.
    Regards
      Uwe

  • Portal 3 Profile access through JSP on iws6

    Hi,
    I have portal 3 sp4 and iws6 installed on the same server. The portal basically has URL scrappers of the web server. I want to access the user profile from the JSP sitting on the iws6.
    For this i have added the following lines in the JSP
    <%@ page import="java.io.*"%>
    <%@ page import="java.util.*"%>
    <%@ page import="com.iplanet.portalserver.naming.*"%>
    <%@ page import="com.iplanet.portalserver.session.*"%>
    <%@ page import="com.iplanet.portalserver.profile.*"%>
    <%
    try{
    SessionID sid = null;
    Session sess = null;
    sid = new SessionID(request);
    sess = Session.getSession(sid);
    Profile profile = sess.getUserProfile();
    catch(Exception e)
    %>
    Exception Occured
    <%
    out.println(" Error Message "+e);
    When i try to access the JSP it is throwing the following exception.
    com.iplanet.portalserver.session.SessionException: Invalid service host name .
    What do i have to do to access the profile info of the user from the JSP.
    Any suggestion is welcome.
    Regards
    Giriraj

    you need to allow cookies through to your web server; the client component on the web server
    and try to determine your portal and its not
    being passed thru.

  • Error accessing my jsp page

    I have created a simple web application and using tomcat 5. when i try accessing my jsp page..it just gives an error message..HTTP Status 404...The requested resource (/carnhotel/date.jsp) is not available.
    however, it works fine when i deploy in default applications (servlet-examples, jsp-examples,root)...plz help..

    How are you deploying this web application? Just in the webapps >directory?iewebapps/carnhotel/date.jsp?i have deployed in the webapps directory with the same directory structure...and also WEB-INF/web.xml
    also, when i open tomcat admin console...click on host(localhost/context(/carnhotel))..displays an error ...
    HTTP Status 500 - Error retrieving attribute debug
    type Status report
    message Error retrieving attribute debug
    description The server encountered an internal error (Error retrieving attribute debug) that prevented it from fulfilling this request.
    thnx...
    .

  • Concurrent access

    Hi all,
    I have created a BAPI which is working well.
    However, if I call it more than one times at the same times through RFC (php call), it doesn't work correctly.
    Can anyone help me about concurrent access like this ?
    Thanks,
    Smoltok

    Hello,
    Before the call to your BAPI, call the function module ENQUEUE_<name of the lock object> and pass the parameters to locjk the specific entry. Now all your BAPI amd once done unlock the entry by call the function module DEQUEUE_<name of the lock object>.
    Regards,
    Sachin

  • Daniel or anyone else, Help on why I can't access certain jsp pages

    I have installed the Web Service Portlet Wizard to build my portlets. In particular,
    I have created a URL porlet jsp which receives its content from a URL.
    This URL that I retrive is an application that I have running on my Weblogic 6.1
    Server. I can access the login page, and can logon and do a few things but for
    some reason I Can't access certain pages. The pages I can't access are also jsp
    pages on the wlserver6.1 server(exactly the same as other ones I can access and
    interact with).
    The error I receive on the Portal Front end is attached in a word doc. I have
    also included in there, a snapshot of the access log for those pages, but I can't
    really make out what it is telling me (if anything!).
    For one of the pages, that I can't successfully access I get java.lang.ArrayIndexOutOfBoundsException
    This only happens with 1 of the pages. But trying to access the same page withouth
    going thru the portal I get NO errors what so ever.
    Please if anyone can give me any information on why I can't access certain pages
    via my portal It would be very helpful.
    Finally I have included the code of my Portlet which accesses the URL. This is
    also included in the word doc.
    Thanks
    Ramy
    [Portal.doc]

    Ramy,
    I don't know the Web Service Portlet Wizard too well, but I notice that
    login.htm never seems to be found (404 in logs). I would think that the two
    warnings below your JSP call (cookies, and portlet state) are your most
    likely culprits. If the Web Service Portlet Wizard does not handle cookies
    then the portal server will have to continiously reauthenticate. I will
    forward your email however and see if I can dig up a better diagnosis. Also,
    could you post the stack trace for the ArrayIndexOutOfBoundsException you
    are seeing.
    Sincerely,
    Daniel Selman
    "Ramy" <[email protected]> wrote in message
    news:[email protected]..
    >
    I have installed the Web Service Portlet Wizard to build my portlets. Inparticular,
    I have created a URL porlet jsp which receives its content from a URL.
    This URL that I retrive is an application that I have running on myWeblogic 6.1
    Server. I can access the login page, and can logon and do a few things butfor
    some reason I Can't access certain pages. The pages I can't access arealso jsp
    pages on the wlserver6.1 server(exactly the same as other ones I canaccess and
    interact with).
    The error I receive on the Portal Front end is attached in a word doc. Ihave
    also included in there, a snapshot of the access log for those pages, butI can't
    really make out what it is telling me (if anything!).
    For one of the pages, that I can't successfully access I getjava.lang.ArrayIndexOutOfBoundsException
    This only happens with 1 of the pages. But trying to access the same pagewithouth
    going thru the portal I get NO errors what so ever.
    Please if anyone can give me any information on why I can't access certainpages
    via my portal It would be very helpful.
    Finally I have included the code of my Portlet which accesses the URL.This is
    also included in the word doc.
    Thanks
    Ramy

  • Concurrent access in Diadem

    How does Dia   dem manages concurrent access?
    If several network users each of them having a floating licence, want to access the same objects (datasets, reports, view layout), can they?
    What happens if they want to load/delete/modify datasets located in the same folder?
    And if they want to write on the same report?
    Thanks

    Hi condor31,
    The only thing which is concurrent is the license file.  The DIAdem installation is still local on the client computer, which means that client A's DIAdem is completely separate from client B's DIAdem, because the two DIAdems are running on completely different computers.  So you don't have to worry about collisions at the REPORT object level at all.  If DIAdem A and DIAdem B attempt to access or update the same external files (layout files, data files, etc.), then the usual file access rules apply.  Both DIAdem A and DIAdem B can load the same layout or data file from computer C, say, and play with them back on computers A and B, respectively.  If DIAdem A then overwrites the layout or data file on computer C with an updated version, DIAdem B doesn't notice, because DIAdem B has those files in memory on computer B.  If DIAdem B subsequently overwrites the layout or data file on computer C, then DIAdem B wins and its version of the file is now on computer C, though DIAdem A doesn't know this has happened.  If you want to protect a particular data or layout file, you can of course set its Windows read-write permissions to read-only, then neither DIAdem A nor DIAdem B will be able to change it, though they will be able to read it and use it and save the edited version to a new data or layout file.
    The one exception to this is if DIAdem A and DIAdem B happen to register-load the same data file, then they each have an implicit link back to the data file on computer C, and neither will be able to change that data file, since register-loading opens the data file read-only and puts a lock on it so that no one can change it while you have it open, but this is a special case.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • How does the Concurrent Access License (CAL) work.

    Description from Google: How does the Concurrent Access License (CAL) work? Xcelsius Engage Server CALs allow for concurrent live data updates inside Xcelsius dashboards. Every time an end-user triggers a Web service inside an Xcelsius dashboard to retrieve live data, a CAL is consumed for a period of 5 minutes. For that period, in a five CAL deployment for example, there will be only four CALs left for consumption. A five CAL deployment could support up to 25 users and additional CALs can be added to support a larger deployment.
    My question is as follows:
    How a five CAL deployment could support up to 25 users and what does it mean. In the first line it is saying that each CAL for a web service is consumed for a period of 5 minutes and how come it can support 25 users concurrently. Did it mean 25 web service connections inside a swf flash file or 25 different users to access a single web service through swf flash.

    The "Set cost controls" concurrent program is used in R12 to mass update the cost control fields on item costs.
    The cost control region is found by going to Cost management >Item costs > Item Costs
    The concurrent program lets you specify which items /costs should be updated by using various parameters such as cost type, item range, category range etc.
    And you can specify the source for the new cost control data and the new value for the fields.
    Hope this answers your question,
    Sandeep Gandhi

  • Accessing a JSP file via context URL

    Hi experts ,
    i have a requirement to access a jsp file via context url i.e. /irj/... abc.jsp , can  any one please suggest how to access this , i have a jsp dynpage component in the pagelet folder i have a jsp page, that im not able to access via the context url , and the images that are there in the image folder are accessible via context path i.e /irj/.. abc.gif etc.
    can any one please suggest a solution .
    Regards
    Govardan Raj

              Hi,
              1) what is your "weblogic.httpd.documentRoot=????"
              2) if it is "public_html" put your jsp there.
              Joe
              "Prasad" <[email protected]> wrote:
              >
              >hi all,
              >
              >i am working on weblogic5.1 under solaris platform.
              >
              >my folder hierarchy is as follows weblogic_home/classes/weblogic/sun1/sun2.
              >
              >i have an import statement as follows import sun1.sun2.* in my JSP file.
              >
              >when i access this jsp file from my browser i have an error.
              >
              >the error is import package sun1 not found.
              >
              >i have set my classpath correctly(i feel so)...
              >
              >can anybody help me with this problem.
              >
              >if there is some fault in my classpath please tell me where exactly i should set my classpath for jsp files.
              >
              >thanx in advance.
              >Prasad.
              

  • Servlet failed with ServletException occurs the first time I try to access a jsp

    Can any one tell why this exception occurs the first time I try to
              access a jsp. After the first time it doesn't occur. This happens only
              on solaris platform.
              Thanks,
              Shankar.
              Fri Jul 28 15:02:51 PDT 2000:<I> <ListenThread> Adding address:
              192.168.0.36/192.168.0.36 to licensed client list
              Fri Jul 28 15:02:51 PDT 2000:<I> <ServletContext-General> file: init
              Fri Jul 28 15:02:55 PDT 2000:<I> <ServletContext-General> *.jsp: init
              Fri Jul 28 15:02:55 PDT 2000:<I> <ServletContext-General> *.jsp: param
              verbose initialized to: true
              Fri Jul 28 15:02:55 PDT 2000:<I> <ServletContext-General> *.jsp: param
              packagePrefix initialized to: jsp_servlet
              Fri Jul 28 15:02:55 PDT 2000:<I> <ServletContext-General> *.jsp: param
              compileCommand initialized to: /usr/bin/javac
              Fri Jul 28 15:02:55 PDT 2000:<I> <ServletContext-General> *.jsp: param
              srcCompiler initialized to weblogic.jspc
              Fri Jul 28 15:02:55 PDT 2000:<I> <ServletContext-General> *.jsp: param
              superclass initialized to null
              Fri Jul 28 15:02:55 PDT 2000:<I> <ServletContext-General> *.jsp: param
              workingDir initialized to: /space/shankar/weblogic/myserver/classfiles
              Fri Jul 28 15:02:55 PDT 2000:<I> <ServletContext-General> *.jsp: param
              pageCheckSeconds initialized to: 1
              Fri Jul 28 15:02:55 PDT 2000:<I> <ServletContext-General> *.jsp:
              initialization complete
              Fri Jul 28 15:02:55 PDT 2000:<E> <ServletContext-General> Servlet failed
              with ServletException
              [AddToMap: pattern=/login.jsp class=jsp_servlet.login]
              at java.lang.Throwable.fillInStackTrace(Native Method)
              at java.lang.Throwable.fillInStackTrace(Compiled Code)
              at java.lang.Throwable.<init>(Compiled Code)
              at java.lang.Exception.<init>(Compiled Code)
              at
              javax.servlet.ServletException.<init>(ServletException.java:88)
              at
              weblogic.servlet.jsp.AddToMapException.<init>(AddToMapException.java:14)
              at weblogic.servlet.JSPServlet.service(JSPServlet.java:118)
              at javax.servlet.http.HttpServlet.service(Compiled Code)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
              Code)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
              Code)
              at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(Compiled
              Code)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled
              Code)
              at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
              at weblogic.kernel.ExecuteThread.run(Compiled Code)
              Fri Jul 28 15:02:55 PDT 2000:<I> <ServletContext-General> servletimages:
              init
              

    Try a different brand of discs.  Try restarting your computer.

  • MIcrosoft Access in JSP

    Hi,
    I would like to use as demo version, a JSP page which can connect on Access DB.
    Is there some good tutorial how to do it thru JSP ?
    thanks a lot,
    Maileen

    Hi,
    I would like to use as demo version, a JSP page which
    can connect on Access DB.
    Is there some good tutorial how to do it thru JSP ?
    thanks a lot,
    MaileenThere are tutorials to show how to connect to a database, including Access. JSP is immaterial, since JSP is supposed to be a view technology.
    Figure out how to do it with a POJO and then have your JSP simply call it.
    If you're asking how to set up a JNDI connection pool (an excellent idea), that's specific to the servlet/JSP engine you deploy your JSP to. Tomcat has docs - check them out.
    %

Maybe you are looking for

  • How to restore library from a CD backup

    Hi, My PB 12" HD just decide to die last week. So I had to change it, and get my pictures back from a DVD backup I had. The backup is a little bit older that what I had in mind, but it is still better than nothing! The problem I have is that I do not

  • Database insertion problem

    Hello, I was wondering how to solve a problem at inserting new rows in a mysql database. I have a table named employees and one named addresses. In order to link an address to an employee I use an address_id at the employee table. Though, the address

  • Spotlight not searching on Bing

    Hello, I just installed Yosemite on my rMBP and i was trying to figure out how to make the spotlight search things for me on the internet via Bing. When they presented the OS, if i remember correctly, they made a search for the keyword "Yosemite" and

  • Get instance method and design pattern

    Hi All, 1. I New to abap objects and i read the help and some stuff from the forum, l like to now more about design pattern in abap objects, 2. I saw in some abap class the use of method of GET_INSTANCE i think it's from factory pattern , what is the

  • General review of Transparent Data Encryption (TDE) and performance of...

    I understand that the implementation of just about any database encryption solution, is going to result in a some degree of a performance hit, especially as searches are performed against the database, but none-the-less, we are thinking about impleme