• 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
Re: null EOModelGroup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: null EOModelGroup


  • Subject: Re: null EOModelGroup
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 14 Apr 2015 16:13:21 +0000
  • Thread-topic: null EOModelGroup

Ah.  You are probably missing the call to prime the application (loads up bundles, other setup):

public static void primeApplication(String mainBundleName,
                                    URL mainBundlePathURL,
                                    String nameOfApplicationSubclass)
This is used when calling into WebObjects programmatically (typically to use responseForComponentWithName) rather than running a WebObjects application standalone. This must be called before responseForComponentWithName is called. This cannot be used to load new NSBundles into the WebObjects runtime, either mainBundleName or mainBundlePathURL should reference an existing NSBundle.
Chuck

On 2015-04-14, 9:10 AM, "Calven Eggert" wrote:

As a tool. 


Calven


On Apr 14, 2015, at 12:09 PM, Chuck Hill <email@hidden> wrote:

Is that running as a regular web app, or a tool?  

On 2015-04-14, 7:06 AM, "Calven Eggert" wrote:

yes, I have been here before. :-)

This time around though I have no spaces in my paths.  I solved this issue this morning (it’s alway amazing how seeing on it clears the mind) by creating a new group like so:
        EOModelGroup modelGroup = new EOModelGroup();
        EOModelGroup.setDefaultGroup(modelGroup);

And then continue as usual adding my models to the group.



On Apr 13, 2015, at 5:37 PM, Chuck Hill <email@hidden> wrote:

See bottom of https://wiki.wocommunity.org/display/WEB/Project+Wonder+Installation+on+Windows?src="">

Looks like you have been here before :-)
http://lists.apple.com/archives/webobjects-dev/2009/Nov/msg01049.html


On 2015-04-13, 9:04 AM, "Calven Eggert" wrote:

Getting error when executing this line in a java app from the terminal. (works fine in Eclipse)

        EOModelGroup modelGroup = ERXModelGroup.defaultGroup();

java.lang.IllegalArgumentException: Attempt to insert null into an com.webobjects.foundation.NSMutableArray.
at com.webobjects.foundation.NSMutableArray.addObject(NSMutableArray.java:239)
at com.webobjects.eoaccess.EOModelGroup.modelGroupForLoadedBundles(EOModelGroup.java:700)
at com.webobjects.eoaccess.EOModelGroup.globalModelGroup(EOModelGroup.java:306)
at com.webobjects.eoaccess.EOModelGroup.defaultGroup(EOModelGroup.java:333)
at com.UHN.CancerRegistry.DailyImport.<init>(DailyImport.java:2257)
at com.UHN.CancerRegistry.DailyImport.main(DailyImport.java:204)

Is there additional setup I need to do in the java app?

Calven




_______________________________________________
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


Calven



 _______________________________________________
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: null EOModelGroup
      • From: Calven Eggert <email@hidden>
References: 
 >null EOModelGroup (From: Calven Eggert <email@hidden>)
 >Re: null EOModelGroup (From: Chuck Hill <email@hidden>)
 >Re: null EOModelGroup (From: Calven Eggert <email@hidden>)
 >Re: null EOModelGroup (From: Chuck Hill <email@hidden>)
 >Re: null EOModelGroup (From: Calven Eggert <email@hidden>)

  • Prev by Date: Re: null EOModelGroup
  • Next by Date: Re: null EOModelGroup
  • Previous by thread: Re: null EOModelGroup
  • Next by thread: Re: null EOModelGroup
  • Index(es):
    • Date
    • Thread