0 Replies Latest reply on Aug 24, 2018 8:11 AM by vivek singh

    Return type Vector is giving null pointer exception in Ejb3.0

    vivek singh Newbie

      Hi All,

      PLease help on this I am stucked and no option since last couple of days

      I have a EJB program deployed on JBOSS AS 7.1 for the platform@@ .earlier same Sourcecode was working on Weblogic plateform . now unable to call a mothod call is okay but no response. when i did print-stack got below error . This program is a EAR which content WEB+EJB 3.0 a-ed31-4946-97ee-0d2bf9b27779] rid : [71-2018-00000002] New State : [PI_1_PORTIN_REQ] 2018-08-24 02:12:27,364 INFO [WEBLogger] (default task-28) [Session ID=GiBI4MUnxGMiIit_C32gYiJKbqJTdLf_eAIgHp25] - processQuery: [stateDescription =Received Portin Request from BS]. 2018-08-24 02:12:27,365 ERROR [org.jboss.as.ejb3.invocation] (default task-28) WFLYEJB0034: EJB Invocation failed on component PortInSessionBean for method public abstract java.util.Vector npgw.ejb.PortInSessionBeanRemote.queryPortin(java.lang.String,java.lang.String,java.util.Vector,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,int,np.web.SimpleObject[]): javax.ejb.EJBException: java.lang.NullPointerException at org.jboss.as.ejb3.tx.BMTInterceptor.handleException(BMTInterceptor.java:83) at org.jboss.as.ejb3.tx.EjbBMTInterceptor.checkStatelessDone(EjbBMTInterceptor.java:91) at org.jboss.as.ejb3.tx.EjbBMTInterceptor.handleInvocation(EjbBMTInterceptor.java:106) at org.jboss.as.ejb3.tx.BMTInterceptor.processInvocation(BMTInterceptor.java:58) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:40) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53) at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509) at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:73) at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:89) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:89) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:47) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss.as.ejb3.deployment.processors.StartupAwaitInterceptor.processInvocation(StartupAwaitInterceptor.java:22) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss.as.ejb3.deployment.processors.EjbSuspendInterceptor.processInvocation(EjbSuspendInterceptor.java:57) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:67) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:60) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:438) at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:609) at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:57) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53) at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:198) at org.wildfly.security.auth.server.SecurityIdentity.runAsFunctionEx(SecurityIdentity.java:380) at org.jboss.as.ejb3.remote.AssociationImpl.invokeWithIdentity(AssociationImpl.java:535) at org.jboss.as.ejb3.remote.AssociationImpl.invokeMethod(AssociationImpl.java:530) at org.jboss.as.ejb3.remote.AssociationImpl.lambda$receiveInvocationRequest$0(AssociationImpl.java:193) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at np.web.QueryPortinBean.processQuery(QueryPortinBean.java:475) at np.web.QueryPortinBean.query(QueryPortinBean.java:142) at npgw.ejb.PortInSessionBean.queryPortin(PortInSessionBean.java:116) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509) at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:90) at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:101) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) at org.jboss.as.ejb3.tx.EjbBMTInterceptor.handleInvocation(EjbBMTInterceptor.java:103) ... 50 more 2018-08-24 02:12:27,370 ERROR [stderr] (default task-26) javax.ejb.EJBException: java.lang.NullPointerException 2018-08-24 02:12:27,370 ERROR [stderr] (default task-26) at org.jboss.as.ejb3.tx.BMTInterceptor.handleException(BMTInterceptor.java:83) 2018-08-24 02:12:27,371 ERROR [stderr] (default task-26) at org.jboss.as.ejb3.tx.EjbBMTInterceptor.checkStatelessDone(EjbBMTInterceptor.java:91) 2018-08-24 02:12:27,371 ERROR [stderr] (default task-26) at org.jboss.as.ejb3.tx.EjbBMTInterceptor.handleInvocation(EjbBMTInterceptor.java:106) 2018-08-24 02:12:27,371 ERROR [stderr] (default task-26) at org.jboss.as.ejb3.tx.BMTInterceptor.processInvocation(BMTInterceptor.java:58) 2018-08-24 02:12:27,371 ERROR [stderr] (default task-26) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) 2018-08-24 02:12:27,372 ERROR [stderr] (default task-26) at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45) 2018-08-24 02:12:27,372 ERROR [stderr] (default task-26) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) 2018-08-24 02:12:27,372 ERROR [stderr] (default task-26) at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:40) 2018-08-24 02:12:27,373 ERROR [stderr] (default task-26) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) 2018-08-24 02:12:27,373 ERROR [stderr] (default task-26) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53) 2018-08-24 02:12:27,373 ERROR [stderr] (default task-26) at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52) 2018-08-24 02:12:27,374 ERROR [stderr] (default task-26) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) 2018-08-24 02:12:27,374 ERROR [stderr] (default task-26) at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51) 2018-08-24 02:12:27,374 ERROR [stderr] (default task-26) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) 2018-08-24 02:12:27,375 ERROR [stderr] (default task-26) at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509) 2018-08-24 02:12:27,375 ERROR [stderr] (default task-26) at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:73) 2018-08-24 02:12:27,375 ERROR [stderr] (default task-26) at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:89) 2018-08-24 02:12:27,375 ERROR [stderr] (default task-26) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) 2018-08-24 02:12:27,376 ERROR [stderr] (default task-26) at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:89) 2018-08-24 02:12:27,376 ERROR [stderr] (default task-26) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) 2018-08-24 02:12:27,376 ERROR [stderr] (default task-26) at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) 2018-08-24 02:12:27,377 ERROR [stderr] (default task-26) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) 2018-08-24 02:12:27,377 ERROR [stderr] (default task-26) at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:47) 2018-08-24 02:12:27,377 ERROR [stderr] (default task-26) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) 2018-08-24 02:12:27,378 ERROR [stderr] (default task-26) at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100) 2018-08-24 02:12:27,379 ERROR [stderr] (default task-26) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) 2018-08-24 02:12:27,380 ERROR [stderr] (default task-26) at org.jboss.as.ejb3.deployment.processors.StartupAwaitInterceptor.processInvocation(StartupAwaitInterceptor.java:22) 2018-08-24 02:12:27,380 ERROR [stderr] (default task-26) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) 2018-08-24 02:12:27,380 ERROR [stderr] (default task-26) at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) 2018-08-24 02:12:27,381 ERROR [stderr] (default task-26) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) 2018-08-24 02:12:27,381 ERROR [stderr] (default task-26) at org.jboss.as.ejb3.deployment.processors.EjbSuspendInterceptor.processInvocation(EjbSuspendInterceptor.java:57) 2018-08-24 02:12:27,381 ERROR [stderr] (default task-26) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) 2018-08-24 02:12:27,382 ERROR [stderr] (default task-26) at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:67) 2018-08-24 02:12:27,382 ERROR [stderr] (default task-26) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) 2018-08-24 02:12:27,382 ERROR [stderr] (default task-26) at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) 2018-08-24 02:12:27,383 ERROR [stderr] (default task-26) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) 2018-08-24 02:12:27,383 ERROR [stderr] (default task-26) at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54) 2018-08-24 02:12:27,383 ERROR [stderr] (default task-26) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) 2018-08-24 02:12:27,384 ERROR [stderr] (default task-26) at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:60) 2018-08-24 02:12:27,384 ERROR [stderr] (default task-26) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) 2018-08-24 02:12:27,384 ERROR [stderr] (default task-26) at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:438) 2018-08-24 02:12:27,385 ERROR [stderr] (default task-26) at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:609) 2018-08-24 02:12:27,385 ERROR [stderr] (default task-26) at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:57) 2018-08-24 02:12:27,385 ERROR [stderr] (default task-26) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) 2018-08-24 02:12:27,386 ERROR [stderr] (default task-26) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53) 2018-08-24 02:12:27,386 ERROR [stderr] (default task-26) at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:198) 2018-08-24 02:12:27,386 ERROR [stderr] (default task-26) at org.wildfly.security.auth.server.SecurityIdentity.runAsFunctionEx(SecurityIdentity.java:380) 2018-08-24 02:12:27,387 ERROR [stderr] (default task-26) at org.jboss.as.ejb3.remote.AssociationImpl.invokeWithIdentity(AssociationImpl.java:535) 2018-08-24 02:12:27,387 ERROR [stderr] (default task-26) at org.jboss.as.ejb3.remote.AssociationImpl.invokeMethod(AssociationImpl.java:530) 2018-08-24 02:12:27,387 ERROR [stderr] (default task-26) at org.jboss.as.ejb3.remote.AssociationImpl.lambda$receiveInvocationRequest$0(AssociationImpl.java:193) 2018-08-24 02:12:27,388 ERROR [stderr] (default task-26) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 2018-08-24 02:12:27,388 ERROR [stderr] (default task-26) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 2018-08-24 02:12:27,388 ERROR [stderr] (default task-26) at java.lang.Thread.run(Thread.java:745) 2018-08-24 02:12:27,389 ERROR [stderr] (default task-26) Caused by: java.lang.NullPointerException 2018-08-24 02:12:27,389 ERROR [stderr] (default task-26) at np.web.QueryPortinBean.processQuery(QueryPortinBean.java:475) 2018-08-24 02:12:27,389 ERROR [stderr] (default task-26) at np.web.QueryPortinBean.query(QueryPortinBean.java:142) 2018-08-24 02:12:27,390 ERROR [stderr] (default task-26) at npgw.ejb.PortInSessionBean.queryPortin(PortInSessionBean.java:116) 2018-08-24 02:12:27,390 ERROR [stderr] (default task-26) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2018-08-24 02:12:27,390 ERROR [stderr] (default task-26) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 2018-08-24 02:12:27,391 ERROR [stderr] (default task-26) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2018-08-24 02:12:27,391 ERROR [stderr] (default task-26) at java.lang.reflect.Method.invoke(Method.java:498) 2018-08-24 02:12:27,391 ERROR [stderr] (default task-26) at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52) 2018-08-24 02:12:27,392 ERROR [stderr] (default task-26) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) 2018-08-24 02:12:27,393 ERROR [stderr] (default task-26) at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509) 2018-08-24 02:12:27,393 ERROR [stderr] (default task-26) at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:90) 2018-08-24 02:12:27,393 ERROR [stderr] (default task-26) at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:101) 2018-08-24 02:12:27,394 ERROR [stderr] (default task-26) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63) 2018-08-24 02:12:27,394 ERROR [stderr] (default task-26) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) 2018-08-24 02:12:27,394 ERROR [stderr] (default task-26) at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) 2018-08-24 02:12:27,395 ERROR [stderr] (default task-26) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) 2018-08-24 02:12:27,395 ERROR [stderr] (default task-26) at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47) 2018-08-24 02:12:27,395 ERROR [stderr] (default task-26) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) 2018-08-24 02:12:27,396 ERROR [stderr] (default task-26) at org.jboss.as.ejb3.tx.EjbBMTInterceptor.handleInvocation(EjbBMTInterceptor.java:103) 2018-08-24 02:12:27,396 ERROR [stderr] (default task-26) ... 50 more 2018-08-24 02:12:27,396 FINE [javax.enterprise.resource.webcontainer.jsf.context] (default task-26) Adding Message[sourceId=<<NONE>>,summary=Failed to handle request: java.lang.NullPointerException) Sample piece of src is as below import java.util.Vector; import javax.ejb.Stateless; import javax.ejb.TransactionManagement; import javax.ejb.TransactionManagementType; import org.apache.log4j.Logger; import np.web.OSSGW_Payload; import np.web.ProcessPortin; import np.web.QueryPortinBean; import np.web.QueryPortinDetailBean; import np.web.QueryProcedureBean; import np.web.SimpleObject; import com.syniverse.npgw.gui.GUIObject; /** * Session Bean implementation class PortInSessionBean */ @Stateless(name = "PortInSessionBean") @TransactionManagement(TransactionManagementType.BEAN) public class PortInSessionBean implements PortInSessionBeanRemote { // // private final String JNDI_NPDB = PersistenceController.JDBC_JNDI_NAME; // // // // private Context context; private SimpleObject sObj; /** * Default constructor. */ public PortInSessionBean() { } // Added by Khanh Trinh -- Begin @Override public Portin queryPIByRid(String sessionId, String rid, String msisdn, String bsid) { Portin portIItem = new Portin(); QueryPortinDetailBean sBean = new QueryPortinDetailBean(); SimpleObject temp = sBean.queryBybsid(sessionId, rid, msisdn, bsid); if (temp != null) { portIItem.setTid(temp.getTid()); portIItem.setZone_name(temp.getIdx()); portIItem.setDonor(temp.getDid_name()); portIItem.setPcode(temp.getPcode()); portIItem.setMSISDN(temp.getPn()); portIItem.setStateSub(temp.getStateSub()); portIItem.setApplyDate(temp.getAd()); portIItem.setEffectiveDate(temp.getCd()); portIItem.setStatus(temp.getState_description()); portIItem.setBillSysId(temp.getBsr()); portIItem.setServiceType(temp.getService_type()); portIItem.setDonorSim(temp.getSimNumber()); portIItem.setContactNo(temp.getDummymsisdn()); portIItem.setBusinessPlan(temp.getBplan()); portIItem.setImsiNo(temp.getImsiNum()); portIItem.setPuk(temp.getPuk()); portIItem.setBatelcoSim(temp.getSimNumberBatelco()); portIItem.setLsa(temp.getLsa()); portIItem.setRoutingNo(temp.getSrn()); } return portIItem; } @Override public Portin queryPortinDetail(String sessionId, String tid, String msisdn, String bsid) { Portin portIItem = new Portin(); QueryPortinDetailBean sBean = new QueryPortinDetailBean(); SimpleObject temp = sBean.query(sessionId, tid, msisdn, bsid); if (temp != null) { portIItem.setTid(temp.getTid()); portIItem.setZone_name(temp.getIdx()); portIItem.setDonor(temp.getDid_name()); portIItem.setPcode(temp.getPcode()); portIItem.setMSISDN(temp.getPn()); portIItem.setStateSub(temp.getStateSub()); portIItem.setApplyDate(temp.getAd()); portIItem.setEffectiveDate(temp.getCd()); portIItem.setStatus(temp.getState_description()); portIItem.setBillSysId(temp.getBsr()); portIItem.setServiceType(temp.getService_type()); portIItem.setDonorSim(temp.getSimNumber()); portIItem.setContactNo(temp.getDummymsisdn()); portIItem.setBusinessPlan(temp.getBplan()); portIItem.setImsiNo(temp.getImsiNum()); portIItem.setPuk(temp.getPuk()); portIItem.setBatelcoSim(temp.getSimNumberBatelco()); portIItem.setLsa(temp.getLsa()); portIItem.setRoutingNo(temp.getSrn()); } return portIItem; } @Override public Vector<Portin> queryPortin(String sessionId, String oid, Vector lsa_list, String msisdn, String cid, String port_id, String status, String donor_id, String from_transfer_date, String to_transfer_date, String from_approval_date, String to_approval_date, String from_creation_date, String to_creation_date, int paramInt, SimpleObject[] paramArrayOfSimpleObject) { Logger.getLogger("WEBLogger").info("LocalBean#2222#####"); Vector<Portin> portInList = new Vector<Portin>(); // try { Logger.getLogger("WEBLogger").info("LocalBean######1"); QueryPortinBean sBean = new QueryPortinBean(); Logger.getLogger("WEBLogger").info("LocalBean######222"); Vector localVector = sBean.query(sessionId, oid, lsa_list, msisdn, cid, port_id, status, donor_id, from_transfer_date, to_transfer_date, from_approval_date, to_approval_date, from_creation_date, to_creation_date, paramInt, paramArrayOfSimpleObject); Logger.getLogger("WEBLogger").info("LocalBean######"+localVector.size()); for (int i = 0; i < localVector.size(); ++i) { Portin portIItem = new Portin(); { Logger.getLogger("WEBLogger").info("LocalBean####222222##"+localVector.get(i)); OSSGW_Payload ossgw_Payload = (OSSGW_Payload) localVector.get(i); portIItem.setTid(ossgw_Payload.getTid()); portIItem.setZone_name(ossgw_Payload.getZone()); portIItem.setDonor(ossgw_Payload.getDid_name()); portIItem.setPcode(ossgw_Payload.getPcode()); portIItem.setMSISDN(ossgw_Payload.getPn()); portIItem.setApplyDate(ossgw_Payload.getAd()); portIItem.setEffectiveDate(ossgw_Payload.getCd()); portIItem.setCreateDate(ossgw_Payload.getAd_time()); portIItem.setState(ossgw_Payload.getState_description()); portIItem.setRid(ossgw_Payload.getRid()); portIItem.setProcessor(ossgw_Payload.getProcessor()); portIItem.setBillSysId(ossgw_Payload.getBsr()); String action = ossgw_Payload.getAction(); if (action == null || action.equalsIgnoreCase("")) { action = "PORT_IN"; } portIItem.setAction(action); } portInList.add(portIItem); } // } catch (Exception ex) { // } return portInList; }