JDeveloper/OC4J session lost

I installed JDeveloper(jdev9033) with OC4J onto my Win XP machine which had installed Oracle9i. When I ran JSP application, the current session got lost. Whenever I clicked the button in the form to change to the new page, it generated a new session ID.
The following are test examples for this problem:
Test.jsp
========
<!doctype html public "-//w3c//dtd html 4.0 transitional//en" "http://www.w3.org/TR/REC-html40/strict.dtd">
<%
session.setAttribute("1st", "First");
System.out.println(session.getId());
%>
<HTML>
<STYLE>
TD {font-size:8pt}
</STYLE>
<HEAD>
<H3>Sear Incomplete Orders</H3>
</HEAD>
<FORM id="theForm" name="theForm" method="post" action="Test2.jsp">
<TABLE >
<TR>
<TD align="right">Created between:</TD>
<TD >
<input type="text" name="startDate" size="17" value="01/10/2003"/>
<b> and </b>
<input type="text" name="endDate" size="17" value="15/10/2003"/>
</TD>
</TR>
<tr>
<td>
<input type="submit" name="s" value="Retrieve" />
</td>
</tr>
</TABLE>
</FORM>
</HTML>
Test2.jsp
=========
<!doctype html public "-//w3c//dtd html 4.0 transitional//en" "http://www.w3.org/TR/REC-html40/strict.dtd">
<%
session.setAttribute("2nd", "Second");
System.out.println(session.getId());
%>
<HTML>
<STYLE>
TD {font-size:8pt}
</STYLE>
<HEAD>
<H3>Sear Incomplete Orders</H3>
</HEAD>
<FORM id="theForm" name="theForm" method="post" action="Test2.jsp">
<TABLE >
<TR>
<TD align="right">Created between:</TD>
<TD >
<input type="text" name="startDate" size="17" value="01/10/2003"/>
<b> and </b>
<input type="text" name="endDate" size="17" value="15/10/2003"/>
</TD>
</TR>
<tr>
<td>
<input type="submit" name="s" value="Retrieve" />
</td>
</tr>
</TABLE>
</FORM>
</HTML>

Further to this ... I found session id is lost while html frames are used. My below jsp page is a forward to a struts action. First time (on server re-start) it works fine, after closing and "running" the same url, the frame with url "contents.jsp" creates a new session which is not required. Any reasons for this. (The java code added are the results of the attempts to fix it. ) Pls help.
<%@ page contentType="text/html;charset=windows-1252"%>
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
<LINK REL=STYLESHEET TYPE="text/css" HREF="bc4j.css">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<TITLE>NGT Registration Database</TITLE>
</HEAD>
<%
System.out.println("Here is main.jsp with url: "+"contents.jsp;jsessionid="+session.getId());
%>
<FRAMESET ROWS="85,*" FRAMESPACING="0" FRAMEBORDER="0" border="false" >
<FRAME SRC="title.jsp" NAME="titleFrame" FRAMEBORDER="0" MARGINHEIGHT="1"
MARGINWIDTH="10" FRAMESPACING="0" SCROLLING="NO">
<FRAMESET COLS="175,*" FRAMESPACING="0" FRAMEBORDER="0" SCROLLING="AUTO">
<FRAME SRC="<%="contents.jsp;jsessionid="+session.getId()%>" name="navFrame">
<FRAME SRC="description.html" name="contentsFrame">
</FRAMESET>
</FRAMESET>
</HTML>

