Re: toString of DefaultModel

Gene McCullough <[email protected]> Tue, 27 Sep 2005 12:56:07 -0500
Newsgroups gmane.comp.java.keel.devel
Message-ID <[email protected]>
something was definitely out of sync.  refreshed from dev CVS, rebuilt,
same result, only:
java.lang.NullPointerException
        at
org.keel.services.model.defaultmodel.AbstractResponseElement.toString(AbstractResponseElement.java:184)
        at
org.keel.services.model.defaultmodel.DefaultModelResponse.toString(DefaultModelResponse.java:523)


in my trial and error so far, it comes down to a null logger throwing
the npe.  Behind that, something seems to be calling endEntity too many
times that is causing the initial exception.

still investigating.

Thanks
gene

Raoul Pierre wrote:
> Gene,
> 
>>  
>>
>>> I get a Null pointer exception invariably now when I output the response
>>> as a String.
>>>
>>> java.lang.NullPointerException
>>>        at
>>> org.keel.services.model.defaultmodel.AbstractResponseElement.toString(AbstractResponseElement.java:184)
>>>
>>>        at
>>> org.keel.services.model.defaultmodel.DefaultModelResponse.toString(DefaultModelResponse.java:492)
>>>
>>>   
> 
> The line number above is strange. I just cheked out
> svc-model-defaultmodel from cvs and line 492 is not inside
> DefaultModelResponse.toString(). Can you check your version.
> 
>> I'm not getting any logging from AbstractResponseElement, and when I
>> replaced the this.log.error() entry with a System.out.println, the null
>> pointer went away.  (from the catch block in toString)
>>
>> Is this related to the logging problem you had Pierre?  I am having
>> problems with the xmlwriter, but they were why the catch block was then
>> throwing the npe.  I'll track down my xmlwriter issues.  it looks like
>> its having problems with my outputs.
>>  
>>
> I'm out for 3 hours.
> 
> Pierre
> 
> 
> http://keelframework.org/documentation.shtml
> Keelgroup mailing list
> [email protected]
> http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com
> 
http://keelframework.org/documentation.shtml
Keelgroup mailing list
[email protected]
http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com