geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Hogstrom <m...@hogstrom.org>
Subject Re: [jira] Commented: (GERONIMO-1674) Daytrader gets NullPointerException attempting to log in a user
Date Wed, 28 Jun 2006 18:13:29 GMT
So I think the defaults should be 200 Users and 400 quotes to follow the original intent. 
The 
number was lowered because population took too long.  We should probably allow for a batch
insert to 
speed things up.

As far as the NPE...who originally wrote that naughty code...oh...Stan...I think it was you
:)

My bad for letting it slip through the cracks.  Was busy with other things and forgot to raise
the 
value as I'm testing with 5000 users and 10000 quotes in the performance tests.

J. Stan Cox wrote:
> 
> Good thoughts Joe.   I think both need to be fixed.
> 
> 1) The default values for users and quotes should be increased to a 
> realistic value for performance work.  I agree with Chris that quotes 
> should be default to 1000 and I think users should default to 500.
> 
> 2) Setting these to a much lower value is great for debugging especially 
> when there is a problem with populating the database.  So the code 
> should be fixed to support the case when less then 200 quotes are 
> populated.  I don't think it would be a complicated fix. I'll look at 
> the code and get back.
> 
> Stan.
> 
> Joe Bohn wrote:
>> Thanks for your response Chris.
>>
>> So are you saying that even the defaults for Daytrader are 
>> insufficient?     What's confusing is that it always returns a "login 
>> error" even though it appears that login succeeds and this is really 
>> related to the initial display(s).  I get the same error if I select 
>> "Trade & Portfolios" and then log in.
>>
>> I also noticed that even if I return the settings to the defaults of 
>> 50 users and 100 max quotes I still get the error.   You are correct 
>> that making the max quotes 1000 resolves the problem.
>>
>> So, I guess the next question is "what needs to change?".   It seems 
>> that we should not ship the sample with default values that don't work 
>> well with the application.  We also should not allow the user to set 
>> values that can cause a failure.
>>
>> However, I'm not clear if the correct fix should be changing the 
>> defaults (and validating settings to ensure they are not "too small") 
>> or changing the display code to deal with the range of values that can 
>> be set.  What is the recommendation of the Daytrader experts?
>>
>> Joe
>>
>> Christopher Blythe wrote:
>>> Joe...
>>>
>>> I've worked on Trade for quite some time and am slowly starting to 
>>> dig into DayTrader. Anyway, just wanted to respond to your question 
>>> since I think I know what the problem is.
>>>
>>> In order for the MarketSummary to be display, at least 200 quotes 
>>> need to be populated in the database. If you look at the queries the 
>>> MarketSummary uses (either the EJBQL or SQL in TradeDirect.java) you 
>>> will see something like this...
>>>
>>> <ejb-ql>SELECT OBJECT(q) FROM Quote q WHERE q.symbol LIKE 's:1__' 
>>> ORDER BY q.change DESC</ejb-ql>
>>>
>>> This indicates that the MarketSummary needs quotes between 100 and 
>>> 199. If we are only populating 10 quotes by default, this query will 
>>> return 0 results and I imagine the MarketSummary will throw an 
>>> exception (as indicated by the stack traces).
>>>
>>> To get you up and running, I would re-populate your database with at 
>>> least 200 quotes. The default for Trade was actually 1000.
>>>
>>> I also suggest that the default be changed from 10 to something more 
>>> realistic for performance testing ( i.e. 1000 or even higher).
>>>
>>> Hope this helps...
>>>
>>> Chris Blythe
>>>
>>> On 6/27/06, *Joe Bohn (JIRA)* <dev@geronimo.apache.org 
>>> <mailto:dev@geronimo.apache.org>> wrote:
>>>
>>>         [
>>>     
>>> http://issues.apache.org/jira/browse/GERONIMO-1674?page=comments#action_12418036

>>>
>>>     ]
>>>
>>>     Joe Bohn commented on GERONIMO-1674:
>>>     ------------------------------------
>>>
>>>     I still get this error.  I get it with tomcat as well as jetty.   I
>>>     think I may very well be doing something wrong.  Here is my scenario
>>>     after successfully deploying daytrader.
>>>
>>>     1)  select configuration->configure Daytrader runtime paramenters
>>>     ...  and change the max users and max quotes to 10 each.   Note, I'm
>>>     not really running daytrader for performance stats ... I was just
>>>     using it to verify geronimo functions after making some substantial
>>>     changes as a way to verify that I hadn't broken things too 
>>> radically.
>>>     2)  from confirguration select (Re)-populate Daytrader
>>>     Database.  This appears to be successful.
>>>     3)  Next, from under Configuration utilities I select "Test
>>>     DayTrader Scenario" and I get this attached exception.   It does
>>>     seem strange that if I do this a number of time eventually things
>>>     seem to start working.
>>>
>>>     Here is another stack trace (unfortunately from jetty again but I do
>>>     get it with tomcat as well) from a recent attempt on 1.1.
>>>
>>>     ########## Trade configuration update. Current config:
>>>
>>>                     RunTimeMode:            Direct
>>>                     OrderProcessingMode:    Synchronous
>>>                     AcessMode:              Standard
>>>                     Workload Mix:           Standard
>>>                     Web Interface:          JSP
>>>                     CachingType:            No Caching
>>>                     #Trade  Users:          10
>>>                     #Trade Quotes:          10
>>>                     Long Run Enabled:               true
>>>
>>>     10:47:43,984 ERROR [Log] Error: TradeDirect:login -- error logging
>>>     in user
>>>             java.lang.NullPointerException
>>>     java.lang.NullPointerException
>>>             at
>>>     
>>> org.apache.geronimo.samples.daytrader.util.FinancialUtils.computeGainPercent(FinancialUtils.java:43)

