[JBoss JIRA] Created: (JBVFS-134) IterableTimedVFSCache doesn't cache entries once they get expired
by Toshiya Kobayashi (JIRA)
IterableTimedVFSCache doesn't cache entries once they get expired
-----------------------------------------------------------------
Key: JBVFS-134
URL: https://jira.jboss.org/jira/browse/JBVFS-134
Project: JBoss VFS
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 2.1.3.SP1
Reporter: Toshiya Kobayashi
Assignee: John Bailey
When resolving virtual files,
1. DefaultVFSRegistry checks expiration of root context by IterableTimedVFSCache.findContext() which is implemented based on TimedCachePolicy.getValidKeys()
2. If the context is expired, a new context is created and CachePolicyVFSCache.putContext() is called, but the method checks the existence of cache entry by TimedCachePolicy.peek() which doesn't care about its expiration. Then the new entry won't be inserted into the cache and the expiration time of the old entry won't be updated.
So once cache entries are expired, caching won't work and contexts will be created again and again.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 9 months
[JBoss JIRA] Reopened: (JBAS-6795) NullPointerException thrown from getEntityManagerFactory() when persistence unit is packaged with WAR
by Shelly McGowan (JIRA)
[ https://jira.jboss.org/browse/JBAS-6795?page=com.atlassian.jira.plugin.sy... ]
Shelly McGowan reopened JBAS-6795:
----------------------------------
> NullPointerException thrown from getEntityManagerFactory() when persistence unit is packaged with WAR
> -----------------------------------------------------------------------------------------------------
>
> Key: JBAS-6795
> URL: https://jira.jboss.org/browse/JBAS-6795
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Deployers
> Reporter: Shelly McGowan
> Assignee: Carlo de Wolf
> Priority: Critical
> Fix For: 6.0.0.M5
>
>
> 2009-04-15 00:26:45,056 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (ResourceContainer.invoker.nonDaemon-12) deploy, ctxPath=/web_pkg_standalone_component_web
> 2009-04-15 00:26:45,082 ERROR [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (ResourceContainer.invoker.nonDaemon-12) ENC setup failed
> java.lang.NullPointerException
> at org.jboss.injection.PersistenceUnitHandler.getEntityManagerFactory(PersistenceUnitHandler.java:172)
> at org.jboss.injection.PersistenceUnitHandler.getFactory(PersistenceUnitHandler.java:163)
> at org.jboss.injection.PuEncInjector.inject(PuEncInjector.java:54)
> at org.jboss.web.tomcat.service.TomcatInjectionContainer.populateEnc(TomcatInjectionContainer.java:482)
> at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:471)
> at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388)
> at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
> at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
> at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
> at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
> at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
> This is reproducable with the following packaging scenarios:
> persistence unit in the WEB-INF/classes directory of a standalone .war
> persistence unit in the WEB-INF/lib directory of a standalone .war
> persistence unit in the lib directory of an enterprise archive containing a .war and and ejb.jar
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 9 months
[JBoss JIRA] Resolved: (JBAS-6795) NullPointerException thrown from getEntityManagerFactory() when persistence unit is packaged with WAR
by Shelly McGowan (JIRA)
[ https://jira.jboss.org/browse/JBAS-6795?page=com.atlassian.jira.plugin.sy... ]
Shelly McGowan resolved JBAS-6795.
----------------------------------
Fix Version/s: 6.0.0.M5
(was: 6.0.0.CR1)
Resolution: Done
> NullPointerException thrown from getEntityManagerFactory() when persistence unit is packaged with WAR
> -----------------------------------------------------------------------------------------------------
>
> Key: JBAS-6795
> URL: https://jira.jboss.org/browse/JBAS-6795
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Deployers
> Reporter: Shelly McGowan
> Assignee: Carlo de Wolf
> Priority: Critical
> Fix For: 6.0.0.M5
>
>
> 2009-04-15 00:26:45,056 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (ResourceContainer.invoker.nonDaemon-12) deploy, ctxPath=/web_pkg_standalone_component_web
> 2009-04-15 00:26:45,082 ERROR [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (ResourceContainer.invoker.nonDaemon-12) ENC setup failed
> java.lang.NullPointerException
> at org.jboss.injection.PersistenceUnitHandler.getEntityManagerFactory(PersistenceUnitHandler.java:172)
> at org.jboss.injection.PersistenceUnitHandler.getFactory(PersistenceUnitHandler.java:163)
> at org.jboss.injection.PuEncInjector.inject(PuEncInjector.java:54)
> at org.jboss.web.tomcat.service.TomcatInjectionContainer.populateEnc(TomcatInjectionContainer.java:482)
> at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:471)
> at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388)
> at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
> at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
> at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
> at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
> at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
> This is reproducable with the following packaging scenarios:
> persistence unit in the WEB-INF/classes directory of a standalone .war
> persistence unit in the WEB-INF/lib directory of a standalone .war
> persistence unit in the lib directory of an enterprise archive containing a .war and and ejb.jar
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 9 months