• 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: Weird WOComponentDefinition error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird WOComponentDefinition error


  • Subject: Re: Weird WOComponentDefinition error
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 12 Mar 2004 09:30:07 -0800

Not which component but which *dynamic element* is being created when then error occurs? What are the bindings for it? It looks like something in wrong in the WOD files of these pages. Printing out the parameters to dynamicElementWithName will help to narrow down which element(s) are causing the problem.

Chuck

On Mar 12, 2004, at 7:57 AM, Erlandsson Martin wrote:

Thanks, but I already did that. That's how I found out which components were causing the problems.
Now, I have decompiled WOApplication.java in order to get some more information. I can see the following:





For OK components, the following method sequence can be observed:
1. public WOComponentDefinition _componentDefinition(String s, NSArray nsarray)
2. private Object _componentDefinition(String s, String s1, String s2, boolean flag) --> OK



But for the two NOK components, the sequence is:
1. public WOComponentDefinition _componentDefinition(String s, NSArray nsarray)
2. public WOComponentDefinition _componentDefinitionFromClassNamed(String s) --> IllegalStateException



due to this code in WOApplication.componentDefinition(String s, NSArray nsarray):


        if(obj == "NotFoundMarker" || obj == null)
            obj = _componentDefinitionFromClassNamed(s);
        return (WOComponentDefinition)obj;


Since It is not trivial to see exactly what happens in _componentDefinition(String s, NSArray nsarray), I cannot determine why the above condition evaluates to true. Can someone give me a clue to why componentDefinitionFromClassNamed would be called for some components and not for others?


I have tried to turn off cachingEnabled, but no change.

Thanks a lot for any advice. This is kind of spooky...


/Martin




-----Original Message-----
From: Chuck Hill [mailto:email@hidden]
Sent: den 11 mars 2004 18:17
To: Erlandsson Martin
Cc: email@hidden
Subject: Re: Weird WOComponentDefinition error

It appears to be failing while creating a dynamic element:
at
com.webobjects.appserver.WOApplication.dynamicElementWithName(WOApplic at
ion.java:2042)


Try overriding this method and log out the parameters.  That may
provide a clue as to what is wrong.

Chuck


On Mar 10, 2004, at 11:19 PM, Erlandsson Martin wrote:

Hi list!

We have a wo application ("MyApplication.woa" below) with a number of
different templates that extend WOComponent. After converting from
WO4.5 to WO5, two of these refuse to be instantiated , with the
following
exception:

java.lang.IllegalStateException: Unable to find framework named
"MyApplication".
at
com.webobjects.appserver._private.WOComponentDefinition.<init>(WOComp on
e
ntDefinition.java:179)
at
com.webobjects.appserver.WOApplication._componentDefinitionFromClassN am
e
d(WOApplication.java:2350)
at
com.webobjects.appserver.WOApplication._componentDefinition(WOApplica ti
o
n.java:2445)
at
com.webobjects.appserver.WOApplication.dynamicElementWithName(WOAppli ca
t
ion.java:2042)
at
com.webobjects.appserver._private.WOSwitchComponent._realComponentWit hN
a
me(WOSwitchComponent.java:111)
at
com.webobjects.appserver._private.WOSwitchComponent.appendToResponse( WO
S
witchComponent.java:193)
at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResp on
s
e(WODynamicGroup.java:121)
at
com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WOD yn
a
micGroup.java:130)
at
com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.jav a:
9
92)



All other components are being loaded and instantiated correctly, and I can't see how the two problem templates differ from the rest. Reflection is used to find the class names.

How can I solve our further analyze this problem?


Thanks,

/MartinA
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

A
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >RE: Weird WOComponentDefinition error (From: "Erlandsson Martin" <email@hidden>)

  • Prev by Date: Re: Weird WOComponentDefinition error
  • Next by Date: Re[2]: Gini
  • Previous by thread: Re: Weird WOComponentDefinition error
  • Next by thread: Re: Weird WOComponentDefinition error
  • Index(es):
    • Date
    • Thread