Below are the bugs which we found while working with JDeveloper 22.214.171.124.0 and their corresponding work arounds
Recently I had migrated the MAF app for one of our client to IOS 9.2 using MAF 2.2.1 and found the issue like below.
The resource could not be loaded because the App Transport Security policy requires the use of a secure connection
Below are the steps to fix the issue
The main complaint against the JDeveloper is that it is very slow..Yes, of course you can increase the heapsize and use 64 bit jdk to speed up the slow jdeveloper.
But still the design view for the page and page fragment is very slow.Sometimes it hangs and creates lot of frustration among the ADF developers.Here is the way you can set the default view as source view for the page and page fragment.
The navigations were slightly confusing in 12.1.3 JDeveloper..Here is the screenshot for the same.
I had a requirement to move a bunch of personalization from one instance to another in my current project.I did lot of googling as well as raised an SR with oracle to find the best way to move the personalizations from one instance to another..And then I gave up on it for sometime and later while researching on a different topic I found out the best way to move adf saved queries and user personalization.
It is as simple as export from the source instance and import into the destination MDS using the EM Console.Let me show the steps here..
I got really excited to hear the news that Oracle JDeveloper 12c released finally.I tried to install the 12c jdeveloper to get my hands dirty but couldn’t even install it :(.
On windows, installer quit abruptly without any error message and on MAC, what the heck happened I don’t even know.Here is the solution to install them successfully on MAC and Windows.
In the last article, I had taken you through the steps required to source control your Oracle ADF apps with the help of code.adfapps.com repository and subversion.Let me show you how to checkout an existing oracle adf project from the code.adfapps.com subversion repository.
High level steps:
1) Connect to Subversion repository using the credentials
2) Open up the Versioning Navigator in the JDeveloper
3) Open up your repository and go to (Trunk or Branches or Tags)
4) Checkout the appropriate project folder by right click on the folder and say checkout
Below are the steps in detail:
In the last article, we had seen how to deploy Oracle ADF app to the java cloud from jdeveloper.In this article, let us create some objects in model project with the Department and Employees table from oracle XE database to deploy those tables to the database cloud.Once you migrate the required tables from the XE database to Database cloud, we can deploy our ADF app to javacloud.
Here are the high level steps.
1) Develop your ADF app locally connecting to the Oracle XE database
2) Migrate the referred tables to the associated database cloud
3) Modify the Root AM’s datasource to database.
4) Deploy the ADF app to the Java Cloud.
It is a very rare sight that a project team with more than 2 developers doesn’t have any source control in place while working on an Oracle ADF development project.If you don’t have source control for Oracle ADF development, then your project needs a better project manager and architect :).
I had created a small project to demonstrate source control with Oracle ADF jdeveloper’s native support for subversion(SVN).We will use the code.adfapps.com for our subversion project hosting.
Below are the high level steps..
1) Create a manual connection to subversion repository from Jdeveloper
2) Click on the Application menu and say version application.
3) Select the repository connection and choose whether to version control to trunk,tags or branch(Put it in Trunk for the first time)
4) That’s it.. We are done with source control..No, there are lot of challenges still.We will cover them one by one in the 5 part series.
For now, let us look at the above steps in detail.
Oracle public cloud simplifies the process of deploying your application and keep it running without much of a headache specially if you don’t have full fledged IT team to maintain the application.You need to register for Oracle Cloud Java Trial account with the below url.
Once the trial activation is done, you will receive username/password to login to identity console(Probably in your junk email :) )
Let us go over the steps in detail.
This is a very interesting issue which totally got me stumped as the application was working perfectly fine in 126.96.36.199 and then migrating the app to 188.8.131.52 resulted in the below error while uploading the file to a blob column.
Cannot create an object of type:oracle.jbo.domain.BlobDomain from type:weblogic.jdbc.wrapper.Blob_oracle_sql_BLOB with value:weblogic.jdbc.wrapper.Blob_oracle_sql_BLOB@114
Solution is as below.
In the last part of this series, I had explained you about how to checkout an Oracle ADF project from subversion and run the page from JDeveloper.In this part, I will explain you how to make changes to the checkout project and commit changes to the subversion repository using the pending changes tab in JDeveloper.
High Level steps:
1) Make a change to the jsf page
2) Open up the pending changes tab
3) Select the changed files and click on commit button
4) Provide a commit message to commit the changes to repository.
Above steps in detail:
This is the feature you must have been used to if you had used forms developer and I missed this with the previous version of jdeveloper, specially during the OAF development days.But here is the relief in the 11g version of JDeveloper.I noticed this option while opening the jdeveloper 11g version 184.108.40.206 and came as a tip in jdeveloper.
Lets see how we can use this option.
I had faced an issue with resource bundle variable resolver library after upgrading adf from 220.127.116.11 to 18.104.22.168.
Caused by: java.lang.ClassNotFoundException: javax.faces.el.VariableResolver
at java.lang.ClassLoader.defineClass1(Native Method)
Seldom you expose a webservice operation without a security attached to it..Let us see how we can attach the simple username token based authentication to the webservice we had created in our previous posts.
Checkout the code from below repository if you haven’t completed the previous exercises.
TAG : CUSTOM_METHOD_WEBSERVICE
Oracle ADF has helped us to develop a webservice with ADF BC pretty fast by using the service interface of the App Module.In the last version of this webservice, we just created an EO,VO and exposed the AM methods as a webservice.What if you need a custom functionality written in a custom method in the AM to be exposed as a webservice? We have an option in the service interface of the AM to expose the custom methods in AM as a webservice method too.
Lets start by creating the custom method in the AM.
In the last post, I had walked you through the creation of simple ADF webservice which is based on the Departments table in XE database.There was no validation on the create or update method of the webservice in the previous version.There is a lot of chance that the caller of this webservice may send some junk data into your system through the webservice which doesn’t handle the validations properly.I have a lot of experience with my clients on this aspect :).
Also, the caller won’t know the ids in our system and most probably they will send the names(For Ex: Location id will not be known to the callers but they will know the Location Name).Instead of writing code to handle this kind of scenario, you can simply handle it by attaching the lov to the location id attribute.But this is tricky because locationid attribute is bigdecimal but how the caller will send the location name which is a string ??
Let me show the trick :)
This course is available on the below link now.
Oracle ADF has a cool feature for building SOAP based webservices using ADF Business Components.I will take you through series of blog entries to build a simple webservices with ADF BC, adding validation using lovs, adding security to the web services etc.
I will be using Oracle XE for the database access and will post the workspace at code.adfapps.com website for you to checkout directly from your jdeveloper.
There is a huge form user has filled up and suddenly by mistake she clicked on another button in the page which took her to another page.All her changes are gone..This will be a typical scenario which could have been handled in the development stage, if the team knows the best practices around the web page development.Now you know the use case and lets see how we can implement the solution in Oracle ADF.
It is indeed a pain to work in an Oracle ADF project where there are multiple developers and everyone names their objects according to their wish.We had the same kind of issue in my previous Oracle ADF Development project.This has to be the first priority before even starting the coding.If not, you are in for a big shock when you look at the object names in future :)
Oracle JDeveloper comes with a great feature to tackle this scenario and does a wonderful job.Let us look at the steps to implement the same.