>>>
>>>             at
>>>     org.apache.geronimo.samples.daytrader.MarketSummaryDataBean
>>>     .<init>(MarketSummaryDataBean.java:54)
>>>             at
>>>     
>>> org.apache.geronimo.samples.daytrader.direct.TradeDirect.getMarketSummary(TradeDirect.java:152)

>>>
>>>             at
>>>     org.apache.geronimo.samples.daytrader.TradeAction.getMarketSummary
>>>     (TradeAction.java:100)
>>>             at 
>>> jsp.marketSummary_jsp._jspService(marketSummary_jsp.java:55)
>>>             at
>>>     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>>>             at javax.servlet.http.HttpServlet.service 
>>> (HttpServlet.java:688)
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
>>>             at
>>>     
>>> org.apache.geronimo.jetty.JettyServletHolder.handle(JettyServletHolder.java:97)

>>>
>>>             at
>>>     org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
>>>     (WebApplicationHandler.java:830)
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:170)
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java

>>>
>>>     :821)
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)

>>>
>>>             at
>>>     
>>> org.apache.geronimo.jetty.JettyWebApplicationHandler.dispatch(JettyWebApplicationHandler.java:58)

>>>
>>>             at
>>>     org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:283)
>>>             at
>>>     org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
>>>             at org.apache.jasper.runtime.JspRuntimeLibrary.include
>>>     (JspRuntimeLibrary.java:966)
>>>             at jsp.tradehome_jsp._jspService(tradehome_jsp.java:151)
>>>             at
>>>     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>>>             at javax.servlet.http.HttpServlet.service 
>>> (HttpServlet.java:688)
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
>>>             at
>>>     
>>> org.apache.geronimo.jetty.JettyServletHolder.handle(JettyServletHolder.java:97)

>>>
>>>             at
>>>     org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
>>>     (WebApplicationHandler.java:830)
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:170)
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java

>>>
>>>     :821)
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)

>>>
>>>             at
>>>     
>>> org.apache.geronimo.jetty.JettyWebApplicationHandler.dispatch(JettyWebApplicationHandler.java:58)

>>>
>>>             at
>>>     org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:283)
>>>             at
>>>     org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
>>>             at
>>>     
>>> org.apache.geronimo.samples.daytrader.web.TradeServletAction.requestDispatch

>>>
>>>     (TradeServletAction.java:730)
>>>             at
>>>     
>>> org.apache.geronimo.samples.daytrader.web.TradeServletAction.doHome(TradeServletAction.java:330)

>>>
>>>             at
>>>     org.apache.geronimo.samples.daytrader.web.TradeServletAction.doLogin
>>>     (TradeServletAction.java:373)
>>>             at
>>>     
>>> org.apache.geronimo.samples.daytrader.web.TradeAppServlet.performTask(TradeAppServlet.java:127)

