Clientgen Creates Wrong Binding Classes For The Schema Given In The WSDL (Doc ID 1185843.1)

Last updated on NOVEMBER 05, 2016

Applies to:

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

Symptoms

The problems at compilation time are about the wrong binding extension from the WSDL.

The compilation exception is about the xml binding and creation of the classes that implement java.io.Serializable instead of extending from com.atlassian.confluence.rpc.RemoteException that is the extension tag in the wsdl.

A tag with problem is:
<complexType name="InvalidSessionException">
<complexContent>
<extension base="tns1:RemoteException">
<sequence/>
</extension>
</complexContent>
</complexType>

where the extension is not being recognized and creating the following class:
package com.atlassian.confluence.rpc;

public class InvalidSessionException implements java.io.Serializable {
}

but the correct version is:
package com.atlassian.confluence.rpc;

public class InvalidSessionException extends com.atlassian.confluence.rpc.RemoteException {
}

Later then the Java compiler fails showing:
[javac] Compiling 4 source files
[javac]
C:\tmp\ws-oc4j\wiki-proxy\wiki\proxy\ConfluenceSoapService.java:15:
incompatible types
[javac] found : com.atlassian.confluence.rpc.InvalidSessionException
[javac] required: java.lang.Throwable
[javac] public java.lang.String[] getPermissions(java.lang.String
in0,java.lang.String in1) throws java.rmi.RemoteException,
com.atlassian.confluence.rpc.InvalidSessionException,
com.atlassian.confluence.rpc.RemoteException;
...

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