search for "static {" across all of your source? again, this was just a stab in the dark, but it's a likely candidate -- people sometimes load caches or shared objects from static blocks and it's a really good way to shoot yourself in the foot.

ms

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

On 04/11/2009, at 6:45 AM, Chuck Hill wrote:

I've never seen this and can't think of why they would not be loaded when the framework is referenced. Are some of the frameworks not getting referenced until later? Does adding

NSBundle.allBundles() to the Application constructor help?

No.

My only other idea is that you are somehow messing with application loading.

On 04/11/2009, at 6:52 AM, Mike Schrag wrote:

You're doing something weird. Going completely out on a limb, I nominate touching EOF in a static initialization block as your problem.


If I am, I don't see it.  Here's the Application constructor:

        public Application() {
                ERXApplication.log.info("Welcome to " + name() + " !");
                // Ensure that the DA request handler is the default
                setDefaultRequestHandler(new ERXDirectActionRequestHandler());
        }

Here's the parent's constructor:

        public LSApplication() {
                super();
                setIncludeCommentsInResponses(INCLUDE_COMMENTS_IN_RESPONSE);
                // Set the default TZ for NSTimestamps to GMT
                NSTimeZone.setDefaultTimeZone(NSTimeZone.getGMT());
                // Set the default TZ for Java
                TimeZone.setDefault(TimeZone.getTimeZone("GMT"));
                return;
        }

That parent class extends ERXApplication. The default page contains this method:

        public NSArray<Notice> allNotices() {
                return Notice.allCurrentActiveNotices(editingContext());
        }

And that's where the trouble starts. AFAICS, I'm not doing anything with EOF until didFinishLaunching(). I don't think I've got any static initialization blocks touching EOF.


--
Paul.

w  http://logicsquad.net/
h  http://paul.hoadley.name/


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

This email sent to [email protected]

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

This email sent to [email protected]

Reply via email to