September 25, 2013

Upload batch or bulk data into Oracle Cloud database

To upload bulk data into oracle cloud database service, which is presented in a text or excel file, follow the below procedure.

1)      Login to the oracle cloud and launch the database service
2)      Under “SQL Workshop”, select “Data work shop” option
3)      In the “Data Load” panel, select the option from which type of file you want to load the data
4)      Data loading wizard will be started
5)      Follow the wizard carefully and give the necessary inputs and click on finish

July 15, 2013

Status Indicator in ADF

In ADF, sometimes it will take time to load or refresh a page. In such cases, if you want to display some icon to indicate the page is loading or refreshing, you can use the ADF component “Status Indicator” which is available in Common Components panel. As ADF components are ajax components, the status indicator automatically identifies the status of the action and animates accordingly. The icon of status indicator on a page typically looks like as below.


July 12, 2013

java.lang.UnsupportedOperationException



As the name implies when the requested operation is not supported, we get this error.
Below is a sample program to generate this error.

public static void main(String args[])
{
String st[]={"Hi","Hello","Bye"};
List list=Arrays.asList(st);
list.add(“Anand”); //Get error at this line
System.out.println(" List: "+list);
}

 If we run this method, we get the below error because we are trying to add a new element to a list which is not updatable.

Caused by: java.lang.UnsupportedOperationException
                at java.util. List.add(List.java:131)
                at java.util. List.add(List.java:91)
                at Test.main(Test.java:7)

 I modified the program as below to run without errors.

public static void main(String args[])
{
String st[]={"Hi","Hello","Bye"};
ArrayList<String> list = new ArrayList<String>();
//List list=Arrays.asList(st);
list.addAll(Arrays.asList(st));
list.add(“Anand”); //Get error at this line
System.out.println(" List: "+list);
}