>>>
>>>             at
>>>     
>>> org.apache.geronimo.samples.daytrader.web.TradeAppServlet.doGet(TradeAppServlet.java

>>>
>>>     :78)
>>>             at 
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
>>>             at 
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>>>             at
>>>     org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java 
>>> :428)
>>>             at
>>>     
>>> org.apache.geronimo.jetty.JettyServletHolder.handle(JettyServletHolder.java:97)

>>>
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)

>>>
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:170)
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)

>>>
>>>             at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
>>>     (WebApplicationHandler.java:471)
>>>             at
>>>     
>>> org.apache.geronimo.jetty.JettyWebApplicationHandler.dispatch(JettyWebApplicationHandler.java:58)

>>>
>>>             at
>>>     org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:283)
>>>             at
>>>     org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
>>>             at
>>>     
>>> org.apache.geronimo.samples.daytrader.web.TradeScenarioServlet.performTask(TradeScenarioServlet.java:202)

>>>
>>>             at
>>>     org.apache.geronimo.samples.daytrader.web.TradeScenarioServlet.doGet
>>>     (TradeScenarioServlet.java:75)
>>>             at 
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
>>>             at 
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>>>             at org.mortbay.jetty.servlet.ServletHolder.handle
>>>     (ServletHolder.java:428)
>>>             at
>>>     
>>> org.apache.geronimo.jetty.JettyServletHolder.handle(JettyServletHolder.java:97)

>>>
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java

>>>
>>>     :830)
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:170)
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)

>>>
>>>             at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
>>>     (WebApplicationHandler.java:471)
>>>             at
>>>     
>>> org.apache.geronimo.jetty.JettyWebApplicationHandler.dispatch(JettyWebApplicationHandler.java:58)

>>>
>>>             at
>>>     org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java
>>>     :568)
>>>             at 
>>> org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)

>>>
>>>             at org.mortbay.http.HttpContext.handle 
>>> (HttpContext.java:1482)
>>>             at org.mortbay.http.HttpServer.service(HttpServer.java:909)
>>>             at
>>>     org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
>>>             at org.mortbay.http.HttpConnection.handleNext
>>>     (HttpConnection.java:982)
>>>             at
>>>     org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
>>>             at
>>>     
>>> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) 
>>>
>>>             at org.mortbay.util.ThreadedServer.handle
>>>     (ThreadedServer.java:357)
>>>             at
>>>     org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
>>>     10:47:44,015 WARN  [/daytrader] /daytrader/scenario:
>>>     java.lang.NullPointerException
>>>             at jsp.marketSummary_jsp._jspService 
>>> (marketSummary_jsp.java:58)
>>>             at
>>>     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>>>             at 
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>>>             at org.mortbay.jetty.servlet.ServletHolder.handle
>>>     (ServletHolder.java:428)
>>>             at
>>>     
>>> org.apache.geronimo.jetty.JettyServletHolder.handle(JettyServletHolder.java:97)

>>>
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java

>>>
>>>     :830)
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:170)
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)

>>>
>>>             at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
>>>     (WebApplicationHandler.java:471)
>>>             at
>>>     
>>> org.apache.geronimo.jetty.JettyWebApplicationHandler.dispatch(JettyWebApplicationHandler.java:58)

>>>
>>>             at
>>>     org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:283)
>>>             at
>>>     org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
>>>             at
>>>     
>>> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)

>>>
>>>             at jsp.tradehome_jsp._jspService(tradehome_jsp.java:151)
>>>             at
>>>     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>>>             at 
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>>>             at
>>>     org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java 
>>> :428)
>>>             at
>>>     
>>> org.apache.geronimo.jetty.JettyServletHolder.handle(JettyServletHolder.java:97)

>>>
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)

>>>
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:170)
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)

>>>
>>>             at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
>>>     (WebApplicationHandler.java:471)
>>>             at
>>>     
>>> org.apache.geronimo.jetty.JettyWebApplicationHandler.dispatch(JettyWebApplicationHandler.java:58)

>>>
>>>             at
>>>     org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:283)
>>>             at
>>>     org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
>>>             at
>>>     
>>> org.apache.geronimo.samples.daytrader.web.TradeServletAction.requestDispatch(TradeServletAction.java:730)

