dev@jax-ws.java.net

Re: MessageContext.keySet(). NPE when iterating

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Thu, 31 Aug 2006 18:36:32 +0200

Jitendra Kotamraju wrote:
> I think you are referring to 2.0.1
right.
> Can you file a bug.
https://jax-ws.dev.java.net/issues/show_bug.cgi?id=47

Alexey.

>
> Jitu
>
> Oleksiy Stashok wrote:
>
>> Hi,
>>
>> im getting NPE in WS implementation.
>>
>> / @Resource
>> private WebServiceContext wsContext;
>>
>> public void serv() {
>> for(String s : wsContext.getMessageContext().keySet())
>> System.out.println(s);
>> }
>> /
>> this WS method, when called will throw NPE:
>> [java] java.lang.NullPointerException
>> [java] at
>> java.util.AbstractMap$1$1.hasNext(AbstractMap.java:379)
>>
>>
>> WBR,
>> Alexey.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: dev-help_at_jax-ws.dev.java.net
>