[
https://jira.jboss.org/jira/browse/JBAS-6446?page=com.atlassian.jira.plug...
]
Jason T. Greene updated JBAS-6446:
----------------------------------
Fix Version/s: JBossAS-5.1.0.GA
(was: JBossAS-5.1.0.CR1)
Assignee: Jay Howell
Jay,
Feel free to assign this to Jesper once you determine what's wrong.
Blob.length or other methods fail on Blob when used from standalone
java getting datasource from jboss.
-------------------------------------------------------------------------------------------------------
Key: JBAS-6446
URL:
https://jira.jboss.org/jira/browse/JBAS-6446
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: JCA service
Reporter: Jay Howell
Assignee: Jay Howell
Fix For: JBossAS-5.1.0.GA
When we add the method hashes, we don't add any for blobs in the
org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService.
/**
* Calculate the method hashes
*/
protected void calculateMethodHases() throws Exception
{
Method[] methods = DataSource.class.getMethods();
for(int m = 0; m < methods.length; m ++)
{
Method method = methods[m];
Long hash = new Long(MarshalledInvocation.calculateHash(method));
marshalledInvocationMapping.put(hash, method);
}
// Get the Long to Method mappings
Map m = MarshalledInvocation.methodToHashesMap(Connection.class);
displayHashes(m);
marshalledInvocationMapping.putAll(m);
m = MarshalledInvocation.methodToHashesMap(Statement.class);
displayHashes(m);
marshalledInvocationMapping.putAll(m);
m = MarshalledInvocation.methodToHashesMap(CallableStatement.class);
displayHashes(m);
marshalledInvocationMapping.putAll(m);
m = MarshalledInvocation.methodToHashesMap(PreparedStatement.class);
displayHashes(m);
marshalledInvocationMapping.putAll(m);
m = MarshalledInvocation.methodToHashesMap(ResultSet.class);
displayHashes(m);
marshalledInvocationMapping.putAll(m);
m = MarshalledInvocation.methodToHashesMap(DatabaseMetaData.class);
displayHashes(m);
marshalledInvocationMapping.putAll(m);
}
I'm still currently getting information and will add a test case for this when
I'm done.
--
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