Hi again Laurie

Sorry for wasting your time, I found the problem with
the help of your hint "this might be caused by changes
elsewhere, such as a super-class".

When I read the superclass again *carefully* I saw
that the subclass was overriding a property.  And
guess what, the property type in the sublass was
different to that in the superclass.  No wonder the
struts tag was confused!!

Thank you very much for your help, and sorry to waste
your time again.

Steve


--- Laurie Harper <[EMAIL PROTECTED]> wrote:

> Stephen Hartley wrote:
> > I have a run-time problem with a struts-based JSP.
> 
> > Interesting thing is that this code has been
> working
> > for more than a year with no problems, but now
> errors
> > with HTTP 500 and JspException:
> "PropertyDescriptor: 
> > internal error while merging PDs: type mismatch
> > between read and write methods".  See full stack
> trace
> > below.
> > 
> > I've been searching around the list archives and
> note
> > Brian McClung has posted the same problem (see
> > postings on 2004-03-24 21:58:11 GMT and 2004-03-23
> > 21:50:43 GMT) but as far as I can see there
> doesn't
> > seem to be an answer for this one.  Likewise on
> the
> > Sun Java forum - see
> >
>
http://forum.java.sun.com/thread.jspa?threadID=632668&tstart=90
> 
> The difference between JDK 1.3 and 1.4 is a change
> in the reflection 
> semantics; in 1.3 you could make a property both
> read-only and 
> write-only, which clearly doesn't make sense but
> worked anyway. 1.4 
> changed the introspection behaviour in this case,
> which might be what 
> you're seeing (assuming, since you referenced that
> URL, that you're 
> talking about a difference in your code's behaviour
> between the two JVMs).
> 
> > I've checked that the setter and getter accept and
> > return the correct types OK.  This is to be
> expected
> > really, because the code used to work and I
> haven't
> > changed it [intentionally!]....!
> 
> Bear in mind that this might be caused by changes
> elsewhere, such as a 
> super-class or, more likely, a related BeanInfo
> class. Without seeing 
> your Javabean and related BeanInfo classes I can't
> say anything 
> definitive, but check that *everything* affecting
> the property 
> descriptors, including BeanInfo classes, is as it
> should be.
> 
> L.
> 
> > 
> > Can anyone give me some helpful pointers on this
> one?
> > 
> > Many thanks,
> > 
> > Steve
> > 
> > 
> > 
> > 
> > 
> > javax.servlet.jsp.JspException: Exception
> forwarding
> > for name loginSecured: 
> > javax.servlet.ServletException: Exception
> accessing
> > property userAccountVO.
> > forcePwdChange for bean userSession:
> java.lang.Error:
> > PropertyDescriptor: 
> > internal error while merging PDs: type mismatch
> > between read and write methods
> > 
> >     at
> >
>
org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:173)
> > 
> >     at _index._jspService(index.jsp:5)
> > 
> >     [/index.jsp]
> > 
> > 
> >             
> >
>
___________________________________________________________
> 
> > How much free photo storage do you get? Store your
> holiday 
> > snaps for FREE with Yahoo! Photos
> http://uk.photos.yahoo.com
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



        
        
                
___________________________________________________________ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to