WLS 10.3.2 - Webservice clientgen ant task fails with IllegalArgumentException due to "null btName" (Doc ID 1074089.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle Weblogic Server - Version: 10.3.2
Information in this document applies to any platform.

Symptoms

When invoking webservice client generated with clientgen in WLS 10.3.2, the following exception is shown:

java.lang.IllegalArgumentException: null btName
at com.bea.staxb.buildtime.internal.bts.CompositeBindingLoader.getBindingType(CompositeBindingLoader.java:81)
at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.createJaxRpcSimpleContentPropertyFor(Deploytime109MappingHelper.java:1371)
at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.createBindingTypeFrom(Deploytime109MappingHelper.java:1249)
at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.processTypeMappings(Deploytime109MappingHelper.java:519)
at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.initBindingFileFrom109dd(Deploytime109MappingHelper.java:266)
at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.(Deploytime109MappingHelper.java:166)
at weblogic.wsee.bind.runtime.internal.RuntimeBindingsBuilderImpl.createRuntimeBindings(RuntimeBindingsBuilderImpl.java:86)
at weblogic.wsee.ws.WsBuilder.createRuntimeBindingProvider(WsBuilder.java:705)
at weblogic.wsee.ws.WsBuilder.buildService(WsBuilder.java:409)
at weblogic.wsee.ws.WsFactory.createClientService(WsFactory.java:45)
at weblogic.wsee.jaxrpc.ServiceImpl.init(ServiceImpl.java:162)
at weblogic.wsee.jaxrpc.ServiceImpl.(ServiceImpl.java:129)
at mytest.myapp.metadata.mdr.ns.neccap.fpjjds.x1010.JdnetsDataServiceService_Impl.(Unknown Source)
at com.myco.subscriptions.JdnetsSubApp.run(JdnetsSubApp.java:421)

Client is run as a standard java application.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms