You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Jai PP <jp...@yahoo.com> on 2003/08/29 21:15:15 UTC
Re: [digester] NullPointerException :Digester.addObjectCreate
I am getting null pointer exception at
addObjectCreate. When there are lot of nodes. I am
using latest 1.5 digester. Pls see the below code, if
I run this many times or if there are lot of elements
of A/B then following error is encountered.
Exception : java.lang.NullPointerException
void
org.apache.commons.digester.Digester.addObjectCreate(java.lang.String,
java.lang.String)
Here is what I am doing. When tag A/B is obtained
creating an object myBeanClass and calling addSetNext
every time
// push the gloabl object
digester.push(this);
digester.addObjectCreate(
"A/B",
myBeanClass);
// set some bunch of values using
digester.addBeanPropertySetter(..);
digester.addBeanPropertySetter(..);
....
call the add next rules
digester.addSetNext("A/B", "process");
public void process(myBeanClass myBeanClassObj)
{
}
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Re: [digester] NullPointerException :Digester.addObjectCreate
Posted by Simon Kitching <si...@ecnetwork.co.nz>.
Hi Jai,
Please send the complete output generated when the exception occurs, ie
the full stack-trace. Without this, it is hard to know what the problem
might be.
Regards,
Simon
On Sat, 2003-08-30 at 07:15, Jai PP wrote:
> I am getting null pointer exception at
> addObjectCreate. When there are lot of nodes. I am
> using latest 1.5 digester. Pls see the below code, if
> I run this many times or if there are lot of elements
> of A/B then following error is encountered.
>
> Exception : java.lang.NullPointerException
> void
> org.apache.commons.digester.Digester.addObjectCreate(java.lang.String,
> java.lang.String)
>
> Here is what I am doing. When tag A/B is obtained
> creating an object myBeanClass and calling addSetNext
> every time
>
> // push the gloabl object
> digester.push(this);
> digester.addObjectCreate(
> "A/B",
> myBeanClass);
> // set some bunch of values using
> digester.addBeanPropertySetter(..);
> digester.addBeanPropertySetter(..);
> ....
>
> call the add next rules
>
> digester.addSetNext("A/B", "process");
>
>
> public void process(myBeanClass myBeanClassObj)
> {
> }
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>