"java.lang.NullPointerException" When Generating PL/SQL Web Service with XmlType Argument in JDeveloper 11.1.1.2.0 (Doc ID 1085326.1)

Last updated on FEBRUARY 10, 2017

Applies to:

Web Services - Version: 11.1.1.0.0 to 11.1.1.2.0
Information in this document applies to any platform.

Symptoms

When using JDeveloper 11.1.1.2.0 wizard to generate Web Services from PL/SQL function with xmltype argument like the following:
Function F_xmltype_1( arg1 in xmltype) return xmltype;

Got the error below:

java.lang.NullPointerException
at oracle.j2ee.ws.common.tools.wscompile.CompileTool.validateSeiImplementationUsingJot(CompileTool.java:421)
at oracle.j2ee.ws.common.tools.wscompile.CompileTool.withModelHook(CompileTool.java:382)
at oracle.j2ee.ws.tools.wsa.AssemblerTool.withModelHook(AssemblerTool.java:69)
at oracle.j2ee.ws.tools.wsa.AssemblerTool.run(AssemblerTool.java:129)
at oracle.j2ee.ws.tools.wsa.JavaToWsdlTool.run(JavaToWsdlTool.java:297)
at oracle.j2ee.ws.tools.wsa.JavaToWsdlTool.createWSDL(JavaToWsdlTool.java:191)
at oracle.j2ee.ws.tools.wsa.Util.createWSDL(Util.java:1178)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.jdeveloper.webservices.Assembler$2$1.invoke(Assembler.java:234)
at $Proxy39.createWSDL(Unknown Source)
at oracle.jdeveloper.webservices.model.plsql.generator.CreateWSDL.generateWSDL(CreateWSDL.java:138)
at oracle.jdeveloper.webservices.model.plsql.generator.CreateWSDL.createWSDL(CreateWSDL.java:53)
at oracle.jdeveloper.webservices.model.generator.CommonCreateWSDL.action(CommonCreateWSDL.java:59)
at oracle.jdeveloper.webservices.model.generator.GeneratorAction.run(GeneratorAction.java:148)
at java.lang.Thread.run(Thread.java:619)


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