Java Reflection Is Not Working At JCS SX (Doc ID 2286519.1)

Last updated on JULY 20, 2017

Applies to:

Oracle Java Cloud Service - SaaS Extension - Version N/A to N/A [Release 1.0]
Information in this document applies to any platform.

Goal

The same code is working fine at local integrated weblogic server but failed in JCS-SX

It is throwing below error in run time 

<suppl_detail>java.security.AccessControlException: Access not allowed on the non-visible fields/methods/constructors [private static final java.lang.String[] java.net.HttpURLConnection.methods] of java.net.HttpURLConnection
at oracle.cloud.jcs.scanning.impl.extension.access.SetAccessibleInterceptorBase.validateOwner(SetAccessibleInterceptorBase.java:100)
at oracle.cloud.jcs.scanning.impl.extension.access.SetAccessibleInterceptor.intercept(SetAccessibleInterceptor.java:62)
at oracle.cloud.jcs.scanning.impl.extension.CloudInvocationHandlerAdapter.invoke(CloudInvocationHandlerAdapter.java:87)
at oracle.cloud.jcs.security.SecurityManager_NCSXY65639mbxyc.__deny_or_fwd__NKlaUtGcIfZ6IA6TYvXEifExBd4__M8a_REF_POLICY_ID_508(SecurityManager_NCSXY65639mbxyc.java:1742)
at com.servco.scm.workorderservice.wsclient.WorkOrderWSClient.setConnection(WorkOrderWSClient.java:252)
at com.servco.scm.workorderservice.wsclient.WorkOrderWSClient.patchWorkOrderNew(WorkOrderWSClient.java:102)
at view.backing.JSWUpdated.submitAndRelease(JSWUpdated.java:757)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
 

Solution

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