Topic
  • 4 replies
  • Latest Post - ‏2011-03-23T15:46:30Z by denisF
denisF
denisF
12 Posts

Pinned topic NPE while deploying an application

‏2011-03-22T02:39:26Z |
I'm trying to deploy the attached ear file (based on Seam 3 CR3) and I receive the following exception
Also, even if the WAR contains a persistence.xml file, it seems that WAS does not "initialise" it..
I received the NPE while dploying with the console but also if i deploy directly from RSA v8.0.2
I'm using the latest version of WAS v8 beta (march refresh)


[3/21/11 22:33:05:264 EDT] 00000062 SystemErr     R java.lang.NullPointerException [3/21/11 22:33:05:264 EDT] 00000062 SystemErr     R     at org.apache.commons.beanutils.PropertyUtils.removeBidiCharsString(PropertyUtils.java:1819) [3/21/11 22:33:05:264 EDT] 00000062 SystemErr     R        at org.apache.commons.beanutils.PropertyUtils.removeBidiCharsArray(PropertyUtils.java:1835) [3/21/11 22:33:05:264 EDT] 00000062 SystemErr     R         at org.apache.commons.beanutils.PropertyUtils.removeBidiChars(PropertyUtils.java:1801) [3/21/11 22:33:05:264 EDT] 00000062 SystemErr     R      at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:809) [3/21/11 22:33:05:264 EDT] 00000062 SystemErr     R      at com.ibm.ws.console.appmanagement.AppManagementHelper.populateFormBean(AppManagementHelper.java:701) [3/21/11 22:33:05:265 EDT] 00000062 SystemErr     R      at com.ibm.ws.console.appmanagement.action.GatherTaskData.execute(GatherTaskData.java:224) [3/21/11 22:33:05:265 EDT] 00000062 SystemErr     R  at com.ibm.ws.console.appmanagement.action.DefaultBindingsAction.execute(DefaultBindingsAction.java:293) [3/21/11 22:33:05:265 EDT] 00000062 SystemErr     R    at org.apache.struts.action.RequestProcessor.processActionPerform(Unknown Source) [3/21/11 22:33:05:265 EDT] 00000062 SystemErr     R   at org.apache.struts.action.RequestProcessor.process(Unknown Source) [3/21/11 22:33:05:265 EDT] 00000062 SystemErr     R        at org.apache.struts.action.ActionServlet.process(Unknown Source) [3/21/11 22:33:05:265 EDT] 00000062 SystemErr     R   at org.apache.struts.action.ActionServlet.doPost(Unknown Source) [3/21/11 22:33:05:265 EDT] 00000062 SystemErr     R    at javax.servlet.http.HttpServlet.service(HttpServlet.java:595) [3/21/11 22:33:05:265 EDT] 00000062 SystemErr     R     at javax.servlet.http.HttpServlet.service(HttpServlet.java:668) [3/21/11 22:33:05:265 EDT] 00000062 SystemErr     R     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1147) [3/21/11 22:33:05:265 EDT] 00000062 SystemErr     R         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:722) [3/21/11 22:33:05:265 EDT] 00000062 SystemErr     R    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:449) [3/21/11 22:33:05:265 EDT] 00000062 SystemErr     R    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178) [3/21/11 22:33:05:266 EDT] 00000062 SystemErr     R    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:125) [3/21/11 22:33:05:266 EDT] 00000062 SystemErr     R        at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:92) [3/21/11 22:33:05:266 EDT] 00000062 SystemErr     R     at com.ibm.ws.console.core.servlet.WSCUrlFilter.setUpCommandAssistance(WSCUrlFilter.java:932) [3/21/11 22:33:05:266 EDT] 00000062 SystemErr     R       at com.ibm.ws.console.core.servlet.WSCUrlFilter.continueStoringTaskState(WSCUrlFilter.java:499) [3/21/11 22:33:05:266 EDT] 00000062 SystemErr     R     at com.ibm.ws.console.core.servlet.WSCUrlFilter.doFilter(WSCUrlFilter.java:320) [3/21/11 22:33:05:266 EDT] 00000062 SystemErr     R     at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192) [3/21/11 22:33:05:266 EDT] 00000062 SystemErr     R    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89) [3/21/11 22:33:05:266 EDT] 00000062 SystemErr     R     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:919) [3/21/11 22:33:05:266 EDT] 00000062 SystemErr     R        at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1016) [3/21/11 22:33:05:266 EDT] 00000062 SystemErr     R  at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3604) [3/21/11 22:33:05:266 EDT] 00000062 SystemErr     R    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304) [3/21/11 22:33:05:266 EDT] 00000062 SystemErr     R         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:950) [3/21/11 22:33:05:267 EDT] 00000062 SystemErr     R        at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1625) [3/21/11 22:33:05:267 EDT] 00000062 SystemErr     R   at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:197) [3/21/11 22:33:05:267 EDT] 00000062 SystemErr     R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:445) [3/21/11 22:33:05:267 EDT] 00000062 SystemErr     R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:504) [3/21/11 22:33:05:267 EDT] 00000062 SystemErr     R  at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:301) [3/21/11 22:33:05:267 EDT] 00000062 SystemErr     R    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83) [3/21/11 22:33:05:267 EDT] 00000062 SystemErr     R   at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1784) [3/21/11 22:33:05:267 EDT] 00000062 SystemErr     R     at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) [3/21/11 22:33:05:267 EDT] 00000062 SystemErr     R        at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) [3/21/11 22:33:05:267 EDT] 00000062 SystemErr     R        at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) [3/21/11 22:33:05:267 EDT] 00000062 SystemErr     R   at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138) [3/21/11 22:33:05:267 EDT] 00000062 SystemErr     R     at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204) [3/21/11 22:33:05:267 EDT] 00000062 SystemErr     R  at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775) [3/21/11 22:33:05:268 EDT] 00000062 SystemErr     R    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905) [3/21/11 22:33:05:268 EDT] 00000062 SystemErr     R     at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1620) [3/21/11 22:33:05:268 EDT] 00000062 SystemErr     R java.lang.NullPointerException [3/21/11 22:33:05:268 EDT] 00000062 SystemErr     R   at org.apache.commons.beanutils.PropertyUtils.removeBidiCharsString(PropertyUtils.java:1819) [3/21/11 22:33:05:268 EDT] 00000062 SystemErr     R        at org.apache.commons.beanutils.PropertyUtils.removeBidiCharsArray(PropertyUtils.java:1835) [3/21/11 22:33:05:268 EDT] 00000062 SystemErr     R         at org.apache.commons.beanutils.PropertyUtils.removeBidiChars(PropertyUtils.java:1801) [3/21/11 22:33:05:268 EDT] 00000062 SystemErr     R      at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:809) [3/21/11 22:33:05:268 EDT] 00000062 SystemErr     R      at com.ibm.ws.console.appmanagement.AppManagementHelper.populateFormBean(AppManagementHelper.java:701) [3/21/11 22:33:05:269 EDT] 00000062 SystemErr     R      at com.ibm.ws.console.appmanagement.action.GatherTaskData.execute(GatherTaskData.java:224) [3/21/11 22:33:05:269 EDT] 00000062 SystemErr     R  at com.ibm.ws.console.appmanagement.action.DefaultBindingsAction.execute(DefaultBindingsAction.java:293) [3/21/11 22:33:05:269 EDT] 00000062 SystemErr     R    at org.apache.struts.action.RequestProcessor.processActionPerform(Unknown Source) [3/21/11 22:33:05:269 EDT] 00000062 SystemErr     R   at org.apache.struts.action.RequestProcessor.process(Unknown Source) [3/21/11 22:33:05:269 EDT] 00000062 SystemErr     R        at org.apache.struts.action.ActionServlet.process(Unknown Source) [3/21/11 22:33:05:269 EDT] 00000062 SystemErr     R   at org.apache.struts.action.ActionServlet.doPost(Unknown Source) [3/21/11 22:33:05:269 EDT] 00000062 SystemErr     R    at javax.servlet.http.HttpServlet.service(HttpServlet.java:595) [3/21/11 22:33:05:269 EDT] 00000062 SystemErr     R     at javax.servlet.http.HttpServlet.service(HttpServlet.java:668) [3/21/11 22:33:05:269 EDT] 00000062 SystemErr     R     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1147) [3/21/11 22:33:05:269 EDT] 00000062 SystemErr     R         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:722) [3/21/11 22:33:05:269 EDT] 00000062 SystemErr     R    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:449) [3/21/11 22:33:05:269 EDT] 00000062 SystemErr     R    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178) [3/21/11 22:33:05:270 EDT] 00000062 SystemErr     R    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:125) [3/21/11 22:33:05:270 EDT] 00000062 SystemErr     R        at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:92) [3/21/11 22:33:05:270 EDT] 00000062 SystemErr     R     at com.ibm.ws.console.core.servlet.WSCUrlFilter.setUpCommandAssistance(WSCUrlFilter.java:932) [3/21/11 22:33:05:270 EDT] 00000062 SystemErr     R       at com.ibm.ws.console.core.servlet.WSCUrlFilter.continueStoringTaskState(WSCUrlFilter.java:499) [3/21/11 22:33:05:270 EDT] 00000062 SystemErr     R     at com.ibm.ws.console.core.servlet.WSCUrlFilter.doFilter(WSCUrlFilter.java:320) [3/21/11 22:33:05:270 EDT] 00000062 SystemErr     R     at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192) [3/21/11 22:33:05:270 EDT] 00000062 SystemErr     R    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89) [3/21/11 22:33:05:270 EDT] 00000062 SystemErr     R     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:919) [3/21/11 22:33:05:270 EDT] 00000062 SystemErr     R        at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1016) [3/21/11 22:33:05:270 EDT] 00000062 SystemErr     R  at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3604) [3/21/11 22:33:05:270 EDT] 00000062 SystemErr     R    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304) [3/21/11 22:33:05:270 EDT] 00000062 SystemErr     R         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:950) [3/21/11 22:33:05:271 EDT] 00000062 SystemErr     R        at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1625) [3/21/11 22:33:05:271 EDT] 00000062 SystemErr     R   at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:197) [3/21/11 22:33:05:271 EDT] 00000062 SystemErr     R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:445) [3/21/11 22:33:05:271 EDT] 00000062 SystemErr     R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:504) [3/21/11 22:33:05:271 EDT] 00000062 SystemErr     R  at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:301) [3/21/11 22:33:05:271 EDT] 00000062 SystemErr     R    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83) [3/21/11 22:33:05:271 EDT] 00000062 SystemErr     R   at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1784) [3/21/11 22:33:05:271 EDT] 00000062 SystemErr     R     at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) [3/21/11 22:33:05:271 EDT] 00000062 SystemErr     R        at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) [3/21/11 22:33:05:271 EDT] 00000062 SystemErr     R        at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) [3/21/11 22:33:05:271 EDT] 00000062 SystemErr     R   at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138) [3/21/11 22:33:05:271 EDT] 00000062 SystemErr     R     at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204) [3/21/11 22:33:05:272 EDT] 00000062 SystemErr     R  at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775) [3/21/11 22:33:05:272 EDT] 00000062 SystemErr     R    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905) [3/21/11 22:33:05:272 EDT] 00000062 SystemErr     R     at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1620)

