Wednesday, June 17, 2009

How the ADF PageLifeCycle come into the picture in ADF 11g?

I was wondering how the enhanced ADF PageLifeCycle come into the picture in Oracle ADF 11g when I noted that there was no phase listener configured in faces-config.xml, and specially that I have read the one stated in Oracle® Application Development Framework Developer’s Guide 10g Release 3- "When an ADF Faces component bound to an ADF data control is inserted into a JSF page for the first time, JDeveloper adds the ADF PhaseListener to faces-config.xml." - But I do not see this in faces-config.xml in the StoreFront demo, so I posted a new thread in OTN forums and happy to received a prompt answer which directed me to the right direction. (click the following: Why ADFPhaseListener not configured in faces-config.xml in JDeveloper 11g?) Well, to give you more idea on how the enhanced ADF PageLifeCycle came into the picture in ADF 11g, below are the details:
  1. The Faces Servlet is defined and mapped in the web.xml file.
  2. The Faces Servlet reads the faces-config.xml.
  3. The ADFPhaseListener is configured in an internal faces-config.xml in META-INF of adf-controller.jar in 11g.
  4. The ADFPageLifeCycle is instantiated through the ADFPhaseListener.

Tuesday, June 16, 2009

Troubleshooting JDeveloper Out of Memory Error - Perm Gen Size/ Space

This is another usual error encountered when deploying projects to embedded WebLogic Server in JDeveloper 11g. I have done my searching to google and lost myself on the many lengthy discussion.
To make the life of others easy, here is the solution that I have got:

Change the PermGen size for your internal WLS in \jdeveloper\system\system11.\DefaultDomain\bin\setDomainEnv.cmd
Find the line with MEM_MAX_PERM_SIZE.
set MEM_MAX_PERM_SIZE=-XX:MaxPermSize=128m
Increase it to 256m or 512m. 

An update to this post:
The solution above will just postpone the the raising of the error because of the bigger perm size capacity and not fully solve the issue.
The right solution so far is to leverage the JRockit JVM as told on the following thread:
Another different solution to the "PermGen space issue" -comments solicited

Error running project in JDeveloper - "java.sql.SQLDataException: ORA-01882: timezone region not found"

I always encountered this error when I started learning Oracle ADF in JDeveloper and had found no straightforward answer in the forums. Now that I was able to find the solution through a similar case in Metalink, I thougth that it would help other beginners like me, if I will post the solution here. Error: java.sql.SQLDataException: ORA-01882: timezone region not found Error: java.lang.NumberFormatException: For input string: "" Solution: add a java option "-Duser.timezone=GMT" without the quotes in the run configuration under project properties on every project in JDeveloper. It is also important to restart the Server after configuring such java option. Tags: JDeveloper 11g R1 WebLogic


Huh!!! Oracle Fusion 11g will be launched finally! After knowing yesterday that the Oracle Fusion Middleware 11g is scheduled to be launched on July 1st to Oracle Partners, I am happy to received today an email invitation from Oracle to register for the online launch (this is the link) which is scheduled on July 9. This is one great news to our Java Development Team for this Fusion 11g has been delayed for sometime and that current JDeveloper 11g has no integrated BPEL designer yet. Well, I am excited to attend to this web cast and see how this will finally solve our issue on leveraging both ADF Faces 11g and BPEL in our upcoming project.