Hi, This really worries me. A NullPointerException should not be possible where it happens, but obviously it is :-( This is a serious problem in the transaction code I've had my dirty hands on... Do you get this exception every time you do this, or only sometimes? Just before the start of the log included below, do you have a message saying something like: [ListManager] Cannot import transaction ...... Any information that will help me to kill this bug will be most appreciated. Best Regards, Ole Husgaard. Jvrg Schorr wrote: > > Hi, > > I have a stateless session bean ListManager which tries to retrieve a list > from the database and return it. This bean is called from another stateless > session bean (ProjectManager) which is called from a remote java > application. > The info 'DEBUG: Getting the language list... 2' is printed out just before > the return of the getLanguageList of the ListManager session bean. > When running it with the BETA-PROD-02 and get into this 'container > exception'. > > Any help would be greatly appreciated. > jorg > > [ListManager] create() > [ListManager] getLanguageList() > [ListManager] 2000.10.10 17:45:34 DEBUG: Getting the language list... > [ListManager] 2000.10.10 17:45:34 DEBUG: Getting the language list... > 1 > [ListManager] 2000.10.10 17:45:34 DEBUG: Getting the language list... > 1 > [ListManager] 2000.10.10 17:45:34 DEBUG: Getting the language list... > 1 > [ListManager] 2000.10.10 17:45:34 DEBUG: Getting the language list... > 1 > [ListManager] 2000.10.10 17:45:34 DEBUG: Getting the language list... > 2 > [ListManager] CONTAINER EXCEPTION:null > [ListManager] java.lang.NullPointerException > [ListManager] at > org.jboss.tm.TransactionImpl.getStatus(TransactionImpl.java:125) > [ListManager] at > org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:273) > [ListManager] at > org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe > ssionInstanceInterceptor. > java:87) > [ListManager] at > org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:14 > 0) > [ListManager] at > org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:185) > [ListManager] at > org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.jav > a:265) > [ListManager] at > org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI > nvoker.java:222) > [ListManager] at > org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI > nvoker.java:187) > [ListManager] at > org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(Stateless > SessionProxy.java:164) > [ListManager] at $Proxy91.getLanguageList(Unknown Source) > [ListManager] at > com.portalys.util.bean.LanguageListInfo.getInstance(LanguageListInfo.java:52 > ) > [ListManager] at > com.portalys.offer.principal.ejb.ProjectManagerBean.publish(ProjectManagerBe > an.java:626) > [ListManager] at java.lang.reflect.Method.invoke(Native Method) > [ListManager] at > org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Stateles > sSessionContainer.java:46 > 6) > [ListManager] at > org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe > ssionInstanceInterceptor. > java:87) > [ListManager] at > org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133) > [ListManager] at > org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. > java:254) > [ListManager] at > org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99) > [ListManager] at > org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:14 > 0) > [ListManager] at > org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:185) > [ListManager] at > org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.jav > a:265) > [ListManager] at > org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI > nvoker.java:222) > [ListManager] at > org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI > nvoker.java:187) > [ListManager] at java.lang.reflect.Method.invoke(Native Method) > [ListManager] at > sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241) > [ListManager] at sun.rmi.transport.Transport$1.run(Transport.java:142) > [ListManager] at java.security.AccessController.doPrivileged(Native > Method) > [ListManager] at > sun.rmi.transport.Transport.serviceCall(Transport.java:139) > [ListManager] at > sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443) > [ListManager] at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:6 > 43) > [ListManager] at java.lang.Thread.run(Thread.java:484) > [ProjectManager] 2000.10.10 17:45:34 ERROR: We won't get the language > list... > [ProjectManager] java.rmi.ServerException: Container exception. Notify the > container developers :-); nested exception is > : > java.lang.NullPointerException > [ProjectManager] java.rmi.ServerException: Container exception. Notify the > container developers :-); nested exception is > : > java.lang.NullPointerException > [ProjectManager] java.lang.NullPointerException > at org.jboss.tm.TransactionImpl.getStatus(TransactionImpl.java:125) > at > org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:273) > at > org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe > ssionInstanceInterceptor.java:87) > > at > org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:14 > 0) > at > org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:185) > at > org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.jav > a:265) > at > org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI > nvoker.java:222) > at > org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI > nvoker.java:187) > at > org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(Stateless > SessionProxy.java:164) > at $Proxy91.getLanguageList(Unknown Source) > at > com.portalys.util.bean.LanguageListInfo.getInstance(LanguageListInfo.java:52 > ) > at > com.portalys.offer.principal.ejb.ProjectManagerBean.publish(ProjectManagerBe > an.java:626) > at java.lang.reflect.Method.invoke(Native Method) > at > org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Stateles > sSessionContainer.java:466) > at > org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe > ssionInstanceInterceptor.java:87) > > at > org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133) > at > org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. > java:254) > at > org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99) > at > org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:14 > 0) > at > org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:185) > at > org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.jav > a:265) > at > org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI > nvoker.java:222) > at > org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI > nvoker.java:187) > at java.lang.reflect.Method.invoke(Native Method) > at > sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241) > at sun.rmi.transport.Transport$1.run(Transport.java:142) > at java.security.AccessController.doPrivileged(Native Method) > at sun.rmi.transport.Transport.serviceCall(Transport.java:139) > at > sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443) > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:6 > 43) > at java.lang.Thread.run(Thread.java:484) > [ProjectManager] 2000.10.10 17:45:34 ERROR: For the languageId : > 10000003 don't find a languageInfo > > -- > -------------------------------------------------------------- > To subscribe: [EMAIL PROTECTED] > To unsubscribe: [EMAIL PROTECTED] > Problems?: [EMAIL PROTECTED] -- -------------------------------------------------------------- To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED]
