[jboss-jira] [JBoss JIRA] Updated: (JBAS-6446) Blob.length or other methods fail on Blob when used from standalone java getting datasource from jboss.

Jason T. Greene (JIRA) jira-events at lists.jboss.org
Wed May 20 14:46:05 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBAS-6446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason T. Greene updated JBAS-6446:
----------------------------------

    Fix Version/s: JBossAS-6.0.0.Alpha1
                       (was: JBossAS-5.1.0.GA)


> 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-6.0.0.Alpha1
>
>
> 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

        



More information about the jboss-jira mailing list