This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
> R/Sir
>
> I am trying to overlay a logo in jython script.
> And tracing down I find out that it calls:
> public static Image getImage(String file, Class c, boolean cache,
> boolean returnNullIfNotFound) in
> GuiUtils.java
>
> In executing this method, this line is giving uncaught exception:
> image = Toolkit.getDefaultToolkit().createImage(Misc.getURL(file, c));
>
> The reason is that the method Misc.getURL(file, c) is returning null.
>
Ghansham,
It sounds like the path of the file is incorrected or the file is not in
the right place, could you double check?
Yuan
> Please help
>
>
> regards
> Ghansham
>
>
>
Ticket Details
===================
Ticket ID: UIB-794005
Department: Support IDV
Priority: Normal
Status: Open