geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Gawor (JIRA)" <>
Subject [jira] Created: (DAYTRADER-51) NPE when logging in with an unknown username
Date Wed, 08 Aug 2007 18:56:59 GMT
NPE when logging in with an unknown username

                 Key: DAYTRADER-51
             Project: DayTrader
          Issue Type: Bug
          Components: EJB Tier
    Affects Versions: 2.0
            Reporter: Jarek Gawor

I was testing DayTrayder (in web services mode) and tried to log in with a bad username. That
resulted in a bad NPE exception because
returned null instead of throwing an exception. I assume an exception should be raised. If
null can be returned the web services code needs to be changed to handle that.

Here's what I see in the logs:

14:29:43,775 ERROR [Log] Error: TradeDirect:login -- failure to find account forhhh
14:29:43,776 ERROR [Log] Error: TradeDirect:login -- error logging in user
        javax.ejb.FinderException: Cannot find account forhhh
javax.ejb.FinderException: Cannot find account forhhh
        at org.apache.geronimo.samples.daytrader.TradeAction.login(
        at org.apache.geronimo.samples.daytrader.soap.TradeWSAction.login(


Caused by: java.lang.NullPointerException
        at org.apache.geronimo.samples.daytrader.soap.Convert.convertAccountDataBean(
        at org.apache.geronimo.samples.daytrader.soap.TradeWSAction.login(
        ... 41 more

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message