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

Jay Howell (JIRA) jira-events at lists.jboss.org
Mon Feb 2 11:04:44 EST 2009


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)
    Affects Versions: JBossAS-5.0.0.GA, JBossAS-4.2.3.GA, JBossAS-5.0.1.GA
            Reporter: Jay Howell
             Fix For: JBossAS-4.2.4.GA, JBossAS-5.1.0.Beta1, 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