Hi, I am working on to finish Chapter 5 and almost done with it. Here is the result I am getting once I run the client:
Request from client : Reply from Server: Your userid is U2 Andy your details with MyStore are {customerID=C2 userID=U2 firstName=ANDREW lastName=HENDRY address=5/267 DONCASTER RD phone=98402222 shareholderStatus=Y} Request from client : Reply from Server: Your mgrid is U6 Rusty your details with MyStore are null Below is the error message: **************************************************** 00:11:20,937 INFO [STDOUT] Entering StoreAccessBean 00:11:20,937 INFO [STDOUT] Leaving StoreAccessBean 00:11:20,937 INFO [STDOUT] Enterpring StoreAccessDAOImpl.loginUser() 00:11:20,937 INFO [STDOUT] UserID is U2 00:11:20,937 INFO [STDOUT] Leaving StoreAccessDAOImpl.loginUser() 00:11:20,953 INFO [STDOUT] Entering StoreAccessBean.getCustomerData() 00:11:20,953 INFO [STDOUT] Entering CustomerBean.ejbFindByUserID 00:11:20,953 INFO [STDOUT] Leaving CustomerBean.ejbFindByUserID 00:11:20,953 INFO [STDOUT] Entering CustomerDAOImpl.findByUserID() 00:11:20,953 INFO [STDOUT] Primary Key found: C2 00:11:20,953 INFO [STDOUT] Leaving CustomerDAOImpl.findByUserID() with key C2 00:11:20,953 INFO [STDOUT] Entering CustomerBean.getCustomerData() 00:11:20,953 INFO [STDOUT] Leaving CustomerBean.getCustomerData() 00:11:20,953 INFO [STDOUT] Leaving StoreAccessBean.getCustomerData() 00:11:20,984 INFO [STDOUT] Entering StoreAccessBean 00:11:20,984 INFO [STDOUT] Leaving StoreAccessBean 00:11:20,984 INFO [STDOUT] Enterpring StoreAccessDAOImpl.loginUser() 00:11:20,984 INFO [STDOUT] UserID is U6 00:11:20,984 INFO [STDOUT] Leaving StoreAccessDAOImpl.loginUser() 00:11:21,000 INFO [STDOUT] Entering StoreAccessBean.getManagerData() 00:11:21,000 INFO [STDOUT] Entering ManagerBean.ejbFindByUserID() 00:11:21,000 INFO [STDOUT] Leaving ManagerBean.ejbFindByUserID() 00:11:21,000 INFO [STDOUT] Entering ManagerDAOImpl.findByUserID() 00:11:21,000 INFO [STDOUT] user id is U6 00:11:21,000 ERROR [STDERR] java.lang.NullPointerException 00:11:21,000 ERROR [STDERR] at au.com.tusc.dao.ManagerDAOImpl.findByUserID(ManagerDAOImpl.java:131)00:11:21,000 ERROR [STDERR] at au.com.tusc.bmp.ManagerBMP.ejbFindByUserID(ManagerBMP.java:138) 00:11:21,000 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 00:11:21,000 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 00:11:21,000 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 00:11:21,000 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source) 00:11:21,000 ERROR [STDERR] at org.jboss.ejb.plugins.BMPPersistenceManager.callFinderMethod(BMPPersistenceManager.java:578) 00:11:21,000 ERROR [STDERR] at org.jboss.ejb.plugins.BMPPersistenceManager.findEntity(BMPPersistenceManager.java:316) 00:11:21,000 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntity(CachedConnectionInterceptor.java:301) 00:11:21,000 ERROR [STDERR] at org.jboss.ejb.EntityContainer.findLocal(EntityContainer.java:627) 00:11:21,000 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 00:11:21,000 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 00:11:21,000 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 00:11:21,000 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source) 00:11:21,000 ERROR [STDERR] at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:998) 00:11:21,000 ERROR [STDERR] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:188) 00:11:21,000 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:215) 00:11:21,000 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88) 00:11:21,000 ERROR [STDERR] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:91) 00:11:21,000 ERROR [STDERR] at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61) 00:11:21,000 ERROR [STDERR] at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28) 00:11:21,000 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88) 00:11:21,000 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243) 00:11:21,000 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:74) 00:11:21,000 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:92) 00:11:21,000 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120) 00:11:21,000 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93) 00:11:21,000 ERROR [STDERR] at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:477) 00:11:21,000 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:694) 00:11:21,000 ERROR [STDERR] at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:272) 00:11:21,000 ERROR [STDERR] at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110) 00:11:21,000 ERROR [STDERR] at $Proxy80.findByUserID(Unknown Source) 00:11:21,000 ERROR [STDERR] at au.com.tusc.session.StoreAccessBean.getManagerData(StoreAccessBean.java:128) 00:11:21,000 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 00:11:21,000 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 00:11:21,000 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 00:11:21,000 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source) 00:11:21,000 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:629) 00:11:21,000 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) 00:11:21,000 ERROR [STDERR] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72) 00:11:21,000 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84) 00:11:21,000 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243) 00:11:21,000 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104) 00:11:21,015 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:117) 00:11:21,015 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) 00:11:21,015 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) 00:11:21,015 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:322) 00:11:21,015 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:674) 00:11:21,015 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 00:11:21,015 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 00:11:21,015 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 00:11:21,015 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source) 00:11:21,015 ERROR [STDERR] at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) 00:11:21,015 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) 00:11:21,015 ERROR [STDERR] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:359) 00:11:21,015 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 00:11:21,015 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 00:11:21,015 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 00:11:21,015 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source) 00:11:21,015 ERROR [STDERR] at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) 00:11:21,015 ERROR [STDERR] at sun.rmi.transport.Transport$1.run(Unknown Source) 00:11:21,015 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method) 00:11:21,015 ERROR [STDERR] at sun.rmi.transport.Transport.serviceCall(Unknown Source) 00:11:21,015 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source) 00:11:21,015 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source) 00:11:21,015 ERROR [STDERR] at java.lang.Thread.run(Unknown Source) 00:11:21,015 INFO [STDOUT] Error in StoreAccessBean.getManagerData()javax.ejb.FinderException: Inside ManagerDAOImpl.findByUserID()java.lang.NullPointerException 00:11:21,015 INFO [STDOUT] Leaving StoreAccessBean.getManagerData() **************************************************** As you can see the lines in bold, I have some debug lines in ManagerDAOImpl.java as the following: conn = jdbcFactory.getConnection(); if (conn == null) { System.out.println("not getting connection at all.."); }else { System.out.println("Getting the connection now..."); } But I don't see any messages. I suspect something went wrong when getting a connection.... Anyone run into similar problems and can help a little bit??? Thanks, J- View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3834918#3834918 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3834918 ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user