[ http://mc4j.org/jira/browse/STS-264?page=all ]

Tim Fennell resolved STS-264.
-----------------------------

    Resolution: Fixed

I've fixed the problem with properties without read methods.  Now, if I 
construct a JavaScriptResolution as:

new JavaScriptResolution(myHibernateObject, 
Class.forName("net.sf.cglib.proxy.Callback"));

it works well and doesn't include all the hibernate metadata.  Unfortunately 
there doesn't seem to be a good way to determine progamattically that a class 
is an "enhanced" class without introducing some dependency either on CGLIB 
classes or class names - i.e. it wouldn't work for Javassist or other enhancers.

> JavaScript resolution doesn't work with hibernate proxies
> ---------------------------------------------------------
>
>                 Key: STS-264
>                 URL: http://mc4j.org/jira/browse/STS-264
>             Project: Stripes
>          Issue Type: Bug
>          Components: ActionBean Dispatching
>    Affects Versions: Release 1.4
>            Reporter: Tim Fennell
>         Assigned To: Tim Fennell
>             Fix For: Release 1.4.1
>
>
> The JavaScriptResolution (or JavaScriptBuilder) doesn't work for objects that 
> are proxied by hibernate for a couple of reasons.  Firstly there are 
> properties that have no read method, and should therefore be ignored, but 
> these currently cause NullPointerExceptions!
> Secondly, once that's fixed, it still serializes reams of hibernate 
> meta-data, so there needs to be a way to exclude this.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to