>>>
>>>             at
>>>     org.apache.geronimo.samples.daytrader.web.TradeServletAction.doHome
>>>     (TradeServletAction.java:330)
>>>             at
>>>     
>>> org.apache.geronimo.samples.daytrader.web.TradeServletAction.doLogin(TradeServletAction.java:373)

>>>
>>>             at
>>>     
>>> org.apache.geronimo.samples.daytrader.web.TradeAppServlet.performTask
>>>     (TradeAppServlet.java:127)
>>>             at
>>>     
>>> org.apache.geronimo.samples.daytrader.web.TradeAppServlet.doGet(TradeAppServlet.java:78)

>>>
>>>             at 
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
>>>             at javax.servlet.http.HttpServlet.service 
>>> (HttpServlet.java:688)
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
>>>             at
>>>     
>>> org.apache.geronimo.jetty.JettyServletHolder.handle(JettyServletHolder.java:97)

>>>
>>>             at
>>>     org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
>>>     (WebApplicationHandler.java:830)
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:170)
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java

>>>
>>>     :821)
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)

>>>
>>>             at
>>>     
>>> org.apache.geronimo.jetty.JettyWebApplicationHandler.dispatch(JettyWebApplicationHandler.java:58)

>>>
>>>             at
>>>     org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:283)
>>>             at
>>>     org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
>>>             at
>>>     
>>> org.apache.geronimo.samples.daytrader.web.TradeScenarioServlet.performTask 
>>>
>>>     (TradeScenarioServlet.java:202)
>>>             at
>>>     
>>> org.apache.geronimo.samples.daytrader.web.TradeScenarioServlet.doGet(TradeScenarioServlet.java:75)

>>>
>>>             at 
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
>>>             at 
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
>>>             at org.apache.geronimo.jetty.JettyServletHolder.handle
>>>     (JettyServletHolder.java:97)
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)

>>>
>>>             at
>>>     org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java 
>>> :170)
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)

>>>
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)

>>>
>>>
>>>             at
>>>     
>>> org.apache.geronimo.jetty.JettyWebApplicationHandler.dispatch(JettyWebApplicationHandler.java:58)

>>>
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
>>>             at org.mortbay.http.HttpContext.handle 
>>> (HttpContext.java:1530)
>>>             at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)

>>>
>>>             at 
>>> org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
>>>             at org.mortbay.http.HttpServer.service (HttpServer.java:909)
>>>             at
>>>     org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
>>>             at
>>>     org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
>>>             at org.mortbay.http.HttpConnection.handle
>>>     (HttpConnection.java:833)
>>>             at
>>>     
>>> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) 
>>>
>>>             at
>>>     org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
>>>             at org.mortbay.util.ThreadPool$PoolThread.run
>>>     (ThreadPool.java:534)
>>>
>>>      > Daytrader gets NullPointerException attempting to log in a user
>>>      > ---------------------------------------------------------------
>>>      >
>>>      >          Key: GERONIMO-1674
>>>      >          URL: http://issues.apache.org/jira/browse/GERONIMO-1674
>>>      >      Project: Geronimo
>>>      >         Type: Bug
>>>      >     Security: public(Regular issues)
>>>      >   Components: sample apps
>>>      >     Versions: 1.x
>>>      >  Environment: Windows XP
>>>      >     Reporter: Joe Bohn
>>>
>>>      >
>>>      > Daytrader gets the following NPE exception when attempting to 
>>> signon:
>>>      > 13:47:05,510 ERROR [Log] Error: TradeDirect:login -- error
>>>     logging in user
>>>      >         java.lang.NullPointerException
>>>      > java.lang.NullPointerException
>>>      >         at
>>>     
>>> org.apache.geronimo.samples.daytrader.util.FinancialUtils.computeGainPercent(FinancialUtils.java:43)

>>>
>>>      >         at
>>>     
>>> org.apache.geronimo.samples.daytrader.MarketSummaryDataBean.<init>(MarketSummaryDataBean.java:54)

>>>
>>>      >         at
>>>     
>>> org.apache.geronimo.samples.daytrader.direct.TradeDirect.getMarketSummary(TradeDirect.java:151)

