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

Reply via email to