findListIteratorByCondition ( ) :

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

findListIteratorByCondition ( ) :

vijay Si
Hi,

i have an exception generated when this line of code is encountered :
"delegator .findListIteratorByCondition ( dve , mainCond1 , null , null ,
null , findOpts ) ;"

where : dve is DynamicViewEntity, mainCond1 is the where condition ,
findOpts is SCROLL_INSEN......

it says : "Target exception: java.lang.NullPointerException"

Does this mean that when the where condition was executed it did not find
any entries in the coressponding tables (which were reffered to, in the
where-condition).? That is, it is a database error.

I do not find any other problem with code.

Regards
Reply | Threaded
Open this post in threaded view
|

Re: findListIteratorByCondition ( ) :

Walter Vaughan
vijay Si wrote:

> i have an exception generated when this line of code is encountered :
> "delegator .findListIteratorByCondition ( dve , mainCond1 , null , null ,
> null , findOpts ) ;"
> where : dve is DynamicViewEntity, mainCond1 is the where condition ,
> findOpts is SCROLL_INSEN......
>
> it says : "Target exception: java.lang.NullPointerException"

And yet have yet to see that ofBiz tosses that without a reason.

If I were Si Chen, I'd pop a Debug.log before that statement and display all of
the variables in the log file...
If I were someone good with Eclipse, I'd watch the variables...

And you really should cut and paste instead of transcribing...
unless you really have a space between delegator and .fileList, at which point
I'm pretty sure that is not a good thing.

Something's null.


Reply | Threaded
Open this post in threaded view
|

Re: findListIteratorByCondition ( ) :

John Gabriel
Walter Vaughan wrote
If I were someone good with Eclipse, I'd watch the variables...
Hi all,
I am new to OFBiz and I was wandering how it is possible to watch the variables in Eclispse.

Thanks in advance,
John Gabriel
Reply | Threaded
Open this post in threaded view
|

Re: findListIteratorByCondition ( ) :

Jacques Le Roux
Administrator
All you should know about Eclipse and OFBiz

Mandatory in your case
http://docs.ofbiz.org/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse#RunningandDebuggingOFBizinEclipse-DebuggingInEclipse

Useful
http://docs.ofbiz.org/display/OFBIZ/Eclipse+Tips
http://docs.ofbiz.org/display/OFBIZ/Plugins

Advanced
http://docs.ofbiz.org/display/OFBIZ/Mylar

Jacques

De : "John Gabriel" <[hidden email]>

>
>
> Walter Vaughan wrote:
> >
> > If I were someone good with Eclipse, I'd watch the variables...
> >
>
> Hi all,
> I am new to OFBiz and I was wandering how it is possible to watch the
> variables in Eclispse.
>
> Thanks in advance,
> John Gabriel
> --
> View this message in context: http://www.nabble.com/findListIteratorByCondition-%28-%29-%3A-tf4500540.html#a12839102
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: findListIteratorByCondition ( ) :

John Gabriel
Thanks Jacques,

It helped a lot!

John Gabriel