WebSphere : EJB threw an unexpected (non-declared) exception
hafiz yunus
Greenhorn
Joined: Aug 10, 2010
Posts: 1
posted
0
Hi All,
I'm new in Java web programming and I'm editing existing class from an existing system. During testing of I receive an error from EJB on non declared method (method that I recently add to the existing class).
Server : IBM WebSphere
Class : CPMAccDO
Method : setOldUnivCustID
Can someone help on pointing me to the right direction on how to resolve the problem. I did found a bit similar problem in this forum at http://www.coderanch.com/t/319588/EJB-JEE/java/EJB-exception-NoSuchMethodError from the topic he ask to recompile and redeploy the EJB with the latest code but I'm lost on that.
The error is shown below :
[8/11/10 11:44:19:719 GMT+08:00] 00000053 ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "findByAccNo" on bean "BeanId(CPC#CPMSB.jar#CPMSB, null)". Exception data: java.lang.NoSuchMethodError: com/telekom/cpc/cpm/model/CPMAccDO.setOldUnivCustID(Ljava/lang/String;)V
at com.telekom.cpc.cpm.ejb.dao.CPMDAO.findCPMAccDOByAccNo(CPMDAO.java:1130)
at com.telekom.cpc.cpm.ejb.sb.CPMSB.findByAccNo(CPMSB.java:177)
at com.telekom.cpc.cpm.ejb.sb.EJSRemoteStatelessCPMSBRemote_0b29e31f.findByAccNo(Unknown Source)
at com.telekom.cpc.cpm.ejb.sb._CPMSBRemote_Stub.findByAccNo(_CPMSBRemote_Stub.java:850)
at com.telekom.cpc.cpm.web.controller.CPMMainQueryListEvent.khromIt(CPMMainQueryListEvent.java:83)
at com.alfacom.controller.web.requestProcessor.RequestProcessor.handleRequest(RequestProcessor.java:182)
at com.alfacom.controller.web.requestProcessor.RequestProcessor.processRequest(RequestProcessor.java:141)
at com.alfacom.controller.web.MainServlet.process(MainServlet.java:311)
at com.alfacom.controller.web.MainServlet.doPost(MainServlet.java:174)
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:966)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:308)
at com.alfacom.controller.web.FrameSetServlet.process(FrameSetServlet.java:315)
at com.alfacom.controller.web.FrameSetServlet.doPost(FrameSetServlet.java:115)
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:966)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3107)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1425)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:92)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:193)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:725)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:847)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)
You already have the answer I think. The class com.telekom.cpc.cpm.model.CPMAccDO is missing the method void setOldUnivCustID(String value). Check your class has this mehtod. If it does, redeploy the application.
If you are struggling with the concept of redeploying an applicaiton on WebSPhere I'm afraid you probably need to stop what you are doing and start reading the tutorials n the IBM InfoCentre. WebSphere is a very complex applicaiton server and there aren't really any short cuts to be had.