commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Kitching <si...@ecnetwork.co.nz>
Subject Re: [digester] NullPointerException :Digester.addObjectCreate
Date Mon, 01 Sep 2003 07:56:11 GMT
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
> 
> 


Mime
View raw message