Recently I have done an upgrade of WAS from 6.0 to 6.0.2.17 .
After that when I am trying to do the depolyment through the console , the deployment fails with the below error.
Please let me know how this can be fixed ?
The roor cause of the error is
--------------------------------------------------------------------------
java.lang.NullPointerException
at com.ibm.ws.management.configservice.WorkspaceHelper.getContext(WorkspaceHelper.java(Compiled Code))
at com.ibm.websphere.management.application.client.ResourceValidationHelper._addObjectsToTbl(ResourceValidationHelper.java:2323)
--------------------------------------------------------------------------
[1/10/07 16:19:46:682 CST] 0000005c ServletWrappe E SRVE0068E: Could not invoke the service() method on servlet action. Exception thrown : javax.servlet.ServletException
at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:275)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1486)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:528)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1521)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:136)
at com.ibm.ws.console.core.servlet.WSCUrlFilter.continueStoringTaskState(WSCUrlFilter.java:309)
at com.ibm.ws.console.core.servlet.WSCUrlFilter.doFilter(WSCUrlFilter.java:185)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:759)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:89)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1924)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:98)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:101)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
---- Begin backtrace for Nested Throwables
java.lang.NullPointerException
at com.ibm.ws.management.configservice.WorkspaceHelper.getContext(WorkspaceHelper.java(Compiled Code))
at com.ibm.websphere.management.application.client.ResourceValidationHelper._addObjectsToTbl(ResourceValidationHelper.java:2323)
at com.ibm.websphere.management.application.client.ResourceValidationHelper._getResourceObjectsWithRefKeysForOneScope(ResourceValidationHelper.java:723)
at com.ibm.websphere.management.application.client.ResourceValidationHelper._getResourceObjectsWithRefKeys(ResourceValidationHelper.java:637)
at com.ibm.websphere.management.application.client.ResourceValidationHelper._taskResourceValidation(ResourceValidationHelper.java:2050)
at com.ibm.websphere.management.application.client.ResourceValidationHelper._taskResourceValidation(ResourceValidationHelper.java:1963)
at com.ibm.websphere.management.application.client.ResourceValidationHelper._taskResourceValidation(ResourceValidationHelper.java:859)
I believe APAR PK37272 was opened for this error (I have just opened a PMR to track a possible fix).
http://www.ibm.com/support/docview.wss?uid=swg21253756
wsadmin is no solution for us - same problem arises as in GUI (nullpointer exception)...
/Lars
Disabling validation using wsadmin deploy process circumvents the problem
(setting '-validateinstall off' flag of AdminApp.install() method).
/Lars
Still awaiting a permanent fix for the referenced APAR PK37272.
/Lars
I'm actually using wsadmin and the reverted.jar did solve the problem.
Have you tried disabling deployment validation, by specifying the '-validateinstall off' parameter to AdminApp.install?
/Lars