Tuesday Apr 14, 2015
Monday Mar 30, 2015
By Asantaga-Oracle on Mar 30, 2015
Recently I was coding up a REST client for use with Oracle Documents Cloud, using Jersey REST client, and it needed to be deployed to Oracle Java Cloud SX (aka JCSSX). The client code worked perfectly on a local Weblogic 11g but when deployed to the JCSSX instance it would give the following error :
java.lang.RuntimeException: java.security.AccessControlException: access denied ("java.net.SocketPermission" "partners-pts.documents.us2.somecloud.com:443", "connect,resolve")
Initially I was convinced that this was some sort of networking issue in JCSSX, I.e. it couldn't connect to the documents cloud server via the network.. I even tried manually setting the proxy in the Java Code all to no avail..
After quite a while looking I discovered the problem...
This is the detailed error message I got :
Caused by: java.security.AccessControlException: access denied ("java.net.SocketPermission" "partners-pts.documents.us2.somecloud.com:443" "connect,resolve")
The bold bits hint at the issue.. For some reason my code was using the Sun HTTP Handler which isn't supported on the JCSSX stack but I hadnt configured it to use the Sun Http Handler...You can get your code to use the Sun Http Handler by either setting the system property "UseSunHttpHandler=true" in code or by using Oracle Cloud SDK to set it as a system property.
To check if you have the UseSunHttpHandler set, issue the following command (changing your JCSSX details)
| javacloud list-system-properties -user <username> -p <password> -id <identityDomain>-si <serverInstance> -httpproxy <httpProxy:port> -datacenter <dataCenterName>
If you have the UseSunHttpHander set to true, or even present, then remove it! Someone had set it in my instance but none of my team members would admit to it.....
|javacloud delete-system-property -user <username> -p <password> -id <identityDomain>-si <serverInstance> -httpproxy <httpProxy:port> -datacenter <dataCenterName> -name UseSunHttpHandler|
Restart your instance and all should then be well.
We've logged an enhancement request to get JCSSX to ignore this specific system property but just incase you hit it before the ER hits the JCSSX servers.
By Asantaga-Oracle on Mar 30, 2015
We'll be updating this repository with some new code soon, when we do I'll make sure to update this blog entry
Thursday Feb 19, 2015
By Asantaga-Oracle on Feb 19, 2015
About two years ago my role changed from focusing on Fusion Middleware enablement to SaaS Integration enablement. Simply put my team started looking at how to get partners integrated with our SaaS applications (SalesCloud - CRM, HCM, ERP ) using PaaS where needed and more recently also looking at the pure PaaS enablement model.
The market is growing and we now have an enterprise app store aimed at partners where they can host their apps and integrations. Checkout this video recently released featuring my VP, Sanjay Sinha, where he explains the ISV partner eco-system, how its changing the way we do business and the key benefits for ISV and OEM partners.
Thursday Apr 17, 2014
Deploying JAXWS to JCS?? Getting "java.lang.ClassNotFoundException: org.apache.xalan.processor.TransformerFactoryImpl" error
By Asantaga-Oracle on Apr 17, 2014
- Deploying JAX-WS or a Spring app to Oracle Java Cloud XX.XX, and getting a "java.lang.ClassNotFoundException org.apache.xalan.processor.TransformerFactoryImpl" ? but the application works perfectly fine on a local Weblogic Server??
- The issue
- Its a bug on Java Cloud Server (bug#18241690), basically JCS is picking up the wrong XSL transformer
- In your code simply put the following piece of java code to execute when your application starts up
And all should be fine :-)
Architect & Technology Evangelist - If its middleware,PaaS/SaaS integration then I'm interested
The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.
- Getting started with Sales Cloud (Updated)
- SalesCloud Payload : How to create a Activity(Task)
- Creating Sales Cloud Opportunity
- Scheduling Processes on Oracle JavaCloud Service SaaS Extensions (JCSSX)
- Sample Payload : Creating a Lead
- Smart watches in the enterprise?
- Getting inaccessible URL when executing REST calls within JCSSX????
- PTS Sample code now available on GitHub
- What has Angelo been doing? Whats this marketplace all about?
- Snippet : How to query the Sales Cloud users username in groovy and in EL