NPE creating a new session on WebLogic Server 9.2

We're getting the following stack trace from WebLogic Server 9.2 when a page gets hit.
It appears to be a clustering error when creating a new session.
When there is only a single server left running, the pages are served correctly.
Any thoughts appreciated.
2009-01-27 11:13:47,423 [ExecuteThread: '12' for queue: 'weblogic.kernel.Default'] ERROR com.vignette.portal.website.enduser.filters - java.lang.NullPointerException:
java.lang.NullPointerException:
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:211)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:224)
at weblogic.cluster.replication.ReplicationManager_922_WLStub.create(Unknown Source)
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 weblogic.cluster.replication.SecureReplicationInvocationHandler$ReplicationServicesInvocationAction.run(SecureReplicationInvocationHandler.java:184)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.cluster.replication.SecureReplicationInvocationHandler.invoke(SecureReplicationInvocationHandler.java:154)
at $Proxy46.create(Unknown Source)
at weblogic.cluster.replication.ReplicationManager.trySecondary(ReplicationManager.java:666)
at weblogic.cluster.replication.ReplicationManager.createSecondary(ReplicationManager.java:638)
at weblogic.cluster.replication.ReplicationManager.add(ReplicationManager.java:359)
at weblogic.cluster.replication.ReplicationManager.register(ReplicationManager.java:352)
at weblogic.servlet.internal.session.ReplicatedSessionData.registerOrAdd(ReplicatedSessionData.java:108)
at weblogic.servlet.internal.session.ReplicatedSessionData.<init>(ReplicatedSessionData.java:78)
at weblogic.servlet.internal.session.ReplicatedSessionData.<init>(ReplicatedSessionData.java:64)
at weblogic.servlet.internal.session.ReplicatedSessionContext.getNewSession(ReplicatedSessionContext.java:161)
at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getNewSession(ServletRequestImpl.java:2526)
at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getSessionInternal(ServletRequestImpl.java:2111)
at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getSession(ServletRequestImpl.java:2075)
at weblogic.servlet.internal.ServletRequestImpl.getSession(ServletRequestImpl.java:1207)
at com.vignette.portal.website.internal.DefaultHttpRequestWrapper.getSession(DefaultHttpRequestWrapper.java:65)
at com.vignette.portal.website.internal.DefaultHttpRequestWrapper.getSession(DefaultHttpRequestWrapper.java:41)
at com.epicentric.common.website.InitUtils.initSession(InitUtils.java:73)
at com.vignette.portal.website.enduser.filters.AuthenticationFilter.initSession(AuthenticationFilter.java:47)
at com.vignette.portal.website.enduser.filters.AuthenticationFilter.doFilter(AuthenticationFilter.java:41)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.vignette.portal.website.admin.internal.control.InitFrameworkFilter.httpDoFilter(InitFrameworkFilter.java:35)
at com.vignette.portal.website.admin.internal.control.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:61)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.vignette.portal.website.admin.internal.control.MultipartFilter.httpDoFilter(MultipartFilter.java:33)
at com.vignette.portal.website.admin.internal.control.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:61)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.vignette.portal.website.internal.StartupProtectionFilter.doFilterSingleInvocation(StartupProtectionFilter.java:100)
at com.vignette.portal.website.internal.SingleInvocationFilter.doFilter(SingleInvocationFilter.java:52)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.vignette.portal.website.internal.EnvironmentalWrapperFilter.doFilterSingleInvocation(EnvironmentalWrapperFilter.java:44)
at com.vignette.portal.website.internal.SingleInvocationFilter.doFilter(SingleInvocationFilter.java:52)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3229)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2002)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1908)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1362)
at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
Caused by: java.lang.NullPointerException:
at weblogic.server.channels.ServerChannelImpl.equals(ServerChannelImpl.java:103)
at weblogic.cluster.replication.ReplicationManagerServerRef.checkPriviledges(ReplicationManagerServerRef.java:102)
at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:302)
at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:877)
at weblogic.rjvm.RJVMImpl.dispatchRequest(RJVMImpl.java:1084)
at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:1001)
at weblogic.rjvm.ConnectionManagerServer.handleRJVM(ConnectionManagerServer.java:240)
at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:881)
at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:446)
at weblogic.rjvm.t3.MuxableSocketT3.dispatch(MuxableSocketT3.java:368)
at weblogic.socket.AbstractMuxableSocket.dispatch(AbstractMuxableSocket.java:378)
at weblogic.socket.SSLFilter.dispatch(SSLFilter.java:258)
at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:856)
at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:802)
at weblogic.socket.EPollSocketMuxer.dataReceived(EPollSocketMuxer.java:192)
at weblogic.socket.EPollSocketMuxer.processSockets(EPollSocketMuxer.java:174)
at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
... 2 more

Hi Scott,
Did you get to the bottom of this?
We're experiencing exactly the same symptoms, except we're upgrading 8.1 -> 10.3
App works fine on a single server, as soon as a second server is brought into the cluster we get the same exception.
I'm checking the configs now for anything suspicious...

