Exception when redirect page

Hi
I create a class implements PhaseListener
In afterPhase method I use FacesContext of ADF for redirect page as follow:
public void afterPhase(PhaseEvent phaseEvent) {
PhaseId phaseId = phaseEvent.getPhaseId();
FacesContext facesContext = phaseEvent.getFacesContext();
String url = ....;
try {
facesContext.getExternalContext().redirect(url);
} catch (IOException ioe) {
But I see "java.lang.IllegalStateException: Response already committed"
I do not know why?
Please help me

Hi,
You can try this code instead of facesContext.getExternalContext().redirect(url);
HttpServletResponse response = (HttpServletResponse)FacesContext.getCurrentInstance().getExternalContext().getResponse();
response.sendRedirect(url);
FacesContext.getCurrentInstance().responseComplete();Hope this helps
Joseba

Similar Messages

  • Exception on redirect page, I got that code from Balusc

    Hi,
    I followed balusc sir code for "PRG", here in that code exactly on the redirect instruction I am getting illegalstate exception. I just applied on a test project. It doesn't have complex code, only one page, backing bean and phaselistner class. I got the below trace on valuechange event
    WARNING: phase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@bf711e) threw exception: java.lang.IllegalStateException null
    org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:435)
    com.sun.faces.context.ExternalContextImpl.redirect(ExternalContextImpl.java:419)
    bean.LifeCycleListener.redirect(LifeCycleListener.java:124)
    bean.LifeCycleListener.beforePhase(LifeCycleListener.java:67)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
    com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    java.lang.Thread.run(Thread.java:619)

    U will need to have the fone flashed to open it back up to use ure unlock code again
    Nokia Lumia 520
     iphone 6 Plus.
    Be happy !!

  • Exception when open page in application server 10g release 3

    Hi,
    i am beginning on oracle application server and when finished deployment my Adf Project to oracle application server 10g release 3 , when open frist page in my project get 500 server error and when look in application log i found this exception
    javax.servlet.jsp.JspException: Cannot find FacesContext
         at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:427)
         at com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(ViewTag.java:125)
         at jsp.MainPage_jspx._jspService(_MainPage_jspx.java:54)
         at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.1.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:701)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:405)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    i didn't know what you need ?
    and how run this project at embed OC4J on jdeveloper 10g and not run at application server ?
    thanks.

    It would seem some Java applications have a hard time dealing with spaces in paths. Try moving your Application Server install files to a directory with no spaces e.g. "C:\as_windows_x86_101300_disk1". I had the same problem and simply moved the install directory to a path with no spaces and it worked. I had a similar problem with my application directory of JDeveloper not being able to deploy.
    Dave
    Message was edited by:
    oraclebat

  • Null pointer exception when running OAF page

    Hi
    I am getting null pointer exception when i execute the code below.
    OAApplicationModule am = oapagecontext.getRootApplicationModule();
    OAApplicationModuleImpl childam = (OAApplicationModuleImpl)am.findApplicationModule("QuestAnswerAM");
    oapagecontext.putDialogMessage(new OAException("PER", "XXOM_APPR_OVR_NULL_MSG"+am+childam, null, OAException.ERROR, null));
    OAViewObjectImpl VO= (OAViewObjectImpl)childam.findViewObject("QuestDetailsVO") ;
    OAViewRowImpl Dff1Row = (OAViewRowImpl)VO.getCurrentRow();
    quest = Dff1Row.getAttribute("LastUpdateDate");
    I later commented out the last 3 lines and used the code below to track the application module name.
    OAApplicationModule am = oapagecontext.getRootApplicationModule();
    OAApplicationModuleImpl childam = (OAApplicationModuleImpl)am.findApplicationModule("QuestAnswerAM");
    oapagecontext.putDialogMessage(new OAException("PER", "XXOM_APPR_OVR_NULL_MSG"+am+childam, null, OAException.ERROR, null));
    When i run the page i am getting this error:
    Message not found. Application: PER, Message Name: XXOM_APPR_OVR_NULL_MSGoracle.apps.per.selfservice.appraisals.server.AppraisalsAMImpl@2982bfnull.
    the above error indicates that the Root application module is AppraisalsAMImpl.
    But the view i need that is QuestDetailsVO exists in a child AM that is QuestAnswerAM. However in the above diag message as you can see it returns child AM to be null.
    When i click on About this page it clearly says that the QuestDetailsVO exists in QuestAnswerAM
    Please help
    Thanks
    Ashish

    Hi
    Thanks for the quick response.
    I am fine with the error message:
    Message not found. Application: PER, Message Name: XXOM_APPR_OVR_NULL_MSGoracle.apps.per.selfservice.appraisals.server.AppraisalsAMImpl@2982bfnull.
    I am getting message not found becos I have registered only XXOM_APPR_OVR_NULL_MSG and am displaying '+am+childam' also in the exception which is not associated with the registered message.
    See below.
    oapagecontext.putDialogMessage(new OAException("PER", "XXOM_APPR_OVR_NULL_MSG"+am+childam, null, OAException.ERROR, null));
    I am fine with that. My concern is in the error above for 'am' part i am getting the root appl module name. but for childam i am getting null
    Message not found. Application: PER, Message Name: XXOM_APPR_OVR_NULL_MSGoracle.apps.per.selfservice.appraisals.server.AppraisalsAMImpl@2982bf*null*.
    See the high lighted.
    I will look into the current row returning -1 issue and get back to you./
    Thanks
    Ashish

  • HELP!  Exception when Programmatically Adding a Portlet to a Page

    We have been able to programmatically add WSRP Producers and Portlets into the BEA's local registry with WebLogic Portal 8.1 SP3. When we try to programmatically add a portlet to a page from within a JSP portlet we are hitting an issue. We are getting an exception when we try to call the addPlaceable method on the page instance manager. Here's the code snippet I'm using to programmatically add a portlet to a page:
    IPageInstanceManager ipiManager = new PortalCustomizationManagerImpl();
    CustomizationContext customizationContext = new CustomizationContext(ProxyPortletManager.LocaleHelper.findLocale("en"));
    DesktopDefinitionId desktopDefinitionId = new DesktopDefinitionId("portal", new PortalPath("rdec"), new DesktopPath("enterprisePortal"));
    PageInstanceId pageInstanceId = new PageInstanceId(6001);
    PortletDefinitionId portletDefinitionId = new PortletDefinitionId(6002);
    PlaceholderDefinitionId placeholderDefinitionId = new PlaceholderDefinitionId(2001);
    PlaceableInstance placeableInstance = ipiManager.addPlaceable(customizationContext, desktopDefinitionId, pageInstanceId, portletDefinitionId, placeholderDefinitionId, 0);However, I get the following stack trace when the last line executes (ipiManager.addPlaceable):
    Error opening /WEB-INF/views/registry/registry.jsp.
    The source of this error is javax.ejb.EJBException: DataSource [java:comp/env/jdbc/portalFrameworkPool] not found due to
    [javax.naming.NameNotFoundException: While trying to look up comp/env/jdbc/portalFrameworkPool in /app/webapp/portal/38957322.; remaining name 'comp/env/jdbc/portalFrameworkPool']. at com.bea.netuix.application.manager.persistence.jdbc.PortalCustomizationM
    anagerImpl.getDataSource()Ljavax.sql.DataSource;(PortalCustomizationMana
    gerImpl.java:1420) at
    com.bea.netuix.application.manager.persistence.jdbc.PortalCustomizationM
    anagerImpl.getConnection()Ljava.sql.Connection;(PortalCustomizationManag
    erImpl.java:1396) at
    com.bea.netuix.application.manager.persistence.jdbc.PortalCustomizationM
    anagerImpl.getPageInstance(Lcom.bea.netuix.application.manager.Customiza
    tionContext;Lcom.bea.netuix.application.identifier.PageInstanceId;)Lcom.
    bea.netuix.application.instance.PageInstance;(PortalCustomizationManager
    Impl.java:401) at
    com.bea.netuix.application.manager.persistence.jdbc.PortalCustomizationM
    anagerImpl.getPageDefinitionId(Lcom.bea.netuix.application.manager.Custo
    mizationContext;Lcom.bea.netuix.application.identifier.PageInstanceId;)L
    com.bea.netuix.application.identifier.PageDefinitionId;(PortalCustomizat
    ionManagerImpl.java:1438) at
    com.bea.netuix.application.manager.persistence.jdbc.PortalCustomizationM
    anagerImpl.addPlaceable(Lcom.bea.netuix.application.manager.Customizatio
    nContext;Lcom.bea.netuix.application.identifier.DesktopDefinitionId;Lcom
    .bea.netuix.application.identifier.PageInstanceId;Lcom.bea.netuix.applic
    ation.identifier.PlaceableDefinitionId;Lcom.bea.netuix.application.ident
    ifier.PlaceholderDefinitionId;I)Lcom.bea.netuix.application.instance.Pla
    ceableInstance;(PortalCustomizationManagerImpl.java:473) at jsp_servlet._web_45_inf._views._registry.__registry._jspService(Ljavax.s
    ervlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)
    V(registry.jsp:107) at
    weblogic.servlet.jsp.JspBase.service(Ljavax.servlet.ServletRequest;Ljava
    x.servlet.ServletResponse;)V(JspBase.java:33) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()L
    java.lang.Object;(ServletStubImpl.java:996) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.S
    ervletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.
    FilterChainImpl;)V(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.S
    ervletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.
    FilterChainImpl;)V(ServletStubImpl.java:463) at weblogic.servlet.internal.TailFilter.doFilter(Ljavax.servlet.ServletRequ
    est;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(TailFil
    ter.java:28) at
    weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.Servle
    tRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27) at com.bea.p13n.servlets.PortalServletFilter.doFilter(Ljavax.servlet.Servle
    tRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(Po
    rtalServletFilter.java:351) at
    weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.Servle
    tRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27) at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(Ljavax.servlet.Ser
    vletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V
    (PageFlowJspFilter.java:101) at
    weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.Servle
    tRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27) at weblogic.servlet.internal.RequestDispatcherImpl.include(Ljavax.servlet.S
    ervletRequest;Ljavax.servlet.ServletResponse;Z)V(RequestDispatcherImpl.j
    ava:628) at
    weblogic.servlet.internal.RequestDispatcherImpl.include(Ljavax.servlet.S
    ervletRequest;Ljavax.servlet.ServletResponse;)V(RequestDispatcherImpl.ja
    va:412) at
    com.bea.netuix.servlets.controls.content.JspContent.beginRender(Ljava.io
    .Writer;)Z(JspContent.java:483) at
    com.bea.netuix.nf.ControlLifecycle$6.visit(Lcom.bea.netuix.nf.UIControl;
    Ljava.lang.Object;)Z(ControlLifecycle.java:441) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.
    nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(Control
    TreeWalker.java:433) at
    com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.
    nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(Control
    TreeWalker.java:443) at
    com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.
    nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(Control
    TreeWalker.java:443) at
    com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.
    nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(Control
    TreeWalker.java:443) at
    com.bea.netuix.nf.ControlTreeWalker.walk(Lcom.bea.netuix.nf.VisitorType;
    Lcom.bea.netuix.nf.UIControl;Lcom.bea.netuix.nf.concurrency.ControlTreeW
    alkerPool;)V(ControlTreeWalker.java:175) at com.bea.netuix.nf.ControlTreeWalker.walk(Lcom.bea.netuix.nf.VisitorType;
    Lcom.bea.netuix.nf.UIControl;)V(ControlTreeWalker.java:95) at com.bea.netuix.nf.Lifecycle.run(Lcom.bea.netuix.nf.UIControl;[Lcom.bea.n
    etuix.nf.VisitorType;Lcom.bea.netuix.nf.VisitorMap;)V(Lifecycle.java:388
    ) at com.bea.netuix.nf.UIControl.render()V(UIControl.java:584) at com.bea.netuix.servlets.controls.PresentationContext.render(Ljavax.servl
    et.http.HttpServletRequest;)V(PresentationContext.java:405) at com.bea.netuix.servlets.util.RenderToolkit.renderChild(Lcom.bea.netuix.s
    ervlets.controls.PresentationContext;Ljavax.servlet.http.HttpServletRequ
    est;)V(RenderToolkit.java:123) at
    com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag()I(RenderChild
    .java:58) at
    jsp_servlet._framework._skeletons._rdec.__flowlayout._jspService(Ljavax.
    servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;
    )V(flowlayout.jsp:33)Could anyone please help? Thank you.
    - T.C.

    sorry for all the replys (but i keep finding stuff)
    PortalCustomizationManger is an EJB you can't just
    instantiate a new instance
    IPageInstanceManager ipiManager = new
    PortalCustomizationManagerImpl();
    you need to look it up
    String JNDI_NAME =
    ApplicationHelper.getApplicationName() +
    ".BEA_netuix.PortalPresentationManager";
    portalCustomizationManagerHome =
    (PortalCustomizationManagerHome)initialContext.lookup(
    JNDI_NAME);
    portalCustomizationManager =
    portalCustomizationManagerHome.create();No need to apologize for all the replies, they are VERY MUCH appreciated. Thank you.
    I tried your suggestion (although I had to change the JNDI lookup to lookup the PortalCustomizationManager instead of the PortalPresentationManager because of a ClassCastException) and I get a NullPointerException. Here is the code I am using:
    InitialContext initialContext = new InitialContext();
    CustomizationContext customizationContext = new CustomizationContext(ProxyPortletManager.LocaleHelper.findLocale("en"), request);
    DesktopDefinitionId desktopDefinitionId = new DesktopDefinitionId("portal", new PortalPath("rdec"), new DesktopPath("enterprisePortal"));
    PageInstanceId pageInstanceId = new PageInstanceId(6001);
    PortletDefinitionId portletDefinitionId = new PortletDefinitionId(6002);
    PlaceholderDefinitionId placeholderDefinitionId = new PlaceholderDefinitionId(2001);
    PortalCustomizationManagerHome pageDefinitionManagerHome = (PortalCustomizationManagerHome) initialContext.lookup("RDECPortal.BEA_netuix.PortalCustomizationManager");
    PortalCustomizationManager pageDefinitionManager = pageDefinitionManagerHome.create();
    PlaceableInstance placeableInstance = pageDefinitionManager.addPlaceable(customizationContext, desktopDefinitionId, pageInstanceId, portletDefinitionId, placeholderDefinitionId, 0);...and here is the full stack trace I get when the code is executed:
    Error opening /WEB-INF/views/registry/registry.jsp.
    The source of this error is java.rmi.RemoteException: EJB Exception: ; nested exception is: java.lang.NullPointerException at weblogic.ejb20.internal.EJBRuntimeUtils.throwRemoteException(Ljava.lang.String;Ljava.lang.Throwable;)V(EJBRuntimeUtils.java:102) at weblogic.ejb20.internal.BaseEJBHome.handleSystemException(Lweblogic.ejb20.internal.InvocationWrapper;Ljava.lang.Throwable;)V(BaseEJBHome.java:307) at weblogic.ejb20.internal.BaseEJBObject.postInvoke(Lweblogic.ejb20.internal.InvocationWrapper;Ljava.lang.Throwable;)V(BaseEJBObject.java:263) at weblogic.ejb20.internal.StatelessEJBObject.postInvoke(Lweblogic.ejb20.internal.InvocationWrapper;Ljava.lang.Throwable;)V(StatelessEJBObject.java:140) at com.bea.netuix.application.manager.persistence.jdbc.PortalCustomizationManager_z7jdbo_EOImpl.addPlaceable(Lcom.bea.netuix.application.manager.CustomizationContext;Lcom.bea.netuix.application.identifier.DesktopDefinitionId;Lcom.bea.netuix.application.identifier.PageInstanceId;Lcom.bea.netuix.application.identifier.PlaceableDefinitionId;Lcom.bea.netuix.application.identifier.PlaceholderDefinitionId;I)Lcom.bea.netuix.application.instance.PlaceableInstance;(PortalCustomizationManager_z7jdbo_EOImpl.java:1202) at jsp_servlet._web_45_inf._views._registry.__registry._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(registry.jsp:119) at weblogic.servlet.jsp.JspBase.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(JspBase.java:33) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:996) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:419) at weblogic.servlet.internal.TailFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27) at com.bea.p13n.servlets.PortalServletFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(PortalServletFilter.java:351) at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27) at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(PageFlowJspFilter.java:101) at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27) at weblogic.servlet.internal.RequestDispatcherImpl.include(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Z)V(RequestDispatcherImpl.java:628) at weblogic.servlet.internal.RequestDispatcherImpl.include(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(RequestDispatcherImpl.java:412) at com.bea.netuix.servlets.controls.content.JspContent.beginRender(Ljava.io.Writer;)Z(JspContent.java:483) at com.bea.netuix.nf.ControlLifecycle$6.visit(Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)Z(ControlLifecycle.java:441) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(ControlTreeWalker.java:433) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(ControlTreeWalker.java:443) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(ControlTreeWalker.java:443) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(ControlTreeWalker.java:443) at com.bea.netuix.nf.ControlTreeWalker.walk(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Lcom.bea.netuix.nf.concurrency.ControlTreeWalkerPool;)V(ControlTreeWalker.java:175) at com.bea.netuix.nf.ControlTreeWalker.walk(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;)V(ControlTreeWalker.java:95) at com.bea.netuix.nf.Lifecycle.run(Lcom.bea.netuix.nf.UIControl;[Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.VisitorMap;)V(Lifecycle.java:388) at com.bea.netuix.nf.UIControl.render()V(UIControl.java:584) at com.bea.netuix.servlets.controls.PresentationContext.render(Ljavax.servlet.http.HttpServletRequest;)V(PresentationContext.java:405) at com.bea.netuix.servlets.util.RenderToolkit.renderChild(Lcom.bea.netuix.servlets.controls.PresentationContext;Ljavax.servlet.http.HttpServletRequest;)V(RenderToolkit.java:123) at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag()I(RenderChild.java:58) at jsp_servlet._framework._skeletons._rdec.__flowlayout._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(flowlayout.jsp:33) at weblogic.servlet.jsp.JspBase.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(JspBase.java:33) Caused by: java.lang.NullPointerException at com.bea.netuix.application.manager.persistence.jdbc.PageInstanceDelegate.addPlaceable(Ljava.sql.Connection;Lcom.bea.netuix.application.identifier.DesktopDefinitionId;Ljava.lang.String;Lcom.bea.netuix.application.identifier.PageInstanceId;Lcom.bea.netuix.application.instance.PlaceableInstance;Lcom.bea.netuix.application.identifier.PlaceholderDefinitionId;IZ)Lcom.bea.netuix.application.instance.PlaceableInstance;(PageInstanceDelegate.java:722) at com.bea.netuix.application.manager.persistence.jdbc.PageInstanceDelegate.addPlaceable(Ljava.sql.Connection;Lcom.bea.netuix.application.identifier.DesktopDefinitionId;Ljava.lang.String;Lcom.bea.netuix.application.identifier.PageInstanceId;Lcom.bea.netuix.application.identifier.PlaceableDefinitionId;Lcom.bea.netuix.application.identifier.PlaceholderDefinitionId;I)Lcom.bea.netuix.application.instance.PlaceableInstance;(PageInstanceDelegate.java:669) at com.bea.netuix.application.manager.persistence.jdbc.PortalCustomizationManagerImpl.addPlaceable(Lcom.bea.netuix.application.manager.CustomizationContext;Lcom.bea.netuix.application.identifier.DesktopDefinitionId;Lcom.bea.netuix.application.identifier.PageInstanceId;Lcom.bea.netuix.application.identifier.PlaceableDefinitionId;Lcom.bea.netuix.application.identifier.PlaceholderDefinitionId;I)Lcom.bea.netuix.application.instance.PlaceableInstance;(PortalCustomizationManagerImpl.java:503) at com.bea.netuix.application.manager.persistence.jdbc.PortalCustomizationManager_z7jdbo_EOImpl.addPlaceable(Lcom.bea.netuix.application.manager.CustomizationContext;Lcom.bea.netuix.application.identifier.DesktopDefinitionId;Lcom.bea.netuix.application.identifier.PageInstanceId;Lcom.bea.netuix.application.identifier.PlaceableDefinitionId;Lcom.bea.netuix.application.identifier.PlaceholderDefinitionId;I)Lcom.bea.netuix.application.instance.PlaceableInstance;(PortalCustomizationManager_z7jdbo_EOImpl.java:1192) at jsp_servlet._web_45_inf._views._registry.__registry._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(registry.jsp:119) at weblogic.servlet.jsp.JspBase.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(JspBase.java:33) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:996) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:419) at weblogic.servlet.internal.TailFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27) at com.bea.p13n.servlets.PortalServletFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(PortalServletFilter.java:351) at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27) at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(PageFlowJspFilter.java:101) at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27) at weblogic.servlet.internal.RequestDispatcherImpl.include(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Z)V(RequestDispatcherImpl.java:628) at weblogic.servlet.internal.RequestDispatcherImpl.include(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(RequestDispatcherImpl.java:412) at com.bea.netuix.servlets.controls.content.JspContent.beginRender(Ljava.io.Writer;)Z(JspContent.java:483) at com.bea.netuix.nf.ControlLifecycle$6.visit(Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)Z(ControlLifecycle.java:441) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(ControlTreeWalker.java:433) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(ControlTreeWalker.java:443) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(ControlTreeWalker.java:443) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(ControlTreeWalker.java:443) at com.bea.netuix.nf.ControlTreeWalker.walk(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Lcom.bea.netuix.nf.concurrency.ControlTreeWalkerPool;)V(ControlTreeWalker.java:175) at com.bea.netuix.nf.ControlTreeWalker.walk(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;)V(ControlTreeWalker.java:95) at com.bea.netuix.nf.Lifecycle.run(Lcom.bea.netuix.nf.UIControl;[Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.VisitorMap;)V(Lifecycle.java:388) at com.bea.netuix.nf.UIControl.render()V(UIControl.java:584) at com.bea.netuix.servlets.controls.PresentationContext.render(Ljavax.servlet.http.HttpServletRequest;)V(PresentationContext.java:405) at com.bea.netuix.servlets.util.RenderToolkit.renderChild(Lcom.bea.netuix.servlets.controls.PresentationContext;Ljavax.servlet.http.HttpServletRequest;)V(RenderToolkit.java:123) at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag()I(RenderChild.java:58) at jsp_servlet._framework._skeletons._rdec.__flowlayout._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(flowlayout.jsp:33) at weblogic.servlet.jsp.JspBase.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(JspBase.java:33) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:996)
    Any ideas why I'm getting a NPE???  Thanks.
    - T.C.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

  • Page/JNI: Exception when trying to connect in 1,page/ContentFetcher InterruptedIOExce

    We have upgraded to fro m 3.0.8 portal 3.0.9.8.2 9iAS 1.0.2.2 on database 8.1.7
    the system is very fast and run for sometime but after a while we see the following errors in Jserv.log file.
    this error causes the whole system to hang and we have to restart apache/jserv.
    Any light on this issue will be helpful and very much appreciated.
    thanks,
    Sunil Bontha
    25/07/2001 14:07:51:388 CEST] Viewer/oracle.discoiv.Disco4iv: init
    [25/07/2001 14:07:51:388 CEST] Viewer/oracle.discoiv.Disco4iv: Initializing Discoverer 4i Viewer (4.1.37.82)
    [25/07/2001 14:09:15:219 CEST] page/oracle.webdb.page.ParallelServlet: init
    [25/07/2001 14:09:15:249 CEST] page/JNI: Cache is enabled.
    [25/07/2001 14:09:15:299 CEST] page/Starting a pool of 25 handlers.
    [25/07/2001 14:09:43:820 CEST] page/JNI: Exception when trying to connect in 1.
    [25/07/2001 14:09:43:830 CEST] page/Timeout occurred, label=145 url=http://www.myserver.com/pls/pmsportal30/!PMSPORTAL30.wwpro_app_provider.execute_portlet [25/07/2001 14:09:43:830 CEST] page/ContentFetcher InterruptedIOException Caught, Fetcher Timedout name=content-fetcher23
    [25/07/2001 14:09:43:840 CEST] page/JNI: Exception when trying to connect in 1.
    [25/07/2001 14:09:43:840 CEST] page/Timeout occurred, label=293 url=http://www.myserver.com/pls/pmsportal30/!PMSPORTAL30.wwpro_app_provider.execute_portlet [25/07/2001 14:09:43:840 CEST] page/ContentFetcher InterruptedIOException Caught, Fetcher Timedout name=content-fetcher22
    [25/07/2001 14:09:53:864 CEST] page/JNI: Exception when trying to connect in 1.

    Hi Avi,
    My application is a standalone application trying to access MBeans present in oc4j.
    I tried
    using the code
    props.put(Context.INITIAL_CONTEXT_FACTORY ,"oracle.j2ee.rmi.RMIInitialContextFactory");
    obj = (ManagementHome) ctx.lookup("ejb/mgmt/MEJB");
    but i am getting the following error.
    javax.naming.NameNotFoundException: ejb/mgmt/MEJB not found
    at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java
    :45)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at TestMBean.doSomething(TestMBean.java:90)
    at TestMBean.main(TestMBean.java:237)
    java.lang.NullPointerException
    at TestMBean.doSomething(TestMBean.java:107)
    at TestMBean.main(TestMBean.java:237)
    Regards
    Siva

  • Exception when trying to post to a page

    In NetD we created and submitted a form with JavaScript.
    The form looked something like this
    <FORM ACTION=pgXYZ METHOD=POST>
    <INPUT TYPE=hidden NAME=SPIDERSESSION VALUE=12345>
    </FORM>
    So now in Jato, we're trying to do the exact same thing,
    except that instead of SPIDERSESSION, we use the three Jato
    variables. Now the form is like this:
    <FORM ACTION=pgXYZ METHOD=POST>
    <INPUT TYPE=hidden NAME=GXHC_GX_jst VALUE=12345>
    <INPUT TYPE=hidden NAME=GXHC_gx_session_id_ VALUE=12345>
    <INPUT TYPE=hidden NAME=pageAttributes VALUE=12345>
    </FORM>
    Notice we're not submitting to a handler, but just to the page itself.
    When we do this, we get an exception:
    [02/Oct/2001 16:29:59:4] error: Exception: SERVLET-execution_failed:
    Error in executing servlet portalServlet:
    javax.servlet.ServletException: The request was not be handled by the
    specified handler
    Exception Stack Trace:
    javax.servlet.ServletException: The request was not be handled by the
    specified handler^M
    at
    com.putnaminvestments.common.jato.ApplicationServletBase.dispatchReque
    st(ApplicationServletBase.java:668)^M
    at
    com.putnaminvestments.common.jato.ApplicationServletBase.processReques
    t(ApplicationServletBase.java:428)^M
    at
    com.putnaminvestments.common.jato.ApplicationServletBase.doPost(Applic
    ationServletBase.java:296)^M
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:772)^M
    at
    com.putnaminvestments.bp.bpServletBase.service(bpServletBase.java:139)
    ^M
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:865)^M
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)^M
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknow
    n Source)^M
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)^M
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)^M
    at com.kivasoft.thread.ThreadBasic.run(Native Method)^M
    at java.lang.Thread.run(Thread.java:479)^M
    So what are we missing??

    Thanks Kostas, good answer.
    Todd
    ----- Original Message -----
    From: "Kostas Morfis" <kmorfis@i...>
    Sent: Tuesday, October 02, 2001 4:31 PM
    Subject: RE: [iPlanet-JATO] Exception when trying to post to a page
    Hi Mark
    You are trying to submit to a view bean using java script right ?
    Notice we're not submitting to a handler, but just to the page itself.You are actually submitting the request to your JATO selvlet base, is that
    you intention ?
    The exception is being thrown because there is no request handler found.
    If you are trying invoke a handleBtnXXXmethod then your form action would
    look something like,
    <form method="post" action="../myServlet/pgMyPage?pgMypage.btnMyButton=">
    This adds to the request an appropriate handler as a parameter. Another
    option could be to add a hidden field
    with the same name as your button.
    Attempting to post the form without specifying a request handler will not
    work eg:
    <form method="post" action="../myServlet/pgMyPage">
    This throws a ServletException("The request was not be handled by the
    specified handler")
    because you are doing a post to ViewBean from a form which implies youwant
    to handle some kind web action.
    The way JATO enforces this is to check for the prescence of pageAttributes
    in the request (implemented using hidden fields)
    which you have in your form.
    Kostas
    -----Original Message-----
    From: Mark_Dubinsky@p... [mailto:<a href="/group/SunONE-JATO/post?protectID=174166091163159191130171186101229144026098131198043123114199021239115076086020224">Mark_Dubinsky@p...</a>]
    Sent: Tuesday, October 02, 2001 10:04 PM
    Subject: [iPlanet-JATO] Exception when trying to post to a page
    In NetD we created and submitted a form with JavaScript.
    The form looked something like this
    <FORM ACTION=pgXYZ METHOD=POST>
    <INPUT TYPE=hidden NAME=SPIDERSESSION VALUE=12345>
    </FORM>
    So now in Jato, we're trying to do the exact same thing,
    except that instead of SPIDERSESSION, we use the three Jato
    variables. Now the form is like this:
    <FORM ACTION=pgXYZ METHOD=POST>
    <INPUT TYPE=hidden NAME=GXHC_GX_jst VALUE=12345>
    <INPUT TYPE=hidden NAME=GXHC_gx_session_id_ VALUE=12345>
    <INPUT TYPE=hidden NAME=pageAttributes VALUE=12345>
    </FORM>
    Notice we're not submitting to a handler, but just to the page itself.
    When we do this, we get an exception:
    [02/Oct/2001 16:29:59:4] error: Exception: SERVLET-execution_failed:
    Error in executing servlet portalServlet:
    javax.servlet.ServletException: The request was not be handled by the
    specified handler
    Exception Stack Trace:
    javax.servlet.ServletException: The request was not be handled by the
    specified handler^M
    at
    com.putnaminvestments.common.jato.ApplicationServletBase.dispatchReque
    st(ApplicationServletBase.java:668)^M
    at
    com.putnaminvestments.common.jato.ApplicationServletBase.processReques
    t(ApplicationServletBase.java:428)^M
    at
    com.putnaminvestments.common.jato.ApplicationServletBase.doPost(Applic
    ationServletBase.java:296)^M
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:772)^M
    at
    com.putnaminvestments.bp.bpServletBase.service(bpServletBase.java:139)
    ^M
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:865)^M
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)^M
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknow
    n Source)^M
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)^M
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)^M
    at com.kivasoft.thread.ThreadBasic.run(Native Method)^M
    at java.lang.Thread.run(Thread.java:479)^M
    So what are we missing??
    [email protected]
    [Non-text portions of this message have been removed]
    [email protected]

  • IPhone6 is not sending or receiving texts from non-Apple users, except when in Group texts. I've tried the various fixes on the main support page to no avail. Any ideas?

    iPhone6 is not sending or receiving texts from non-Apple users, except when in Group texts. I've tried the various fixes on the main support page to no avail. Any ideas?

    Have you contacted your carrier to make sure there's no issues with your account?
    ~Lyssa

  • How to catch exception when have max connection pool

    hi,
    i have define in oracle user that i could have max 10 sessions at the same time.
    I have jdbc datasource & connection pool defined at glassfish server(JSF application).
    now, if in application is too many queries to the database then i have error: nullpointer exception - becouse when i try to do:
    con = Database.createConnection(); - it generates nullpointer exception becouse there isn't free connection pool
    i try to catch exception like this:
    public List getrep_dws_wnioski_wstrzymane_graph() {     int i = 0;     try {     con = Database.createConnection();     ps =    (Statement) con.createStatement();     rs = ps.executeQuery("select data, klasa, ile_dni_wstrzymana, ile_wnioskow from stg1230.dwsww_wstrzymane_dws8 order by data, klasa, ile_dni_wstrzymana, ile_wnioskow");     while(rs.next()){       rep_dws_wnioski_wstrzymane_graph.add(i,new get_rep_dws_wnioski_wstrzymane_graph(rs.getString(1),rs.getString(2),rs.getString(3),rs.getString(4)));       i++;     }     } catch (NamingException e) {         e.printStackTrace();     } catch (SQLException e) {         e.printStackTrace();     } catch (NullPointerException e) {         e.printStackTrace();         throw new NoConnectionException();  // catch null 1     } finally {     try {         con.close();     } catch (SQLException e) {         e.printStackTrace();     } catch (NullPointerException e) {         e.printStackTrace();         throw new NoConnectionException();  // catch null 2     }     } return rep_dws_wnioski_wstrzymane_graph; }
    but at line:
    con.close();
    i have nullpointerexception
    and
    at line
    throw new NoConnectionException(); // catch null 2
    i have: caused by exception.NoConnectionException
    what's wrong with my exception class? how to resolve it?
    public class NoConnectionException extends RuntimeException{     public NoConnectionException(String msg, Throwable cause){       super(msg, cause);     }     public NoConnectionException(){       super();     } }
    at web.xml i have defined:
    <error-page>         <exception-type>exception.NoConnectionException</exception-type>         <location>/NoConnectionExceptionPage.jsp</location>     </error-page>

    thanks,
    i did it and i have error:
    java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: ORA-02391: exceeded simultaneous SESSIONS_PER_USER limit
    at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:115)
    at logic.Database.createConnection(Database.java:37): conn = ds.getConnection();
    public class Database {
         public static Connection createConnection() throws NamingException,
                    SQLException {
                Connection conn = null;
                try{
                    Context ctx = new InitialContext();
              if (ctx == null) {
                   throw new NamingException("No initial context");
              DataSource ds = (DataSource) ctx.lookup("jdbc/OracleReports");
              if (ds == null) {
                   throw new NamingException("No data source");
              conn = ds.getConnection();  // here's exception when max connections to database
              if (conn == null) {
                   throw new SQLException("No database connection");
                } catch (NamingException e) {
                    e.printStackTrace();
                    throw new NoConnectionException(); 
             } catch (SQLException e) {
                 e.printStackTrace();
                    throw new NoConnectionException(); 
                catch (NullPointerException e) {
                 e.printStackTrace();
                    throw new NoConnectionException();  // obsluga bledy na wypadek jesli braknie wolnych polaczen do bazy
            return conn;
    }and at my ealier code i have error:
    at logic.GetDataOracle.getrep_dws_wnioski_wstrzymane_graph(GetDataOracle.java:192)
    at line: con = Database.createConnection();
    in code:
    public List getrep_dws_wnioski_wstrzymane_graph() {
        int i = 0;
        try {
        con = Database.createConnection();
        ps =    (Statement) con.createStatement();
        rs = ps.executeQuery("select data, klasa, ile_dni_wstrzymana, ile_wnioskow from stg1230.dwsww_wstrzymane_dws8 order by data, klasa, ile_dni_wstrzymana, ile_wnioskow");
        while(rs.next()){
          rep_dws_wnioski_wstrzymane_graph.add(i,new get_rep_dws_wnioski_wstrzymane_graph(rs.getString(1),rs.getString(2),rs.getString(3),rs.getString(4)));
          i++;
        } catch (NamingException e) {
            e.printStackTrace();
        } catch (SQLException e) {
            e.printStackTrace();
        } catch (NullPointerException e) {
            e.printStackTrace();
            throw new NoConnectionException();
        } finally {
        try {
            if(con != null)
            con.close();
        } catch (SQLException e) {
            e.printStackTrace();
        } catch (NullPointerException e) {
            e.printStackTrace();
            throw new NoConnectionException(); 
    return rep_dws_wnioski_wstrzymane_graph;
    }so what's wrong?
    i have limit max sessions 10 at oracle so i set at my connection pool 5 connections as max. But when i get max 5 sesssins and try to execute next query then i can't catch exception..

  • Problems joining Wi-Fi networks that require viewing a redirect page in iOS 8.1.1? Check your "Auto-Login" setting.

    Are you having problems joining previously used Wi-Fi networks that require you to view a login or redirect page (say to accept Terms of Use) first?  The problem could be your Auto-Login Wi-Fi network setting.
    I found numerous cases where I could not access in-store Wi-Fi networks (Nordstrom was one), hotel networks or in fact networks where you had to first view a Terms and Conditions page or where you had to login via a web form.
    These were all networks I had used before.
    This appears to be due to the "Auto-Login" setting assuming that once you (re)join a previously known network you can just go ahead and use it without further action. When the iOS device receives an error trying to use the network, it silently drops the Wi-Fi association.
    If this is happening to you, follow these steps:
    1) Go to Settings -> Wi-Fi
    2) Select the network you want to join
    3) When a check-mark appears next to the SSID, press the "i" button on the right hand side
    4) Set Auto-Join however you want, but shut off the Auto-Login switch
    5) Now attempt to use the network and you should be presented with the usual redirect page with terms you must accept or where you must login to use the Wi-Fi network in question
    This cleared up the issue for me everywhere I had previously been having issues.

    Just let me get one thing straight...you don't change don't do this for the PC you have your router plugged in to?
    "For Vista:
    1. Open Control Panel, Network and Internet, Network and Sharing Center, Manage Network Connections
    2. If Wireless, Right click on your Wireless Network Connection, otherwise, Right click on Local Area Connection and click Properties
    3. Highlight Internet Protocol Version 4(TCP/IPv4)
    4. Click Properties
    5. Tick Use the Following IP Address and enter the IP you want to use for that PC. I would start at 192.168.0.100(D-Link) and work your way up on each additional device. The second device would be 192.168.0.101, the 3rd, 192.168.0.102 and so on. Like I said, different brands of routers use different IP's, so it could be 192.168.1.100 and so on, so you will need to know the IP address of your router first.
    6. Subnet Mask is 255.255.255.0 on all pc's and devices
    7. Default Gateway is 192.168.0.1(D-Link) or whatever your router's IP is on all pc's and devices
    8. Tick Use the Following DNS Server Address and enter 192.168.0.1(D-Link) or whatever your router's IP is and click OK.
    9. You will need to do this on all Vista Pc's"

  • How to show specific data for user on redirected page once they logged in

    I and fairly new, but have a general understanding of Dreamweaver. Using CS3 or CS4, how do you get the redirected page after the user logges in to show only the data for that user? I have creater the login page and it works fine but i dont know what needs to be on the redirected page for it to show only the data for the user that just logged in.
    I am not very good with the coding part so if it requires it any help with that would also be helpful.
    thank all.

    I should be able to get the understanding if explained.
    As for scripting i believe its PHP. at lease thats the page i created the login page with.
    As for user-specific information: basiclly there account information.
    As for database i have dreamweaver linked to a MySQL database. it pulls from 2) tables
    1st table has the following: ID - User Names - Password  - account number
    2nd table has the following: ID - account number - names - address - ect
    So basiclly i want when a user loges in for it to redirect them to a page which then only shows the data for that users. if i can link the data the pulls up by the account number that would be ideal
    Thank you Murry

  • Exception when trying to acess a jsf application

    Im using eclipse 3.3 , tomcat 5.5.2x
    index.jsp
    ========
    <html>
    <body>
    <jsp:forward page="faces/ourJsf/enterAge.jsp" />
    </body>
    </html>
    ============
    enterAge.jsp
    =========
    <%@ page contentType="text/html; charset=Cp1252" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <html>
         <head>
              <meta http-equiv="Content-Type" content="text/html; charset=Cp1252"/>
              <title>Dog's Life</title>
         </head>
         <body>
              <f:view>
                   <h:form>
                   <h:outputText value="Enter your age please"/>
    <h:inputText value="#{dog.age}" />
    <h:commandButton value="Calculate Dog Years" action="#{dog.calcYears}" />
                   </h:form>
              </f:view>
         </body>
    </html>
    =========
    faces-config.xml
    ==========
    <?xml version="1.0"?>
    <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config>
         <managed-bean>
              <managed-bean-name>dog</managed-bean-name>
              <managed-bean-class>beans.DogBean</managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>
         <navigation-rule>
              <from-view-id>/ourJsf/enterAge.jsp</from-view-id>
         </navigation-rule>
         <navigation-rule>
              <from-view-id>/ourJsf/enterAge.jsp</from-view-id>
              <navigation-case>
                   <from-outcome>success</from-outcome>
                   <to-view-id>/ourJsf/result.jsp</to-view-id>
              </navigation-case>
              <navigation-case>
                   <from-outcome>failure</from-outcome>
                   <to-view-id>/ourJsf/error.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
    </faces-config>
    ================
    a portion of my web.xml
    =============
    <!-- Extensions Filter -->
    <filter>
    <filter-name>extensionsFilter</filter-name>
    <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
    <init-param>
    <param-name>uploadMaxFileSize</param-name>
    <param-value>100m</param-value>
    <description>Set the size limit for uploaded files.
    Format: 10 - 10 bytes
    10k - 10 KB
    10m - 10 MB
    1g - 1 GB
    </description>
    </init-param>
    <init-param>
    <param-name>uploadThresholdSize</param-name>
    <param-value>100k</param-value>
    <description>Set the threshold size - files
    below this limit are stored in memory, files above
    this limit are stored on disk.
    Format: 10 - 10 bytes
    10k - 10 KB
    10m - 10 MB
    1g - 1 GB
    </description>
    </init-param>
    <!-- <init-param>
    <param-name>uploadRepositoryPath</param-name>
    <param-value>/temp</param-value>
    <description>Set the path where the intermediary files will be stored.
    </description>
    </init-param>-->
    </filter>
    <filter-mapping>
    <filter-name>extensionsFilter</filter-name>
    <url-pattern>*.jsf</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>extensionsFilter</filter-name>
    <url-pattern>/faces/*</url-pattern>
    </filter-mapping>
    <!-- Faces Servlet -->
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <!-- Faces Servlet Mapping -->
    <!-- virtual path mapping -->
    <!-- virtual path mapping (uncommented by LG )-->
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <!-- extension mapping -->
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    <!-- Welcome files -->
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    </web-app>
    =============
    i'm getting an exception when i call my application :
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:476)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:371)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    javax.servlet.ServletException
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:156)
         org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:691)
         org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:661)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:46)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    java.lang.NullPointerException
         org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreTreeStructure(JspStateManagerImpl.java:240)
         org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:283)
         org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:255)
         org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:141)
         org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
         org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:691)
         org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:661)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:46)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.
    Apache Tomcat/5.5.23
    Thank yoiu guys for helping me : this my very first jsf application

    Hello,
    Like you said it was the problem with url.
    The webservice I used is actually running on the local machine (where the NetWeaver developer studio is installed); so in the url I had specified localhost. But I deployed the application on another server(SAP J2EE Engine). That is why it didn't work. On changing the url as required, the application is working fine.
    Thanks !
    Regards,
    Loveline.

  • Cant sign into twitter except when using a new privacy window

    I am having a problem signing into my twitter except when I use the "new privacy window" tab. Then I can sign in without any issues

    This issue can be caused by corrupted cookies or cookies that are blocked.
    *check the permissions on the about:permissions page and in "Tools > Page Info > Permissions"
    *https://support.mozilla.org/kb/fix-login-issues-on-websites-require-passwords
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
    If clearing cookies didn't help then it is possible that the cookies.sqlite file that stores the cookies got corrupted.
    *Rename (or delete) <b>cookies.sqlite</b> (cookies.sqlite.old) and delete other present cookies files like <b>cookies.sqlite-journal</b> in the Firefox profile folder in case the file cookies.sqlite got corrupted.
    You can use this button to go to the currently used Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
    *http://kb.mozillazine.org/Profile_folder_-_Firefox

  • Modifying the redirect page of an input behavior

    I created a user input behavior for a user registration page.
    I also added a check new username behavior. It all works well. The
    problem isn't really a big problem because it all still works. But,
    it would be nice if I could modify the code that Dreamweaver
    generates and NOT get the red exclamation error next to the
    behavior in the behaviors panel. That way I could still click on
    the behavior and be able to edit it with the dialog box instead of
    hand coding it.
    Here is the deal. In the input behavior, I specified the
    redirect page. The code written by Dreamweaver is:
    MM_editRedirectUrl = "login_confirmation_send.asp"
    Problem is, I want to pass a form value in the query string
    to that redirected page. So, I modified that code to say:
    MM_editRedirectUrl = "login_confirmation_send.asp?email="
    & Request.Form("email")
    When I do that, I get a big red exclaimation next to the
    check new user behavior which says the input behavior has been
    deleted. Eventhough, it still works fine.
    Is there a way to modify the code without getting the
    error?

    MM_editRedirectUrl = "login_confirmation_send.asp?email="
    MM_editRedirectUrl = MM_editRedirectUrl &
    Request.Form("email")
    That might do it. Does ASP have another concatenator besides
    ampersand(&) like the plus sign(+) that you could use? Also,
    I've totally forgotten if you need semicolons(;) at the end of
    lines of ASP code.

  • "No bean found under attribute key" exception when a JSP is not accessed

    HI,
    We are using weblogic 7.1 SP6, Oblix and TRC struts in our application. During normal access to various pages system works fine. When the application is not accessed for 30 minutes system displays session expired exception. But some time when a page is not accessed for some time, say 15 - 20 minutes and user clicks any link system displays a exception dump in the screen. The exception displays for pages with track changes. The exception starts with following line
    [ServletException in:/jsp/include/Header.jsp] No bean found under attribute key HomepageFormBean' javax.servlet.jsp.JspException: No bean bound under attribute key HomePageFormBean at org.apache.struts.taglib.logic.CompareTagBase.condition(CompareTagBase.java:221) at org.apache.struts.taglib.logic.EqualTag.condition(EqualTag.java:90)
    After closing the window and tried to access the same page then the system works fine. The above exception is intermittent.
    Any help is highly appreciated.
    Thanks,
    K.Pushparaj

    Hi dear use this code i modified
    <logic:iterate id="lstDelNotificationData" name="institutionHomeForm" property="delNotification_data" indexId="i" >
    <table cellpadding="0" cellspacing="0" width="320" border="0">
    <tr>
    <td valign="top"><img src="/images/bullet2.gif" alt=" "></td>
    <td>
    "sm"> Your FYE <bean:write name="lstDelNotificationData" property="ins_fye"/> Annual ......is
    Now u will not get bean problem

Maybe you are looking for

  • Connection Pool Failure

    Hello. I'm using wls 5.1 and Oracle 8i and an unable to make a connection pool. I keep getting the following with the message below. Where and how do I change my path? weblogic.common.ResourceException: weblogic.common.ResourceException: Could not cr

  • Supposed to be simple: XQuery issue mapping array of objects (duplicate)

    I've been having an issue having a web service return a repeating set of elements. The xsd seems correctly formatted with the right structure and maxOccurs set to ounbounded etc. This is the actual service: public RecArea[] getAllRecAreas() throws Ex

  • JRockit 1.4.2_05 crash

    I'm getting the following dump from Jrockit. The machine X86 32Bits 3,0GB ram (JRockit gets 2048m allocated) if that to much or is it a bug in jrockit that causes the following fault: ===== BEGIN DUMP =================================================

  • How can we open any file using JAVA...

    Hi all i trying to make code in that code i choose a file using a filechooser then put that file name in FILE object like (File file = fileChooser.getSelectedFile();) but the thing is how can i open that file for example if that file is HTML file the

  • Not getting sound on you tube using Windows 7

    Tried to watch a video on You Tube and couldn't get sound.  Am not good technically with the behind the scenes stuff on computers, better at everyday stuff.