JDeveloper 11.1.1.0.2: "Go to Declaration" function not working properly

Hi all,
We have updated to the new release of JDeveloper and converted our project to this new version.
But now the function "Go to Declaration" (also available using ctrl key + click on the class) does not work properly.
Although we have the source included in the library some classes are opened ok but some in the same package are not.
This problem has occurred on two different installations.
Have someone any idea where could be a problem?
Thanks
Steven

It does nothing. And the source for classes where it works are in same JAR as the source for classes where it doesn´t work.
Example:
we have our class:
public abstract class FormularController extends org.springframework.web.servlet.mvc.SimpleFormController {
when I click on SimpleFormController (with ctrl key) it works ok, it opens SimpleFormController:
public class SimpleFormController extends org.springframework.web.servlet.mvc.AbstractFormController {
but now when I click on AbstractFormController (with ctrl key) it does nothing.
In previous version of JDeveloper it works fine.
And when I create a brand new application in new JDeveloper it works also ok.

Similar Messages

  • DBTransactionStateListener not working properly in JDeveloper 11g TP4

    Hi All
    I've created a custom DCTransactionStateListener and implement transactionStateChanged(boolean state) method. When the db transaction state is being changed i set a parameter in the HttpSession. I need this in order to know if transaction is dirty.
    In JDeveloper 11g TP3 it's working properly, but now i test it in TP4 and it's not working. The method is not called. I've tried with delete and modify existing rows, but the method transactionStateChanged(boolean state) was not called.
    Please anyone give some help to resolve this.
    Regards,
    JavaDeVeLoper

