[ 
https://issues.apache.org/jira/browse/HIVE-1203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838960#action_12838960
 ] 

Vladimir Klimontovich commented on HIVE-1203:
---------------------------------------------

I think so. Exception could be thrown not only from Class.forName, but also 
from Class.newInstance. Actually it was my case as due to incorrect settings 
constructor of my InputFormat was throwing an exception (and this exception was 
being swallowed).

Also, it's a general rule in most java projects (to add exception as a cause 
esception). More information in stacktrace never hurts :) 
(Although I'm not sure that Hive should follow this rule)

> HiveInputFormat.getInputFormatFromCache "swallows"  cause exception when 
> trowing IOExcpetion
> --------------------------------------------------------------------------------------------
>
>                 Key: HIVE-1203
>                 URL: https://issues.apache.org/jira/browse/HIVE-1203
>             Project: Hadoop Hive
>          Issue Type: Bug
>    Affects Versions: 0.4.0, 0.4.1, 0.5.0
>            Reporter: Vladimir Klimontovich
>             Fix For: 0.4.2, 0.5.1, 0.6.0
>
>         Attachments: 0.4.patch, 0.5.patch, trunk.patch
>
>
> To fix this it's simply needed to add second parameter to IOException 
> constructor. Patches for 0.4, 0.5 and trunk are available.

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

Reply via email to