[ 
http://jira.jboss.com/jira/browse/HIBERNATE-7?page=comments#action_12316737 ]
     
Steve Ebersole commented on HIBERNATE-7:
----------------------------------------

I have never been able to reproduce this.  The testsuite also now contains 
tests specifically testing a hot redploy; it passes.  I am also not able to 
reproduce this by manually deploying/redeploying the test ear file.

I need some more info on your exact app setup.  Is it a stand-alone HAR you 
drop in deploy?  Do you access the "bound" session factory from another app 
then?  Is that other app dependant on the har?  etc

> CLONE -PropertyNotFoundException on runtime HAR deployment
> ----------------------------------------------------------
>
>          Key: HIBERNATE-7
>          URL: http://jira.jboss.com/jira/browse/HIBERNATE-7
>      Project: Hibernate
>         Type: Bug
>     Reporter: Chris Buckley
>     Assignee: Steve Ebersole

>
>
> SourceForge Submitter: treinar .
> OS: Linux 2.4.22-36mdkenterprise (i386)
> JVM: 1.4.2_06-b03
> I have a HAR archive, with one class: Pesticide.class
> and its hibernate mapping file. Pesticide class has to
> properties: id and name (with getter/setter methods). A
> META-INF/hibernate-service.xml is also provided.
> When deploying a HAR archive when JBoss runs, the
> deployment fails. The following Exception is thrown:
> net.sf.hibernate.PropertyNotFoundException: Could not
> find a setter for property name in class
> no.planteforsk.pvmdb.persistent.Pesticide
> However, when JBoss is restarted, the HAR deploys fine. 
> The Exception is thrown in
> net.sf.hibernate.property.BasicPropertyAccessor, in the
> method getSetter. The cause of the exception is that no
> match between set method (setName) and property (name)
> is found in method setterMethod.
> I inserted a few debug outputs in
> BasicPropertyAccessor, and it turns out that when the
> HAR is deployed at runtime, the method setName in
> Pesticide is wrongly assumed to take no parameters,
> (methods[i].getParameterTypes().length returns 0). When
> jboss is restarted, and the deployment takes place on
> the same HAR file, setName is assumed to take 1
> parameter, which of course is correct.
> I'm not sure if this is a Java error or a JBoss error,
> or even a Hibernate error, but maybe you do. It does
> concern JBoss, however.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to