    In general, you should be able to reference the isTransactionDirty() property of the data control without needing to create your own custom listener here, but it looks like for the TP4 and later builds, if you do want a custom DCTransactionStateListener, you'll need to override the
    package model.utils;
    import oracle.adf.model.bc4j.DataControlFactoryImpl;
    public class MyDataControlFactoryImpl extends DataControlFactoryImpl {
      public MyDataControlFactoryImpl() {
      protected String getDataControlClassName() {
        return MyCustomDCJboDataControl.class.getName();
    package model.utils;
    import oracle.jbo.common.ampool.SessionCookie;
    import oracle.jbo.uicli.binding.JUApplication;
    public class MyCustomDCJboDataControl extends JUApplication {
      public MyCustomDCJboDataControl() {
        addTransactionStateListener(new MyDCTransactionStateListener());
      public MyCustomDCJboDataControl(SessionCookie sessionCookie)
         super(sessionCookie);
         addTransactionStateListener(new MyDCTransactionStateListener());
    }

  • Go to declaration does not work with JDeveloper 10.1.3.3

    I have just installed JDeveloper 10.3.3.3 and I'm trying to use the option go to declaration. I created an interface and a class implementation for this interface. When I highlight a method and right click to 'Go to Declaration' I get 'Browsing of method or constructor declarations is not allowed'.
    Can anybody help me?
    Thanks in advance.

    Hi,
    this is the same in 10.1.3.1 as well. This means that you cannot browse on a method in a class but only its usage. If you have a method call and browse it then this brings you to the method definition. However, you cannot select the method definition and browse
    Frank

  • JDeveloper 10g, ADF Faces & BC: setVar method on CoreTable is not working

    Hi all,
    I am in the process of creating a custom tag library for our organization. I seem to be having problems with the setVar method on the CoreTable component. I created a simple reproducible example using the scott/tiger schema. Within my tabletest.jsp, I have a af:table which was created via dragging from the datacontrol pallet. Next, I add my custom tag and set the same value attribute. When I run the page, #{row.Deptno} does not evaluate to anything! However, I know that the value is set properly due to the same number of rows appearing within my custom table tag.
    Suggestions are appreciated.
    thanks,
    Wes
    Here is the screen shot of my example:
    http://www.flickr.com/photos/54652784@N03/5062690216
    jsp code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
    <%@ taglib uri="http://acme.customtag" prefix="customtag"%>
    <f:view>
    <afh:html>
    <afh:head title="tabletest">
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    </afh:head>
    <afh:body>
    <af:messages/>
    <h:form>
    <af:outputText value="below is the adf table"/>
    <af:table value="#{bindings.ViewObj1.collectionModel}" var="row">
    <af:column sortProperty="Deptno" sortable="false"
    headerText="#{bindings.ViewObj1.labels.Deptno}">
    <af:outputText value="#{row.Deptno}"/>
    </af:column>
    <af:column sortProperty="Dname" sortable="false"
    headerText="#{bindings.ViewObj1.labels.Dname}">
    <af:outputText value="#{row.Dname}"/>
    </af:column>
    </af:table>
    <af:objectSpacer width="10" height="50"/>
    <af:outputText value="Below is the custom table"/>
    </h:form>
    <customtag:customtable value="#{bindings.ViewObj1.collectionModel}"
    disabled="false"/>
    </afh:body>
    </afh:html>
    </f:view>
    CustomTable.java code:
    package customtag;
    import java.io.IOException;
    import javax.faces.application.Application;
    import javax.faces.component.UIComponentBase;
    import javax.faces.context.FacesContext;
    import javax.faces.el.ValueBinding;
    import oracle.adf.view.faces.component.core.data.CoreColumn;
    import oracle.adf.view.faces.component.core.data.CoreTable;
    import oracle.adf.view.faces.component.core.output.CoreOutputText;
    public class CustomTable extends UIComponentBase {
    public static final String COMPONENT_TYPE = "customtag.customtable";
    public static final String RENDERER_TYPE = null;
    private CoreTable table = new CoreTable();
    public CustomTable() {
    public void encodeChildren(FacesContext context) throws IOException {
    // Encode the top most component
    Application apps = context.getApplication();
    table.setVar("row");
    Object value = getAttributes().get("value");
    CoreColumn column = new CoreColumn();
    CoreOutputText cout = new CoreOutputText();
    if (value != null) {
    table.setValue(value);
    ValueBinding rowValueBinding =
    apps.createValueBinding("#{row.Deptno}");
    Object rowValue = resolveExpression("#{row.Deptno}");
    if (rowValue != null) {
    System.out.println("rowValue is reconized. " + rowValue);
    cout.setValue(rowValue);
    } else if (rowValueBinding.getValue(context) != null) {
    System.out.println("rowValueBinding is reconized." +
    rowValueBinding.getValue(context));
    cout.setValueBinding("Value", rowValueBinding);
    } else {
    System.out.println("row is not reconized.");
    cout.setValue("this is a hard coded row attribute value");
    column.getChildren().add(cout);
    table.getChildren().add(column);
    table.encodeAll(context);
    public static Object resolveExpression(String expression) {
    FacesContext ctx = FacesContext.getCurrentInstance();
    Application app = ctx.getApplication();
    ValueBinding bind = app.createValueBinding(expression);
    return bind.getValue(ctx);
    public boolean getRendersChildren() {
    return true;
    public String getFamily() {
    return COMPONENT_TYPE;
    }

    Hi,
    you don't mention a JDeveloper version. If you are not on a recent version, can you try one. If it reproduces, please provide steps required for a reproducible test case
    Frank

  • InputRangeSlider is not working properly in Jdeveloper 11.1.1.6.0

    Hi,
    I am using jdeveloper 11.1.1.6.0.
    I have a requirement with InputRangeSlider in ADF.
    When ever i change the slider, i would like to invoke the managed bean method (ValueChangeListener).
    it's working for me.
    In the same page i have radio (SelectOneRadio) button (YES or NO).
    The valueChangeLitener is not firing, when ever i change the value of the radio button.
    its firing when i click some other links in the same page.
    If i remove the InputRangeSlider component from the page, the valueChangeListener is firing when ever i change the radio button value (YES or NO).
    Kindly give some solution.
    Thanks & Regards,
    Naveen.

    Hi Frank,
    Your mail is showing as (private). Please let me know how share the workspace.
    Any way, i am sharing the code below
    slider.jspx
    SliderBean.java
    adfc-config.xml
    JSFF:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1">
          <af:form id="f1">
            <af:panelGroupLayout id="pgl0">
                  <af:spacer height="50" width="50" id="s3"/>
                  <af:panelGroupLayout id="pgl8">
                          <af:inputText label="Total plans count" id="it1" value="#{sliderBean1.selectedPlanCount}" autoSubmit="true"/>
                          <af:inputText label="Selected plans count" id="it2" value="#{sliderBean1.totalPlanCount}" autoSubmit="true"/>
                  </af:panelGroupLayout>
            </af:panelGroupLayout>
            <af:panelGroupLayout id="pgl6" inlineStyle="background-color:Fuchsia; width:100px;">
                <af:panelGroupLayout id="pgl5" styleClass="AFStretchWidth">
                    <af:spacer height="50" width="50" id="s4"/>
                    <af:panelGroupLayout id="pgl7" partialTriggers="it1 it2"
                                         inlineStyle="padding-right:#{sliderBean1.selectedPlanCount}%;background-color:rgb(35,50,255);">
                        <af:outputLabel
                                value="#{sliderBean1.selectedPlanCount}/#{sliderBean1.totalPlanCount}" id="ol1"
                                        />
                    </af:panelGroupLayout>
                </af:panelGroupLayout>
            </af:panelGroupLayout>
            <af:spacer height="100" id="s2"/>
            <af:panelGroupLayout id="pgl1">
              <af:inputRangeSlider label="Label 1" id="irs1" autoSubmit="true"
                                   minimum="0"
                                   maximum="100"
                                   minimumIncrement="10"
                                   minorIncrement="10"
                                   majorIncrement="10"                              
                                   binding="#{sliderBean1.slider}"
                                   value="#{sliderBean1.sliderVal}"
                                   valueChangeListener="#{sliderBean1.onSliderChange}"/>
            </af:panelGroupLayout>
            <af:panelGroupLayout id="pgl2">
              <af:outputText value="#{sliderBean1.resultVal}" id="ot1" partialTriggers="irs1"/>
            </af:panelGroupLayout>
            <af:spacer height="50" id="s1"/>
            <af:panelGroupLayout id="pgl3">
                <af:selectOneRadio id="sor1" label=" " autoSubmit="true"
                                   binding="#{sliderBean1.radioBinding}"
                                   value="#{sliderBean1.radioValue}"
                                   valueChangeListener="#{sliderBean1.onRadioValChange}">
                    <af:selectItem value="1" label="Yes" id="si1"/>
                    <af:selectItem value="2" label="No" id="si2"/>
                </af:selectOneRadio>
            </af:panelGroupLayout>
            <af:panelGroupLayout id="pgl4">
                <af:outputText value="#{sliderBean1.radioValue}" id="ot2" partialTriggers="sor1"/>
            </af:panelGroupLayout>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>
    Managed Bean (SliderBean.java) :
    package view;
    import javax.faces.event.ValueChangeEvent;
    import oracle.adf.view.rich.component.rich.input.RichInputRangeSlider;
    import oracle.adf.view.rich.component.rich.input.RichSelectOneRadio;
    import oracle.adf.view.rich.model.NumberRange;
    public class SliderBean {
        private RichInputRangeSlider slider;
        private String resultVal;
        private NumberRange sliderVal =new NumberRange(0, 100);
        private RichSelectOneRadio radioBinding;
        private String radioValue;
        private String radioResultVal;
        private String totalPlanCount;
        private String selectedPlanCount;
        public SliderBean() {
        public void setSlider(RichInputRangeSlider slider) {
            this.slider = slider;
        public RichInputRangeSlider getSlider() {
            return slider;
        public void setResultVal(String resultVal) {
            this.resultVal = resultVal;
        public String getResultVal() {
            return resultVal;
        public void onSliderChange(ValueChangeEvent valueChangeEvent) {
            // Add event code here...
            System.out.println(valueChangeEvent.getNewValue());
            setResultVal(valueChangeEvent.getNewValue().toString());
            System.out.println("radioBinding value :: "+radioBinding.getValue());
            System.out.println("radio value :: " + getRadioValue());
        public void init(){
            setSliderVal(new NumberRange(10,100));
        public void setSliderVal(NumberRange sliderVal) {
            this.sliderVal = sliderVal;
        public NumberRange getSliderVal() {
            return sliderVal;
        public void setRadioBinding(RichSelectOneRadio radioBinding) {
            this.radioBinding = radioBinding;
        public RichSelectOneRadio getRadioBinding() {
            return radioBinding;
        public void setRadioValue(String radioValue) {
            this.radioValue = radioValue;
        public String getRadioValue() {
            return radioValue;
        public void setRadioResultVal(String radioResultVal) {
            this.radioResultVal = radioResultVal;
        public String getRadioResultVal() {
            return radioResultVal;
        public void onRadioValChange(ValueChangeEvent valueChangeEvent) {
            // Add event code here...
            System.out.println("onRadioValChange :: "+valueChangeEvent.getNewValue());
            System.out.println("onRadioValChange ::  slidervalue ::"+slider.getValue());
        public void setTotalPlanCount(String totalPlanCount) {
            this.totalPlanCount = totalPlanCount;
        public String getTotalPlanCount() {
            return totalPlanCount;
        public void setSelectedPlanCount(String selectedPlanCount) {
            this.selectedPlanCount = selectedPlanCount;
        public String getSelectedPlanCount() {
            return selectedPlanCount;
    adfc-config.xml
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <view id="slider">
        <page>/slider.jspx</page>
      </view>
      <managed-bean id="__4">
        <managed-bean-name id="__3">sliderBean1</managed-bean-name>
        <managed-bean-class id="__2">view.SliderBean</managed-bean-class>
        <managed-bean-scope id="__1">request</managed-bean-scope>
      </managed-bean>
    </adfc-config>
    Thanks & Regards,
    Naveen

  • The visual editor not work properly in JDeveloper 10.1.3.2

    Hi
    When I attempt to drag and drop the components of JSF into the visual editor, these components not appear properly. The visual editor just show the names of these components and put them in tree form.
    Could you please tell me how can I fix this problem.
    Message was edited by:
    waheed

    Hi,
    here is a link to a link to a link that might help
    Good luck
    Page Editor Not Using WYSIWYG Editor

  • JDeveloper 11.1.1.1 - PPR for pie graph is not working

    I built a simple ADF page with DEPARTMENTS (Read-only Form) and EMPLOYEES (Read-only Table). For the EmployeesView (VO) I added an addiitional pie chart to the page with SALARY as value and LAST_NAME for the slices.
    The first strange thing I got is an error message when I try to preview the pie chart in the wizard:
    Unable to retrieve data: JBO-25002: Definition oracle.adf.rc.model.dc.DataControls.dcx of type null is not found.
    After that I defined a Partial Page Refresh (PPR) for the chart based on the Read-only Form by referencing the ID of the form (::pfl1).
    I can compile and run the page. The chart is displayed for the first selected department but does not refresh when navigating between departments.
    The same sample application ran fine with 11.1.1.0.2.
    Edited by: jmenge on Jul 5, 2009 10:12 AM

    Hi,
    you must reference not Form but navigation buttons like
    <dvt:pieGraph id="pieGraph1"
                              value="#{bindings.EmpView21.graphModel}"
                              subType="PIE"
                              partialTriggers="::cb2 ::cb1 ::cb4 ::cb3">that will work
    regards,
    Branislav

  • OAF Jdeveloper do not work

    Hi, All
    I download patch 9878889 for R12.1.3. After opening by execute jDevW, it do not work properly, e, g, click menu, it response extremely slow, some menus, like Tools, the screen is frozen. My OS is Window 7 Professional. It works correct in my desktop with Window 7. Does anybody encounter the similar issue and any solutions?
    Any solutions will be appreciated in advance.
    Thanks.
    Rudoph.

    Hi Rudoph ,
    Which one you 're using 32 bit / 64 bit ?? also check this link might help you
    http://www.deltalounge.net/wpress/2010/02/jdeveloper-on-64-bit-windows7/
    --Keerthi                                                                                                                                                                                                                                                                                                                                                                                               

  • CascadeType.REFRESH does not work? (EJB3, Jdeveloper 10.1.3.0.4)

    Hi,
    We have requirement to at least for some entity bans be able to pick external changes to the database records from the appserver. This is why in 1:M relationships we need to be able to see deleted/added/changed children records for arbitrary parent record.
    For some reason, it does not look like CascadeType.REFRESH annotation works as it should (also tried CascadeType.ALL).
    Can anyone please shed some light on this (i.e whether this is a bug or something we do wrong here).
    Steps to reproduce (full code also provided):
    0.
    create table op_testchild
    chld_id NUMBER(12,0) PRIMARY KEY ,
    chld_par_ref NUMBER(12,0) NOT NULL,
    chld_name VARCHAR2(32) NOT NULL
    create table op_testparent
    par_id NUMBER(12,0) PRIMARY KEY ,
    par_name VARCHAR2(32) NOT NULL
    ALTER TABLE NECMS.op_testchild
    ADD CONSTRAINT FK_op_testchild_1
    FOREIGN KEY (chld_par_ref)
    REFERENCES NECMS.op_testparent(par_id);
    1. Generate entity beans from the two tables.
    Then configure parent bean to aggresively fetch children records:
    @OneToMany(mappedBy="opTestparent" , cascade =
    { CascadeType.REFRESH }, fetch=FetchType.EAGER)
    public Collection<OpTestchild> getOpTestchildCollection()
    return this.opTestchildCollection;
    2.
    Define Session Bean with following two methods (so that both insist on refresh of parent, and cascade to parent hopefully):
    /** <code>select object(o) from OpTestparent o</code> */
    public List<OpTestparent> findAllOpTestparent()
    Query q = em.createNamedQuery("findAllOpTestparent");
    q.setHint("refresh", Boolean.TRUE);
    return q.getResultList();
    /** <code>select object(o) from OpTestparent o</code> */
    public OpTestparent findOpTestparent(Long id)
    OpTestparent parent = em.find(OpTestparent.class, id);
    em.refresh(parent);
    em.refresh(parent);
    return parent;
    2.
    Make some changes to selected tables outside appserver.
    What actually is observed during client invocation is this:
    //In this case external changes to parent record are visible, adds/deletes of children records are visible, but changes to existing records never are:
    List<OpTestparent> parents = sessionEJB.findAllOpTestparent();
    for (OpTestparent p2: parents)
    System.out.println("->>parent: " + p2.getParName());
    List<OpTestchild> children2 =
    new ArrayList(p2.getOpTestchildCollection());
    for (OpTestchild c2: children2)
    System.out.println(c2.getChldName());
    //In this case external changes to parent record are visible, external adds/deletes of children records are visible, but changes to existing records are visible only after invoking findOpTestparent() second time around (?):
    OpTestparent p = sessionEJB.findOpTestparent(1L);
    System.out.println("->>parent: " + p.getParName());
    List<OpTestchild> children =
    new ArrayList(p.getOpTestchildCollection());
    for (OpTestchild c: children)
    System.out.println(c.getChldName());
    The simplest code that will demonstrate the problem:
    ///////////////////////////////////ENTITY 1
    package com.ht.model;
    import java.io.Serializable;
    import javax.persistence.CascadeType;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import javax.persistence.JoinColumn;
    import javax.persistence.ManyToOne;
    import javax.persistence.NamedQuery;
    import javax.persistence.Table;
    @Entity
    @NamedQuery(name="findAllOpTestchild", query="select object(o) from OpTestchild o")
    @Table(name="OP_TESTCHILD")
    public class OpTestchild
    implements Serializable
    private static final long serialVersionUID = 1L;
    private Long chldId;
    private String chldName;
    private OpTestparent opTestparent;
    public OpTestchild()
    @Id
    @Column(name="CHLD_ID", nullable=false)
    public Long getChldId()
    return chldId;
    public void setChldId(Long chldId)
    this.chldId = chldId;
    @Column(name="CHLD_NAME", nullable=false)
    public String getChldName()
    return chldName;
    public void setChldName(String chldName)
    this.chldName = chldName;
    @ManyToOne
    @JoinColumn(name="CHLD_PAR_REF", referencedColumnName="OP_TESTPARENT.PAR_ID")
    public OpTestparent getOpTestparent()
    return opTestparent;
    public void setOpTestparent(OpTestparent opTestparent)
    this.opTestparent = opTestparent;
    ///////////////////////////////////ENTITY 2
    package com.ht.model;
    import java.io.Serializable;
    import java.util.ArrayList;
    import java.util.Collection;
    import javax.persistence.CascadeType;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.FetchType;
    import javax.persistence.Id;
    import javax.persistence.NamedQuery;
    import javax.persistence.OneToMany;
    import javax.persistence.Table;
    @Entity
    @NamedQuery(name="findAllOpTestparent", query="select object(o) from OpTestparent o")
    @Table(name="OP_TESTPARENT")
    public class OpTestparent
    implements Serializable
    private static final long serialVersionUID = 1L;
    private Long parId;
    private String parName;
    private Collection<OpTestchild> opTestchildCollection;
    public OpTestparent()
    this.opTestchildCollection = new ArrayList<OpTestchild>();
    @Id
    @Column(name="PAR_ID", nullable=false)
    public Long getParId()
    return parId;
    public void setParId(Long parId)
    this.parId = parId;
    @Column(name="PAR_NAME", nullable=false)
    public String getParName()
    return parName;
    public void setParName(String parName)
    this.parName = parName;
    @OneToMany(mappedBy="opTestparent" , cascade =
    { CascadeType.REFRESH }, fetch=FetchType.EAGER)
    public Collection<OpTestchild> getOpTestchildCollection()
    return this.opTestchildCollection;
    public void setOpTestchildCollection(Collection<OpTestchild> opTestchildCollection)
    this.opTestchildCollection = opTestchildCollection;
    public OpTestchild addOpTestchild(OpTestchild opTestchild)
    getOpTestchildCollection().add(opTestchild);
    opTestchild.setOpTestparent(this);
    return opTestchild;
    public OpTestchild removeOpTestchild(OpTestchild opTestchild)
    getOpTestchildCollection().remove(opTestchild);
    opTestchild.setOpTestparent(null);
    return opTestchild;
    ///////////////////////////////////SESSION BEAN
    package com.ht.model;
    import java.util.List;
    import javax.annotation.Resource;
    import javax.ejb.Stateless;
    import javax.persistence.EntityManager;
    import javax.persistence.Query;
    @Stateless(name="SessionEJB")
    public class SessionEJBBean
    implements SessionEJB, SessionEJBLocal
    @Resource
    private EntityManager em;
    public SessionEJBBean()
    public Object mergeEntity(Object entity)
    return em.merge(entity);
    public Object persistEntity(Object entity)
    em.persist(entity);
    return entity;
    public Object refreshEntity(Object entity)
    em.refresh(entity);
    return entity;
    public void removeEntity(Object entity)
    em.remove(em.merge(entity));
    /** <code>select object(o) from OpTestchild o</code> */
    public List<OpTestchild> findAllOpTestchild()
    return em.createNamedQuery("findAllOpTestchild").getResultList();
    /** <code>select object(o) from OpTestparent o</code> */
    public List<OpTestparent> findAllOpTestparent()
    Query q = em.createNamedQuery("findAllOpTestparent");
    q.setHint("refresh", Boolean.TRUE);
    return q.getResultList();
    /** <code>select object(o) from OpTestparent o</code> */
    public OpTestparent findOpTestparent(Long id)
    OpTestparent parent = em.find(OpTestparent.class, id);
    em.refresh(parent);
    return parent;
    ///////////////////////CLIENT
    package com.ht.model;
    import java.util.ArrayList;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import java.util.List;
    public class SessionEJBClient
    public static void main(String[] args)
    try
    final Context context = getInitialContext();
    SessionEJB sessionEJB = (SessionEJB) context.lookup("SessionEJB");
    OpTestparent p = sessionEJB.findOpTestparent(1L);
    System.out.println("->>parent: " + p.getParName());
    List<OpTestchild> children =
    new ArrayList(p.getOpTestchildCollection());
    for (OpTestchild c: children)
    System.out.println(c.getChldName());
    if (1 == 1)
    return;
    List<OpTestparent> parents = sessionEJB.findAllOpTestparent();
    for (OpTestparent p2: parents)
    System.out.println("->>parent: " + p2.getParName());
    List<OpTestchild> children2 =
    new ArrayList(p2.getOpTestchildCollection());
    for (OpTestchild c2: children2)
    System.out.println(c2.getChldName());
    catch (Exception ex)
    ex.printStackTrace();
    private static Context getInitialContext()
    throws NamingException
    // Get InitialContext for Embedded OC4J
    // The embedded server must be running for lookups to succeed.
    return new InitialContext();
    }

    I use the JDK delivered with JDeveloper which is JDK 1.5.0_06
    if I run [jdev-root]\jdev\bin\jdev.exe, I get some error messages in the console window when I'm doing the do to declaration function. I receive a lot of
    at oracle.ide.net.URLFileSystemHelper.openInputStream(URLFileSystemHelper.java:993)
    at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1164)
    at oracle.ide.net.IdeURLConnection.getInputStream(IdeURLConnection.java:44)
    at java.net.URL.openStream(URL.java:1007)
    This pattern is repeated many many times (probably > 100).
    Message was edited by:
    user579938

  • Programatical checking of checkbox is not working in Jdeveloper 11.1.1.3.0

    Hi,
    I've a table whose first column is a checkbox bound to a ViewObject attribute(SelectFlag).
    I've another checkbox placed on column header for Select-All feature.
    The functionality is that when we check Select-All checkbox, it should check checkboxes for all the rows(first column) and when we uncheck Select-All checkbox, it should uncheck checkboxes for all the rows.
    I've the partial trigger on table for the Select-All checkbox.
    Here is the ValueChangeListener code for Select-All checkbox:
    public void checkAll(ValueChangeEvent valueChangeEvent) {
    Boolean isSelected = ((Boolean)valueChangeEvent.getNewValue()).booleanValue();
    System.out.println("New Check Value:"+isSelected);
    ViewObject vo = getIteratorBoundVO("KrcCapabilitiesVO1Iterator");
    vo.clearCache();
    vo.reset();
    vo.setWhereClause("KrcCapabilitiesEO.ACTIVITY_ID = 446");
    vo.executeQuery();
    while(vo.hasNext())
    Row row = vo.next();
    if(isSelected){
    row.setAttribute("SelectFlag",true);
    System.out.println("Checked Value for CapabilityId :: " + row.getAttribute("CapabilityId"));
    else{
    row.setAttribute("SelectFlag",false);
    System.out.println("Unchecked Value for CapabilityId :: " + row.getAttribute("CapabilityId"));
    This code is not working in latest Jdeveloper version 11.1.1.3.0 which uses WebLogic Server Version: 10.3.3.0
    It's working fine in Jdeveloper version 11.1.1.1.0 which uses WebLogic Server Version: 10.3.1.0
    Is this a bug? Can anyone help me on this please.
    Thanks,
    Bhaskar

    Hi Frank,
    Thanks for your response.
    You are right, the selection state is not shown in the table.
    I'm taking the ViewObject from Iterator Binding.
    Here is the entire code:
    public static Object evaluateEL(String el){
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ELContext elContext = facesContext.getELContext();
    ExpressionFactory expressionFactory = facesContext.getApplication().getExpressionFactory();
    ValueExpression exp = expressionFactory.createValueExpression(elContext,el,Object.class);
    return exp.getValue(elContext);
    public static ViewObject getIteratorBoundVO(String voIterator)
    DCBindingContainer dcb = (DCBindingContainer)evaluateEL("#{bindings}");
    DCIteratorBinding dciter = dcb.findIteratorBinding(voIterator);
    dciter.invalidateCache();
    ViewObject vo = dciter.getViewObject();
    return vo;
    public void checkAll(ValueChangeEvent valueChangeEvent) {
    Boolean isSelected = ((Boolean)valueChangeEvent.getNewValue()).booleanValue();
    System.out.println("New Check Value:"+isSelected);
    ViewObject vo = getIteratorBoundVO("KrcCapabilitiesVO1Iterator");
    vo.clearCache();
    vo.reset();
    vo.setWhereClause("KrcCapabilitiesEO.ACTIVITY_ID = 446");
    vo.executeQuery();
    while(vo.hasNext())
    Row row = vo.next();
    if(isSelected){
    row.setAttribute("SelectFlag",true);
    System.out.println("Checked Value for CapabilityId :: " + row.getAttribute("CapabilityId"));
    else{
    row.setAttribute("SelectFlag",false);
    System.out.println("Unchecked Value for CapabilityId :: " + row.getAttribute("CapabilityId"));
    Thanks,
    Bhaskar

  • LOV single selection list is not working in my JDeveloper 10.1.2.3

    Hi!
    I'm stumped with this. I'm also new to JDeveloper. I used the sample tutorial from the OTN website entitled "JSPDataBoundLists.jws" to learn how to create drop-down lists in JDeveloper.
    My problem is I created a single selection list LOV from DepartmentListView Data Control and pasted it into an EmployeesView Input form. This is so I can just select the Department names to populate the DepartmentID field in Employees table. I setup the data binding in the UI Model of my jsp using the "List Binding Editor". I checked the UIModel file and it looks as follows:
    <DCControl
    id="DepartmentId2"
    SubType="DCListSingleSel"
    IterBinding="EmployeesViewIterator"
    DTClass="oracle.adf.dt.objects.JUDTCtrlListLOV"
    ApplyValidation="false"
    isDynamic="false"
    ListOperMode="0"
    ListIter="DepartmentsListViewIterator" >
    <AttrNames>
    <Item Value="DepartmentId" />
    </AttrNames>
    <ListAttrNames>
    <Item Value="DepartmentId" />
    </ListAttrNames>
    <ListDisplayAttrNames>
    <Item Value="DepartmentName" />
    </ListDisplayAttrNames>
    </DCControl>
    I run the jsp, selected a value from the drop-down list, do a submit and do a commit, but the DepartmentId from the DepartmentsListView was not stored in Employees. What is wierd here is that there is an exact same single selection list defined a row above mine which is working fine. How come that one is working and mine is not?

    Eureka! I finally found the answer to my own question!
    This simple problem of adding a drop-down list into a jsp page cost me 3 whole days (around 24 full working hours) to find the answer. Normally it only takes me a few minutes with the other web app languages I've learned. And I just stumbled into the answer just a few minutes ago (maybe all thanks should be given to God whom let me stumble into the answer since me and my wife have been praying for several weeks now ever since I started trying to learn Oracle JDeveloper. It is really very very difficult and time consuming to learn compared to other web app languages and tools).
    Anyway, the reason why my LOV does not work in my jsps using JDeveloper 10.1.2.3 is because JDeveloper 10.1.2.3 seems to allow only one input-form-element for the same field of the input table!
    For example, what happened to me was I had an input form created for the Employees table in the HR schema. I did this simply by drag-and-drop from the "Data Control Palette". This feature I like very much with JDeveloper. It is really easy and works instantly. And then, I drag-and-drop the departmentname field from the Departments table as a "single selection list" into the jsp and setup its bindings. So when I run the jsp, viola! The drop-down list does not populate the DepartmentId field of the Employees table. IT DOES NOT WORK! I've tried reinstalling both JDev and Oracle db and JDKs to no avail! I tried posting in this forum to no avail! I tried experimenting with newly created jsps to no avail! Then suddenly after repeatedly experimenting on this on different tutorials, guides and my own web app, it works! Why did it work? It was because I tried to add an LOV-single-selection-list on another sample tutorial with a READ-ONLY FORM on the jsp! Thus only the LOV is the input-form-element in the jsp for the table's field.
    So why can't you find such a simple and basic fact anywhere in the web, the tutorials, guides or the forum? I do not know. Maybe only I am using such an old version of JDev? But what about the users who used it when it just got out a couple of years ago? Didn't they have the same problem? Anyway, it seems like the answer to a lot of my simple basic questions about JDeveloper is not documented, or is buried very deep beneath all the other words of all these documents. Hopefully JDeveloper's documentations would get a lot easier to use very very soon!

  • Navigation not working in Weblogic Server but working from JDeveloper.

    Hi
    I created a simple application with some page navigations (some declarative and some dynamic using Managed Bean).
    The navigation works fine when I run from JDeveloper. (Local System)
    So I deployed the application to the WebLogic server (Local system with a domain configured with ADF.)
    The pages are getting rendered correctly, bu on button clicks, the navigation is not happening from any of the pages.
    Could I have missed something or is there a way to track what the problem might be?
    JDev : 11.1.1.3
    Web Logic Server : 11gR1 (1.3) which comes with JDeveloper
    Thanks for any help.
    Sameer

    Hi John
    I am not using task flows. I just have some jspx pages defined in the unbounded task flow adfc-config.xml connected with navigation.
    I run from JDEveloper by right clicking on the jspx files.
    The URL when run from jdeveloper is as follows.
    http://127.0.0.1:7101/SessionsPOC-ViewController-context-root/faces/MainPage
    From Weblogic server I am using the link given in the Testing tab of the weblogic administration console.
    The URL is as follows.
    http://10.9.73.103:7001/SessionsPOC-ViewController-context-root (default)
    http://10.9.73.103:7001/SessionsPOC-ViewController-context-root/MainPage.jspx
    Actually, the URL given in the weblogic testing tab is not runnable. I am changing the link as follows to be able to run it.
    http://10.9.73.103:7001/SessionsPOC-ViewController-context-root/faces/MainPage.jspx
    I have defined the MainPage.jspx in the web.xml 's Welcome page. But it is not taking it I guess.
    Also, I am able to run the other page by giving the following url. But the navigation buttons are not working in that page also.
    http://10.9.73.103:7001/SessionsPOC-ViewController-context-root/faces/SecondPage.jspx
    Thanks
    Sameer

  • User input in JDeveloper IDE not working?

    We just started to use JDeveloper. so the problem may be very basic, I could not figure it out what is wrong:
    I have a java class which is calling a third part application (Lotus Notes, domino server). The task of the class is to open a database on domino server(or local machine). When calling domino, there is a user(calling) authorization. So I must input the password for the domino server for authorization. When I input the password in input panel and hit return, nothing happened. It looks the Domino still wait for the password. It waited and waited and the process can not be stopped itself.
    when I copied the same code and ran in other IDE or Sun's JDK. It worked fine.
    So it looks that my JDeveloper could not pass user' input to the process?
    Any helps are highly appreciated.
    George

    Hi George,
    Let me make sure I understand what you are saying.
    You want to run (or debug) your program which reads input from System.in?
    If so...
    Have you checked the checkbox in the Project Settings Dialog - Runner - Options panel "Allow Program Input"? Then when you ran (or debugged) your program, did you see a text field labeled "Input:" in the Log window for your running process?
    Did you enter the password in that text field and press Enter on your keyboard?
    If that wasn't the problem, can you give us step by step what you are doing?
    Thanks,
    Liz

  • Jdeveloper PJC wizard demo not working and how to debug?

    Hi,
    Has anyone try the follow the steps in PJC wizard demo in http://www.oracle.com/technology/sample_code/products/forms/index.html?
    And is it working?
    I tried created the demo.securefield jar file in Jdeveloper in add the package in implementation class in the form text item but the function is not working.
    How I can debug whether the jave code is fired or not?
    And does anyone has the source code that is working can be shared.
    Regards,
    Anna

    Hello,
    You can put some System.out.println("the text i want to output"); functions anywhere in the java code, then see the output in the java console.
    Francois

  • JDeveloper and Team System Extension not working

    I am using JDeveloper 11g (11.1.1.1) and latest VSTS extension. The Team System extension does not work.
    Here are what I have done:
    1) Install JDev, JDev team system extension, TFS team explorer.
    2) Workspace created in Team Explorer.
    3) JDev Versioning control set for Team system. Select workspace, refresh it.
    4) Create a new application/project under team explorer workspace. In Application explorer, The application and project showed up with a "X" mark - not in source control.
    5) Add the application/project into source control. Succeeded.
    6) But - the application and project still show up with "X" mark. Trying to add again, JDev pop up error message: "file already exists in source control". Files still show up in pending changes window.
    I am using windows XP SP2 for development.
    Any ideas? Please, this is urgent.
    Edited by: user8658859 on 2009/9/24 上午 2:55

    I am betting you are running 4.3?  I just upgraded my GS3 to 4.3 and now I can't get the GMail smart extension to work.  Previously, I was able to on the same phone (but running 4.1.2) but couldn't use WatchIt.  Now I can use WatchIt, but can't use Gmail.  How frustrating!!

Maybe you are looking for

  • Is AskMate LLC a legitimate Mac security fixing company?

    As I was using my Safari to browse, I got a window which said something to the effect that my security had been breeched. For help, call (877)899-1824. They sent me a 6-digit code and were able to get into my whole computer. Name: Ask Mate LLC. They

  • Purchased ringtones are possessed!!!

    My purchased ringtones are unresponsive when they go off - meaning I can't make them stop. If I touch the text message they still do not stop alerting. I can turn "off" the sound and they keep alerting. I can turn the "volume button" all the way down

  • FRM-99999 FAILED TO EXECUTE COMMAND IEXPLORE

    Hi there, When I attempt to call the report from my forms (from the browser using IE4), an error message was returned: FRM-99999: Failed to execute command. Command=iexplore http://<webserver>:89/sdq.pdf FULL Details: CreateProcess:iexplore http://<w

  • Shared calenders sporadically disappeared

    Hi, when I opened shared calendars from other users by clicking on "Open" -> "Other User's Folder" and left it open in the list without deleting it, I had to realize that the calendars sporadically disappeared from the list (1-2 times a year). How ca

  • 2000 records to update to sap..

    Hi Guys, I have a requirement where I have 2500 records in database to update to sap. Im currently using a rfc adapter, using the bapi but I have not tried with 2500 records. Is it possible with bapi or do i have to use a proxy?? kindly suggest Regar