users@glassfish.java.net

Re: NullPointerException in BaseCache if spring is used.

From: sankara rao bhogi <Sankara.Rao_at_Sun.COM>
Date: Tue, 24 Apr 2007 17:29:55 +0530

Ingo,

 Which build are you using? Have you tried with latest builds?

regards
sankar



glassfish_at_javadesktop.org wrote:
> Hi,
>
> I'm currently trying to deploy our application to glassfish (successfully running in OracleAS, JBOSS and SAP Netweaver). But after deployment the application scheduler (which tries to persist something) fails with the following exception:
>
> java.lang.NullPointerException
> at com.sun.appserv.util.cache.BaseCache.hash(BaseCache.java:192)
> at com.sun.appserv.util.cache.BaseCache.get(BaseCache.java:313)
> at com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.getExistingResourceList(J2EETransactionManagerImpl.java:753)
> at com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.delistComponentResources(J2EETransactionManagerImpl.java:597)
> at com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.delistComponentResources(J2EETransactionManagerImpl.java:419)
> at com.sun.enterprise.distributedtx.UserTransactionImpl.commit(UserTransactionImpl.java:179)
> at org.springframework.transaction.jta.JtaTransactionManager.doCommit(JtaTransactionManager.java:781)
> at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:496)
> at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:469)
> at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:126)
>
> I googled a bit and in the spring forum someone says this has something to do with the glassfish transaction handling for non-EJB-stuff.
>
> Is there anything I can do to get this fix or to get around this somehow?
>
> A second issue seems to be spring is unable to load its configuration files, which are located in WEB-INF of one included war file (works fine on other app-server).
>
> Kind Regards,
>
> Ingo
> [Message sent by forum member 'irockel' (irockel)]
>
> http://forums.java.net/jive/thread.jspa?messageID=213919
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>


-- 
"The best insurance for tomorrow is the effective use of today.”
-- Why Smart People Do Dumb Things by Dr. Mortimer Feinberg and John