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


public static void 
primeApplication(String<http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html>
 mainBundleName,
                                    
URL<http://java.sun.com/j2se/1.5.0/docs/api/java/net/URL.html> 
mainBundlePathURL,
                                    
String<http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html> 
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 protected]<mailto:[email protected]>> 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 protected]<mailto:[email protected]>> wrote:

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

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 protected]<mailto:[email protected]>)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/chill%40gevityinc.com

This email sent to [email protected]<mailto:[email protected]>


Calven



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to