ERXResourceManager can't find my resource
ERXResourceManager can't find my resource
- Subject: ERXResourceManager can't find my resource
- From: Kamal D Shah <email@hidden>
- Date: Tue, 20 Jan 2009 16:47:18 +0530
Hi,
I wasn't using Wonder until now and used to get resources using WOResourceManager like this (in my DirectAction class)
WOResourceManager resMgr = WOApplication.application().resourceManager(); String mapFilePath = resMgr.pathURLForResourceNamed("MyMap.xml", null, null).toString();
I would get my file path and would happily use it.
I recently switched to Wonder and changed the code to this:
ERXResourceManager resMgr = (ERXResourceManager) ERXApplication.application().resourceManager(); String mapFilePath = resMgr.pathURLForResourceNamed("MyMap.xml", null, null).toString();
I get a NullPointerException with the above code because resMgr.pathURLForResourceNamed evaluates to null.
Anything I'm missing?
Thanks in advance... |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden