Hello David, something curious happens here: the client looks like this: ------------------------------------- LoggerFactoryImpl loggerFactory = (LoggerFactoryImpl)initialContext.lookup("java:/Log"); logger = (Logger)loggerFactory.getLogger(logFileName, level); logger.log(CLASS_NAME, Log.TRACE4, methodName, "Bean successfully started"); -------------------------------------
1. the lookup goes through 2. the getLogger fails the getLogger method looks like this: -------------------------------------- System.out.println("getLogger") ; try { return (Log)connectionManager.allocateConnection(mcf, new LoggerInfo(logName, logLevel)); } catch(Exception exc) { return null; } -------------------------------------- The output of getLogger is like this: -------------------------------------- 2002-06-05 11:22:14,440 INFO [STDOUT] getLogger 2002-06-05 11:22:14,448 INFO [STDOUT] hashCode 2002-06-05 11:22:14,449 INFO [STDOUT] equals() com.ra.Log.LoggerManagedConnectionFactory@dfd90f 2002-06-05 11:22:14,450 INFO [STDOUT] hashCode 2002-06-05 11:22:14,450 INFO [STDOUT] equals() com.ra.Log.LoggerManagedConnectionFactory@dfd90f 2002-06-05 11:22:14,451 INFO [STDOUT] hashCode 2002-06-05 11:22:14,452 INFO [STDOUT] equals() com.ra.Log.LoggerManagedConnectionFactory@dfd90f 2002-06-05 11:22:14,453 INFO [STDOUT] hashCode 2002-06-05 11:22:14,454 INFO [STDOUT] equals() com.ra.Log.LoggerManagedConnectionFactory@dfd90f 2002-06-05 11:22:14,454 INFO [STDOUT] hashCode 2002-06-05 11:22:14,455 INFO [STDOUT] equals() com.ra.Log.LoggerManagedConnectionFactory@dfd90f 2002-06-05 11:22:14,456 INFO [STDOUT] hashCode 2002-06-05 11:22:14,457 INFO [STDOUT] equals() com.ra.Log.LoggerManagedConnectionFactory@dfd90f 2002-06-05 11:22:14,458 INFO [STDOUT] hashCode 2002-06-05 11:22:14,458 INFO [STDOUT] equals() com.ra.Log.LoggerManagedConnectionFactory@dfd90f 2002-06-05 11:22:14,459 INFO [STDOUT] hashCode 2002-06-05 11:22:14,460 INFO [STDOUT] equals() com.ra.Log.LoggerManagedConnectionFactory@dfd90f 2002-06-05 11:22:14,461 INFO [STDOUT] hashCode 2002-06-05 11:22:14,462 INFO [STDOUT] equals() com.ra.Log.LoggerManagedConnectionFactory@dfd90f 2002-06-05 11:22:14,463 INFO [STDOUT] hashCode 2002-06-05 11:22:14,463 INFO [STDOUT] equals() com.ra.Log.LoggerManagedConnectionFactory@dfd90f 2002-06-05 11:22:14,464 INFO [STDOUT] hashCode 2002-06-05 11:22:14,465 INFO [STDOUT] equals() com.ra.Log.LoggerManagedConnectionFactory@dfd90f 2002-06-05 11:22:14,466 INFO [STDOUT] hashCode 2002-06-05 11:22:14,466 INFO [STDOUT] equals() com.ra.Log.LoggerManagedConnectionFactory@dfd90f 2002-06-05 11:22:14,467 INFO [STDOUT] hashCode 2002-06-05 11:22:14,468 INFO [STDOUT] equals() com.ra.Log.LoggerManagedConnectionFactory@dfd90f 2002-06-05 11:22:14,469 INFO [STDOUT] hashCode 2002-06-05 11:22:14,469 INFO [STDOUT] equals() com.ra.Log.LoggerManagedConnectionFactory@dfd90f 2002-06-05 11:22:14,470 INFO [STDOUT] hashCode 2002-06-05 11:22:14,471 INFO [STDOUT] equals() com.ra.Log.LoggerManagedConnectionFactory@dfd90f 2002-06-05 11:22:14,472 INFO [STDOUT] hashCode 2002-06-05 11:22:14,472 INFO [STDOUT] equals() com.ra.Log.LoggerManagedConnectionFactory@dfd90f 2002-06-05 11:22:14,473 INFO [STDOUT] hashCode ................. continues for a while like that ........................... 2002-06-05 11:22:14,472 INFO [STDOUT] equals() com.ra.Log.LoggerManagedConnectionFactory@dfd90f ERROR: invalid console appender config detected, console stream is looping11:28:18,833 ERROR [STDERR] java.lang.NullPointerException 11:28:18,839 ERROR [STDERR] at com.iqos.ejb.IQOSGenericSessionBean.ejbCreate(IQOSGenericSessionBean.java:92) 11:28:18,839 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 11:28:18,840 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 11:28:18,840 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 11:28:18,841 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324) 11:28:18,841 ERROR [STDERR] at org.jboss.ejb.StatelessSessionEnterpriseContext.<init>(StatelessSessionEnterpriseContext.java:52) 11:28:18,852 ERROR [STDERR] at org.jboss.ejb.plugins.StatelessSessionInstancePool.create(StatelessSessionInstancePool.java:61) 11:28:18,853 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:208) 11:28:18,853 ERROR [STDERR] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:63) 11:28:18,911 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:96) 11:28:18,912 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:219) 11:28:18,917 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61) 11:28:18,917 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:129) 11:28:18,917 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166) 11:28:18,918 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313) 11:28:18,918 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:705) 11:28:18,919 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491) 11:28:18,919 ERROR [STDERR] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:362) 11:28:18,920 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 11:28:18,920 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 11:28:18,921 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 11:28:18,921 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324) 11:28:18,922 ERROR [STDERR] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261) 11:28:18,922 ERROR [STDERR] at sun.rmi.transport.Transport$1.run(Transport.java:148) 11:28:18,923 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method) 11:28:18,923 ERROR [STDERR] at sun.rmi.transport.Transport.serviceCall(Transport.java:144) 11:28:18,924 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) 11:28:18,924 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) 11:28:18,924 ERROR [STDERR] at java.lang.Thread.run(Thread.java:536) 11:28:18,942 ERROR [LogInterceptor] TransactionRolledbackException, causedBy: -------------------------------------- The method createManagedConnection() from ManagedConnectionFactory is not even called, everything fails before attempting to create a ManagedConnection. Any suggestion of what might be the cause for this strange behaviour? If you need any other debug information, please let me know. Thanks Radu --- David Jencks <[EMAIL PROTECTED]> wrote: > Whats the stack trace. > > On 2002.06.04 17:59:06 -0400 guest dontcare wrote: > > Hi, > > In 3.0 I've got NullPointerException trying to > create > > a connection to one of my JCA resources, called > Log > > This was working fine in 3.0 RC3 > > Here is the client (running as an EJB): > > ................. > > LoggerFactoryImpl loggerFactory = > > > (LoggerFactoryImpl)initialContext.lookup("java:/Log"); > > logger = > (Logger)loggerFactory.getLogger(logFileName, > > level); > > logger.log(CLASS_NAME, Log.TRACE4, methodName, > "Bean > > successfully started"); > > .................. > > > > Here, the getLogger throws a NullPointerException > > > > The log-service.xml looks like this: > > > > <?xml version="1.0" encoding="UTF-8"?> > > <!DOCTYPE server> > > > > <server> > > <!--new configuration for new > ConnectionManager--> > > <mbean > > > code="org.jboss.resource.connectionmanager.NoTxConnectionManager" > > name="jboss.jca:service=NoTxCM,name=Log"> > > > > <!-- > > <attribute > > > name="TransactionManager">java:/TransactionManager</attribute> > > --> > > > > <depends > > > optional-attribute-name="ManagedConnectionFactoryName"> > > <mbean > > > code="org.jboss.resource.connectionmanager.RARDeployment" > > name="jboss.jca:service=NoTxTestLog,name=Log"> > > <!--hack till better deployment system--> > > <depends > > > optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=Log</depends> > > <attribute name="JndiName">Log</attribute> > > </mbean> > > </depends> > > > > <depends > > optional-attribute-name="ManagedConnectionPool"> > > <mbean > > > code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" > > name="jboss.jca:service=NoTxPool,name=Log"> > > <attribute name="MinSize">0</attribute> > > <attribute name="MaxSize">5000</attribute> > > <attribute > > name="BlockingTimeoutMillis">5000</attribute> > > <attribute > > name="IdleTimeoutMinutes">15</attribute> > > <!--criteria indicates if Subject (from > > security domain) or app supplied > > parameters (such as from > > getConnection(user, pw)) are used to distinguish > > connections in the pool. Choices are > > ByContainerAndApplication (use both), > > ByContainer (use Subject), > > ByApplication (use app supplied params > > only), > > ByNothing (all connections are > equivalent, > > usually if adapter supports > > reauthentication)--> > > <attribute > > name="Criteria">ByContainer</attribute> > > </mbean> > > </depends> > > <depends > > > optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager</depends> > > </mbean> > > > > </server> > > > > > > > > Is there something changed in the new 3.0 XML > > descriptor? > > Thanks > > Radu > > > > __________________________________________________ > > Do You Yahoo!? > > Yahoo! - Official partner of 2002 FIFA World Cup > > http://fifaworldcup.yahoo.com > > > > > _______________________________________________________________ > > > > Don't miss the 2002 Sprint PCS Application > Developer's Conference > > August 25-28 in Las Vegas -- > http://devcon.sprintpcs.com/adp/index.cfm > > > > _______________________________________________ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application > Developer's Conference > August 25-28 in Las Vegas -- > http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user