Stripes 1.5 Release Candidate 1 available now

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Stripes 1.5 Release Candidate 1 available now

Ben Gunter
Stripes 1.5 Release Candidate 1 (1.5RC1) is available for download now.
Get it while it's hot!

https://sourceforge.net/project/showfiles.php?group_id=145476&package_id=160010&release_id=601435

We need everyone who is willing and able to download this release and
take it for a spin. We've added a few additional backward compatibility
notes to upgrading.txt so you might want to read over that again. We
believe this code to be production-ready, meaning we expect only minor
bugs (if any) to be exposed during the RC period. A final 1.5 release
should follow soon.

A big thanks to everybody who helped code, document, test and debug. If
you'd like to see what all went into this release (since 1.4.3) you can
find a summary here:

http://www.stripesframework.org/jira/secure/ReleaseNote.jspa?projectId=10000&styleName=Html&version=10043

-Ben

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users
Reply | Threaded
Open this post in threaded view
|

Converter not used for wilcard types

Poitras Christian
Hi,

I have an action bean with a field
This one is doesn't work.
public class ReadRelationVisibilityAction<Rel extends Relation> extends BaseActionBean {
    private Rel relation;


When I pass a value for relation, it doesn't get converted by my RelationConverter which is
public class RelationConverter implements TypeConverter<Relation> {


Curiously, if I use Relation instead of Rel, the RelationConverter is used.
This one is ok.
public class ReadRelationVisibilityAction<Rel extends Relation> extends BaseActionBean {
    private Relation relation;


I've tried this on stripes 1.5 rc 1.

Am I doing something wrong?

Christian

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users
Reply | Threaded
Open this post in threaded view
|

Re: Converter not used for wilcard types

Poitras Christian
In fact I get a NPE.
Here is the stack trace.

2008-05-27 10:33:24,000 - DEBUG - debug - Could not bind property with name [relation] to bean of type: ReadRelationVisibilityAction - net.sourceforge.stripes.util.Log - (cloutip) - 114
java.lang.NullPointerException
        at net.sourceforge.stripes.util.bean.PropertyExpressionEvaluation.getScalarType(PropertyExpressionEvaluation.java:550)
        at net.sourceforge.stripes.controller.DefaultActionBeanPropertyBinder.bind(DefaultActionBeanPropertyBinder.java:150)
        at net.sourceforge.stripes.controller.DispatcherHelper$3.intercept(DispatcherHelper.java:194)
        at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:158)
        at ca.qc.ircm.proteus.web.interceptor.HandleErrorsInterceptor.intercept(HandleErrorsInterceptor.java:45)
        at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:155)
        at ca.qc.ircm.proteus.web.interceptor.RoleInterceptor.intercept(RoleInterceptor.java:63)
        at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:155)
        at com.mongus.stripes.extension.wait.WaitPageInterceptor.intercept(WaitPageInterceptor.java:169)
        at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:155)
        at net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercept(BeforeAfterMethodInterceptor.java:111)
        at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:155)
        at net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java:74)
        at net.sourceforge.stripes.controller.DispatcherHelper.doBindingAndValidation(DispatcherHelper.java:190)
        at net.sourceforge.stripes.controller.DispatcherServlet.doBindingAndValidation(DispatcherServlet.java:261)
        at net.sourceforge.stripes.controller.DispatcherServlet.doPost(DispatcherServlet.java:155)
        at net.sourceforge.stripes.controller.DispatcherServlet.doGet(DispatcherServlet.java:67)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at net.sourceforge.stripes.controller.DynamicMappingFilter$2.doFilter(DynamicMappingFilter.java:363)
        at net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:246)
        at net.sourceforge.stripes.controller.DynamicMappingFilter.doFilter(DynamicMappingFilter.java:350)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at ca.qc.ircm.proteus.web.filter.GroupFilter.doFilter(GroupFilter.java:72)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at ca.qc.ircm.proteus.web.filter.ProjectFilter.doFilter(ProjectFilter.java:90)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at ca.qc.ircm.proteus.web.filter.LogFilter.doFilter(LogFilter.java:48)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
        at java.lang.Thread.run(Thread.java:595)

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Poitras Christian
Sent: Monday, May 26, 2008 5:41 PM
To: 'Stripes Users List'
Subject: [Stripes-users] Converter not used for wilcard types

Hi,

I have an action bean with a field
This one is doesn't work.
public class ReadRelationVisibilityAction<Rel extends Relation> extends BaseActionBean {
    private Rel relation;


When I pass a value for relation, it doesn't get converted by my RelationConverter which is public class RelationConverter implements TypeConverter<Relation> {


Curiously, if I use Relation instead of Rel, the RelationConverter is used.
This one is ok.
public class ReadRelationVisibilityAction<Rel extends Relation> extends BaseActionBean {
    private Relation relation;


I've tried this on stripes 1.5 rc 1.

Am I doing something wrong?

Christian

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users
Reply | Threaded
Open this post in threaded view
|

Re: Converter not used for wilcard types

Aaron Porter-3
In reply to this post by Poitras Christian
Christian,
Can you log a JIRA issue for this? I'll try to look into it later today.

Aaron

Poitras Christian wrote:

> Hi,
>
> I have an action bean with a field
> This one is doesn't work.
> public class ReadRelationVisibilityAction<Rel extends Relation> extends BaseActionBean {
>     private Rel relation;
>
>
> When I pass a value for relation, it doesn't get converted by my RelationConverter which is
> public class RelationConverter implements TypeConverter<Relation> {
>
>
> Curiously, if I use Relation instead of Rel, the RelationConverter is used.
> This one is ok.
> public class ReadRelationVisibilityAction<Rel extends Relation> extends BaseActionBean {
>     private Relation relation;
>
>
> I've tried this on stripes 1.5 rc 1.
>
> Am I doing something wrong?
>
> Christian
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Stripes-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>  


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users
Reply | Threaded
Open this post in threaded view
|

Re: Converter not used for wilcard types

Poitras Christian
It's done.

I've also included a test case for it.

Christian

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Aaron Porter
Sent: Tuesday, May 27, 2008 1:54 PM
To: Stripes Users List
Subject: Re: [Stripes-users] Converter not used for wilcard types

Christian,
Can you log a JIRA issue for this? I'll try to look into it later today.

Aaron

Poitras Christian wrote:

> Hi,
>
> I have an action bean with a field
> This one is doesn't work.
> public class ReadRelationVisibilityAction<Rel extends Relation> extends BaseActionBean {
>     private Rel relation;
>
>
> When I pass a value for relation, it doesn't get converted by my
> RelationConverter which is public class RelationConverter implements
> TypeConverter<Relation> {
>
>
> Curiously, if I use Relation instead of Rel, the RelationConverter is used.
> This one is ok.
> public class ReadRelationVisibilityAction<Rel extends Relation> extends BaseActionBean {
>     private Relation relation;
>
>
> I've tried this on stripes 1.5 rc 1.
>
> Am I doing something wrong?
>
> Christian
>
> ----------------------------------------------------------------------
> --- This SF.net email is sponsored by: Microsoft Defy all challenges.
> Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Stripes-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users