Similar Messages

  • How to reset the data when the session lost?

    When I use response.sendRedirect("http://localhost:82/main.jsp")
    the session lost, because the URL before redirect is using SSL,
    "https://localhost:81/index.jsp", they use the different port,
    so the session lost, what should i do to prevent this? And how
    to reset the data?

    Create a HashMap and store it as an attribute of the servlet context. In the first servlet assign the user a key and store all session data in the HashMap under that key (use a vector, collection or user defined class).
    In the response.sendRedirect call add the key to the url:
    response.sendRedirect(url + "?key=" + userKey);
    In the second servlet get the key (request.getParameter("key")), retrieve the session data from the HashMap in the servletcontext and store in an httpsession.
    Remember to delete the entry from the HashMap so it doesn't become overly large.

  • When VISA write for VXI-11 instrument gets executed - error visa session lost

    My VXI-11 board works when I query the board from MAX with *IDN? from MAx, But I get a session lost error when I try to do the same from LabVIEW 8.2.1 VI open a seesion and doing a write and read of *IDN?

    Hello,
    If you can communicate with the device in MAX, your device is working properly. Can you please post a screenshot of the error and your LabVIEW code?
    Thank you,
    Simran K
    National Instruments
    Applications Engineer

  • Session lost

    Hello, to all expertise
    Isnt any people got face session lost issue before?
    Project Description
    Structs -> (MVC)
    Session Time Out(Web.xml)
    <session-time-out> 1hours
    Application Server
    JBoss 4
    Windows XP and Internet Explorer 6.0
    Using JDeveloper10g as IDE tools
    Trying Solutions (But also kenot resolve problems)
    1) Increase the session time out
    2) Add one class for HttpSessionListener
    a) public void sessionCreated(HttpSessionEvent se){}
    b) public void sessionDestroyed(HttpSessionEvent se){}
    If i not mistaken, the sessionCreated is when first time we go in into the page, then the sessionCreated wont be call unless there was new request or new user... What i trying to say is the sessionCreated is only be call once for one browser.. However, each time when i was doing some transaction or click on any window pop up menu like using javascript : window.showmodaldialog, or alert scriplet, it since got the session will recreated.. But the case is i cant really estimate when the
    session will recreated... Each time the session recreated, the attribute and all the value store in that particular will be lost rite?
    Further more, i declare one SessionManager.class to store all the session variable include the session id after the user success to login to the screen. Each time when the was transaction in database such as add, update, I will using the vector to store and compare whether the request.getSession().getId is same with the same the sessionid in vector or not... If there was same, then the continue the following task, if there was different between the id in request with the vector, means the session is recretead so i will send redirect to the login page...
    For the add and update transaction we will use the alert("Add success"); to inform the user the database have been success added!
    But the session lost is after 4 minutes or within 10 minutes very often it happen even the page are activate by the user...
    Isnt any one got happen this before? Isnt the alert pop up menu? or isnt the window.showModalDialog cause it?
    I didnt use any session.invalidate or any session.remoteatrribute to remove all the session stuff.. How can it will recreated new one?
    Very Thanks to have your all useful suggestion and guideline
    Thanks and best regards
    Kim;

    Hello
    To all expertise, does anyone have any idea regarding this session lost issues? Thanks in advance.. Appreciate on any idea for helping
    Thanks
    Best Regards
    Kim

  • Session Lost Issues

    Hello, to all expertise
    Isnt any people got face session lost issue before?
    Project Description
    Structs -> (MVC)
    Session Time Out(Web.xml)
    <session-time-out> 1hours
    Application Server
    JBoss 4
    Windows XP and Internet Explorer 6.0
    Using JDeveloper10g as IDE tools
    Trying Solutions (But also kenot resolve problems)
    1) Increase the session time out
    2) Add one class for HttpSessionListener
    a) public void sessionCreated(HttpSessionEvent se){}
    b) public void sessionDestroyed(HttpSessionEvent se){}
    If i not mistaken, the sessionCreated is when first time we go in into the page, then the sessionCreated wont be call unless there was new request or new user... What i trying to say is the sessionCreated is only be call once for one browser.. However, each time when i was doing some transaction or click on any window pop up menu like using javascript : window.showmodaldialog, or alert scriplet, it since got the session will recreated.. But the case is i cant really estimate when the
    session will recreated... Each time the session recreated, the attribute and all the value store in that particular will be lost rite?
    Further more, i declare one SessionManager.class to store all the session variable include the session id after the user success to login to the screen. Each time when the was transaction in database such as add, update, I will using the vector to store and compare whether the request.getSession().getId is same with the same the sessionid in vector or not... If there was same, then the continue the following task, if there was different between the id in request with the vector, means the session is recretead so i will send redirect to the login page...
    For the add and update transaction we will use the alert("Add success"); to inform the user the database have been success added!
    But the session lost is after 4 minutes or within 10 minutes very often it happen even the page are activate by the user...
    Isnt any one got happen this before? Isnt the alert pop up menu? or isnt the window.showModalDialog cause it?
    I didnt use any session.invalidate or any session.remoteatrribute to remove all the session stuff.. How can it will recreated new one?
    Very Thanks to have your all useful suggestion and guideline
    Thanks and best regards
    Kim;

    There is a performance penalty for using SSL, but there are solutions to address that penalty (SSL hardware acceleration). And, no, SSL doesn't prevent anyone from guessing anything, but the point of using a UUID for session tokens is to make guessing extremely difficult even with brute-force repetitive approaches.
    Dave Watts, CTO, Fig Leaf Software
    http://www.figleaf.com/
    http://training.figleaf.com/
    Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
    GSA Schedule, and provides the highest caliber vendor-authorized
    instruction at our training centers, online, or onsite.

  • Oc4j and lost session in the SSL

    1.) setup oc4j 904 for SSL
    2.) create class from this servlet:
    //------------------------UrlRewriteExample------------
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.Date;
    public class UrlRewriteExample extends HttpServlet {
    public void doGet (HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException {
    // Get the session object. Create a new one if it doesn't exist.
    HttpSession session = req.getSession(true);
    res.setContentType("text/html");
    PrintWriter out = res.getWriter();
    out.println("<head><title> " + "SessionServlet Output "
    +"</title></head><body>");
    out.println("<h1> SessionServlet Output </h1>");
    // Set up a session hit counter. "sessionservlet.counter" is just the
    // conventional way to create a key for the value to be stored in the
    // session object "dictionary".
    Integer ival =(Integer) session.getAttribute("sessionservlet.counter");
    if (ival == null) {
    ival = new Integer(1);
    else {
    ival = new Integer(ival.intValue() + 1);
    // Save the counter value.
    session.setAttribute("sessionservlet.counter", ival);
    // Report the counter value.
    out.println(" You have hit this page <b>" + ival + "</b> times.<p>");
    // This statement provides a target that the user can click on
    // to activate URL rewriting. It is not done by default.
    out.println("Click <a href="
    + res.encodeURL(HttpUtils.getRequestURL(req).toString())
    + ">here</a>");
    out.println("Moj riadok <a href="
    + res.encodeURL(HttpUtils.getRequestURL(req).toString())
    + ">here</a>");
    out.println(" to ensure that session tracking is working even " + "if cookies aren't supported.<br>");
    out.println("Note that by default URL rewriting is not enabled" + " due to its large overhead.");
    // Report data from request.
    out.println("<h3>Request and Session Data</h3>");
    out.println("Session ID in Request: " + req.getRequestedSessionId());
    out.println("<br>Session ID in Request is from a Cookie: " + req.isRequestedSessionIdFromCookie());
    out.println("<br>Session ID in Request is from the URL: " + req.isRequestedSessionIdFromURL());
    out.println("<br>Valid Session ID: " + req.isRequestedSessionIdValid());
    // Report data from the session object.
    out.println("<h3>Session Data</h3>");
    out.println("New Session: " + session.isNew());
    out.println("<br> Session ID: " + session.getId());
    out.println("<br> Creation Time: " + new Date(session.getCreationTime()));
    out.println("<br>Last Accessed Time: " + new Date(session.getLastAccessedTime()));
    out.println("</body>");
    out.close();
    public String getServletInfo() {
    return "A simple session servlet";
    }//--------------------END UrlRewriteExample------------
    3.) copy class file to oc4j home ..\home\default-web-app\WEB-INF\classes\UrlREwriteExample.class
    4.) try https://localhost<your ssl port>/servlet/UrlREwriteExample
    => Session ID in Request is from a Cookie: false
    => Session ID in Request is from the URL: false
    try a few time link here
    as you can see, Session ID in Request is from a Cookie: false
    5.)try http://localhost<your port>/servlet/UrlREwriteExample
    => Session ID in Request is from a Cookie: true
    => Session ID in Request is from the URL: false
    try a few time link here
    as you can see, now is Session ID in Request is from a Cookie: true
    6.)try again https://localhost<your ssl port>/servlet/UrlREwriteExample
    => Session ID in Request is from a Cookie: true
    => Session ID in Request is from the URL: false
    try a few time link here
    as you can see, Session ID in Request is from a Cookie: true
    What I have to do, if I want the some state when I try https first time? ( 4.)==6.) )
    Zajo

    Perhaps, if no one can provide an answer, someone could at least direct me to a website or user who might have so more in-depth knowledge on this situation?

  • Unable to rerun OAF page in the same OC4J session

    Hi All,
    could you help me with running OAF page from JDeveloper.
    Configuration from OEBS:
    OA Framework 12.1.1
    Oracle OA Extension 10.1.3 - build 1089
    Business Components 10.1.3.3
    UIX (Cabo) 2_3_6_5
    BiBeans Runtime 3.1.1.9 nondebug BI Beans 3.1.1.x
    MDS 9.0.6.0.0_35
    XML Oracle XML Developers Kit 10.1.3.5.0 - Production
    AOL/J Applications Object Library, Core Java Roll Up Patch J
    Servlet 2.4
    Java 1.6.0_16
    JDBC Driver 11.1.0.7.0-Production
    My local computer configuration:
    OS: Windows Server 2003 SP2
    JDeveloper: p9172975_R12_GENERIC (for 12.1.1)
    Issue:
    My development database is located on remoute server and it takes about 10 min to run simple OAF page (it works correct then).
    But after modification of the page when I run it again, JDeveloper always opens new session (instead of using existed one) because of this error:
    C:\Oracle\JDeveloperR12\jdevbin\jdk\bin\javaw.exe -jar C:\Oracle\JDeveloperR12\jdevbin\j2ee\home\admin.jar ormi://10.24.166.61:23891 oc4jadmin **** -updateConfig
    Dec 29, 2009 1:23:06 PM com.oracle.corba.ee.impl.orb.ORBServerExtensionProviderImpl preInitApplicationServer
    WARNING: ORB ignoring configuration changes. Restart OC4J to apply new ORB configuration.
    So I have to wait again 10 min to see the changes :((
    If you have any experience regarding this issue I will appreciate you very much for help.

    Kumar,
    Ftping the PG.xml to mds folder will not help the page to goto MDS directory
    You have to import the file using xmlimporter
    I understand you have done the import, but it is not success.
    Could you please post what is the script you used to import the PG.xml
    and once you run what was the output you have got.
    May be you can refer the URL for the scripts
    http://apps2fusion.com/at/61-kv/331-oa-framework-scripts
    With regards,
    Kali.
    OSSI.

  • JDeveloper / OC4J rewriting my orion-ejb-jar.xml

    Hi All.
    Im having a play around with OC4J and CMP entity beans and struts at the moment learning some stuff for a new job, so ive started to write a little test app to get used to things.
    Ive created a CMP entity - CustomerEntityEJB, manually defined the tables etc wrote and built it using JDeveloper 10.
    Ive created all the necessary classes and descriptors in JDeveloper and the bean compiles and deploys fine, however no matter what i do, the table attribute of the <entity-deployment> elemnt is ALWAYS removed from the orion-ejb-jar.xml file before its deployed and i have no idea why.
    Here are some snippets form the xml config files im using....
    ejb-jar.xml :
    <entity>
    <description>Entity Bean ( CMP )</description>
    <display-name>CustomerEntityEJB</display-name>
    <ejb-name>CustomerEntityEJB</ejb-name>
    <local-home>com.gb.ejb.entity.customer.CustomerEntityEJBLocalHome</local-home>
    <local>com.gb.ejb.entity.customer.CustomerEntityEJBLocal</local>
    <ejb-class>com.gb.ejb.entity.customer.CustomerEntityEJBBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Long</prim-key-class>
    <reentrant>false</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>CustomerEntityEJB</abstract-schema-name>
    <cmp-field>
    <field-name>id</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>title</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>forename</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>surname</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>email</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>password</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>active</field-name>
    </cmp-field>
    <primkey-field>id</primkey-field>
    <query>
    <query-method>
    <method-name>findAll</method-name>
    <method-params/>
    </query-method>
    <ejb-ql>SELECT OBJECT(c) FROM CustomerEntityEJB c</ejb-ql>
    </query>
    </entity>
    orion-ejb-jar.xml as in JDeveloper:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <orion-ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-ejb-jar-10_0.xsd" schema-major-version="10" schema-minor-version="0">
    <enterprise-beans>
    <persistence-manager name="toplink"/>
    <session-deployment name="CustomerSessionEJB" local-location="CustomerSessionEJB" />
    <entity-deployment name="CustomerEntityEJB" data-source="jdbc/PostgresDS" table="Customer" local-location="CustomerEntityEJB">
    <primkey-mapping>
    <cmp-field-mapping name="id"/>
    </primkey-mapping>
    <cmp-field-mapping name="active"/>
    <cmp-field-mapping name="email"/>
    <cmp-field-mapping name="forename"/>
    <cmp-field-mapping name="id"/>
    <cmp-field-mapping name="password"/>
    <cmp-field-mapping name="surname"/>
    <cmp-field-mapping name="title"/>
    </entity-deployment>
    </enterprise-beans>
    </orion-ejb-jar>
    orion-ejb-jar.xml as viewed in the OC4J enterprise manager.     
    <?xml version="1.0" encoding="utf-8"?>
    <orion-ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-ejb-jar-10_0.xsd" deployment-version="10.1.3.3.0" deployment-time="1151415a0e3" schema-major-version="10" schema-minor-version="0" >
    <enterprise-beans>
    <persistence-manager name="toplink" class="oracle.toplink.internal.ejb.cmp.oc4j.Oc4jPersistenceManager" descriptor="toplink-ejb-jar.xml">
    </persistence-manager>
    <session-deployment name="CustomerSessionEJB" location="CustomerSessionEJB" local-location="CustomerSessionEJB" persistence-filename="CustomerSessionEJB">
    <ejb-ref-mapping name="ejb/local/CustomerEntityEJB" location="TWA-EJB_CustomerEntityEJBLocal" />
    </session-deployment>
    <entity-deployment name="CustomerEntityEJB" location="CustomerEntityEJB" local-location="CustomerEntityEJB" concrete-bean-class="CustomerEntityEJB_ConcreteSubClass3" data-source="jdbc/PostgresDS" local-wrapper="CustomerEntityEJBLocalHome_LocalEntityHomeWrapper5">
    </entity-deployment>
    </enterprise-beans>
    <assembly-descriptor>
    <default-method-access>
    <security-role-mapping name="<default-ejb-caller-role>" impliesAll="true" />
    </default-method-access>
    </assembly-descriptor>
    </orion-ejb-jar>
    As you can see, the orion-ejb-jar.xml that been deployed on the server has had extra attributes defined in it (like concrete-bean-class) which makessense - its adding in the bits i didnt to get th bean to deploy - however the table attribue is just removed, meaning my bean cant find the table - hence my app not working.
    i just dont know how to stop this and would be extremely grateful if someone could give me a clue how to get my bean up and working properly as this is driving me insane.
    Thanks in advance..
    Gareth.

    sorted - the <persistence-manager name="toplink"/> element was automatically generated by JDeveloper and put in my orion-ejb-jar.xml appears to be un necessary and seemed to be breaking eveything - as soon as i removed it, the bean seemed to deploy ok and pick up the table name =]
    as a bit of an aside does anyone know why it was automatically put there in the first place if it breaks things?

  • OC4J session problem - values not sticking in session

    OC4J 10g (9.0.4.0.0)
    I have been developing with JDeveloper and OC4J for a few years. My machine started to crap out last week (old laptop) so I purchased a new machine. I have installed the same versions of OC4J and JDeveloper on my new machine that were on my old machine. Everything seemed OK but I have noticed that none of the session values are "sticking" between requests, works fine on old machine by the way
    Example:
    a.jsp
    // put a simple value in the session
    session.setAttribute("firstName", new String("Chris"));
    // later in that same jsp I can retrieve tha value - no problem
    String fname = (String)session.getValue("firstName");
    b.jsp
    // but in a different jsp, the same call to retrieve the value from the session (after running other jsp to set the value) comes back null
    String fname = (String)session.getValue("firstName");
    The same exact code works great on one machine and not on the other - same versions of OC4J installed.
    Anyone seen this before?
    Thanks,
    Chris

    The urls appear to be correct:
    http://hostname:8888/contextroot/filename.jsp
    The same result can be seen if I re-run one JSP over and over:
    <%
    Integer bigInt = (Integer)session.getValue("counter");
    if (bigInt == null)
    session.setAttribute("counter", new Integer(1));
    bigInt = new Integer(1);
    else
    int newCounter = bigInt.intValue() + 1;
    session.setAttribute("counter", new Integer(newCounter));
    bigInt = new Integer(newCounter);
    %>
    Counter = <%= bigInt.intValue() %>
    If I run this over and over on one machine I see the counter value of 1 each time. On the other it increments.

  • Jdeveloper / OC4J - Server is currently shutting down

    Hello,
    Sometimes when running our application through JDeveloper we get a 500 Error in which it states TOPLINK exception and that the "server is currently shutting down". If we re-start and try again there is no problem.
    Any idea what causes this?
    Thanks!
    Phil
    Here are the 500 Errror details:
    500 Internal Server Error
    javax.faces.FacesException: #{MaintainContactPage.saveBtnAction}: javax.faces.el.EvaluationException: Exception [TOPLINK-4014] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseExceptionException Description: Cannot register SynchronizationListener.Internal Exception: Exception [TOPLINK-7061] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.ValidationExceptionException Description: Exception occurred within JTS.Internal Exception: javax.transaction.SystemException: Server is currently shutting down, no further transactions may be startedError Code: 000 at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:78) at oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367) at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336) at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196) at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:629) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230) at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595)Caused by: javax.faces.el.EvaluationException: Exception [TOPLINK-4014] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseExceptionException Description: Cannot register SynchronizationListener.Internal Exception: Exception [TOPLINK-7061] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.ValidationExceptionException Description: Exception occurred within JTS.Internal Exception: javax.transaction.SystemException: Server is currently shutting down, no further transactions may be startedError Code: 000 at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130) at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72) ... 25 moreCaused by: Exception [TOPLINK-4014] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseExceptionException Description: Cannot register SynchronizationListener.Internal Exception: Exception [TOPLINK-7061] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.ValidationExceptionException Description: Exception occurred within JTS.Internal Exception: javax.transaction.SystemException: Server is currently shutting down, no further transactions may be startedError Code: 000 at oracle.toplink.exceptions.DatabaseException.cannotRegisterSynchronizatonListenerForUnitOfWork(DatabaseException.java:56) at oracle.toplink.jts.AbstractExternalTransactionController.registerSynchronizationListener(AbstractExternalTransactionController.java:127) at oracle.toplink.publicinterface.UnitOfWork.registerWithTransactionIfRequired(UnitOfWork.java:3841) at oracle.toplink.publicinterface.Session.acquireUnitOfWork(Session.java:253) at org.ic.sms.apps.das.DasClientManager.createClientUnit(DasClientManager.java:469) at org.ic.sms.apps.bus_logic.core.client.ClientManagerImpl.save(ClientManagerImpl.java:263) at org.ic.sms.apps.bus_logic.publicapi.managers.ClientManager.save(ClientManager.java:102) at org.ic.sms.apps.s02_client.MaintainContactPage.saveBtnAction(MaintainContactPage.java:854) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126) ... 26 moreCaused by: Exception [TOPLINK-7061] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.ValidationExceptionException Description: Exception occurred within JTS.Internal Exception: javax.transaction.SystemException: Server is currently shutting down, no further transactions may be started at oracle.toplink.exceptions.TopLinkException.<init>(TopLinkException.java:46) at oracle.toplink.exceptions.ValidationException.<init>(ValidationException.java:254) at oracle.toplink.exceptions.ValidationException.jtsExceptionRaised(ValidationException.java:784) at oracle.toplink.jts.JTSExternalTransactionController.beginTransaction(JTSExternalTransactionController.java:56) at oracle.toplink.publicinterface.Session.beginExternalTransaction(Session.java:354) at oracle.toplink.publicinterface.Session.beginTransaction(Session.java:385) at oracle.toplink.publicinterface.UnitOfWork.beginTransaction(UnitOfWork.java:412) at oracle.toplink.jts.oracle9i.Oracle9iJTSSynchronizationListener.register(Oracle9iJTSSynchronizationListener.java:92) at oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController.register(Oracle9iJTSExternalTransactionController.java:50) at oracle.toplink.jts.AbstractExternalTransactionController.registerSynchronizationListener(AbstractExternalTransactionController.java:122) ... 37 moreCaused by: javax.transaction.SystemException: Server is currently shutting down, no further transactions may be started at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.ApplicationServerTransactionManager.createTransactionWithMaxConcurrentTxCheck(ApplicationServerTransactionManager.java:146) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.ApplicationServerTransactionManager.createTransaction(ApplicationServerTransactionManager.java:104) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.ApplicationServerTransactionManager.begin(ApplicationServerTransactionManager.java:89) at oracle.toplink.jts.JTSExternalTransactionController.beginTransaction(JTSExternalTransactionController.java:52) ... 43 more

    Phil,
    I have not seen this before. Are you referring to the embedded server?
    Is there any chance that an exception was thrown before this which could have caused the active JTA transaction to be marked for rollback or something more critical in the container. I believe you are looking at a follow on symptom caused by the application continuing after some failure.
    I would recommend posting this to the OC4J to see if any of the experts there could shed some light on this.
    Doug

  • Can't get JDeveloper/OC4J to auto-create MySQL table

    My EJB 3.0 based application is failing to create the MySQL table specified by the @TableGenerator annotation.
    Following are the details of my setup and application:
    System Setup:
    - JDeveloper 10.1.3.1.0
    - JDK 1.5.0_07
    - Ubuntu Linux kernel 2.6.15-27-k7
    - MySQL 5.0
    - MySQL ConnectorJ 3.1.13
    - Using the embedded OC4J server.
    I have done the following so far:
    1. Created a database in MySQL called, "test". Did not create any tables.
    2. Created a JDeveloper library whose classpath contains the MySQL ConnectorJ JAR file, and tested a database connection from JDeveloper successfully.
    3. Added the MySQL/JDeveloper library to my ejb project, "Test1/Model", and selected the database connection from the project properties EJB panel. The database connector is called, "SmashDB". Selecting the database connector on the EJB panel resulted in JDeveloper setting "SmashDBDS" as the default datasource.
    A JSF managed bean calls an EJB Session Bean, CustomerFacadeBean.persistEntity(Customer customer) with a Customer object as a parameter to save in the database. OC4J successfully connects to the MySQL "test" database, but fails when trying to access the ID_GENERATOR table, which is specified in an @TableGenerator annotation. The class-level annotations in the Customer entity are as follows:
    @Entity
    @NamedQuery(name = "Customer.findAll", query = "select o from Customer o")
    @TableGenerator(name = "BasicIDGen", table = "ID_GENERATOR", pkColumnName = "GEN_KEY",
    pkColumnValue = "CUSTOMER_ID", valueColumnName = "GEN_VALUE")
    public class Customer implements Serializable {
    private Long id;
    private Integer version;
    private String firstName;
    private String lastName;
    private String emailAddr;
    My persistence.xml file contains:
    <?xml version="1.0" encoding="UTF-8" ?>
    <persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
    version="1.0" xmlns="http://java.sun.com/xml/ns/persistence">
    <persistence-unit name="Model">
    <properties>
    <property name="toplink.ddl-generation" value="drop-and-create-tables"/>
    </properties>
    </persistence-unit>
    </persistence>
    With the above definition for Customer and persistence.xml, I expected the ID_GENERATOR and CUSTOMER tables to be created automatically, but this doesn't seem to be happening.
    Instead, I get the following error message and stack trace:
    2006-09-27 12:25:29.564 ERROR J2EE EJB-08006 [CustomerFacade:public java.lang.Object facade.CustomerFacadeBean.persistEntity(java.lang.Object)] exception occurred during method invocation: oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.7 (Build 060720)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Table 'test.ID_GENERATOR' doesn't existError Code: 1146
    Call:UPDATE ID_GENERATOR SET GEN_VALUE = GEN_VALUE + ? WHERE GEN_KEY = ?
         bind => [50, CUSTOMER_ID]
    Query:DataModifyQuery(); nested exception is:
         Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.7 (Build 060720)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Table 'test.ID_GENERATOR' doesn't existError Code: 1146
    Call:UPDATE ID_GENERATOR SET GEN_VALUE = GEN_VALUE + ? WHERE GEN_KEY = ?
         bind => [50, CUSTOMER_ID]
    etc.....
    Help would be greatly appreciated. I've gotten to this point, which appears to be one error away from success (I hope) but don't have a clue what this problem is caused by.
    Thanks,
    Rick Horowitz

    darby wrote:
    I can't get this to compile. help!
    You can not issue DDL in PL/SQL. You need to use dynamic SQL for that:
    create or replace
    PROCEDURE CREATE_STAGING_TABLES as
    BEGIN
      -- I CAN'T GET THIS TO WORK BUT I CAN COPY THESE LINES AND RUN THEM AND THEY WORK! WHATUP?
      DBMS_OUTPUT.PUT_LINE('Begin Create Import Tables');
      EXECUTE IMMEDIATE 'Create table FAC_STAGING_PROJECTS As select * from FAC_PROJECTS where 1=2';
        EXECUTE IMMEDIATE 'alter table FAC_STAGING_PROJECTS add(ERROR_DESCRIPTION VARCHAR2(4000 CHAR))';
        EXECUTE IMMEDIATE 'alter table FAC_STAGING_PROJECTS add(bImported NUMBER)';
        EXECUTE IMMEDIATE 'alter table FAC_STAGING_PROJECTS add(dteImported DATE)';
      EXECUTE IMMEDIATE 'Create table FAC_STAGING_PURCHASE_ORDERS As select * from FAC_PURCHASE_ORDERS where 1=2';
        EXECUTE IMMEDIATE 'alter table FAC_STAGING_PURCHASE_ORDERS add(ERROR_DESCRIPTION VARCHAR2(4000 CHAR))';
        EXECUTE IMMEDIATE 'alter table FAC_STAGING_PURCHASE_ORDERS add(bImported NUMBER)';
        EXECUTE IMMEDIATE 'alter table FAC_STAGING_PURCHASE_ORDERS add(dteImported DATE)';
      DBMS_OUTPUT.PUT_LINE('End Create Import Tables'); 
      EXCEPTION
       WHEN OTHERS THEN
         raise_application_error(-20022,substr(SQLERRM,1,255));
    END CREATE_STAGING_TABLES;SY.
    P.S. I am not questioning why do you need to create tables from a stored procedure.

  • Open tabs from last session lost - intermittently

    Don't know whether it's a bug or me but tabs left open from last session are lost - intermittently - when I re enter Firefox mobile on my Samsung Galaxy s3.
    I'll often leave 5 or so showing on the tab counter in the top right hand corner of the browser. Sometimes they will be there next session, but mostly they aren't!
    Any suggestions?

    HI alt-images,
    Thank you for your question. When they do not show up, are you using a guest session or have you whipped the cache of the application from the mobile device's OS settings menu?
    Also please check these settings on Firefox for Android: Settings > Customize >Tabs
    Is "Always Restore" selected, or "Don't restore after quitting Firefox"
    Please post back with the results and we can continue to troubleshoot the issue, thank you!

  • JDeveloper EJB3 Session Bean Problem

    Hi Everyone,
    I am new to JDeveloper. I tried to do a EJB3 Stateless Session Bean. I want to add the AroundInvoke Function to the Bean class. At below
    @AroundInvoke
    // mark this method as a bean interceptor
    public Object checkPermission(InvocationContext ic) throws Exception {
    System.out.println("*** checkPermission interceptor invoked");
    // you can implement your own security framework using interceptors
    if (!ic.getEJBContext().getCallerPrincipal().getName().equals("oc4jadmin")) {
    throw new SecurityException("Caller: '"
    + ic.getEJBContext().getCallerPrincipal().getName()
    + "' does not have permissions for method "
    + ic.getMethod());
    return ic.proceed();
    However, the Jdeveloper 11g keep show me the error message that AroundInvoke is not found. Then I put the import javax.ejb.AroundInvoke. It still complain import javax.ejb.AroundInoke not found.
    Please help and advise.
    Thank you

    A small tip - if you go to the add a library dialog in the project properties you'll see a search box at the top - you can put a class name there and JDeveloper will show you in which library it is.

  • Session lost (IE5 & IE6) when opening popup window.

    Ok, I've been struggling with this problems for days and spent countless hours with google without finding any decent solutions.
    I'm building a ecommerce site and if the user want to see additional information + pictures from a product, he/she can open a popup window that also has "add to cart"-submit field.
    UserID and some other necessary data is kept in sessions but IE5 / IE6 seems to loose these in this new window when opening it via javascript (popup).
    If I have understood right, the session is lost because IE considers the new window as a new task and therefore it is out of the "session scope".
    Ok, one might say that using encodeUrl()-method should fix this problem, but no it doesn't. encodeURL()-method writes the session to URL only when user has disabled the cookies and in my situation it's not the case.
    Has anyone here been struggling with the problem above ? I've been considering if I encode the UserID and other information manually to the URL and decode it back in the popup, but that brings n+1 security issues to my mind and doesn't really sound like a decent solution.
    Thanks in advance,
    - Roni
    p.s: Sorry about my crappy english.

    Hmm,
    I did a small test and managed to get the sessions to work with IE.
    the main page:
    <%@ page language="java" %>
    <%
    session.setAttribute("foo", "bar");
    %>
    <html><head><title>sessiontest</title>
    <script language="javascript" type="text/javascript">
    <!--
    function popUp(URL) {
    options="toolbar=no,directories=no,location=no,status=no," + "menubar=no,scrollbars=yes,resizable=yes,width=416,height=465, left = 362,top = 184";
    var Infowindow=window.open(URL, "Infowindow" ,options);
    Infowindow.focus();
    -->
    </script>
    </head>
    <body>
    sessionattribute <b>foo</b> has value <b>bar</b><p>
    <a href="javascript:popUp('<%= response.encodeURL("sessiondebugpopup.jsp") %>')">link to popup</a>
    </body>
    </html>popup:
    <%@ page language="java" %>
    <html><head><title>sessiontestpopup</title>
    </script>
    </head>
    <body>
    attribute value is:<p>
    <b><%= (String)session.getAttribute("foo") %>
    </body>
    </html>This works just fine, but the code in the actual application does not differ from this.
    Only difference I can figure out if that the .js popup() function is located in header.jsp and the call to the popup is in other .jsp that includes the header.
    Here's the call to the popup in the application:
    <a href="javascript:popUp('<%= response.encodeURL("pop.jsp?prod="+ rs2.getString("tuo_tuonro") +"&img="+ cnt.getPictureURL(rs2.getString("tuo_tuonro"), cnt.getUserId(user)))%>')">link</a>And the above code works just fine with firefox/opera/etc, but not with IE5/IE6 (haven't tried other IE versions though).
    This is really getting annoying.

  • ShowModalDialog - session lost

    Hi All,
    Using showModalDialog to open a pop up window the session value getting lost. How to resolve this?
    window.showModalDialog(url,"","resizable:no;help:no;dialogHeight:17;dialogWidth:14")- vignesh

    Hmmm...you may be using a per browser cookie that would disallow session from other browser instances/windows. To confirm, login using a browser and then access a book marked url using another window. If it does not work, that would confirm it.
    As a work around you can attempt to 'force rewrite' the url on the server side and use the rewritten url to open the modal dialog. Same for all requests originating from this window. How to achieve that depends on your server.
    ram.

Maybe you are looking for

  • General xSan questions for a new setup

    So I'm looking to setup xSan. Had mainly one question. I know it's recommended that you have a secondary metadata controller server incase one goes down, but is this absolutely needed? We will have very few (like 3) people using the system so it won'

  • Problems with Server utilization and java

    Dear all, I am developing a page in JSP and make use of javabean to transfer data from one page to another within a session. The data in javabean are never been erased. The problem is when the server runs for a long period of time, it becomes slower

  • Exchange Server 2013: Outook Clients and OWA keeps on disconnecting/connecting every 5-10 mins

    We have a new exchange server 2013 installed but also has exchange 2007 up. MX records are now pointing to the new exchange server, all were working ok after DNS records were changed but after the weekend it Outlook clients and OWA keeps on disconnec

  • Safari keeps logging out of logged-in accounts

    Hello, first off let me apologise if this topic has been discussed (and hopefully resolved?) elsewhere, as I'm sure it has. I have searched through the forums and the only similar one I could find was archived and so was unable to reply (thread locat

  • Error 2738 trying to install Updater

    Keep getting Error 2738 Could not access VBscriptrun time for custom action. When trying to install Nokia Software Updater. Does anyone know how to resolve this. PS It is the latest version of the updater downloaded on 19 July 2008