You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Warner Onstine <sw...@warneronstine.com> on 2005/06/29 19:58:56 UTC

very strange exception

So, I am developing a Tapestry application and we have started adding  
in components. This the third time I have run into this error and  
cannot figure out the root cause. The second I ran into it I changed  
the .jwc file (removed some extraneous xml) and it went ahead just fine  
no problem. I have since made some other changes and am getting the  
same exact error again (these changes are unrelated to the component).

Here is the error (with part of the stack trace):
org.apache.tapestry.ApplicationRuntimeException
Method 'public abstract java.lang.String  
com.stchome.pam.tapestry.components.NameSet.getName()' (declared in  
class com.stchome.pam.tapestry.components.NameSet) has no  
implementation in class com.stchome.pam.tapestry.components.NameSet (or  
enhanced subclass  
com.stchome.pam.tapestry.components.NameSet$Enhance_17).
location:	context:/WEB-INF/components/NameSet.jwc, line 7, column 125
Stack Trace:
org.apache.tapestry.enhance.DefaultComponentClassEnhancer.validateEnhanc 
edClass(DefaultComponentClassEnhancer.java:203)
org.apache.tapestry.enhance.DefaultComponentClassEnhancer.constructCompo 
nentClass(DefaultComponentClassEnhancer.java:146)
org.apache.tapestry.enhance.DefaultComponentClassEnhancer.getEnhancedCla 
ss(DefaultComponentClassEnhancer.java:97)
org.apache.tapestry.pageload.PageLoader.instantiateComponent(PageLoader. 
java:603)
org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.ja 
va:483)

The odd thing is this:
While we have an abstract class for NameSet, there is no method for  
getName, and there is no property called name in the .jwc file.

