tapestry5.0.13 @Inject private org.apache.tapestry5.services.Request request;
String param=request.getParameter(PARAM_NAME); int id=coercer.coerce(param,Integer.class); log.debug(PARAM_NAME+" is "+param); //it's ok, display a number. int id=Integer.getInteger(param.toString()); //The error message come from this link.because when i just set a number to id,it will goes well. the variable param is actually java.lang.String,right?So where is the error come from? Thanks a lot.it drives me nuts. the following is the debug message: [DEBUG] 24:40(ConstructorServiceCreator.java:createObject:50) Invoking constructor org.apache.tapestry5.internal.services.InternalRequestGlobalsImpl() (at InternalRequestGlobalsImpl.java:22). [ERROR] 24:40(DefaultRequestExceptionHandler.java:handleRequestException:45) Processing of request failed with uncaught exception: org.apache.tapestry5.runtime.ComponentEventException org.apache.tapestry5.runtime.ComponentEventException [at context:AbstractMessage.tml, line 47, column 97] at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1042) at org.apache.tapestry5.internal.services.AjaxComponentEventRequestHandler.handle(AjaxComponentEventRequestHandler.java:92) at $ComponentEventRequestHandler_11b530aa91a.handle($ComponentEventRequestHandler_11b530aa91a.java) at org.apache.tapestry5.internal.services.AjaxFilter.handle(AjaxFilter.java:42) at $ComponentEventRequestHandler_11b530aa91b.handle($ComponentEventRequestHandler_11b530aa91b.java) at org.apache.tapestry5.services.TapestryModule$37.handle(TapestryModule.java:1987) at $ComponentEventRequestHandler_11b530aa91b.handle($ComponentEventRequestHandler_11b530aa91b.java) at $ComponentEventRequestHandler_11b530aa884.handle($ComponentEventRequestHandler_11b530aa884.java) at org.apache.tapestry5.internal.services.ComponentEventDispatcher.dispatch(ComponentEventDispatcher.java:135) at $Dispatcher_11b530aa887.dispatch($Dispatcher_11b530aa887.java) at $Dispatcher_11b530aa879.dispatch($Dispatcher_11b530aa879.java) at org.apache.tapestry5.services.TapestryModule$12.service(TapestryModule.java:938) at cn.mcguo.banjia.services.AppModule$1.service(AppModule.java:23) at $RequestFilter_11b530aa878.service($RequestFilter_11b530aa878.java) at $RequestHandler_11b530aa87a.service($RequestHandler_11b530aa87a.java) at org.apache.tapestry5.internal.services.LocalizationFilter.service(LocalizationFilter.java:42) at $RequestHandler_11b530aa87a.service($RequestHandler_11b530aa87a.java) at org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:586) at $RequestHandler_11b530aa87a.service($RequestHandler_11b530aa87a.java) at org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26) at $RequestHandler_11b530aa87a.service($RequestHandler_11b530aa87a.java) at org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:79) at $RequestHandler_11b530aa87a.service($RequestHandler_11b530aa87a.java) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:93) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:84) at org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:75) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:106) at $RequestHandler_11b530aa87a.service($RequestHandler_11b530aa87a.java) at $RequestHandler_11b530aa871.service($RequestHandler_11b530aa871.java) at org.apache.tapestry5.services.TapestryModule$11.service(TapestryModule.java:918) at org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62) at $HttpServletRequestFilter_11b530aa870.service($HttpServletRequestFilter_11b530aa870.java) at $HttpServletRequestHandler_11b530aa872.service($HttpServletRequestHandler_11b530aa872.java) at $HttpServletRequestHandler_11b530aa86f.service($HttpServletRequestHandler_11b530aa86f.java) at org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:168) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:320) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450) Caused by: java.lang.NullPointerException at cn.mcguo.banjia.components.Star.onSwitch(Star.java:61) at cn.mcguo.banjia.components.Star.dispatchComponentEvent(Star.java) at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:864) at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1025) ... 49 more [DEBUG] 24:40(RenderQueueImpl.java:run:91) Executed 35 rendering commands in 0.000 seconds -- View this message in context: http://www.nabble.com/Converting-type-of-request-parameter-error-tp18624966p18624966.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]