• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ERXResourceManager can't find my resource
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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...

Thanks
Kamal



 _______________________________________________
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

  • Follow-Ups:
    • Re: [Wonder-disc] ERXResourceManager can't find my resource
      • From: Mike Schrag <email@hidden>
  • Prev by Date: ant clean install versus Eclipse/WOLips clean install
  • Next by Date: WOLips files and SVN differences
  • Previous by thread: Re: ant clean install versus Eclipse/WOLips clean install
  • Next by thread: Re: [Wonder-disc] ERXResourceManager can't find my resource
  • Index(es):
    • Date
    • Thread