Attachments

Updated on 2011-03-23T15:46:30Z at 2011-03-23T15:46:30Z by denisF
  • sutter
    sutter
    17 Posts

    Re: NPE while deploying an application

    ‏2011-03-22T14:13:42Z  
    Hi denisF,
    I'm not sure about your app deployment issue. I'll have to let someone else dive into that one. But, I am curious about the other statement you made about the persistence.xml file:

    > Also, even if the WAR contains a persistence.xml file, it seems that WAS does not "initialise" it..

    Can you expand on this? I own the JPA solution for WebSphere, so I'm curious what you mean by "initialization" due to the persistence.xml file. And, could this just be a secondary issue because the deployment step is not working?

    Thanks,
    Kevin

    P.S. I'll try to get somebody to take a look at the NPE while deploying your app.
  • RamVennam
    RamVennam
    10 Posts

    Re: NPE while deploying an application

    ‏2011-03-22T14:26:03Z  
    denisF,

    The NullPointerException you pasted is only relevant to the installation of the application using the Administrative Console. It should not stop the installation, and the exception has already been fixed.

    Could you try installing using wsadmin and attach any exceptions you see? The SystemOut logs would be helpful as well.
  • RamVennam
    RamVennam
    10 Posts

    Re: NPE while deploying an application

    ‏2011-03-22T14:56:06Z  
    I confirmed that the NullPointerException in PropertyUtils.removeBidiCharsString should have no effects on the installation of the application, other than stack dump in the logs. This exception has been fixed. Thanks.
  • denisF
    denisF
    12 Posts

    Re: NPE while deploying an application

    ‏2011-03-23T15:46:30Z  
    Kevin,

    I am familiar with WAS v7 with Hibernate as the JPA provider and a "classical" structure (EAR with EJB module + JPA module + WAR)

    With this configuration, as soon as WAS "starts" an app (message WSVR0204I), the hibernate JPA provider is initialized (visible with log4 traces) even before the EJB module is started (WSVR0037I) and if there are errors in the persistence.xml file, I see them at that point.

    With WAS v8 and OpenJPA and only a WAR inside the EAR as in the EAR file attached and the persistence.xml file in the WAR, I don't see error message in the logs at start time But I guess OpenJPA is different from Hibernate in that way or the timing when the JPA provider is initialized may be different (WAS v7/JPA module vs WASv8/WAR module)

    Anyway, I have another problem (CDI related with beans non visible at initialization time) that prevent me to reach the point where I'll try to perform some operation on the entity manager and see if it is initialized and maybe I'll get the persitent.xml related errors at that time

    I'll post in another thread things related to my CDI problem after investigation