[JBoss JIRA] Created: (JBCACHE-1224) Wrong Connection in JDBCCacheLoader
by Carsten Mjartan (JIRA)
Wrong Connection in JDBCCacheLoader
-----------------------------------
Key: JBCACHE-1224
URL: http://jira.jboss.com/jira/browse/JBCACHE-1224
Project: JBoss Cache
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Cache loaders
Affects Versions: 1.4.1.SP6, 1.4.1.SP5
Environment: 2 TreeCaches, each having 1 JDBCCacheLoader (passivation) using a different database
Reporter: Carsten Mjartan
Assigned To: Manik Surtani
I configured 2 JBossCaches as stated above. Both use CacheLoaders which use different Database Backends (using hsqldb) and with table creation turned on. After Startup both tables are created using the cached connection of the first cacheloader, so the second cacheloader goes mad.
I solved this for me by copying JDBCCacheLoader and replacing the ThreadLocal "connection" with a ThreadLocal Connection-Map using the url as the key, but I don't know if this may cause other problems (open connections?).
--
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
17 years, 1 month
[JBoss JIRA] Created: (JBCACHE-1168) Sometimes aquired locks are not released
by Jacek Halat (JIRA)
Sometimes aquired locks are not released
----------------------------------------
Key: JBCACHE-1168
URL: http://jira.jboss.com/jira/browse/JBCACHE-1168
Project: JBoss Cache
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: PojoCache
Affects Versions: 1.4.1.SP4
Environment: Windows XP, jrockit90_150_06
Solaris 10
Reporter: Jacek Halat
Assigned To: Jason T. Greene
Attachments: TransactionStormTest.java
Sometimes under heavy load acquired locks are not released - node is locked forever. Only what can we do is stop/start cache.
Main loop:
while (true) {
for (int x = 0; x < 2; x++) {
WorkThread t = new WorkThread(x == 1);
threads.add(t);
t.start();
}
for (WorkThread separateThread : threads) {
separateThread.join();
if (separateThread.getException() != null) {
//separateThread.getException().getMessage();
}
}
int locksNum = getNumberOfLocksHeld();
// System.out.println("Locks="+locksNum);
// checkpoint
if (cache.getNumberOfLocksHeld()>0){
System.out.println("ERROR, locks="+locksNum);
doDomethingOnCache(1);
}
assertEquals(0, locksNum);
}
Exception - after //checkpoint line numberOfLocks is grater than 0!
JUnit is provided to this issue, but this error is nondeterministic - sometimes fails after 5 seconds and another time after 20 minutes.
--
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
17 years, 1 month
[JBoss JIRA] Created: (EJBTHREE-748) The implementation of equals() in org.jboss.ejb3.ProxyUtils.handleCallLocally() throws a NPE when being passed a null argument.
by Nicolas Bielza (JIRA)
The implementation of equals() in org.jboss.ejb3.ProxyUtils.handleCallLocally() throws a NPE when being passed a null argument.
-------------------------------------------------------------------------------------------------------------------------------
Key: EJBTHREE-748
URL: http://jira.jboss.com/jira/browse/EJBTHREE-748
Project: EJB 3.0
Issue Type: Bug
Environment: Embedded EJB3 container
Reporter: Nicolas Bielza
When looking up an entity bean, we get a proxy which implements equals() in a broken way:
Here's an example:
// Proxy NPE test:
InitialContext ctx = new InitialContext();
Manager m = (Manager)ctx.lookup("ManagerAction/local");
try {
if(m != null) {
m.equals(null);
}
System.err.println("What bug ???");
} catch(NullPointerException e) {
System.err.println("ProxyUtils NPE bug detected.");
e.printStackTrace();
}
And the output:
ProxyUtils NPE bug detected.
java.lang.NullPointerException
at org.jboss.ejb3.ProxyUtils.handleCallLocally(ProxyUtils.java:156)
at org.jboss.ejb3.ProxyUtils.handleCallLocally(ProxyUtils.java:137)
at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:92)
at $Proxy34.equals(Unknown Source)
at com.alligacom.nett.NetTransferAdminInterface.<init>(NetTransferAdminInterface.java:49)
at com.alligacom.nett.NetTransferAdminInterface.main(NetTransferAdminI nterface.java:87)
The incriminated line (156) in ProxyUtils is:
return new Boolean(ih.toString().equals(args[0].toString()));
and should be:
return new Boolean(args[0] == null ? false : ih.toString().equals(args[0].toString()));
--
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
17 years, 1 month