My Oracle Support Banner

webservices/rest/login returns Could not write XML response , ISG_DATA_TYPE_CONVERSION_ERROR and ClassCastException: weblogic.net.http.SOAPHttpsURLConnection cannot be cast to javax.net.ssl.HttpsURLConnection (Doc ID 3014456.1)

Last updated on DECEMBER 10, 2024

Applies to:

Oracle E-Business Suite Integrated SOA Gateway - Version 12.2.12 and later
Information in this document applies to any platform.

Symptoms

On : 12.2.12 version, Installation Issues

When calling /webservices/rest/login, these are multiple symtoms of the same problem:

The application calling (e.g postman) sees

Status: 200 ok 

and in the response body an empty json : {}

Status: 200 ok

and in the response body the string: Could not write XML

In both cases, oafm_server1.out shows

<Warning> <oracle.as.jmx.framework.generic.spi.BaseJMXFrameworkProviderImpl> <BEA-000000> <The configuration at URI "/u01/xxxx/fs2/FMW_Home/user_projects/domains/EBS_domain/config/fmwconfig/mbeans/../default-keystore.jks" cannot be loaded.>

ISGRootException: ISG_DATA_TYPE_CONVERSION_ERRORError while converting JSON object to XML document

ISGRootException: ISG_DATA_TYPE_CONVERSION_ERRORError while converting JSON object to XML documentStart of root element expected.

java.lang.ClassCastException: weblogic.net.http.SOAPHttpsURLConnection cannot be cast to javax.net.ssl.HttpsURLConnection

at oracle.apps.fnd.isg.app.ebs.impl.AolSecurityServiceHandler.processGETRequest(AolSecurityServiceHandler.java:243)

 

The expected response in either case is XML with contents similar to

<?xml version = '1.0' encoding = 'UTF-8'?>

<data>

<ebsVersion>12.2.10</ebsVersion>

<userName>SYSADMIN</userName>

</data>

** notice, accessToken and accessTokenName are not expected by default in the response. see Doc ID 2938671.1.

 

The steps to replicate are:

Use a tool such as postman to call the URL http://EBSSERVER:port/webservices/rest/login with HTTP Verb GET or POST.

There is an example at

ISG: Integrated SOA Gateway Login Rest Service (/webservices/rest/login) Does Not Returns Session Token Name, Session Token Value (Doc ID 2938671.1)

Test with both POST and GET.

Alternatively, for the GET scenario, just open a web browser and point it to http://EBSSERVER:port/webservices/rest/login

and enter the username and password when prompted .

 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.