I am running it on tomcat 4.1.30 (although had the same exact problem  
on 5.0.something.

Any ideas on this, it's very irritating. If need be, I'll attach the  
.jwc and .html files.

-warner


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: very strange exception

Posted by Warner Onstine <sw...@warneronstine.com>.
Ahaha! That sounds like the likely culprit. I will check that out.

Why would it work otherwise though if that isn't implemented? Also, if  
that's a needed method to implement how come it is abstract instead of  
a regular method?

-warner

On Jun 29, 2005, at 11:33 AM, Norbert Sándor wrote:

> You probably haven't implemented the IFormComponent.getName() method.
>
> Br,
> Norbi
>
> ----- Original Message ----- From: "Warner Onstine"  
> <sw...@warneronstine.com>
> To: "Tapestry users" <ta...@jakarta.apache.org>
> Sent: Wednesday, June 29, 2005 8:27 PM
> Subject: Re: very strange exception
>
>
>> Hmm, not quite following. NameSet is extending BaseComponent and   
>> implements IFormComponent.
>> I fixed it again by slightly modifying NameSet.jwc (added a line  
>> before  the component spec).
>> -warner
>> On Jun 29, 2005, at 11:14 AM, Geoff Longman wrote:
>>> NameSet in a class hierarchy? Not sure how your particular situation
>>> is happening but looking at
>>>
>>>    
>>> org.apache.tapestry.enhance.DefaultComponentClassEnhancer.validateEnh 
>>> an cedClass()
>>>
>>> I see that it walks up the class hierarchy looking for abstract  
>>> method
>>> declarations that  have not been implemented by Tapestry in the
>>> generated subclass.
>>>
>>> So, I would look up in the hierarchy and ensure there are no
>>> unimplement abstract methods that tapestry would miss at enhancement
>>> time (no <property-specification> etc).
>>>
>>> Geoff
>>>
>>> On 6/29/05, Warner Onstine <sw...@warneronstine.com> wrote:
>>>> So, I am developing a Tapestry application and we have started  
>>>> adding
>>>> in components. This the third time I have run into this error and
>>>> cannot figure out the root cause. The second I ran into it I changed
>>>> the .jwc file (removed some extraneous xml) and it went ahead just   
>>>> fine
>>>> no problem. I have since made some other changes and am getting the
>>>> same exact error again (these changes are unrelated to the  
>>>> component).
>>>>
>>>> Here is the error (with part of the stack trace):
>>>> org.apache.tapestry.ApplicationRuntimeException
>>>> Method 'public abstract java.lang.String
>>>> com.stchome.pam.tapestry.components.NameSet.getName()' (declared in
>>>> class com.stchome.pam.tapestry.components.NameSet) has no
>>>> implementation in class com.stchome.pam.tapestry.components.NameSet  
>>>>  (or
>>>> enhanced subclass
>>>> com.stchome.pam.tapestry.components.NameSet$Enhance_17).
>>>> location:       context:/WEB-INF/components/NameSet.jwc, line 7,   
>>>> column 125
>>>> Stack Trace:
>>>> org.apache.tapestry.enhance.DefaultComponentClassEnhancer.validateEn 
>>>> ha nc
>>>> edClass(DefaultComponentClassEnhancer.java:203)
>>>> org.apache.tapestry.enhance.DefaultComponentClassEnhancer.constructC 
>>>> om po
>>>> nentClass(DefaultComponentClassEnhancer.java:146)
>>>> org.apache.tapestry.enhance.DefaultComponentClassEnhancer.getEnhance 
>>>> dC la
>>>> ss(DefaultComponentClassEnhancer.java:97)
>>>> org.apache.tapestry.pageload.PageLoader.instantiateComponent(PageLoa 
>>>> de r.
>>>> java:603)
>>>> org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoade 
>>>> r. ja
>>>> va:483)
>>>>
>>>> The odd thing is this:
>>>> While we have an abstract class for NameSet, there is no method for
>>>> getName, and there is no property called name in the .jwc file.
>>>>
>>>> I am running it on tomcat 4.1.30 (although had the same exact  
>>>> problem
>>>> on 5.0.something.
>>>>
>>>> Any ideas on this, it's very irritating. If need be, I'll attach the
>>>> .jwc and .html files.
>>>>
>>>> -warner
>>>>
>>>>
>>>> -------------------------------------------------------------------- 
>>>> -
>>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail:  
>>>> tapestry-user-help@jakarta.apache.org
>>>>
>>>>
>>>
>>>
>>> -- 
>>> The Spindle guy.           http://spindle.sf.net
>>> Get help with Spindle:
>>> http://lists.sourceforge.net/mailman/listinfo/spindle-user
>>> Announcement Feed:
>>> http://www.jroller.com/rss/glongman?catname=/Announcements
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail:  
>>> tapestry-user-help@jakarta.apache.org
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: very strange exception

Posted by Robert Zeigler <ro...@scazdl.org>.
Norbert Sándor wrote:
> You probably haven't implemented the IFormComponent.getName() method.
> 
> Br,
> Norbi

Hm, this sounds right on the money; this is exactly the reason that I
have gotten this exception before: implement IFormComponent, and don't
specify a "name" property in the .jwc.  Looks like you've been bit by
the fact that your class is abstract, so the compiler isn't going to
whine about the fact that some methods of the IFormComponent interface
aren't defined. :)

Robert

> 
> ----- Original Message ----- From: "Warner Onstine"
> <sw...@warneronstine.com>
> To: "Tapestry users" <ta...@jakarta.apache.org>
> Sent: Wednesday, June 29, 2005 8:27 PM
> Subject: Re: very strange exception
> 
> 
>> Hmm, not quite following. NameSet is extending BaseComponent and 
>> implements IFormComponent.
>>
>> I fixed it again by slightly modifying NameSet.jwc (added a line
>> before  the component spec).
>>
>> -warner
>>
>> On Jun 29, 2005, at 11:14 AM, Geoff Longman wrote:
>>
>>> NameSet in a class hierarchy? Not sure how your particular situation
>>> is happening but looking at
>>>
>>>  
>>> org.apache.tapestry.enhance.DefaultComponentClassEnhancer.validateEnhan
>>> cedClass()
>>>
>>> I see that it walks up the class hierarchy looking for abstract method
>>> declarations that  have not been implemented by Tapestry in the
>>> generated subclass.
>>>
>>> So, I would look up in the hierarchy and ensure there are no
>>> unimplement abstract methods that tapestry would miss at enhancement
>>> time (no <property-specification> etc).
>>>
>>> Geoff
>>>
>>> On 6/29/05, Warner Onstine <sw...@warneronstine.com> wrote:
>>>
>>>> So, I am developing a Tapestry application and we have started adding
>>>> in components. This the third time I have run into this error and
>>>> cannot figure out the root cause. The second I ran into it I changed
>>>> the .jwc file (removed some extraneous xml) and it went ahead just 
>>>> fine
>>>> no problem. I have since made some other changes and am getting the
>>>> same exact error again (these changes are unrelated to the component).
>>>>
>>>> Here is the error (with part of the stack trace):
>>>> org.apache.tapestry.ApplicationRuntimeException
>>>> Method 'public abstract java.lang.String
>>>> com.stchome.pam.tapestry.components.NameSet.getName()' (declared in
>>>> class com.stchome.pam.tapestry.components.NameSet) has no
>>>> implementation in class com.stchome.pam.tapestry.components.NameSet 
>>>> (or
>>>> enhanced subclass
>>>> com.stchome.pam.tapestry.components.NameSet$Enhance_17).
>>>> location:       context:/WEB-INF/components/NameSet.jwc, line 7, 
>>>> column 125
>>>> Stack Trace:
>>>> org.apache.tapestry.enhance.DefaultComponentClassEnhancer.validateEnha
>>>> nc
>>>> edClass(DefaultComponentClassEnhancer.java:203)
>>>> org.apache.tapestry.enhance.DefaultComponentClassEnhancer.constructCom
>>>> po
>>>> nentClass(DefaultComponentClassEnhancer.java:146)
>>>> org.apache.tapestry.enhance.DefaultComponentClassEnhancer.getEnhancedC
>>>> la
>>>> ss(DefaultComponentClassEnhancer.java:97)
>>>> org.apache.tapestry.pageload.PageLoader.instantiateComponent(PageLoade
>>>> r.
>>>> java:603)
>>>> org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.
>>>> ja
>>>> va:483)
>>>>
>>>> The odd thing is this:
>>>> While we have an abstract class for NameSet, there is no method for
>>>> getName, and there is no property called name in the .jwc file.
>>>>
>>>> I am running it on tomcat 4.1.30 (although had the same exact problem
>>>> on 5.0.something.
>>>>
>>>> Any ideas on this, it's very irritating. If need be, I'll attach the
>>>> .jwc and .html files.
>>>>
>>>> -warner
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>
>>>>
>>>
>>>
>>> -- 
>>> The Spindle guy.           http://spindle.sf.net
>>> Get help with Spindle:
>>> http://lists.sourceforge.net/mailman/listinfo/spindle-user
>>> Announcement Feed:
>>> http://www.jroller.com/rss/glongman?catname=/Announcements
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: very strange exception

Posted by Norbert Sándor <de...@erinors.com>.
You probably haven't implemented the IFormComponent.getName() method.

Br,
Norbi

----- Original Message ----- 
From: "Warner Onstine" <sw...@warneronstine.com>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Wednesday, June 29, 2005 8:27 PM
Subject: Re: very strange exception


> Hmm, not quite following. NameSet is extending BaseComponent and  
> implements IFormComponent.
> 
> I fixed it again by slightly modifying NameSet.jwc (added a line before  
> the component spec).
> 
> -warner
> 
> On Jun 29, 2005, at 11:14 AM, Geoff Longman wrote:
> 
>> NameSet in a class hierarchy? Not sure how your particular situation
>> is happening but looking at
>>
>>   
>> org.apache.tapestry.enhance.DefaultComponentClassEnhancer.validateEnhan 
>> cedClass()
>>
>> I see that it walks up the class hierarchy looking for abstract method
>> declarations that  have not been implemented by Tapestry in the
>> generated subclass.
>>
>> So, I would look up in the hierarchy and ensure there are no
>> unimplement abstract methods that tapestry would miss at enhancement
>> time (no <property-specification> etc).
>>
>> Geoff
>>
>> On 6/29/05, Warner Onstine <sw...@warneronstine.com> wrote:
>>> So, I am developing a Tapestry application and we have started adding
>>> in components. This the third time I have run into this error and
>>> cannot figure out the root cause. The second I ran into it I changed
>>> the .jwc file (removed some extraneous xml) and it went ahead just  
>>> fine
>>> no problem. I have since made some other changes and am getting the
>>> same exact error again (these changes are unrelated to the component).
>>>
>>> Here is the error (with part of the stack trace):
>>> org.apache.tapestry.ApplicationRuntimeException
>>> Method 'public abstract java.lang.String
>>> com.stchome.pam.tapestry.components.NameSet.getName()' (declared in
>>> class com.stchome.pam.tapestry.components.NameSet) has no
>>> implementation in class com.stchome.pam.tapestry.components.NameSet  
>>> (or
>>> enhanced subclass
>>> com.stchome.pam.tapestry.components.NameSet$Enhance_17).
>>> location:       context:/WEB-INF/components/NameSet.jwc, line 7,  
>>> column 125
>>> Stack Trace:
>>> org.apache.tapestry.enhance.DefaultComponentClassEnhancer.validateEnha 
>>> nc
>>> edClass(DefaultComponentClassEnhancer.java:203)
>>> org.apache.tapestry.enhance.DefaultComponentClassEnhancer.constructCom 
>>> po
>>> nentClass(DefaultComponentClassEnhancer.java:146)
>>> org.apache.tapestry.enhance.DefaultComponentClassEnhancer.getEnhancedC 
>>> la
>>> ss(DefaultComponentClassEnhancer.java:97)
>>> org.apache.tapestry.pageload.PageLoader.instantiateComponent(PageLoade 
>>> r.
>>> java:603)
>>> org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader. 
>>> ja
>>> va:483)
>>>
>>> The odd thing is this:
>>> While we have an abstract class for NameSet, there is no method for
>>> getName, and there is no property called name in the .jwc file.
>>>
>>> I am running it on tomcat 4.1.30 (although had the same exact problem
>>> on 5.0.something.
>>>
>>> Any ideas on this, it's very irritating. If need be, I'll attach the
>>> .jwc and .html files.
>>>
>>> -warner
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>
>>>
>>
>>
>> -- 
>> The Spindle guy.           http://spindle.sf.net
>> Get help with Spindle:
>> http://lists.sourceforge.net/mailman/listinfo/spindle-user
>> Announcement Feed:
>> http://www.jroller.com/rss/glongman?catname=/Announcements
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 
> 
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: very strange exception

Posted by Warner Onstine <sw...@warneronstine.com>.
Hmm, not quite following. NameSet is extending BaseComponent and  
implements IFormComponent.

I fixed it again by slightly modifying NameSet.jwc (added a line before  
the component spec).

-warner

On Jun 29, 2005, at 11:14 AM, Geoff Longman wrote:

> NameSet in a class hierarchy? Not sure how your particular situation
> is happening but looking at
>
>   
> org.apache.tapestry.enhance.DefaultComponentClassEnhancer.validateEnhan 
> cedClass()
>
> I see that it walks up the class hierarchy looking for abstract method
> declarations that  have not been implemented by Tapestry in the
> generated subclass.
>
> So, I would look up in the hierarchy and ensure there are no
> unimplement abstract methods that tapestry would miss at enhancement
> time (no <property-specification> etc).
>
> Geoff
>
> On 6/29/05, Warner Onstine <sw...@warneronstine.com> wrote:
>> So, I am developing a Tapestry application and we have started adding
>> in components. This the third time I have run into this error and
>> cannot figure out the root cause. The second I ran into it I changed
>> the .jwc file (removed some extraneous xml) and it went ahead just  
>> fine
>> no problem. I have since made some other changes and am getting the
>> same exact error again (these changes are unrelated to the component).
>>
>> Here is the error (with part of the stack trace):
>> org.apache.tapestry.ApplicationRuntimeException
>> Method 'public abstract java.lang.String
>> com.stchome.pam.tapestry.components.NameSet.getName()' (declared in
>> class com.stchome.pam.tapestry.components.NameSet) has no
>> implementation in class com.stchome.pam.tapestry.components.NameSet  
>> (or
>> enhanced subclass
>> com.stchome.pam.tapestry.components.NameSet$Enhance_17).
>> location:       context:/WEB-INF/components/NameSet.jwc, line 7,  
>> column 125
>> Stack Trace:
>> org.apache.tapestry.enhance.DefaultComponentClassEnhancer.validateEnha 
>> nc
>> edClass(DefaultComponentClassEnhancer.java:203)
>> org.apache.tapestry.enhance.DefaultComponentClassEnhancer.constructCom 
>> po
>> nentClass(DefaultComponentClassEnhancer.java:146)
>> org.apache.tapestry.enhance.DefaultComponentClassEnhancer.getEnhancedC 
>> la
>> ss(DefaultComponentClassEnhancer.java:97)
>> org.apache.tapestry.pageload.PageLoader.instantiateComponent(PageLoade 
>> r.
>> java:603)
>> org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader. 
>> ja
>> va:483)
>>
>> The odd thing is this:
>> While we have an abstract class for NameSet, there is no method for
>> getName, and there is no property called name in the .jwc file.
>>
>> I am running it on tomcat 4.1.30 (although had the same exact problem
>> on 5.0.something.
>>
>> Any ideas on this, it's very irritating. If need be, I'll attach the
>> .jwc and .html files.
>>
>> -warner
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
>
>
> -- 
> The Spindle guy.           http://spindle.sf.net
> Get help with Spindle:
> http://lists.sourceforge.net/mailman/listinfo/spindle-user
> Announcement Feed:
> http://www.jroller.com/rss/glongman?catname=/Announcements
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: very strange exception

Posted by Geoff Longman <gl...@gmail.com>.
NameSet in a class hierarchy? Not sure how your particular situation
is happening but looking at

 org.apache.tapestry.enhance.DefaultComponentClassEnhancer.validateEnhancedClass()

I see that it walks up the class hierarchy looking for abstract method
declarations that  have not been implemented by Tapestry in the
generated subclass.

So, I would look up in the hierarchy and ensure there are no
unimplement abstract methods that tapestry would miss at enhancement
time (no <property-specification> etc).

Geoff

On 6/29/05, Warner Onstine <sw...@warneronstine.com> wrote:
> So, I am developing a Tapestry application and we have started adding
> in components. This the third time I have run into this error and
> cannot figure out the root cause. The second I ran into it I changed
> the .jwc file (removed some extraneous xml) and it went ahead just fine
> no problem. I have since made some other changes and am getting the
> same exact error again (these changes are unrelated to the component).
> 
> Here is the error (with part of the stack trace):
> org.apache.tapestry.ApplicationRuntimeException
> Method 'public abstract java.lang.String
> com.stchome.pam.tapestry.components.NameSet.getName()' (declared in
> class com.stchome.pam.tapestry.components.NameSet) has no
> implementation in class com.stchome.pam.tapestry.components.NameSet (or
> enhanced subclass
> com.stchome.pam.tapestry.components.NameSet$Enhance_17).
> location:       context:/WEB-INF/components/NameSet.jwc, line 7, column 125
> Stack Trace:
> org.apache.tapestry.enhance.DefaultComponentClassEnhancer.validateEnhanc
> edClass(DefaultComponentClassEnhancer.java:203)
> org.apache.tapestry.enhance.DefaultComponentClassEnhancer.constructCompo
> nentClass(DefaultComponentClassEnhancer.java:146)
> org.apache.tapestry.enhance.DefaultComponentClassEnhancer.getEnhancedCla
> ss(DefaultComponentClassEnhancer.java:97)
> org.apache.tapestry.pageload.PageLoader.instantiateComponent(PageLoader.
> java:603)
> org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.ja
> va:483)
> 
> The odd thing is this:
> While we have an abstract class for NameSet, there is no method for
> getName, and there is no property called name in the .jwc file.
> 
> I am running it on tomcat 4.1.30 (although had the same exact problem
> on 5.0.something.
> 
> Any ideas on this, it's very irritating. If need be, I'll attach the
> .jwc and .html files.
> 
> -warner
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


-- 
The Spindle guy.           http://spindle.sf.net
Get help with Spindle:   
http://lists.sourceforge.net/mailman/listinfo/spindle-user
Announcement Feed:    
http://www.jroller.com/rss/glongman?catname=/Announcements

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: very strange exception

Posted by Norbert Sándor <de...@erinors.com>.
Really strange, probably we could help more if you include some source code.

My idea was that maybe NameSet extends AbstractFormComponent, and you don't 
implement its inherited methods.
But of course it's only a guess...

Br,
Norbi
----- Original Message ----- 
From: "Warner Onstine" <sw...@warneronstine.com>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Wednesday, June 29, 2005 7:58 PM
Subject: very strange exception


> So, I am developing a Tapestry application and we have started adding  in 
> components. This the third time I have run into this error and  cannot 
> figure out the root cause. The second I ran into it I changed  the .jwc 
> file (removed some extraneous xml) and it went ahead just fine  no 
> problem. I have since made some other changes and am getting the  same 
> exact error again (these changes are unrelated to the component).
>
> Here is the error (with part of the stack trace):
> org.apache.tapestry.ApplicationRuntimeException
> Method 'public abstract java.lang.String 
> com.stchome.pam.tapestry.components.NameSet.getName()' (declared in  class 
> com.stchome.pam.tapestry.components.NameSet) has no  implementation in 
> class com.stchome.pam.tapestry.components.NameSet (or  enhanced subclass 
> com.stchome.pam.tapestry.components.NameSet$Enhance_17).
> location: context:/WEB-INF/components/NameSet.jwc, line 7, column 125
> Stack Trace:
> org.apache.tapestry.enhance.DefaultComponentClassEnhancer.validateEnhanc 
> edClass(DefaultComponentClassEnhancer.java:203)
> org.apache.tapestry.enhance.DefaultComponentClassEnhancer.constructCompo 
> nentClass(DefaultComponentClassEnhancer.java:146)
> org.apache.tapestry.enhance.DefaultComponentClassEnhancer.getEnhancedCla 
> ss(DefaultComponentClassEnhancer.java:97)
> org.apache.tapestry.pageload.PageLoader.instantiateComponent(PageLoader. 
> java:603)
> org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.ja 
> va:483)
>
> The odd thing is this:
> While we have an abstract class for NameSet, there is no method for 
> getName, and there is no property called name in the .jwc file.
>
> I am running it on tomcat 4.1.30 (although had the same exact problem  on 
> 5.0.something.
>
> Any ideas on this, it's very irritating. If need be, I'll attach the  .jwc 
> and .html files.
>
> -warner
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org