StateManager instantiation exception (EJPEI0046E) - Websphere

This is a discussion on StateManager instantiation exception (EJPEI0046E) - Websphere ; Hi All, I'm using Advanced URL Generation Helper classes, and i'm getting this exception. This exception is not thrown allways, i'm pretty sure that is thrown on concurrent access: when one of my portlets make use of this classes: no ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: StateManager instantiation exception (EJPEI0046E)

  1. StateManager instantiation exception (EJPEI0046E)

    Hi All,

    I'm using Advanced URL Generation Helper classes, and i'm getting this exception.
    This exception is not thrown allways, i'm pretty sure that is thrown on concurrent access: when one of my portlets make use of this classes: no problem. But when there are two portlets on the same page using it... the exception is thrown.

    Any help? any ideas?

    thanks,

    David Valls.

    this is the stacktrace:

    Exception thrown : com.ibm.wps.state.utils.exceptions.ObjectInstantia tionException: EJPEI0046E: S'ha produït una excepció a la bateria d'objectes com.ibm.wps.state.services.StateManagerServiceObje ctPool@4b2a4b2a en instanciar l'objecte.
    at com.ibm.wps.util.pool.SimpleObjectPool.get(SimpleO bjectPool.java:128)
    at com.ibm.wps.util.pool.ObjectPoolWithHysteresis.get (ObjectPoolWithHysteresis.java:132)
    at com.ibm.wps.state.utils.synchronization.WeakThread LocalCacheImpl$WeakThreadLocal.newObject(WeakThrea dLocalCacheImpl.java:186)
    at com.ibm.wps.state.utils.synchronization.WeakThread LocalCacheImpl$WeakThreadLocal.get(WeakThreadLocal CacheImpl.java:159)
    at com.ibm.wps.state.utils.synchronization.WeakThread LocalCacheImpl$WeakThreadLocal.get(WeakThreadLocal CacheImpl.java:148)
    at com.ibm.wps.state.utils.synchronization.WeakThread LocalCacheImpl.get(WeakThreadLocalCacheImpl.java:3 87)
    at com.ibm.wps.state.services.StateManagerServiceImpl .getStateManager(StateManagerServiceImpl.java:220)
    at com.ibm.wps.services.state.WPStateManagerService.g etStateManager(WPStateManagerService.java:77)
    at com.ibm.wps.state.services.JndiStateManagerService $HomeProxy.getStateManager(JndiStateManagerService .java:102)
    at com.ibm.wps.l2.urlspihelper.stateless.OffLineURLHe lper.getStateManager(OffLineURLHelper.java:66)
    at com.ibm.wps.l2.urlspihelper.stateless.OffLineURLHe lper.generateUrl(OffLineURLHelper.java:173)
    at com.mutuauniversal.opencms.portlets.LinkGenerator. generateLink(LinkGenerator.java:64)
    at com.mutuauniversal.opencms.portlets.LinkGenerator. generateNonPublicLink(LinkGenerator.java:30)
    at com.ibm._jsp._home_5F_centro._jspService(_home_5F_ centro.java:162)
    at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJsp Base.java:87)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:1068)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java:543)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.h andleRequest(ServletWrapper.java:478)
    at com.ibm.wsspi.webcontainer.servlet.GenericServletW rapper.handleRequest(GenericServletWrapper.java:12 2)
    at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensio nServletWrapper.handleRequest(AbstractJSPExtension ServletWrapper.java:225)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.include(WebAppRequestDispatcher.java:639)
    at org.opencms.flex.CmsFlexRequestDispatcher.includeE xternal(CmsFlexRequestDispatcher.java:194)
    at org.opencms.flex.CmsFlexRequestDispatcher.include( CmsFlexRequestDispatcher.java:169)
    at org.opencms.loader.CmsJspLoader.service(CmsJspLoad er.java:1193)
    at org.opencms.flex.CmsFlexRequestDispatcher.includeI nternalWithCache(CmsFlexRequestDispatcher.java:423 )
    at org.opencms.flex.CmsFlexRequestDispatcher.include( CmsFlexRequestDispatcher.java:173)
    at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJsp Loader.java:1227)
    at org.opencms.loader.CmsJspLoader.load(CmsJspLoader. java:1171)
    at org.opencms.loader.CmsResourceManager.loadResource (CmsResourceManager.java:964)
    at org.opencms.main.OpenCmsCore.showResource(OpenCmsC ore.java:1498)
    at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServl et.java:152)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:1068)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java:543)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.h andleRequest(ServletWrapper.java:478)
    at com.ibm.ws.webcontainer.webapp.WebApp.handleReques t(WebApp.java:3365)
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequ est(WebGroup.java:267)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java:814)
    at com.ibm.ws.wswebcontainer.WebContainer.handleReque st(WebContainer.java:1455)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java:115)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java:454)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(HttpInboundLink.java:383)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.ready(HttpInboundLink.java:263)
    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialRe adCallback.sendToDiscriminators(NewConnectionIniti alReadCallback.java:214)
    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialRe adCallback.complete(NewConnectionInitialReadCallba ck.java:113)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListe ner.futureCompleted(AioReadCompletionListener.java :165)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallbac k(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletion Actions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture .java:136)
    at com.ibm.io.async.ResultHandler.complete(ResultHand ler.java:195)
    at com.ibm.io.async.ResultHandler.runEventProcessingL oop(ResultHandler.java:743)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler .java:873)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1473)
    Caused by: com.ibm.wps.state.utils.exceptions.InstantiationEx ception: EJPEI0121E: S'ha produït un error en instanciar un objecte de classe interface com.ibm.portal.state.StateManager.
    at com.ibm.wps.state.services.StateManagerServiceImpl $StateManagerInstantiator.newObject(StateManagerSe rviceImpl.java:110)
    at com.ibm.wps.state.services.StateManagerServiceImpl $StateManagerInstantiator.newObject(StateManagerSe rviceImpl.java:66)
    at com.ibm.wps.util.pool.SimpleObjectPool.internalCre ate(SimpleObjectPool.java:192)
    at com.ibm.wps.util.pool.ObjectPoolWithHysteresis.int ernalCreate(ObjectPoolWithHysteresis.java:246)
    at com.ibm.wps.util.pool.SimpleObjectPool.get(SimpleO bjectPool.java:125)
    ... 54 more
    Caused by: com.ibm.portal.state.exceptions.InvalidPropertyExc eption:EJPEI0068E: El valor de propietat per a la clau UrlNormalization_MIN.xsl especificat al joc de propietats















































































































































    no és v*lid.
    at com.ibm.wps.state.accessors.url.StateCloneProvider Impl.init(StateCloneProviderImpl.java:87)
    at com.ibm.wps.state.StateManagerImpl.init(StateManag erImpl.java:1039)
    at com.ibm.wps.state.StateManagerImpl.init(StateManag erImpl.java:1073)
    at com.ibm.wps.state.services.StateManagerServiceImpl .newStateManager(StateManagerServiceImpl.java:340)
    at com.ibm.wps.state.services.StateManagerServiceImpl $StateManagerInstantiator.newObject(StateManagerSe rviceImpl.java:97)
    ... 58 more

  2. Re: StateManager instantiation exception (EJPEI0046E)

    Hi,

    Did you determine the cause of this stacktrace?
    I'm have the same one after restarting the WP and trying to acccess the portal.

  3. Re: StateManager instantiation exception (EJPEI0046E)

    Sorry, it's not completely the same. The error I get is on the preprocessors property.

  4. Re: StateManager instantiation exception (EJPEI0046E)

    Hi Mario,

    i haven't found the cause if the error yet, but at production environment we don't have the error anymore.

    i'm not sure about how we have solved it, and i don't have too much time to test it (i hope at the end of the project... if it doesn't prevent me to go fishing on holidays :-)

    we have two environments and this error doesn't exist on our production one; also, at development it's not ocurring always. Initially i thank about using it more than one times on a page, but finally this is not the problem. The only difference between them is operating system language. Applying fixpack one also can be helpfull (at customer with fixpack 1 i've never reproduced this problem).

    David.

  5. Re: StateManager instantiation exception (EJPEI0046E)

    Hello,
    I just rolled back my latest changes, and obviously it was caused by a shared library (for WPS) that I had added on one of my portal applications after deployment.
    I haven't figured out why it is exactly causing this behavious, but obviously it was not a good idea.

    Thanks for your reply though!
    And enjoy the fishing!

    Mario

+ Reply to Thread