You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by BJ Freeman <bj...@free-man.net> on 2008/09/06 11:53:07 UTC

exceptions not showing--GenericEntityException

have some code

   public static String somefoo(HttpServletRequest request,
            HttpServletResponse response) {
 callfoo();
}

callfoo()
{
            try {
                userLogin = delegator.findByPrimaryKey("UserLogin", UtilMisc
                        .toMap("userLoginId", "someloginID"));
            } catch (GenericEntityException e) {
                Debug
                        .logError(
                                e.getMessage()+
                                "Unable to find login in UserLogin;
Check seed data",module);
            }
 }

when the someloginID is not found should get and excepton
but logs says
Exception error in somefoo
not
Exception error in callfoo
nor does the debug.logerror show up.
is this a problem with the GenericEntityException



Re: exceptions not showing--GenericEntityException

Posted by BJ Freeman <bj...@free-man.net>.
I bring this up because in the ver3.0 code under 1.4 this code worked.
so I am trying to find out, what in 1.5 or refactoring might be causing
this.


BJ Freeman sent the following on 9/6/2008 2:53 AM:
> have some code
> 
>    public static String somefoo(HttpServletRequest request,
>             HttpServletResponse response) {
>  callfoo();
> }
> 
> callfoo()
> {
>             try {
>                 userLogin = delegator.findByPrimaryKey("UserLogin", UtilMisc
>                         .toMap("userLoginId", "someloginID"));
>             } catch (GenericEntityException e) {
>                 Debug
>                         .logError(
>                                 e.getMessage()+
>                                 "Unable to find login in UserLogin;
> Check seed data",module);
>             }
>  }
> 
> when the someloginID is not found should get and excepton
> but logs says
> Exception error in somefoo
> not
> Exception error in callfoo
> nor does the debug.logerror show up.
> is this a problem with the GenericEntityException
> 
> 
> 
> 
>