Yeah I was going to say these are related... before I added that constructor, I did get that exception.
The property binding engine tries to make that call reflectively. Really it should check to see if such a constructor exists before just calling it and then spitting out an exception. Some things were changed in this area between 1.4.3 and 1.5, I'm not sure if all were for the better, or at least done with the proper supporting code to handle such corner cases. After I added the constructor to file bean, the tests do run with a bound file bean uploaded via addParameter(), but sometimes the files just disappear. This could be something I'm doing wrong with the filebean itself, or it's probably due to the hackish way in which I got it to work. The patch that was posted in the other thread should be examined. This might be good stuff for a subsequent 1.51 release. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Freddy D. Sent: Monday, April 14, 2008 7:23 PM To: stripes-users@lists.sourceforge.net Subject: Re: [Stripes-users] java.lang.NoSuchMethodException: net.sourceforge.stripes.action.FileBean.<init> This is just a shot in the dark, but does this have anything to do with the following post, which mentions adding FileBean(String) as a workaround for mock testing? http://article.gmane.org/gmane.comp.java.stripes.user/7315 Freddy - - This could be because there is no constructor in FileBean that takes - just a single string. The constructors are: - - public FileBean(File file, String contentType, String originalName); - public FileBean(File file, String contentType, String originalName, - String charset); - - So now I guess the question is more: how are you compiling code that - has a call to new FileBean(String)? - - -t - - On Apr 14, 2008, at 5:51 PM, jklcom99 wrote: - > - > I completely removed/reloaded my local maven repository and am still - > getting - > the same error. - > - > - > Zenin, Ruslan wrote: - >> - >> Sounds like a version mismatch of the dependent jars... - >> - >> L8r, Ruslan - >> - >> -----Original Message----- - >> From: [EMAIL PROTECTED] - >> [mailto:[EMAIL PROTECTED] On Behalf Of - >> jklcom99 - >> Sent: April 14, 2008 3:52 PM - >> To: [EMAIL PROTECTED] - >> Subject: [Stripes-users] java.lang.NoSuchMethodException: - >> net.sourceforge.stripes.action.FileBean.<init> - >> - >> - >> Hi, - >> After I've recovered from my hard drive failure. The project that - >> used - >> to - >> work fine is now getting the following error: - >> Am I missing some Stripes components? - >> - >> 2008-04-14 15:41:56,207 WARN Log.warn - Looks like type converter - >> null - >> threw an exception. - >> java.lang.NoSuchMethodException: - >> net.sourceforge.stripes.action.FileBean.<init>(java.lang.String) - >> at java.lang.Class.getConstructor0(Class.java:2706) - >> at java.lang.Class.getConstructor(Class.java:1657) - >> at - >> net - >> .sourceforge.stripes.controller.DefaultActionBeanPropertyBinder.conve - >> rt(DefaultActionBeanPropertyBinder.java:961) - >> at - >> net - >> .sourceforge.stripes.controller.DefaultActionBeanPropertyBinder.bind( - >> DefaultActionBeanPropertyBinder.java:290) - >> at - >> net.sourceforge.stripes.controller.DispatcherHelper - >> $3.intercept(Dispatch - >> erHelper.java:185) - >> at - >> net - >> .sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionCon - >> text.java:157) - >> at - >> net - >> .sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercep - >> t(BeforeAfterMethodInterceptor.java:107) - >> at - >> net - >> .sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionCon - >> text.java:154) - >> at - >> net - >> .sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContex - >> t.java:73) - >> at - >> net - >> .sourceforge.stripes.controller.DispatcherHelper.doBindingAndValidati - >> on(DispatcherHelper.java:182) - >> at - >> net - >> .sourceforge.stripes.controller.DispatcherServlet.doBindingAndValidat - >> ion(DispatcherServlet.java:217) - >> at - >> net - >> .sourceforge.stripes.controller.DispatcherServlet.doPost(DispatcherSe - >> rvlet.java:142) - >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) - >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) - >> at - >> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: - >> 459) - >> at - >> org.mortbay.jetty.servlet.ServletHandler - >> $CachedChain.doFilter(ServletHan - >> dler.java:1054) - >> at - >> net - >> .sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter. - >> java:181) - >> at - >> org.mortbay.jetty.servlet.ServletHandler - >> $CachedChain.doFilter(ServletHan - >> dler.java:1045) - >> at - >> org.acegisecurity.util.FilterChainProxy - >> $VirtualFilterChain.doFilter(Filt - >> erChainProxy.java:264) - >> at - >> org - >> .acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterS - >> ecurityInterceptor.java:107) - >> at - >> org - >> .acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(Filte - >> rSecurityInterceptor.java:72) - >> at - >> org.acegisecurity.util.FilterChainProxy - >> $VirtualFilterChain.doFilter(Filt - >> erChainProxy.java:274) - >> at - >> org - >> .acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTransl - >> ationFilter.java:110) - >> at - >> org.acegisecurity.util.FilterChainProxy - >> $VirtualFilterChain.doFilter(Filt - >> erChainProxy.java:274) - >> at - >> org - >> .acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessin - >> gFilter.java:217) - >> at - >> org.acegisecurity.util.FilterChainProxy - >> $VirtualFilterChain.doFilter(Filt - >> erChainProxy.java:274) - >> at - >> org - >> .acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(H - >> ttpSessionContextIntegrationFilter.java:229) - >> at - >> org.acegisecurity.util.FilterChainProxy - >> $VirtualFilterChain.doFilter(Filt - >> erChainProxy.java:274) - >> at - >> org - >> .acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:1 - >> 48) - >> at - >> org - >> .acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java - >> :98) - >> at - >> org.mortbay.jetty.servlet.ServletHandler - >> $CachedChain.doFilter(ServletHan - >> dler.java:1045) - >> at - >> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: - >> 358) - >> at - >> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: - >> 231) - >> at - >> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: - >> 629) - >> at - >> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:389) - >> at - >> org - >> .mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandler - >> Collection.java:149) - >> at - >> org - >> .mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.jav - >> a:123) - >> at - >> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: - >> 141) - >> at org.mortbay.jetty.Server.handle(Server.java:303) - >> at - >> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: - >> 452) - >> at - >> org.mortbay.jetty.HttpConnection - >> $RequestHandler.content(HttpConnection.j - >> ava:735) - >> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:636) - >> at - >> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) - >> at - >> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:349) - >> at - >> org - >> .mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: - >> 320) - >> at - >> org.mortbay.thread.BoundedThreadPool - >> $PoolThread.run(BoundedThreadPool.ja - >> va:475) - >> 2008-04-14 15:41:56,223 WARN Log.warn - Looks like type converter - >> null - >> threw an exception. - >> java.lang.NoSuchMethodException: - >> net.sourceforge.stripes.action.FileBean.<init>(java.lang.String) - >> at java.lang.Class.getConstructor0(Class.java:2706) - >> at java.lang.Class.getConstructor(Class.java:1657) - >> at - >> net - >> .sourceforge.stripes.controller.DefaultActionBeanPropertyBinder.conve - >> rt(DefaultActionBeanPropertyBinder.java:961) - >> at - >> net - >> .sourceforge.stripes.controller.DefaultActionBeanPropertyBinder.bind( - >> DefaultActionBeanPropertyBinder.java:290) - >> at - >> net.sourceforge.stripes.controller.DispatcherHelper - >> $3.intercept(Dispatch - >> erHelper.java:185) - >> at - >> net - >> .sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionCon - >> text.java:157) - >> at - >> net - >> .sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercep - >> t(BeforeAfterMethodInterceptor.java:107) - >> at - >> net - >> .sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionCon - >> text.java:154) - >> at - >> net - >> .sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContex - >> t.java:73) - >> at - >> net - >> .sourceforge.stripes.controller.DispatcherHelper.doBindingAndValidati - >> on(DispatcherHelper.java:182) - >> at - >> net - >> .sourceforge.stripes.controller.DispatcherServlet.doBindingAndValidat - >> ion(DispatcherServlet.java:217) - >> at - >> net - >> .sourceforge.stripes.controller.DispatcherServlet.doPost(DispatcherSe - >> rvlet.java:142) - >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) - >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) - >> at - >> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: - >> 459) - >> at - >> org.mortbay.jetty.servlet.ServletHandler - >> $CachedChain.doFilter(ServletHan - >> dler.java:1054) - >> at - >> net - >> .sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter. - >> java:181) - >> at - >> org.mortbay.jetty.servlet.ServletHandler - >> $CachedChain.doFilter(ServletHan - >> dler.java:1045) - >> at - >> org.acegisecurity.util.FilterChainProxy - >> $VirtualFilterChain.doFilter(Filt - >> erChainProxy.java:264) - >> at - >> org - >> .acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterS - >> ecurityInterceptor.java:107) - >> at - >> org - >> .acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(Filte - >> rSecurityInterceptor.java:72) - >> at - >> org.acegisecurity.util.FilterChainProxy - >> $VirtualFilterChain.doFilter(Filt - >> erChainProxy.java:274) - >> at - >> org - >> .acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTransl - >> ationFilter.java:110) - >> at - >> org.acegisecurity.util.FilterChainProxy - >> $VirtualFilterChain.doFilter(Filt - >> erChainProxy.java:274) - >> at - >> org - >> .acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessin - >> gFilter.java:217) - >> at - >> org.acegisecurity.util.FilterChainProxy - >> $VirtualFilterChain.doFilter(Filt - >> erChainProxy.java:274) - >> at - >> org - >> .acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(H - >> ttpSessionContextIntegrationFilter.java:229) - >> at - >> org.acegisecurity.util.FilterChainProxy - >> $VirtualFilterChain.doFilter(Filt - >> erChainProxy.java:274) - >> at - >> org - >> .acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:1 - >> 48) - >> at - >> org - >> .acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java - >> :98) - >> at - >> org.mortbay.jetty.servlet.ServletHandler - >> $CachedChain.doFilter(ServletHan - >> dler.java:1045) - >> at - >> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: - >> 358) - >> at - >> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: - >> 231) - >> at - >> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: - >> 629) - >> at - >> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:389) - >> at - >> org - >> .mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandler - >> Collection.java:149) - >> at - >> org - >> .mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.jav - >> a:123) - >> at - >> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: - >> 141) - >> at org.mortbay.jetty.Server.handle(Server.java:303) - >> at - >> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: - >> 452) - >> at - >> org.mortbay.jetty.HttpConnection - >> $RequestHandler.content(HttpConnection.j - >> ava:735) - >> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:636) - >> at - >> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) - >> at - >> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:349) - >> at - >> org - >> .mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: - >> 320) - >> at - >> org.mortbay.thread.BoundedThreadPool - >> $PoolThread.run(BoundedThreadPool.ja - >> va:475) ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users