Preserve inner exception information during rethrow

Change-Id: I1e841e3b2a043afab53e2f0857dc93449e1d867d
Fix conversion of java.net.URL to java.io.File

Change-Id: I7a0b51bc73b718f0e50db249d4ec737e0a26fa6e