[JBoss JIRA] Created: (JBPORTAL-1855) J2EE Timer Service deployment blocks proper EJB3.0 deployment
by Pawel Radecki (JIRA)
J2EE Timer Service deployment blocks proper EJB3.0 deployment
-------------------------------------------------------------
Key: JBPORTAL-1855
URL: http://jira.jboss.com/jira/browse/JBPORTAL-1855
Project: JBoss Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Portal Core, Portal Server
Affects Versions: 2.6.2 Final
Environment: Windows XP Home PL (Polish),
PC hardware: Athlon X2 4000+ processor, AMD Gigabyte AMD690, DDRAM 1024 DDR2
Reporter: Pawel Radecki
Assigned To: Julien Viet
Priority: Minor
Jboss-portal can't deploy EJBs 3.0 properly when deploys J2EE Timer Service. J2EE Timer Service must be buggy...
Everything worked fine in previous year but not now... Strange! It may depend on time of deployment.
The Exception thrown during Jboss start-up is as follows:
2008-01-01 11:53:38,406 WARN [org.jboss.system.ServiceController] Problem starting service jboss.j2ee:jar=us-counties-ejb.jar,name=PortletFacade,service=EJB3
java.lang.NullPointerException
at org.jboss.ejb.txtimer.DatabasePersistencePolicy.listTimerHandles(DatabasePersistencePolicy.java:165)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months
[JBoss JIRA] Created: (JBCACHE-1253) Unneeded copying of data in Notifier
by Bela Ban (JIRA)
Unneeded copying of data in Notifier
------------------------------------
Key: JBCACHE-1253
URL: http://jira.jboss.com/jira/browse/JBCACHE-1253
Project: JBoss Cache
Issue Type: Task
Security Level: Public (Everyone can see)
Affects Versions: 2.1.0.CR2
Reporter: Bela Ban
Assigned To: Manik Surtani
All Notifier.notifyXXX() methods are written like this:
public void notifyNodeActivated(Fqn fqn, boolean pre, Map data, InvocationContext ctx)
{
boolean originLocal = ctx.isOriginLocal();
Map dataCopy = copy(data); // <===== COPY !
Transaction tx = ctx.getTransaction();
List<ListenerInvocation> listeners = listenerInvocations.get(NodeActivated.class);
if (listeners != null && listeners.size() > 0)
{
InvocationContext backup = resetInvocationContext(ctx);
// ... bla bla
}
}
The data (hashmap) is copied regardless of whether there are actually any listeners, this leads to poor performance. I saw this as hotspot #1 in my perf tests with JBossCache in JProfiler.
FIX: copy only if there are any listeners
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months