You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Eran Chinthaka <ch...@opensource.lk> on 2006/11/01 18:49:13 UTC

Re: [Axis2] NullPointerException

http://issues.apache.org/jira/browse/AXIS2-1576.

Thanks Christopher. This will be fixed soon.

Christopher Bare wrote:
> One more zinger comin' up... Actually, this is the same zinger complete with the screw-up (mine) that caused it.
> 
> org.apache.axis2.AxisFault: null; nested exception is: 
> java.lang.NullPointerException
>     at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:716)
>     at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:581)
>     at org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:167)
>     at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:177)
> [...snip...]
> Caused by: java.lang.NullPointerException
>     at org.apache.axis2.description.AxisService2OM.generateOM(AxisService2OM.java:128)
>     at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:711)
> 
> The NPE originates here (line 127-128 of AxisService2OM):
> 
>         Map nameSpaceMap = axisService.getNameSpacesMap();
>         Iterator keys = nameSpaceMap.keySet().iterator();
> 
> 
> The cause is that I typed this:
> 
> <parameter name="serviceClass">cbare.books.ws.BookWs</parameter>
> 
> When a shoulda typed this:
> 
> <parameter name="ServiceClass">cbare.books.ws.BookWs</parameter>
> 
> Granted, that's a class-A bonehead move on my part. But, perhaps my bumbling exposes a issue with the nullability or not of that nameSpaceMap.
> 
> Thanks,
> 
> -Chris
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
>