[JBoss JIRA] Created: (JBAS-4176) Error in delist masks the real error creating the connection handle in BaseConnectionManager2
by Adrian Brock (JIRA)
Error in delist masks the real error creating the connection handle in BaseConnectionManager2
---------------------------------------------------------------------------------------------
Key: JBAS-4176
URL: http://jira.jboss.com/jira/browse/JBAS-4176
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: JCA service
Reporter: Adrian Brock
Assigned To: Weston Price
Fix For: JBossAS-4.2.0.CR1
There is a problem with the error reporting in BaseConnectionManager2.allocationConnection().
When it can't get a connection handle, it invokes managedConnectionDisconnected() to
make sure any work already done is undone, e.g. delist the resource and return to the pool.
The problem is that an error thrown from managedConnectionDisconnected()
will be given to the user rather than the original error thrown when getting the handle.
// Ask the managed connection for a connection
Object connection = null;
try
{
connection = cl.getManagedConnection().getConnection(subject, cri);
}
catch (Throwable t)
{
// HERE: Error from this method
managedConnectionDisconnected(cl);
// Means this original error is not thrown
JBossResourceException.rethrowAsResourceException(
"Unchecked throwable in ManagedConnection.getConnection() cl=" + cl, t);
}
In fact, if we do get an error asking for a handle, we should probably just quietly (no logging above DEBUG)
destroy the connection and then rethrow the original error.
i.e.
catch (Throwable t)
{
// HERE: Destroy the connection
returnManagedConnection(cl, true);
JBossResourceException.rethrowAsResourceException(
"Unchecked throwable in ManagedConnection.getConnection() cl=" + cl, t);
}
--
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, 11 months
[JBoss JIRA] Created: (JBREM-761) NPE in BisocketServerInvoker$ControlConnectionThread
by Ron Sigal (JIRA)
NPE in BisocketServerInvoker$ControlConnectionThread
----------------------------------------------------
Key: JBREM-761
URL: http://jira.jboss.com/jira/browse/JBREM-761
Project: JBoss Remoting
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 2.4.0.Beta1 (Pinto)
Reporter: Ron Sigal
Assigned To: Ron Sigal
Fix For: 2.4.0.Beta1 (Pinto)
>From Tim Fox:
Here's one I saw today:
@main 18:11:54,129 INFO [FailoverTest] tearing down
Exception in thread "control: Socket[addr=/127.0.0.1,port=3243,localport=55075]" java.lang.NullPointerException
at org.jboss.remoting.transport.bisocket.BisocketServerInvoker$ControlConnectionThread.run(BisocketServerInvoker.java:669)
It seems pretty harmless, but nevertheless I thought I'd inform you.
--
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, 12 months
[JBoss JIRA] Created: (JBREM-757) Implement quick Client.removeListener() for polled callbacks.
by Ron Sigal (JIRA)
Implement quick Client.removeListener() for polled callbacks.
-------------------------------------------------------------
Key: JBREM-757
URL: http://jira.jboss.com/jira/browse/JBREM-757
Project: JBoss Remoting
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Affects Versions: 2.4.0.Beta1 (Pinto)
Reporter: Ron Sigal
Assigned To: Ron Sigal
Fix For: 2.4.0.Beta1 (Pinto)
For JBREM-657, quick org.jboss.remoting.Client.disconnect() and quick Client.removeListener() facilities were implemented which impose a per invocation timeout on any network i/o that occurs during these methods. The per invocation timeout is set by calling Client.setDisconnectTimeout(). When the disconnect timeout is set to 0, network i/o is avoided entirely.
However, the quick version of Client.removeListener() was implemented only for push callbacks. It should also be implemented for pull callbacks.
--
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, 12 months