>>>
>>>      >         at
>>>     
>>> org.apache.geronimo.samples.daytrader.TradeAction.getMarketSummary(TradeAction.java:99)

>>>
>>>      >         at
>>>     
>>> org.apache.jsp.marketSummary_jsp._jspService(org.apache.jsp.marketSummary_jsp:56)

>>>
>>>      >         at
>>>     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>>>      >         at
>>>     javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>>>      >         at
>>>     
>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java 
>>>
>>>     :332)
>>>      >         at
>>>     
>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>>>      >         at
>>>     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>>>      >         at javax.servlet.http.HttpServlet.service
>>>     (HttpServlet.java:688)
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
>>>      >         at
>>>     
>>> org.apache.geronimo.jetty.JettyServletHolder.handle(JettyServletHolder.java:99)

>>>
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)

>>>
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:170)
>>>      >         at
>>>     org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
>>>     (WebApplicationHandler.java:821)
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)

>>>
>>>      >         at
>>>     org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java :283)
>>>      >         at
>>>     org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
>>>      >         at
>>>     
>>> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)

>>>
>>>      >         at org.apache.jsp.tradehome_jsp._jspService
>>>     (org.apache.jsp.tradehome_jsp:282)
>>>      >         at
>>>     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>>>      >         at
>>>     javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>>>      >         at org.apache.jasper.servlet.JspServletWrapper.service
>>>     (JspServletWrapper.java:332)
>>>      >         at
>>>     
>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>>>      >         at
>>>     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>>>      >         at
>>>     javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
>>>      >         at org.apache.geronimo.jetty.JettyServletHolder.handle
>>>     (JettyServletHolder.java:99)
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)

>>>
>>>      >         at
>>>     org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java 
>>> :170)
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)

>>>
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java

>>>
>>>     :471)
>>>      >         at
>>>     org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:283)
>>>      >         at
>>>     org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
>>>      >         at
>>>     
>>> org.apache.geronimo.samples.daytrader.web.TradeServletAction.requestDispatch

>>>
>>>     (TradeServletAction.java:730)
>>>      >         at
>>>     
>>> org.apache.geronimo.samples.daytrader.web.TradeServletAction.doHome(TradeServletAction.java:319)

>>>
>>>      >         at
>>>     org.apache.geronimo.samples.daytrader.web.TradeServletAction.doLogin
>>>     (TradeServletAction.java:357)
>>>      >         at
>>>     
>>> org.apache.geronimo.samples.daytrader.web.TradeAppServlet.performTask(TradeAppServlet.java:132)

>>>
>>>      >         at
>>>     org.apache.geronimo.samples.daytrader.web.TradeAppServlet.doPost
>>>     (TradeAppServlet.java:94)
>>>      >         at
>>>     javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
>>>      >         at
>>>     javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>>>      >         at org.mortbay.jetty.servlet.ServletHolder.handle
>>>     (ServletHolder.java:428)
>>>      >         at
>>>     
>>> org.apache.geronimo.jetty.JettyServletHolder.handle(JettyServletHolder.java:99)

>>>
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java

>>>
>>>     :830)
>>>      >         at
>>>     
>>> org.apache.geronimo.samples.daytrader.web.OrdersAlertFilter.doFilter(OrdersAlertFilter.java:92)

>>>
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java

>>>
>>>     :821)
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:170)
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)

>>>
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)

>>>
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
>>>      >         at org.mortbay.http.HttpContext.handle
>>>     (HttpContext.java:1530)
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)

>>>
>>>      >         at 
>>> org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
>>>      >         at 
>>> org.mortbay.http.HttpServer.service(HttpServer.java:909)
>>>      >         at
>>>     org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
>>>      >         at
>>>     org.mortbay.http.HttpConnection.handleNext(HttpConnection.java :982)
>>>      >         at
>>>     org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
>>>      >         at
>>>     
>>> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) 
>>>
>>>      >         at org.mortbay.util.ThreadedServer.handle
>>>     (ThreadedServer.java:357)
>>>      >         at
>>>     org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
>>>      > 13:47:05,560 WARN  [/daytrader] /daytrader/app:
>>>      > java.lang.NullPointerException
>>>      >         at
>>>     
>>> org.apache.jsp.marketSummary_jsp._jspService(org.apache.jsp.marketSummary_jsp:63)

