title: NullPointerException when creating instance of javax.xml.ws.Service on weblogic 12.2.1.3
body: <p>We have a EshopService_Service class generated by JAX-WS RI 2.2.9-b130926.1035 - Generated source version: 2.2 from wsdl file.</p>
  
  <p>After upgrading from weblogic version 12.1.2.0.0 to 12.2.1.3 we got this stack when creating Service instance:</p>
  
  <p>java.lang.NullPointerException</p>
  
  <pre><code>    at com.oracle.webservices.impl.wsdl.WSDLBoundOperationImpl.&lt;init&gt;(WSDLBoundOperationImpl.java:540)
  
      at com.oracle.webservices.impl.wsdl.WSDLBoundPortTypeImpl.&lt;init&gt;(WSDLBoundPortTypeImpl.java:80)
  
      at com.oracle.webservices.impl.wsdl.WSDLModelImpl.mapBindings(WSDLModelImpl.java:169)
  
      at com.oracle.webservices.impl.wsdl.WSDLModelImpl.mapBindings(WSDLModelImpl.java:189)
  
      at com.oracle.webservices.impl.wsdl.WSDLModelImpl.&lt;init&gt;(WSDLModelImpl.java:48)
  
      at com.oracle.webservices.impl.wsdl.WSDLConverterImpl.wsdlModelFromDefinition(WSDLConverterImpl.java:292)
  
      at com.oracle.webservices.impl.wsdl.WSDLConverterImpl.getWSDLModel(WSDLConverterImpl.java:248)
  
      at com.oracle.webservices.impl.wsdl.WSDLConverterImpl.getWSDLService(WSDLConverterImpl.java:303)
  
      at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegateImpl.&lt;init&gt;(WLSProvider.java:1124)
  
      at weblogic.wsee.jaxws.spi.WLSProvider.createServiceDelegate(WLSProvider.java:223)
  
      at weblogic.wsee.jaxws.spi.WLSProvider.createServiceDelegate(WLSProvider.java:150)
  
      at javax.xml.ws.Service.&lt;init&gt;(Service.java:77)
  
      at xx.xx.xxxxxxx.services.eshop.EshopService_Service.&lt;init&gt;(EshopService_Service.java:40)
  
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  
      at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  
      at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
  
      at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)
  
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:59)
  
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:238)
  
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:242)
  
      at com.xxx.prj.xxx.col.integration.business.IntegrationService.getEshopServicePort(IntegrationService.groovy:39)
  
      at com.xxx.prj.xxxx.col.integration.business.IntegrationService.&lt;init&gt;(IntegrationService.groovy:46)
  
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  </code></pre>
  
  <p>WSDLBoundOperationImpl is internal class of weblogic and there is no information about that class on web…</p>
  
  <p>We’ve decompiled class WSDLBoundOperationImpl and it looks it is failing on <code>owner.getPortType().get(this.name);</code> when owner.getPortType() returns null...</p>
  
  <p>Fact is that our WSDL does not contains any of “portType” element, but portType is not required wsdl directive and same WSDL was working well with Weblogic version 12.1.2.0.0 .</p>
  
  <p>How to solve this problem? We can not change content of wsdl file...</p>
  
  <p>Thank you.</p>