Similar Messages

  • How to create a new session in JSP file

    Usually a child IE window uses same session with parent window. Dose someone know how to create a new session when creating a new IE window by clicking a URL in parent window? The web page is writen by jsp file.

    I am not sure of your question. Are you wanting to have 2 Session objects (one for the parent window and another for the child)?
    A session is usually created once per client and is stored on the server the session id is carried around in a cookie or a URL rewrite so that everytime the user submits a page you will be able to store/access information.
    // this will create a new session object if one doesn't already exist.
    HttpServletRequest.getSession( true );
    Hope this helps

  • To create a new file in application server and transfer data to ti

    i am doing the following where i have to create a new file in application server and transfer data to tht file from an internal table.but its saying file cant be opened.the path i am giving to parameter p_prefil is /tmp/prachi.txt.
    wats the prob..can anyone help.
    DATA:L_WA_FINAL TYPE TY_FINAL,
         l_wa_string type string.
    OPEN DATASET P_PREFIL FOR OUTPUT IN text mode encoding default.
    if sy-subrc <> 0.
    write: ' file cannot be opened'.
    stop.
    endif.
    LOOP AT P_I_FINAL INTO L_WA_FINAL.
    move l_wa_final to l_wa_string.
    TRANSFER l_wa_string TO P_PREFIL.
    if sy-subrc <> 0.
    write: 'file can not be written'.
    stop.
    endif.
    clear l_wa_final.
    ENDLOOP.
    CLOSE DATASET P_PREFIL.
    if sy-subrc <> 0.
    write: ' file cannot be closed'.
    stop.
    endif.

    DATA:L_WA_FINAL TYPE TY_FINAL,
    l_wa_string type string.
    OPEN DATASET P_PREFIL FOR OUTPUT IN text mode encoding default.
    if sy-subrc ne 0.
    write: ' file cannot be opened'.
    stop.
    endif.
    LOOP AT P_I_FINAL INTO L_WA_FINAL.
    move l_wa_final to l_wa_string.
    TRANSFER l_wa_string TO P_PREFIL.
    write: 'file can not be written'.
    clear l_wa_final.
    ENDLOOP.
    CLOSE DATASET P_PREFIL.
    if sy-subrc ne  0.
    write: ' file cannot be closed'.
    stop.
    endif.

  • To create a new session on the clcik of a button in Bsp.

    If have application A.
    On the click of the button i want to create a new session of application B.
    I used the method
    cl_http_ext_webapp=>create_url_for_bsp_application
    for calling the application B.
    but the session is maintained.
    How shall i proceed so that my application creates a new session.

    I am curious.  Both Raja and I suggest the same fix:
    >Now you probably want to add the url parameter sap-sessioncmd. There is the value open that will start a new session
    >'?sap-sessioncmd=open' and use this url for navigating.
    You said that his solution worked and mine did not.  The only difference is that I suggested that you use cl_bsp_runtime=>construct_bsp_url instead of cl_http_ext_webapp=>create_url_for_bsp_application.  This recommendation comes right from the source; cl_bsp_runtime=>construct_bsp_url is the prefered method for constructing URLs.  I am curious the other method somehow produce different results?

  • PS2013 - When creating a new instance of Project Server hangs in 'Waiting for resources' status

    Hi,
    I have one instance of Project Server 2013 fully operational and I tried to duplicate the instance to make some tests. As I know the issue of using the same Content Database of Project Server in the same Server Farm, I used the powershell  backup/restore/dismount
    and mount the content database to change the site IDs to avoid index duplication. The Project server database was a regular SQL backup and restore in another database.
    I created a new Web App in the port 90 as show below.
    Then I included the Content database of Project Server as separated DB from SharePoint for this new SharePoint -acme90 and I tried to create the new instance. The creation hanged in "Waiting for Resources" status.
    To make another check excluding the reuse of the SharePoint-80 I tried to create another instance both in the SharePoint-80 where is the working instance and in the SharePoint-90, everything default and again they all hanged in Waiting for Resource.
    If I try to create the instance using PowerShell I got the following error:
    PS C:\Users\epm_setup> Mount-SPProjectWebInstance -DatabaseName Test_EPM -SiteCo
    llection http://acme02/epm -Lcid 1046
    Mount-SPProjectWebInstance : Cannot find an SPSite object with Id or Url:
    http://acme02/epm.
    At line:1 char:1
    + Mount-SPProjectWebInstance -DatabaseName Test_EPM -SiteCollection
    http://acme02/ ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~
        + CategoryInfo          : InvalidData: (Microsoft.Offic...ountPwaInstance:
       PSCmdletMountPwaInstance) [Mount-SPProjectWebInstance], SPCmdletPipeBindEx
      ception
        + FullyQualifiedErrorId : Microsoft.Office.Project.Server.Cmdlet.PSCmdletM
       ountPwaInstance
    All SharePoint and Project Server services are running, all App Pools and sites are started at the IIS. I could not find a hanging timer job.
    I cannot stop the hanged process or dismount the instances using Powershell since no instance created.
    How should I solve the hanging status of creation of the instance? As they are in Hyper-V I can go back using one snapshot.
    Thank you.
    Best regards, Ricardo Segawa - Segawas Projetos / Microsoft Partner

    Hi Eric,
    Thank your for your interest in this case.
    I checked for running and crashed PWA jobs and deleted all of them just after restoring the snapshot and tried to create the new instance in the new web app in port 90 (besides the existing and working instance in port 80), but again it hanged in "waiting
    for resources". There is not any timer job hanging, no error in event viewer or in log. So the error is well before working with cloned dbs.
    Answering your questiion, I am working all on 2013. My intention is backup one instance of the port 80 and copy to the instance of port 90, changing of course the url and the index of the content db of SharePoint. The process I used was:
    Create a new web app in port 90, creating a new SharePoint_Content_2 on a
    http://server:90 site.
    Created the top level site called Portal using the Team Site template.
    Create a new content db for new instance of Project Server named EPM_Content_2 using Central Admin.
    Backup content db from port 80 instance of Project Server and restore to this EPM_content_2 using PowerShell cmd.
    Dismounted and mounted this Project Server content db to create new index for existing sites to avoid index conflicts.
    Backup the Project Server DB from port 80 using SQL backup and restored as ProjectWebApp2 db for port 90 instance.
    Tried to create a new instance of Project Server
    http://server:90/pwa on web app of port 90 using the ProjectWebApp2 db and using the same app pool of the other instance. But as in the previous case, it hang out in "Waiting for resources".
    Best regards, Ricardo Segawa - Segawas Projetos / Microsoft Partner

  • Httprequest.getSession(false) creating a NEW Session

    I am working on a web application which uses STRUTS. All the client requests are directed to loginaction class.
    Any resource in the application, is accessed thru the action class.
    Overview: In the action class, i am checking if there is any session associated with the new user using
    session = request.getSession(false);
                      if (session != null) {
          if (session.isNew()) {
          logger.info("New Session Created [" + session.getId() + "]");
          } else {
          logger.info("Session EXIST'S ["+ session.getId()
         + "], Retreiving user from session");
                       }According to the Servlets 2.2 API:
    public HttpSession getSession(boolean create) Returns the current HttpSession associated with this request or, if if there is no current session and create is true, returns a new session.
    If create is false and the request has no valid HttpSession, this method returns null.
    if (session.isNew()) ,
    this if statement should return false and be skipped, as session = request.getSession(false);wont create a new session. When i parse the logs, I see the log statement, "New Session Created ". Which makes me wonder, that a new session is being created
    Problem: When i debug, i see that container is creating a new session if the session doesnt exist. According to API mentioned above, it should not create a new session. It should return null.
    Did anyone had a similar issue? While researching i found this article that using struts, the container creates a default session.
    I found this article: http://www.theserverside.com/discussions/thread.tss?thread_id=21643
    Environment: IDE:WSAD5.1, Appserver:Websphere, Browser:IE 6.0, Struts, JSP, JSTL

    Hi,
    We have two appliactions. Our application say B is uses authentication mechanism provided by say A.
    So the user, is presented a login page by application A. Once they are authenticated, without the knowledge of user, its being forwarded to our application say B.
    Once he is in our application, he can navigate in our application, say,
    he goes from page1 to page2. page1 is the main page. Now browser caching is enabled. When he hits the back button to access page1, browser is sending a new request to our applicaiton insted of furnising form local cache( this is another issue). Even though a new request is sent, all the requests are routed thru a struts controller action class. Now in the action class, we check if its a new session or not.
    request.getSession(false). Since the user is an old user, it shouldnt create any new session.
    As per your suggestion, where should i put the directive in the jsp to not to create a default session?. In page1 which is the main page?.
    How should i implemnt the session listener interface. Do u have any templates or code snippets?.
    Any suggestions?

  • How to create a new session by ABAP?

    Good afternoon everyone:
    This is my first question in the forum, can anybody tell me how to create a new session to display report output in a ALV program? Which function or method can used? I'm freshman.
    Thx.
    Edited by: Joshua Lee on Nov 21, 2008 10:04 AM

    Hi Joshua,
    Welcome To SDN.
    I am not clear about your queestion.
    if u r doing an ALV report if u give selection screen inputs if press execute buttom or F8 u wil get the report.
    if u want the out put in the next screen. you can develop the screen in the module pool
    Regards
    Rasheed
    Edited by: Rasheed salman on Nov 21, 2008 10:25 AM

  • Where You can create a support case for weblogic server?

    Hi all,
    I would like to know where I can create a support case for weblogic server?
    I logged me in metalink3 but I did not found a way to create a service request for WLS.
    Thanks in Advance.

    I believe you still need to use BEA's support resources at this point: http://www.oracle.com/bea/support.html

  • Fail Over - Back up, create a new session

              Two WLS 5.1 SP10 clustering, iPlanet4.1 w/wlproxy plugin, Solaris Box. Everything
              works except the following senario:
              1. Two servers up, user browses the site. ok!
              2. shutdown one server, user continues to browse without losing sessions. ok!
              3. down server back up, new session is created in this server and replicated to
              the other server, in the mean time the old session still there. Every click cause
              the session swithing back and forth. WRONG!
              4. close the brower and restart a new session, back to normal. ok!
              Any idea?
              

              Only one cookie is created in the whole process. But in step3, when clicking on
              the browser, plugin directs the request to app1, app2 back and forth for each
              click. I can also see the there are two session ids. one's primary is in app1,
              the other's prirmay is in app2.
              The other interesting thing is the wlproxy.log, where one app server is down (166.200.148.10
              is still up, 166.200.148.11 is down), plugin log shows connecting to 166.200.148.10
              fails and finally throught static list connecting to 166.200.148.11 which is down,
              and in fact, 166.200.148.10 got hit, browser has the display.
              Tue Oct 9 13:40:52 2001 getPref(): primary h=166.200.148.10 p=7008
              Tue Oct 9 13:40:52 2001 ===== New Request [main/formdata.jsp?] ====
              Tue Oct 9 13:40:52 2001 ....relFile.../main/formdata.jsp?...
              Tue Oct 9 13:40:52 2001 trying connect to PRIMARY '166.200.148.10'/7008 at line
              611 for '/main/formdata.jsp?'
              Tue Oct 9 13:40:52 2001 failed to connect to host 166.200.148.10 port 7008
              Tue Oct 9 13:40:52 2001 No good servers left in the general list, reverting back
              to the static list
              Tue Oct 9 13:40:52 2001 Initializing lastIndex=0 for a list of length=2
              Tue Oct 9 13:40:52 2001 general list: trying connect to '166.200.148.10'/7008
              at line 679 for '/main/formdata.jsp?'
              Tue Oct 9 13:40:52 2001 failed to connect to host 166.200.148.10 port 7008
              Tue Oct 9 13:40:52 2001 general list: trying connect to '166.200.148.11'/7008
              at line 679 for '/main/formdata.jsp?'
              Tue Oct 9 13:40:52 2001 Header from client [accept]=[*/*]
              Tue Oct 9 13:40:52 2001 Header from client [accept-language]=[en-us]
              Tue Oct 9 13:40:52 2001 Header from client [accept-encoding]=[gzip, deflate]
              Tue Oct 9 13:40:52 2001 Header from client [user-agent]=[Mozilla/4.0 (compatible;
              MSIE 5.5; Windows NT 4.0)]
              Tue Oct 9 13:40:52 2001 Header from client [host]=[167.206.148.202]
              Tue Oct 9 13:40:52 2001 Header from client [cookie]=[cookieID=4773; bmTzOff=240;
              bmScrRes=1024x768; bmClrDpt=16; bmJava=Yes; WebLo]
              Tue Oct 9 13:40:52 2001 WLS info before parseHeaders : 166.200.148.11:7008
              Tue Oct 9 13:40:52 2001 Sending header to WLS [accept]=[*/*]
              Tue Oct 9 13:40:52 2001 Sending header to WLS [accept-language]=[en-us]
              Tue Oct 9 13:40:52 2001 Sending header to WLS [accept-encoding]=[gzip, deflate]
              Tue Oct 9 13:40:52 2001 Sending header to WLS [user-agent]=[Mozilla/4.0 (compatible;
              MSIE 5.5; Windows NT 4.0)]
              Tue Oct 9 13:40:52 2001 Sending header to WLS [host]=[167.206.148.202]
              Tue Oct 9 13:40:52 2001 Sending header to WLS [cookie]=[cookieID=4773; bmTzOff=240;
              bmScrRes=1024x768; bmClrDpt=16; bmJava=Yes; We]
              Tue Oct 9 13:40:52 2001 Sending header to WLS [X-WebLogic-Force-Cookie]=[true]
              Tue Oct 9 13:40:52 2001 Sending header to WLS [Proxy-Client-IP]=[166.200.148.21]
              Tue Oct 9 13:40:52 2001 Sending header to WLS [X-Forwarded-For]=[166.200.148.21]
              Tue Oct 9 13:40:52 2001 Sending header to WLS [Proxy-Path-Translated]=[opt/netscape/server4/docs/main/formdata.jsp]
              Tue Oct 9 13:40:52 2001 Sending header to WLS [Proxy-Path-Translated-Base]=[opt/netscape/server4/docs]
              Tue Oct 9 13:40:52 2001 Header received from WLS : [HTTP/1.1 200 OK] = []
              Tue Oct 9 13:40:52 2001 Header received from WLS : [Server] = [WebLogic 5.1.0
              Service Pack 10 07/11/2001 21:04:48 #126882]
              Tue Oct 9 13:40:52 2001 Header received from WLS : [Content-Length] = [612]
              Tue Oct 9 13:40:52 2001 Header received from WLS : [Content-Type] = [text/html;
              charset=ISO-8859-1]
              Tue Oct 9 13:40:52 2001 Header received from WLS : [X-WebLogic-Load] = [0]
              Tue Oct 9 13:40:52 2001 Header received from WLS : [X-WebLogic-Cluster-List]
              = [-3524818015807611228/bungan/6/7008/7008/7002/7002]
              Tue Oct 9 13:40:52 2001 Header received from WLS : [X-WebLogic-Cluster-Hash]
              = [a0NT9MOQPES4vbUg1fb3g3C6j7U]
              Tue Oct 9 13:40:52 2001 Header received from WLS : [Connection] = [Close]
              Tue Oct 9 13:40:52 2001 Header to Client [Server]=[WebLogic 5.1.0 Service Pack
              10 07/11/2001 21:04:48 #126882]
              Tue Oct 9 13:40:52 2001 add content-length to srvhdrs, [Content-Length]=[612]
              Tue Oct 9 13:40:52 2001 Header to Client [Content-Length]=[612]
              Tue Oct 9 13:40:52 2001 Header to Client [Content-Type]=[text/html; charset=ISO-8859-1]
              Tue Oct 9 13:40:52 2001 Initializing lastIndex=0 for a list of length=1
              Tue Oct 9 13:40:52 2001 ### Got a new Server List of length 1 ###
              Tue Oct 9 13:40:52 2001 ###Response### : Srvr# [1] = [166.200.148.10:7008]
              Tue Oct 9 13:40:52 2001 request [main/formdata.jsp?] processed ......
              "Mike Reiche" <[email protected]> wrote:
              >
              >
              >A new session should not be created when the down server comes backup.
              >The requests
              >should continue to be sent to the server that was originally the secondary
              >( and
              >now the primary ).
              >
              >In IE, turn on 'prompt for cookies' and note the value of the WebLogicSession
              >cookie whenever one is written to the browser. The number in between
              >the the first
              >and second '/' is the IP address of the WL instance that wlproxy will
              >send the
              >request to. If there is no WL running there, it will round-robin requests
              >to the
              >instances that do exist.
              >
              >You should make sure that both the WebLogic Server and the wlproxy are
              >using the
              >same cookie name. (sounds like they are).
              >
              >
              >Mike
              >
              >
              >"Rong" <[email protected]> wrote:
              >>
              >>Two WLS 5.1 SP10 clustering, iPlanet4.1 w/wlproxy plugin, Solaris Box.
              >> Everything
              >>works except the following senario:
              >>
              >>1. Two servers up, user browses the site. ok!
              >>2. shutdown one server, user continues to browse without losing sessions.
              >>ok!
              >>3. down server back up, new session is created in this server and replicated
              >>to
              >>the other server, in the mean time the old session still there. Every
              >>click cause
              >>the session swithing back and forth. WRONG!
              >>4. close the brower and restart a new session, back to normal. ok!
              >>
              >>Any idea?
              >
              

  • How to find out Sessions in weblogic server

    Hi all,
    i am new to weblogic and i am struck at these two questions while creating managed servers. Many people questioned me regarding this. Can you all please help me out.
    1)Before adding a MS , how can we figure out the current load and what would be the impact/benefit be if we add a MS.
    2)How many sessions can be handled by the unix Weblogic server?

    HI,
    The answer of These kind of questions can be found only after the Load Test on the WLS. Because there is no formula to calculate these things. Because these things totally depends on various different things....Like Operating System, It's RAM, CPUs, JDKs, Application type(EJB, WebServices, Portal, Simple WebApp), Number of Users, The Physical Distance of ManagedServers and DataBases....Network Conjunction...etc
    So no one can tell here the exact value. But for performance diagnostics you can refer to *"René van Wijk"* best article to find out these things using small tests as described in the following Link:
    Topic: Performing Diagnostics in a WebLogic environment
    http://middlewaremagic.com/weblogic/?p=6016

  • Creating Ejb link to another Weblogic server

    I am trying to create a EJB jndi link to another weblogic server from a weblogic
    server.
    Basically I have a web application that uses an EJB that is deploed on another
    weblogic server and I would like to connect to it.
    One way I can do is the remote lookup using the Hashtable and the context factory,
    something like this
    Hashtable props = new Hashtable();
    props.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    props.put(Context.PROVIDER_URL, "t3://localhost:7001/");
    Context context = new InitialContext(props);
    I used a jndi-link in resin previously, that did not require me to do a remote
    lookup and rather created a link at the server level and allowed me to do a direct
    InitialContext() lookup.
    <jndi-link>
    <jndi-name>java:comp/env/ejb/test</jndi-name>
    <jndi-factory>weblogic.jndi.WLInitialContextFactory</jndi-factory>
    <init-param java.naming.provider.url="t3://xx.x.x.x:7001"/>
    <jndi-lookup>ejb.test</jndi-lookup>
    </jndi-link>
    Can I do something similar in Weblogic? If yes, how can I do it.
    Appreciate your help.
    Thanks,
    Varun

    "Varun Garg" <[email protected]> wrote:
    >
    I am trying to create a EJB jndi link to another weblogic server from
    a weblogic
    server.
    Basically I have a web application that uses an EJB that is deploed on
    another
    weblogic server and I would like to connect to it.
    One way I can do is the remote lookup using the Hashtable and the context
    factory,
    something like this
    Hashtable props = new Hashtable();
    props.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    props.put(Context.PROVIDER_URL, "t3://localhost:7001/");
    Context context = new InitialContext(props);
    I used a jndi-link in resin previously, that did not require me to do
    a remote
    lookup and rather created a link at the server level and allowed me to
    do a direct
    InitialContext() lookup.
    <jndi-link>
    <jndi-name>java:comp/env/ejb/test</jndi-name>
    <jndi-factory>weblogic.jndi.WLInitialContextFactory</jndi-factory>
    <init-param java.naming.provider.url="t3://xx.x.x.x:7001"/>
    <jndi-lookup>ejb.test</jndi-lookup>
    </jndi-link>
    Can I do something similar in Weblogic? If yes, how can I do it.
    Appreciate your help.
    Thanks,
    Varun
    hi,
    Yes, it is possible in weblogic for more info visit this url,
    http://e-docs.bea.com/wls/docs70/ejb/reference.html#1221067
    u have the description of how to use the below tags
    <initial-context-factory>weblogic.jndi.WLInitialContextFactory</initial-context-factory>
    <provider-url>WeblogicURL:Port</provider-url>
    <indi-name>jndiweb</jndi-name>
    hope it help u
    regards,
    Elango TR

  • Create a new session when calling a new/different transaction

    Hello Everyone,
    I have a dialog program in which I have a button that calls a different transaction.  I would like for this transaction to open in a new session.  This can be easily done (and there are several posts on this) with FM's TH_CREATE_MODE or ABAP4_CALL_TRANSACTION.  Additionaly it can be done by remote enabling a custom FM and have the transaction call within your custom FM.
    My issue is that I want to pass the transaction a table so that it fills a select-options table at the selection screen.  Then of course I want to skip the selection screen and execute the transaction.  I can pass data if the selection field is a parameter field, but I need to pass the new transaction a table so that a select-options field can be filled.  Does anyone know how to do this and could recommend a proper approach?
    Best Regards,
    Scott

    It seems that you want to start of a new report by calling the ABAP4_CALL_TRANSACTION. There is a parameter USING_TAB which you can use to fill up the data (must be BDC data) to be able to pass to called transaction. Since you are dealing with the select-options this is not a good idea.
    I would suggest:
    From your Module pool,
    Fill the select option table and export it to ABAP memory using EXPORT
    Now,
    1. Create a dummy program ZDUMMY to SUBMIT your report ZREPORT.
    2. IMPORT the exported select option table from memory in ZDUMMY
    3. SUBMIT report ZREPORT with the select option
    4. Attach transaction code say ZDUMMY.
    In your module pool, after exporting the memory call the FM ABAP4_CALL_TRANSACTION with ZDUMMY transaction.
    Regards,
    Naimesh Patel

  • Create a new login in linked server

    Hello,
    I have 2 SQL servers that are linked. I can use this query to select some values from remote DB:
    exec sp_addlinkedserver
    @server=N'WinServer',
    @srvproduct=N'',
    @provider=N'SQLNCLI',
    @datasrc=N'10.3.0.217';
    GO
    exec sp_addlinkedsrvlogin
    @rmtsrvname='WinServer',
    @useself='false',
    @locallogin=NULL,
    @rmtuser='sa',
    @rmtpassword='123456';
    GO
    exec sp_testlinkedserver N'WinServer';
    select * from [WinServer].[MyDB].[dbo].[MyTable];
    But I want to create a new login on remote computer as below but it doesn't work:
    exec sp_testlinkedserver N'WinServer';
    -- use [WinServer].[MyDB].[dbo].[master];
    exec sp_grantlogin 'INTERNET\Domain Admins'
    How can I change authentication (add user) remotely without using "sqlcmd -S ... -U ... -P ... -q ...". Because my DB users will use this link object but they will not have  sa's password of remote computer.
    Thanks.

    Typo: Not AS, it should be AT
    EXEC ('CREATE LOGIN [INTERNET\Domain Admins]') AT Link

  • Wlst offline - create a new domain in weblogic portal 10.2

    Hi,
    Any one have automation script to create weblogic portal domain, create portlet data base ( not point base).and Domain resources: Machines,Servers, Clusters and data sources. I tried the one which comes with installation ( wlst offlie domain creation script), but it is just configuring weblogic server but not portal.
    Thanks.
    Krishna.

    #=======================================================================================
    # WLST Common Script Library Functions (these functions support both WLS 8.1.x and 9.x)
    #=======================================================================================
    __all__ = []
    import os
    from java.io import FileInputStream
    from java.util import Properties
    from java.lang import String
    import jarray
    #=======================================================================================
    # RAVI enable library functions to see and use WLST functions
    #=======================================================================================
    def initialise(topLevelNamespace):
    for f in ("addTemplate", "closeDomain", "closeTemplate", "exit", "readDomain",
    "readTemplate", "updateDomain", "writeDomain", "cd", "assign",
    "assignAll", "create", "delete", "get", "loadDB", "set", "setOption",
    "unassign", "unassignAll", "dumpStack", "dumpVariables", "help", "ls",
    "prompt", "pwd", "startRecording", "stopRecording", ):
    globals()[f] = topLevelNamespace[f]
    __all__.append(f)
    #=======================================================================================
    # Load Properties
    #=======================================================================================
    def loadPropertiesFromFile(filename):
    props = addPropertiesFromFile(filename, {})
    return props
    #=======================================================================================
    # Load Properties
    #=======================================================================================
    def addPropertiesFromFile(filename, props):
    properties = Properties()
    input = FileInputStream(filename)
    properties.load(input)
    input.close()
    for entry in properties.entrySet(): props[entry.key.strip()] = entry.value.strip()
    return props
    #=======================================================================================
    # Get WebLogic Version (eg. returns '8.1.5.0', '9.1.0.0', '9.2.0.0')
    #=======================================================================================
    def getWebLogicVersion():
    return cd('/').getConfigurationVersion()
    #=======================================================================================
    # Get Machine Create Type (returns 'UnixMachine' or 'Machine')
    #=======================================================================================
    def getMachineCreateType():
    # On Unix, machine type is 'UnixMachine' on Windows it is 'Machine'
    if os.pathsep == ':':
    return 'UnixMachine'
    else:
    return 'Machine'
    #=======================================================================================
    # Get Machine Directory Type (returns 'UnixMachine' or 'Machine')
    #=======================================================================================
    def getMachineDirectoryType():
    # On Unix, machine type is 'UnixMachine' on Windows it is 'Machine'
    if os.pathsep == ':':
    # When moving from WLS 9.1 to WLS 9.2, WLS changed name of unix machines from
    # 'UnixMachine' to just 'Machine'
    wlsVersion = getWebLogicVersion()
    if wlsVersion.startswith('8') or wlsVersion.startswith('9.0') or wlsVersion.startswith('9.1'):
    return 'UnixMachine'
    else:
    return 'Machine'
    else:
    return 'Machine'
    #=======================================================================================
    # Set Domain Options
    #=======================================================================================
    def setDomainOptions(prodMode, javaHome):
    setOption('OverwriteDomain', 'true')
    setOption('ServerStartMode', prodMode)
    setOption('JavaHome', javaHome)
    setOption('CreateStartMenu', 'false')
    #=======================================================================================
    # Set System User
    #=======================================================================================
    def setSystemUser(domainname, username, password):
    sysUser = cd('/Security/%s/User/weblogic' % domainname)
    sysUser.setName(username)
    sysUser.setPassword(password)
    #=======================================================================================
    # Create WLS81 Oracle Database Pool
    #=======================================================================================
    def createWLS81OracleDatabasePool(dbName, dbUsername, dbPassword, dbDriver, dbUrl):
    newPool = create(dbName, 'JDBCConnectionPool')
    newPool.setDriverName(dbDriver)
    newPool.setURL(dbUrl)
    newPool.setPassword(dbPassword)
    newPool.setInitialCapacity(5)
    newPool.setTestFrequencySeconds(60)
    newPool.setTestConnectionsOnRelease(1)
    newPool.setTestConnectionsOnReserve(1)
    newPool.setConnectionReserveTimeoutSeconds(60)
    newPool.setUserName(dbUsername)
    return newPool
    #=======================================================================================
    # Create WLS81 Data Source
    #=======================================================================================
    def createWLS81DataSource(dsType, dsName, jndiName, poolName):
    ds = create(dsName, dsType)
    ds.setJNDIName(jndiName)
    ds.setPoolName(poolName)
    return ds
    #=======================================================================================
    # Configure WLS9 Oracle Database
    #=======================================================================================
    def configureWLS9OracleDatabase(dsName, jndiNames, driver, host, port, sid, username, password, targets):
    cd('/')
    dataSource = create(dsName, 'JDBCSystemResource')
    cd('/JDBCSystemResource/' + dsName + '/JdbcResource/' + dsName)
    dbParam = create('dbParams','JDBCDriverParams')
    cd('JDBCDriverParams/NO_NAME_0')
    dbParam.setDriverName(driver)
    set('URL', 'jdbc:oracle:thin:@' + host + ':' + port + ':' + sid)
    dbParam.setPasswordEncrypted(password)
    dbProps = create('props','Properties')
    cd('Properties/NO_NAME_0')
    dbUser = create('user', 'Property')
    dbUser.setValue(username)
    cd('/JDBCSystemResource/' + dsName + '/JdbcResource/' + dsName)
    create('jdbcDataSourceParams','JDBCDataSourceParams')
    cd('JDBCDataSourceParams/NO_NAME_0')
    set("JNDINames", jndiNames)
    cd('/JDBCSystemResource/' + dsName + '/JdbcResource/' + dsName)
    create('jdbcConnectionPoolParams','JDBCConnectionPoolParams')
    cd('JDBCConnectionPoolParams/NO_NAME_0')
    set('TestTableName','SQL SELECT 1 FROM DUAL')
    set('TestConnectionsOnReserve','true')
    assign('JDBCSystemResource', dsName, 'Target', targets)
    return dataSource
    #=======================================================================================
    # Configure WLS102 DB2
    #=======================================================================================
    def configureWLS102DB2(dsName, jndiNames, driver, host, port, sid, username, password, targets, trans, url, testquery):
    print 'datasource('+dsName+','+ jndiNames+','+ driver+','+ host+','+ port+','+ sid+','+ username+','+ password+','+targets+','+ trans+','+url+',' + testquery +'):'
    cd('/')
    dataSource = create(dsName, 'JDBCSystemResource')
    cd('/JDBCSystemResource/' + dsName + '/JdbcResource/' + dsName)
    dbParam = create('dbParams','JDBCDriverParams')
    cd('JDBCDriverParams/NO_NAME_0')
    dbParam.setDriverName(driver)
    #set('URL', 'jdbc:bea:db2://' + host + ':' + port)
    set('URL', url)
    dbParam.setPasswordEncrypted(password)
    #dbParam.setPassword(password)
    dbProps = create('props','Properties')
    cd('Properties/NO_NAME_0')
    dbUser = create('user', 'Property')
    dbUser.setValue(username)
    dbPortNumber = create('portNumber', 'Property')
    dbPortNumber.setValue(port)
    dbDbName = create('databaseName', 'Property')
    dbDbName.setValue(sid)
    dbHost = create('serverName', 'Property')
    dbHost.setValue(host)
    dbBatch = create('batchPerformanceWorkaround', 'Property')
    dbBatch.setValue('true')
    cd('/JDBCSystemResource/' + dsName + '/JdbcResource/' + dsName)
    create('jdbcDataSourceParams','JDBCDataSourceParams')
    cd('JDBCDataSourceParams/NO_NAME_0')
    jndiNamesAray=jndiNames.split(',')
    set('JNDINames', jndiNamesAray)
    set('GlobalTransactionsProtocol', trans)
    #cd('/JDBCSystemResources/ttttt/JDBCResource/ttttt/JDBCDataSourceParams/ttttt')
    #cd('/JDBCSystemResource/' + dsName + '/JdbcResource/' + dsName)
    #cd('JDBCDataSourceParams/NO_NAME_0')
    #dbDatasource = cmo
    #dbDatasource.setGlobalTransactionsProtocol(trans)
    cd('/JDBCSystemResource/' + dsName + '/JdbcResource/' + dsName)
    create('jdbcConnectionPoolParams','JDBCConnectionPoolParams')
    cd('JDBCConnectionPoolParams/NO_NAME_0')
    #set('TestTableName','SQL SELECT COUNT(*) FROM SYSIBM.SYSTABLES')
    set('TestTableName',testquery)
    set('TestConnectionsOnReserve','true')
    assign('JDBCSystemResource', dsName, 'Target', targets)
    cd('/JDBCSystemResources/'+dsName)
    #targetsAray=[targets]
    #set('Targets',targetsAray)
    return dataSource
    #=======================================================================================
    # Set Common Server Settings
    #=======================================================================================
    def setCommonServerSettings(server):
    server.setNativeIOEnabled(1)
    server.setWeblogicPluginEnabled(1)
    #=======================================================================================
    # Set Server Logging
    #=======================================================================================
    def setServerLogging(server, logpath, level):
    cd('/Server/' + server.getName())
    log = create(server.getName(), 'Log')
    log.setFileName(logpath + '/' + server.getName() + '.log')
    log.setRotationType('byTime')
    log.setRotationTime('02:00')
    log.setFileTimeSpan(24)
    log.setFileCount(7)
    log.setLogFileSeverity(level)
    #=======================================================================================
    # Set Web Server
    #=======================================================================================
    def setWebServer(server, logpath, frontEndHost, frontEndPort, frontEndSSLPort):
    cd('/Server/' + server.getName())
    webServer = create(server.getName(), 'WebServer')
    webServer.setFrontendHost(frontEndHost)
    webServer.setFrontendHTTPPort(frontEndPort)
    webServer.setFrontendHTTPSPort(frontEndSSLPort)
    wlsVersion = getWebLogicVersion()
    if wlsVersion.startswith('9') or wlsVersion.startswith('10'):
    cd('/Server/' + server.getName() + '/WebServer/' + server.getName())
    webServerLog = create(server.getName(),'WebServerLog')
    webServerLog.setFileName(logpath + '/' + server.getName() + '_access.log')
    webServerLog.setRotationType('byTime')
    webServerLog.setRotationTime('02:00')
    webServerLog.setFileTimeSpan(24)
    webServerLog.setFileCount(7)
    else:
    webServer.setLogFileName(logpath + '/' + server.getName() + '_access.log')
    webServer.setLogRotationType('date')
    webServer.setLogRotationTimeBegin('01-01-2006-2:00:00')
    webServer.setLogRotationPeriodMins(1440)
    webServer.setLogFileCount(7)
    #=======================================================================================
    # Create Boot Properties File
    #=======================================================================================
    def createBootPropertiesFile(directoryPath, username, password):
    file = open (directoryPath + '/boot.properties', 'w')
    file.write('username=%s\n' % username)
    file.write('password=%s\n' % password)
    file.flush()
    file.close()
    Hopefully this will work for you

  • PS2013 - Creating a new instance of Project Server does not run and hangs in "Waiting for Resource"

    Hi,
    In my Project Server 2013 environment I created an instance of Project Server which is running in a notebook Hyper-V Windows 2012 Server with 11 GB, 4 threds, 3 GHz, one box configuration with complete version of SQL Server 2012 with SP1, nothing trial.
    PS and SPS 2013 updated with Cumulative Update of Dec 2013.
    I want to create a new empty instance in the same port 80 with a different URL or in the port 90 creating a new web application.
    Whatever option I choose, when I try to create the instance of the Project Server it hangs in "Waiting for Resource" status. No Event Viewer, no hanged timer Jobs, all services running, all pools and sites started and I found out nothing in the
    SharePoint Logs. After every attempt I return the server snapshot to the former state.
    The Project Server and SharePoint continue to work normally.
    Any hints where should I look to solve this issue?
    Thank you.
    Best regards, Ricardo Segawa - Segawas Projetos / Microsoft Partner

    Ricardo,
    so, the only clue I can find in your posting is around the web application.
    if you want a 2nd PWA instance on the same web application (this presums you have one already, working, right?).
    all you really have to do is give it a different "pwa" name - like "Test" or some such and use a unique project database name : Test_ProjectServerData
    there is much more you could do, for isolation into a private content database for example.
    to use a different port, then you need to setup a web application on a different port and proceed as above, selecting that web app to start from.
    if the basic action of new pwa site provision is not working, then it may suggest there is something systemmically wrong with the setup.
    let us know,
    Thanks, Eric S. Pcubed

Maybe you are looking for

  • Why I can not connect more than one device at a time with a monthly subscription?

    Yesterday I bought a monthly subscription (https://store2.adobe.com/cfusion/store/html/index.cfm?store=OLS-ES&event=displayProduct&ca tegoryPath=/Applications/EdgeInspect) and I got the confirmation of the purchase but I recognize Google Chrome I hav

  • IHome weirdness with 5th gen iPod

    I have both a 4th gen iPod and a 5th gen iPod and I find that my iHome that works beautifully with the 4th gen iPod works very strangely with the 5th gen... and it's not because I don't have the foot replacements for the inserts. I find that there is

  • Linked symbols inside a symbol.

    Working with multi-art board documents we need a way to use externally linked symbols inside a symbol in the document. Example: A Button.ai file is used in multiple documents (imaging large project with 100s of pages). The lined button symbol can't b

  • Restrict Delta Load of Service orders in CRM

    Hi, <u>For the Techie guys in CRM:</u> Can anybody please let me know how to Restrict the Delta load of Service Orders coming in CRM version 4.0 . The Bdoc type coming is CRM_SO_DMBDOC. Thanks, Shobhit

  • List of login users

    hi frends, i want to have list of user who have logged in to the portal in last 1 hours or any duration.... I know with coding i can get this.... but i dont want to have seperate iview to have this... is there any inbuild properties in SAP portal whi