>>>
>>>      >         at
>>>     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>>>      >         at javax.servlet.http.HttpServlet.service
>>>     (HttpServlet.java:688)
>>>      >         at
>>>     
>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)

>>>
>>>      >         at
>>>     
>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>>>      >         at
>>>     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>>>      >         at
>>>     javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>>>      >         at
>>>     org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java 
>>> :428)
>>>      >         at
>>>     
>>> org.apache.geronimo.jetty.JettyServletHolder.handle(JettyServletHolder.java:99)

>>>
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)

>>>
>>>
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:170)
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)

>>>
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)

>>>
>>>      >         at
>>>     org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:283)
>>>      >         at org.mortbay.jetty.servlet.Dispatcher.include
>>>     (Dispatcher.java:163)
>>>      >         at
>>>     
>>> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)

>>>
>>>      >         at
>>>     
>>> org.apache.jsp.tradehome_jsp._jspService(org.apache.jsp.tradehome_jsp:282) 
>>>
>>>      >         at
>>>     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>>>      >         at
>>>     javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>>>      >         at
>>>     
>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java 
>>>
>>>     :332)
>>>      >         at
>>>     
>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>>>      >         at
>>>     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>>>      >         at javax.servlet.http.HttpServlet.service
>>>     (HttpServlet.java:688)
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
>>>      >         at
>>>     
>>> org.apache.geronimo.jetty.JettyServletHolder.handle(JettyServletHolder.java:99)

>>>
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)

>>>
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:170)
>>>      >         at
>>>     org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
>>>     (WebApplicationHandler.java:821)
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)

>>>
>>>      >         at
>>>     org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java :283)
>>>      >         at
>>>     org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163)
>>>      >         at
>>>     
>>> org.apache.geronimo.samples.daytrader.web.TradeServletAction.requestDispatch(TradeServletAction.java:730)

>>>
>>>      >         at
>>>     
>>> org.apache.geronimo.samples.daytrader.web.TradeServletAction.doHome(TradeServletAction.java:319)

>>>
>>>      >         at
>>>     
>>> org.apache.geronimo.samples.daytrader.web.TradeServletAction.doLogin(TradeServletAction.java:357)

>>>
>>>      >         at
>>>     
>>> org.apache.geronimo.samples.daytrader.web.TradeAppServlet.performTask(TradeAppServlet.java:132)

>>>
>>>      >         at
>>>     
>>> org.apache.geronimo.samples.daytrader.web.TradeAppServlet.doPost(TradeAppServlet.java:94)

>>>
>>>      >         at
>>>     javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
>>>      >         at
>>>     javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>>>      >         at
>>>     org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java 
>>> :428)
>>>      >         at
>>>     
>>> org.apache.geronimo.jetty.JettyServletHolder.handle(JettyServletHolder.java:99)

>>>
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)

>>>
>>>
>>>      >         at
>>>     
>>> org.apache.geronimo.samples.daytrader.web.OrdersAlertFilter.doFilter(OrdersAlertFilter.java:92)

>>>
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java

>>>
>>>     :821)
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:170)
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)

>>>
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)

>>>
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
>>>      >         at org.mortbay.http.HttpContext.handle
>>>     (HttpContext.java:1530)
>>>      >         at
>>>     
>>> org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)

>>>
>>>      >         at 
>>> org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
>>>      >         at 
>>> org.mortbay.http.HttpServer.service(HttpServer.java:909)
>>>      >         at
>>>     org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
>>>      >         at
>>>     org.mortbay.http.HttpConnection.handleNext(HttpConnection.java :982)
>>>      >         at
>>>     org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
>>>      >         at
>>>     
>>> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) 
>>>
>>>      >         at org.mortbay.util.ThreadedServer.handle
>>>     (ThreadedServer.java:357)
>>>      >         at
>>>     org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
>>>
>>>     --
>>>     This message is automatically generated by JIRA.
>>>     -
>>>     If you think it was sent incorrectly contact one of the 
>>> administrators:
>>>        http://issues.apache.org/jira/secure/Administrators.jspa
>>>     -
>>>     For more information on JIRA, see:
>>>        http://www.atlassian.com/software/jira
>>>
>>>
>>
> 
> 
> 

Mime
View raw message