On Nov 3, 2009, at 4:49 PM, Paul Hoadley wrote:

On 04/11/2009, at 10:49 AM, Chuck Hill wrote:

Find where those messages are coming from.

Here's a stack trace from ERXModelGroup.loadModelsFromLoadedBundles():

java.lang.Exception: Stack trace
        at java.lang.Thread.dumpStack(Thread.java:1230)
at er .extensions .eof.ERXModelGroup.loadModelsFromLoadedBundles(ERXModelGroup.java:125) at er.extensions.ERXExtensions.defaultModelGroup(ERXExtensions.java: 135)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun .reflect .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun .reflect .DelegatingMethodAccessorImpl .invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
at com .webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java: 122) at com.webobjects.foundation._NSDelegate._perform(_NSDelegate.java: 223) at com.webobjects.foundation._NSDelegate.perform(_NSDelegate.java: 155) at com.webobjects.eoaccess.EOModelGroup.defaultGroup(EOModelGroup.java: 328) at net.logicsquad.pbf.Application.didFinishLaunching(Application.java:29) at er .extensions .appserver.ERXApplication.didFinishLaunching(ERXApplication.java:1144)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun .reflect .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun .reflect .DelegatingMethodAccessorImpl .invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
at com .webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java: 122) at com.webobjects.foundation.NSNotificationCenter $_Entry.invokeMethod(NSNotificationCenter.java:588) at com .webobjects .foundation .NSNotificationCenter.postNotification(NSNotificationCenter.java:532) at com .webobjects .foundation .NSNotificationCenter.postNotification(NSNotificationCenter.java:546) at com.webobjects.appserver.WOApplication.run(WOApplication.java: 1239) at er.extensions.appserver.ERXApplication.run(ERXApplication.java: 1225) at com.webobjects.appserver.WOApplication.main(WOApplication.java: 548) at er.extensions.appserver.ERXApplication.main(ERXApplication.java: 716)
        at net.logicsquad.pbf.Application.main(Application.java:13)

This should be completed BEFORE the app dispatches the first request. I also suspect that you have done something odd that you don't see as odd.

Highly likely.  Two additional things:

1. The class hierarchy is Application -> LSApplication -> ERXApplication. Application.main() is just from the standard Wonder template:

        public static void main(String[] argv) {
                ERXApplication.main(argv, Application.class);
        }

LSApplication has no main().  Is _this_ wrong?

No.


Missing a call to super someplace?

Where were you thinking? LSApplication.didFinishLaunching() didn't have a call to super, but putting one in seems to have no effect. Should it have one?

Yes, it should have one.   For completeness, nothing else.




Not using ERXMainRunner?

No, not using that.


ERXApplication.main is what I was thinking of.


Chuck


--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







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

This email sent to arch...@mail-archive.com

Reply via email to