May 28, 2012

Error(1,1): file:< Application path>/Model/src/model/mdssys/mdx/XXXXXX.xml.rdf: XML-20108: (Fatal Error) Start of root element expected


Solution:

JDeveloper is expecting some xml content in the file. So put some blank xml tags in that file like below
and save the file.
 
<?xml version="1.0" encoding="UTF-8" ?>
<test>
</test>

javax.faces.FacesException: oracle.adf.controller.ControllerException: ADFC-10001: cannot instantiate class 'XXXXXXX'


I have got an exception some thing like,

javax.faces.FacesException: oracle.adf.controller.ControllerException: ADFC-10001: cannot instantiate class 'XXXXXXXXXXXXXXXXXXXXXX'
……………………………………………………………………………..
Caused by: java.lang.IllegalAccessException: Class oracle.adfinternal.controller.beans.ManagedBeanFactory can not access a member of class 'XXXXXXXXXXXXXXXXXXXXXX' with modifiers ""


Solution: 


Check the access modifier of the constructor of your class. The access modifier should be “public”, as the class is being instantiated from out of the package.

Weblogic error: ServletContainerAdapter manager not initialized correctly


I got the above error while deploying the application in Weblogic through JDeveloper. Below are the solutions I have tried to this issue.

  • Shutdown and restart the weblogic
  • If the error still exists, restart the Jdeveloper completely
  • If still it exists, then the workspace of the JDeveloper needs to be changed
    • Create a new workspace folder in the drive
    • Create a system environment variable. Variable name should be “JDEV_USER_DIR”
    • Give the path of the new workspace folder path as the value for the system variable
    • Restart the JDeveloper

May 27, 2012

Passing parameters to a Bounded Task flow


Follow the below procedure to pass the parameters to a task flow.

  1. Create a Task flow, flowA
  2. Add a jspx page PageA and a taskflow definition (flowB) to flowA
  3. Create a control flow case between PageA and FlowB
  4. Go to flowA’s overview tab
    1. In managebeans, create a managed bean
    2. In Parametrs, create a return value definitions to the bean value
  5. Double Click on FlowB icon in FlowA.xml and create the task flow flowB
  6. Go to flowB’s overview tab
    1. In parameters, create an input paratemeter definition
  7. Add a jspx page to flowB and create the page to display the input parameter
  8. Selecte flowB icon in flowA.xml
    1. In the properties, under parameters, add an input parameter and give the name as given to the input parameter in flowB overview, and select the value as the variable of the bean