You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2009/10/01 10:16:23 UTC

[jira] Assigned: (HARMONY-6345) [classlib][sql] rowset.properties template causes an empty provider to be added in SyncFactory

     [ https://issues.apache.org/jira/browse/HARMONY-6345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison reassigned HARMONY-6345:
------------------------------------

    Assignee: Tim Ellison

> [classlib][sql] rowset.properties template causes an empty provider to be added in SyncFactory
> ----------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6345
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6345
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: all
>            Reporter: Catherine Hope
>            Assignee: Tim Ellison
>         Attachments: 6345.patch
>
>
> The default rowset.properties file in jre/lib has empty values to show the format of the file, but this causes an empty SyncProvider to be created so if you try and get an instance of all the registered providers, for example:
>   Enumeration providers = SyncFactory.getRegisteredProviders(); 
>   while (providers.hasMoreElements())
>     SyncFactory.getInstance(((SyncProvider)providers.nextElement()).getProviderID());
> Then you'll get a javax.sql.rowset.spi.SyncFactoryException: ClassNotFoundException:   <-- the provider is called ""
> 	at javax.sql.rowset.spi.ProviderImpl.getImpl(ProviderImpl.java:64)
> 	at javax.sql.rowset.spi.SyncFactory.getInstance(SyncFactory.java:215)
> The Sun equivalent properties file defines the default Sun SyncProvider classes, which is also means the name of the class is exposed, so I think the Harmony one should do this also.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.