Dependent SelectionList - problem

Hi,
a I'm trying to achieve functionallity with master-detail selection lists. Category Selection List dislplays main Categories while Subcat SelectionList displays children for currently selected Category.
My code looks like:
<af:selectOneChoice value="#{bindings.vwCatMain1.inputValue}"
label="#{bindings.vwCatMain1.label}"
required="#{bindings.vwCatMain1.hints.mandatory}"
shortDesc="#{bindings.vwCatMain1.hints.tooltip}"
id="soc4"
valueChangeListener="#{myBean.valueChanged}"
autoSubmit="true">
<f:selectItems value="#{bindings.vwCatMain1.items}" id="si5"/>
</af:selectOneChoice>
<af:selectOneChoice value="#{bindings.voSubCatMain1.inputValue}"
label="#{bindings.voSubCatMain1.label}"
required="#{bindings.voSubCatMain1.hints.mandatory}"
shortDesc="#{bindings.voSubCatMain1.hints.tooltip}"
id="soc2" partialTriggers="soc2">
<f:selectItems value="#{bindings.voSubCatMain1.items}" id="si2"/>
</af:selectOneChoice>
My ManagedBean has implementation for valueChanged action for category selectionList:
public void valueChanged(ValueChangeEvent valueChangeEvent) {
FacesContext ctx = FacesContext.getCurrentInstance();
Application app = ctx.getApplication();
ValueBinding bind = app.createValueBinding("#{bindings}");
DCIteratorBinding iter = ((DCBindingContainer) bind.getValue(ctx)).findIteratorBinding("vwCatMain1Iterator");
Row r = iter.getCurrentRow();
oracle.jbo.domain.Number s = (oracle.jbo.domain.Number) r.getAttribute("Id");
// String sName = (String) r.getAttribute("DESCRIPTION");
iter = ((DCBindingContainer) bind.getValue(ctx)).findIteratorBinding("voSubCatMain1Iterator");
ViewObject vo1 = iter.getViewObject();
vo1.setNamedWhereClauseParam("Cat", s);
vo1.executeQuery();
However this code is not working, what can be wrong? I would be very grateful for any help!!!

Why not do it in a declarative way:
https://blogs.oracle.com/shay/2010/10/got_to_love_cascading_lovs_in.html

Similar Messages

  • Dependency Injection Problem in EJB 3.0

    Hello.
    I've been trying to get an example of java dependency injection working in JBoss 4.0.5.GA. I've installed it with EJB 3.0 support.
    The problem is that if I try to use the injected resource, I get a null pointer exception.
    The example I'm trying is a very short and simple one. Shouldn't be hard to figure out what is going wrong. Here it goes:
    [root]\src\hello\MessageServlet.java:
    package hello;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.List;
    import java.util.ListIterator;
    import javax.naming.InitialContext;
    import javax.annotation.*;
    public class MessageServlet extends HttpServlet {
         @Resource (mappedName="java:/DefaultDS")
         javax.sql.DataSource ejb30DB;
         public void init () throws ServletException {
         public void service(HttpServletRequest request, HttpServletResponse response)
                   throws IOException, ServletException {
              boolean injectedLookingGood = false;
              boolean notInjectedLookingGood = false;
              try {
                   java.sql.Connection conn = ejb30DB.getConnection();
                   conn.close();
                   injectedLookingGood = true;
              } catch(Exception e) {
                   e.printStackTrace();
              try {
                   InitialContext ic = new InitialContext();
                   javax.sql.DataSource ds = (javax.sql.DataSource)ic.lookup("java:/DefaultDS");
                   java.sql.Connection conn = ds.getConnection();
                   conn.close();
                   notInjectedLookingGood = true;
              } catch(Exception e) {
                   e.printStackTrace();
              response.setContentType("text/html");
              ServletOutputStream out = response.getOutputStream();
              out.println("<html>");
              out.println("<head><title>Hello World</title></head>");
              out.println("<body>");
              out.println("<h1>Hello World</h1>");
              out.println("<form action=\"HelloWorld\" method=\"get\">");
              out.print("Injected DataSource is looking ");
              if(injectedLookingGood) {
                   out.println("good <br>");
              else {
                   out.println("bad <br>");
              out.print("Not-Injected DataSource is looking ");
              if(notInjectedLookingGood) {
                   out.println("good <br/>");
              else {
                   out.println("bad <br/>");
              out.println("<input type=\"submit\" value=\"Test Some More\">");
              out.println("</form>");
              out.println("</body>");
              out.println("</html>");
    [root]\etc\META-INF\web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <display-name>HelloWorldWAR</display-name>
    <servlet>
    <display-name>HelloWorld</display-name>
    <servlet-name>HelloWorldServlet</servlet-name>
    <servlet-class>hello.MessageServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>HelloWorldServlet</servlet-name>
    <url-pattern>/servlet/HelloWorld</url-pattern>
    </servlet-mapping>
    </web-app>
    [root]\etc\META-INF\application.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com /xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
    <display-name>HelloWorld</display-name>
    <description>Application description</description>
    <module>
    <web>
    <web-uri>web-ejb3.war</web-uri>
    <context-root>HelloWorld</context-root>
    </web>
    </module>
    </application>
    [root]\build.xml:
    <project name="HelloWorld" default="all" basedir=".">
    <!-- Name of project and version -->
    <property name="proj.name" value="HelloWorld"/>
    <property name="proj.version" value="1.0"/>
    <!-- Global properties for thid build -->
    <property name="src.dir" value="${basedir}/src"/>
    <property name="build.dir" value="${basedir}/bin"/>
    <property name="lib.dir" value="${basedir}/lib"/>
    <property name="build.classes.dir" value="${build.dir}/classes"/>
    <property name="build.jar.dir" value="${build.dir}/jar"/>
    <property name="src.etc.dir" value="${basedir}/etc"/>
    <property name="meta-inf.dir" value="${src.etc.dir}/META-INF"/>
    <!-- The build classpath -->
    <path id="build.classpath">
    <fileset dir="${lib.dir}">
    <include name="**/*.jar"/>
    <include name="**/*.zip"/>
    </fileset>
    </path>
    <!-- Useful shortcuts -->
    <patternset id="meta.files">
    <include name="**/*.xml" />
    <include name="**/*.properties"/>
    </patternset>
    <target name="prepare">
    <mkdir dir="${build.dir}"/>
    <mkdir dir="${build.classes.dir}"/>
    <mkdir dir="${build.jar.dir}"/>
    </target>
    <target name="compile" depends="prepare">
    <javac destdir="${build.classes.dir}"
    classpathref="build.classpath"
    debug="on">
    <src path="${src.dir}"/>
    </javac>
    </target>
    <target name="package-web" depends="compile">
    <war warfile="${build.dir}/jar/web-ejb3.war"
    webxml="${meta-inf.dir}/web.xml">
    <classes dir="${build.dir}/classes">
    <include name="**/*Servlet.class"/>
    </classes>
    </war>
    </target>
    <!-- Creates an ear file containing the web client war. -->
    <target name="assemble-app">
    <ear destfile="${build.jar.dir}/HelloWorld.ear" appxml="${meta-inf.dir}/application.xml">
    <fileset dir="${build.dir}/jar"
    includes="*.war"/>
    </ear>
    </target>
    <target name="clean">
    <delete dir="${build.dir}" />
    </target>
    <target name="all">
    <antcall target="clean" />
    <antcall target="package-web" />
    <antcall target="assemble-app" />
    </target>
    </project>
    Any help would be apreciated.
    Thanks in advance,
    Hugo Oliveira
    [email protected]

    Hello Ken.
    I gess dependency injection is unnavailable in servlets as of this moment. I conducted another test using a session bean that injects and tests the DataSource and a servlet calling the session bean via a refference obtained from InitialContext. It worked OK.
    Here's the code:
    [root]/src/hello/MessageHandler.java:
    package hello;
    public interface MessageHandler {
         public boolean testInjection();
    [root]/src/hello/MessageHandlerBean.java:
    package hello;
    import javax.ejb.Stateless;
    import javax.persistence.*;
    import java.util.List;
    import javax.annotation.*;
    @Stateless
    public class MessageHandlerBean implements MessageHandler {
         @Resource (mappedName="java:/DefaultDS")
         private javax.sql.DataSource ds;     
         public boolean testInjection() {
              try {
                   java.sql.Connection conn = ds.getConnection();
                   conn.close();
                   return true;
              } catch(Exception e) {
                   e.printStackTrace();
              return false;
    [root]/src/hello/MessageServlet.java:
    package hello;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.List;
    import java.util.ListIterator;
    import javax.naming.InitialContext;
    import javax.annotation.*;
    public class MessageServlet extends HttpServlet {
         public void init () throws ServletException {
         public void service(HttpServletRequest request, HttpServletResponse response)
                   throws IOException, ServletException {
              boolean injectedLookingGood = false;
              try {
                   InitialContext ic = new InitialContext();
                   MessageHandler mh = (MessageHandler)ic.lookup("HelloWorld/MessageHandlerBean/local");
                   injectedLookingGood = mh.testInjection();
              } catch(Exception e) {
                   e.printStackTrace();
              response.setContentType("text/html");
              ServletOutputStream out = response.getOutputStream();
              out.println("<html>");
              out.println("<head><title>Hello World</title></head>");
              out.println("<body>");
              out.println("<h1>Hello World</h1>");
              out.println("<form action=\"HelloWorld\" method=\"get\">");
              out.print("Injected DataSource is looking ");
              if(injectedLookingGood) {
                   out.println("good <br>");
              else {
                   out.println("bad <br>");
              out.println("<input type=\"submit\" value=\"Test Some More\">");
              out.println("</form>");
              out.println("</body>");
              out.println("</html>");
    [root]/etc/META-INF/application.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com /xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
    <display-name>HelloWorld</display-name>
    <description>Application description</description>
    <module>
    <ejb>HelloWorld.ejb3</ejb>
    </module>
    <module>
    <web>
    <web-uri>web-ejb3.war</web-uri>
    <context-root>HelloWorld</context-root>
    </web>
    </module>
    </application>
    [root]/etc/META-INF/web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <display-name>HelloWorldWAR</display-name>
    <servlet>
    <display-name>HelloWorld</display-name>
    <servlet-name>HelloWorldServlet</servlet-name>
    <servlet-class>hello.MessageServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>HelloWorldServlet</servlet-name>
    <url-pattern>/servlet/HelloWorld</url-pattern>
    </servlet-mapping>
    </web-app>
    [root]/build.xml:
    <project name="HelloWorld" default="all" basedir=".">
    <!-- Name of project and version -->
    <property name="proj.name" value="HelloWorld"/>
    <property name="proj.version" value="1.0"/>
    <!-- Global properties for thid build -->
    <property name="src.dir" value="${basedir}/src"/>
    <property name="build.dir" value="${basedir}/bin"/>
    <property name="lib.dir" value="${basedir}/lib"/>
    <property name="build.classes.dir" value="${build.dir}/classes"/>
    <property name="build.jar.dir" value="${build.dir}/jar"/>
    <property name="src.etc.dir" value="${basedir}/etc"/>
    <property name="meta-inf.dir" value="${src.etc.dir}/META-INF"/>
    <!-- The build classpath -->
    <path id="build.classpath">
    <fileset dir="${lib.dir}">
    <include name="**/*.jar"/>
    <include name="**/*.zip"/>
    </fileset>
    </path>
    <!-- Useful shortcuts -->
    <patternset id="meta.files">
    <include name="**/*.xml" />
    <include name="**/*.properties"/>
    </patternset>
    <target name="prepare">
    <mkdir dir="${build.dir}"/>
    <mkdir dir="${build.classes.dir}"/>
    <mkdir dir="${build.jar.dir}"/>
    </target>
    <target name="compile" depends="prepare">
    <javac destdir="${build.classes.dir}"
    classpathref="build.classpath"
    debug="on">
    <src path="${src.dir}"/>
    </javac>
    </target>
    <target name="package-ejb" depends="compile">
    <jar jarfile="${build.jar.dir}/HelloWorld.ejb3">
    <fileset dir="${build.classes.dir}">
    <include name="**/*.class"/>
    </fileset>
    <!--
         <metainf dir="${meta-inf.dir}">
    <include name="persistence.xml"/>
    </metainf>
    -->
    </jar>
    </target>
    <target name="package-web" depends="compile">
    <war warfile="${build.dir}/jar/web-ejb3.war"
    webxml="${meta-inf.dir}/web.xml">
    <!--
    <fileset dir="web">
    <include name="**/*"/>
    </fileset>
    -->
    <!--
    <webinf dir="dd/web">
    <include name="jboss-web.xml"/>
    </webinf>
    -->
    <classes dir="${build.dir}/classes">
    <include name="**/*Servlet.class"/>
    </classes>
    </war>
    </target>
    <!-- Creates an ear file containing the ejb jars and the web client war. -->
    <target name="assemble-app">
    <ear destfile="${build.jar.dir}/HelloWorld.ear" appxml="${meta-inf.dir}/application.xml">
    <fileset dir="${build.dir}/jar"
    includes="*.ejb3,*.war"/>
    </ear>
    <!-- <delete file="${build.dir}/jar/web-ejb3.war"/>
    <delete dir="${build.dir}/classes"/> -->
    </target>
    <target name="clean">
    <delete dir="${build.dir}" />
    </target>
    <target name="all">
    <antcall target="clean" />
    <antcall target="package-ejb" />
    <antcall target="package-web" />
    <antcall target="assemble-app" />
    </target>
    </project>
    Thanks,
    Hugo Oliveira
    [email protected]

  • Save and dependant files problem

    hi
    when i press f12 to see in the browser i get the "put
    dependant files" dialogue. why is that and how can i turn it
    off?

    Hi,
    I had that problem when I was working on a website at school
    using a mac but when I used it at home on a pc it was fine. Im not
    sure if this will work for you (it did for me) I just moved the few
    pages into a new folder and redefined the site. It worked for me im
    not sure if it will work for you.

  • Pacman dependency resolution problems *

    Hello folks, right now I'm trying to update my gnome with this command:
    pacman -S gnome and this is what I get:
    pacman -S gnome
    gnome package not found, searching for group...
    :: group gnome (including ignored packages):
        epiphany  gnome-applets  gnome-backgrounds  gnome-control-center 
        gnome-desktop  gnome-icon-theme  gnome-media  gnome-mime-data  gnome-mount 
        gnome-panel  gnome-python  gnome-screensaver  gnome-session 
        gnome-settings-daemon  gnome-themes  gnome2-user-docs  libgail-gnome 
        metacity  nautilus  notification-daemon  yelp 
    :: Install whole content? [Y/n]
    warning: gnome-backgrounds-2.24.0-1 is up to date -- reinstalling
    warning: gnome-icon-theme-2.24.0-1 is up to date -- reinstalling
    warning: gnome-media-2.24.0.1-1 is up to date -- reinstalling
    warning: gnome-mime-data-2.18.0-3 is up to date -- reinstalling
    warning: gnome-mount-0.8-1 is up to date -- reinstalling
    warning: gnome-python-2.22.3-3 is up to date -- reinstalling
    warning: gnome-screensaver-2.24.1-1 is up to date -- reinstalling
    warning: gnome-settings-daemon-2.24.1-1 is up to date -- reinstalling
    warning: libgail-gnome-1.20.0-2 is up to date -- reinstalling
    warning: metacity-2.24.0-1 is up to date -- reinstalling
    warning: nautilus-2.24.2-1 is up to date -- reinstalling
    warning: yelp-2.24.0-2 is up to date -- reinstalling
    resolving dependencies...
    looking for inter-conflicts...
    error: failed to prepare transaction (could not satisfy dependencies)
    :: firefox: requires xulrunner=1.9.0.4
    something similar when I try to install kdemod with pacman -S kdemod:
    pac -S kdemod
    kdemod package not found, searching for group...
    :: group kdemod (including ignored packages):
        kdemod-arxin  kdemod-kde-common  kdemod-kdeartwork-desktopthemes 
        kdemod-kdeartwork-emoticons  kdemod-kdeartwork-screensavers 
        kdemod-kdebase  kdemod-kdebase-konsole  kdemod-kdebase-runtime 
        kdemod-kdebase-runtime-icons  kdemod-kdebase-workspace 
        kdemod-kdebase-workspace-wallpapers  kdemod-kdegraphics-common 
        kdemod-kdegraphics-gwenview  kdemod-kdegraphics-kamera 
        kdemod-kdegraphics-kcolorchooser  kdemod-kdegraphics-kruler 
        kdemod-kdegraphics-ksnapshot  kdemod-kdegraphics-okular  kdemod-kdelibs 
        kdemod-kdemultimedia-common  kdemod-kdemultimedia-dragonplayer 
        kdemod-kdemultimedia-kmix  kdemod-kdemultimedia-kscd 
        kdemod-kdenetwork-common  kdemod-kdenetwork-kget  kdemod-kdenetwork-kopete 
        kdemod-kdepim-akregator  kdemod-kdepim-common  kdemod-kdepim-kaddressbook 
        kdemod-kdepim-kmail  kdemod-kdepim-knotes  kdemod-kdepim-korganizer 
        kdemod-kdepimlibs  kdemod-kdeutils-ark  kdemod-kdeutils-common 
        kdemod-kdeutils-kcalc  kdemod-kdeutils-kcharselect  kdemod-kdeutils-kgpg 
        kdemod-kdeutils-kwallet  kdemod-kgrubeditor  kdemod-shaman 
    :: Install whole content? [Y/n]
    resolving dependencies...
    error: cannot resolve "phonon>=4.3.0", a dependency of "kdemod-kdelibs"
    error: failed to prepare transaction (could not satisfy dependencies)
    :: kdemod-kdelibs: requires phonon>=4.3.0
    any suggestions?
    PS: I notice that an entry in /var/lib/pacman/local: klibc got this in depends file:
    %PROVIDES%
    klibc-jfflyAahxqaliwAofrf_fdf5upI
    is not bad?
    sorry for my english.
    Last edited by B (2009-01-28 12:10:59)

    Thanks for the reply.
    Yes, kdemod uses qtmod, as opposed to qt. From further research I think the issue may be due to KDE being 4.3 now and KDEMOD being 4.2.
    I found a version of phonon in my package cache and installed it, but then I get a 'phonon confilcts with qt', or qtmod, I'll have to check which it was.
    I'm under the impression that qtmod does not include phonon and thus expects it to be able to be installed seperately. Since it comes with qt, but qtmod conflicts with qt, no phonon can be installed. But I may be way off on what the issue is.
    At the moment I'm installed the normal KDE from the Arch repos and I'll see how I like it. Hopefully by the time I decide to try KDEMOD the problem will be resolved. Though if I like KDE from Arch well enough I might not bother with KDEMOD at all.
    Generally speaking will using KDE from Arch end up causing less problems, during updates and such, than KDEMOD? I would assume so, but perhaps not?
    Thanks again.

  • Dependent LOV problem

    Hi all,
    Am fairly new to OAF and have problems with LOVs.
    I have a field called "Memo Line" which has an LOV (LOV1). If I select a value from LOV1, another field "Revenue Account" defaults depending on the value selected in LOV1.
    "Memo Line" (Field 1) is not validated against LOV1 - the user wants to be able to edit memo lines or make up their own text.
    If i manually edit "Memo Line" (Field 1), the value already selected in "Revenue Account" (Field 2) disappears because the VO executes and finds no Revenue Account for the "Memo Line" (Field 1) value I just entered.
    How do I stop the field being cleared out in the event that the VO returns no data?

    Hi Ian,
    This can not achieved with the Dependent LOV method given in the Dev Guide. You have to handle it explicitly.
    In this scenario, you can add dynamic whereClause in controller of the second LOV ("Revenue Account").
    -- Arvind

  • A language dependent theme problem

    Hello all,
    When running our web dynpro applications in Hebrew our date pickers (actually input fields) seems as if they don't get the theme/css design.
    In English the date picker works fine.
    The same problem occures in all themes and in all portals since we upgraded the portals from 2004s sp8 to sp11.
    We already tried copying all theme folders to the corresponding 'R' folders and don't know what else can be done.
    Thanks for your time, Adi.
    Message was edited by:
            Adi Shmidman

    maybe it's time to open a support message?

  • Cannot Update Circular Dependency problem

    Hi everyone,
    I wanted to update a few packages but ran into dependency cycle problem.I did pacman -Syu and then tried to update but all in vain.I searched the forum and found some solutions but I am still unable to solve the problem.This is the error message that I get:
    extra is up to date
    community is up to date
    :: The following packages should be upgraded first :
    pacman
    :: Do you want to cancel the current operation
    :: and upgrade these packages now? [Y/n] y
    resolving dependencies...
    warning: dependency cycle detected:
    warning: udev will be installed before its util-linux dependency
    looking for inter-conflicts...
    :: gnupg and gnupg2 are in conflict. Remove gnupg2? [y/N] y
    :: kmod and module-init-tools are in conflict. Remove module-init-tools? [y/N] y
    error: failed to prepare transaction (could not satisfy dependencies)
    :: gcc: requires gcc-libs=4.6.2-5
    I am not sure about the real approach to this problem.I cannot update pacman neither can I delete all the packages to resolve dependencies.
    Any help will be appreciated Thanks.
    Last edited by stp002 (2012-04-06 10:03:48)

    This is really handled in quite alot of threads on the forums already. Simply running:
    # pacman -S pacman
    should fix it for you.
    Additional info about the kmod/module-init-tools warning.

  • ADF 12c Rendering Problems at design time

    Hi all,
    I am experimenting the following unexpected rendering problems at Design time with JDEV 12c:
    -  Sometimes a complete page is showed empty or blank but the components exists on the page (you can see them in the structure panel) and the page has no warnings.
    -  Sometimes I cannot click a component because it is behind the container.
    -  Sometimes the containers are rendered in other place on the page.
    -  Sometimes the containers not stretching
    I remember some posts about this problem in 11.1.2.x but I think it was not fixed in 12c. For this reason, I have some questions:
    What is the "real" memory requirement  of Jdev 12c to avoid render problems?
    What is the best configuration in jdev.conf?
    Is it only a memory issue or Is it also a dependency reference problem? According to a blog post of Frank Nimphius:
    Though with Oracle JDeveloper 11g the problem of the IDE not rendering JSF pages properly in the visual editor has become rare, there always is a way for the creative to break IDE functionality. A possible reason for the visual editor in JDeveloper to break is a failed dependency reference, which often is in a custom JSF PhaseListener configured in the faces-config.xml file. To avoid this from happening, surround the code in your PhaseListener class with the following statement (for example in the afterPhase method)
    public void afterPhase(PhaseEvent phaseEvent) {   if(!ADFContext.getCurrent().isDesigntime()){ ... listener code here ... } }
    The reason why the visual editor in Oracle JDeveloper fails rendering the WYSIWYG view has to do with how the live preview is created. To produce the visual display of a view, JDeveloper actually runs the ADF Faces view in JSF, which then also invokes defined PhaseListeners. With the code above, you check whether the PhaseListener code is executed at runtime or design time.If it is executed in design time, you ignore all calls to external resources that are not available at design time.
    source:
    https://blogs.oracle.com/jdevotnharvest/entry/when_jdeveloper_ide_doesn_t
    if it is a known problem, then Why is not fixed in 12c?
    Jhon
    Jdev 12c

    Jhon, what Frank mentioned can't be fixed from the outside. You or the developers who use phase listens without thinking about the design view are the ones to fix this. Frank provided you with the solution for this.
    However, we don't know if you use any self written phase listener. If you don't do this you have another problem. I do see some of your symptoms but can't reproduce them at the moment. As long as we can't reproduce the problem somehow it's difficult to to get a solution.
    My advise is to keep your eyes open (add I do) and whenever you can reproduce this behaviour come back and tell us about it. It's hard or impossible to give the 'best' settings for Jdev.conf as they depend on other factors e.g. operating system, memory, other applications running at the same time and many more.
    Personally I don't change the parameters as long as I can't put the problems to low memory (which I can't at the moment).
    Timo

  • Not able to assign old dependancy net to new one.

    I created a new Dependancy Net :
    Problem is that it is not possible to attach an existing OD to the new net,
    is there any solution for this.

    Please check what is the dependancy type you are using.
    following are the imp points which we need to conside before creating the dependancy.
    1.Preconditions are allowed for characteristics and characteristic values.
    2.Selection conditions are allowed for characteristics, BOM items, operations, sub-operations, sequences of operations, and production resources/tools.
    3.Actions are allowed for characteristics, characteristic values, BOM items, operations, and configuration profiles.
    4Constraints can only be linked to a configuration profile via dependency nets.
    regards
    shiv

  • Garbage Collection problem with BI 4.0

    Hi experts,
    I've installed BI 4.0, the operating system is SUSE Linux. In the logging directory are several *._gc.log-Files:
    E.g. crproc_bobSIAN.CrystalReportsProcessingServer_child_gc.log:
    34.609: [Full GC [PSYoungGen: 8352K->2707K(86976K)] [ParOldGen: 33449K->33470K(49472K)] 41801K->36177K(136448K) [PSPermGen: 35
    487K->35460K(56640K)], 0.2510370 secs] [Times: user=0.25 sys=0.00, real=0.24 secs]
    39.664: [GC [PSYoungGen: 81283K->4033K(100544K)] 114753K->40232K(150016K), 0.0387570 secs] [Times: user=0.03 sys=0.02, real=0.
    04 secs]
    41.271: [GC [PSYoungGen: 91137K->14332K(101440K)] 127336K->51242K(150912K), 0.0316510 secs] [Times: user=0.02 sys=0.01, real=0
    .03 secs]
    47.628: [GC [PSYoungGen: 101436K->15431K(112320K)] 138346K->66686K(163712K), 0.0623110 secs] [Times: user=0.06 sys=0.01, real=
    0.06 secs]
    47.690: [Full GC [PSYoungGen: 15431K->12343K(112320K)] [ParOldGen: 51255K->51388K(73088K)] 66686K->63731K(185408K) [PSPermGen:
    63948K->63918K(96064K)], 0.5285130 secs] [Times: user=0.49 sys=0.04, real=0.53 secs]
    659.998: [GC [PSYoungGen: 107383K->14966K(114752K)] 158771K->66354K(187840K), 0.1000770 secs]
    or bobSIAN_gc.log:
    3542.210: [GC 3542.233: [DefNew: 20756K->925K(22208K), 0.0036560 secs] 54323K->34493K(71208K), 0.0037360 secs] [Times: user=0.00 sys=0.00, real=0.03 secs]
    3781.915: [GC 3781.942: [DefNew: 20701K->962K(22208K), 0.0031300 secs] 54269K->34530K(71208K), 0.0031840 secs] [Times: user=0.00 sys=0.00, real=0.03 secs]
    4081.483: [GC 4081.499: [DefNew: 20738K->981K(22208K), 0.0030550 secs] 54306K->34549K(71208K), 0.0031110 secs]
    It's also interesting, that I'm missing free space in the installation directory of Business Objects. There are no reports scheduled, but the directory still grows. Maybe it depends on problems with GC.
    Any idea? Is there a best practice, how to configure the jvm?
    Thanks and best regards,
    Max

    Hello Deepu,
    The current plan for BI OnDemand is to support BOE 4.0 in the 2012 timeframe.  We have not yet worked out a specific date for the release, though.  The specific upgrade plan and long term feature roadmap is still under discussion for BI OnDemand.  
    Regards,
    Terry Penner
    BI OnDemand Product Owner

  • ITunes can't connect to Apple TV sometimes after sleep and wake up

    Hi!
    There are any issues to find in the discussions depending on problems between the ATV and iTunes but no solution helps me to solve the following problem till now.
    I am using a Mac mini (middle 2011) as a central storage for multimedia data. The exact description of the network can you find further down.
    The problem is that iTunes sometimes can't connect to the Apple Tv via Airplay. There is a window open what tells me that iTunes try to connect to ATV. But it doesn't work.
    After determine iTunes completely (normal closing doesn't work because of that open window) and restart it, it will work probably.
    Itunes is connecting to ATV via Airplay immediately.
    Sometimes it works for any days with a view sleep and wake up procedures. Sometimes the problem appears while I'm listen to music after any minutes of starting.
    I send the mini and the ATV to sleep with the remote of the ATV or let it go to sleep alone. To wake up ATV and mini I push a button on the remote.
    Following components are working in my network:
    - router FritzBox 7390 from AVM (2,4 and 5 GhZ at the same time)
    - Mac mini (middle 2011) connected via Wlan
    - two Airport Express with connected loudspeakers in various rooms (Wlan)
    - Apple TV (third generation) connected with home cinema via HDMI and with the network via Wlan
    - Telekom entertain setbox for TV connected via LAN over Wlan bridge
    I have tried to use the whole system with an Airport Extrem as router for wlan but the problem was the same.
    I suppose it could be a problem with DHCP Lease or the Bonjour? What can I do?
    Last but not least...the devices have installed the newest firmware or software versions.
    Thanks a lot for support!
    Norman

    i bit the bullet and re-associated library on ATV. On atv, setting/computers; current library was grayed out, clicking creates a warning that all media on ATV will be lost, it takes its time to earase the disk, then an option to connect to itunes becomes available just like fresh setup. ATV produced a code to enter into itunes. itunes complained that it cannot communicate on port 3689; googleupdate.exe was using this port; disabled googleupdate; rebooted everything for good measure. so now i'm waiting for 100GB of home movies and music to sync to ATV (thanks apple!). one thing that got me stumbled - when ATV showed up, there were not tabs for music, movies, podcast, etc, only settings and photos; solution: deselect 'automatic sync' by selecting 'custom sync' in the settings tab.

  • I am getting this error message, " The URL is not valid and cannot be loaded" when I try to go to Firefox home. I have uninstalled add-ons, uninstaleed and reinstalled a fresh new firefox which did not help

    I am getting the following error message, " The URL is not valid and cannot be loaded" when I try to go to firefox home. I uninstalled add-ons , uninstalled Firefox and then installed a fresh version. Still have the problem.
    Thanks for the help

    That issue can be caused by a corrupted or incomplete Visual C++ installation (multiple versions can be installed side-by-side; SxS) that is missing some runtime components (Redistributable Packages) that Firefox depends on (problem with an embedded manifest file that specifies a specific runtime version).
    You need to install the missing components (e.g. VisualC++ 2005 Redistrbutable).
    * https://www.microsoft.com/download/en/details.aspx?id=5638
    *[[/questions/908165]] The URL is not valid and cannot be loaded
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=713167 bug 713167] - Microsoft.VC80.CRT SideBySide errors, browsercomps.dll

  • How to include .java file in all projects?

    Hi Friends, i have some questions related....
    1) i have a file .java with some great functions, this functions i need use in all projects, then what is the easy by moment i start a project, and copy this file to project..
      is possible have only 1 file with these utilities functions? (if yes how to declare or use in all projects?)
    Note these utilkities file i want use on JAVA desktop(swinf and javafx), on JSP webpages and in the futhurer on the mobile.
    2) i have a JSP project in 1 .JSP file i have 8 Tabs (CSS tabs) when user click on tab1 i execute some jsp java code. and if user click on tab2 i execute a different JSP code, but my problem is, the JSP file is large large large, 1500 lines, my question is: is possible (similar in PHP) do an include?
    <%
       include tab1.jsp
    %>
    thanks

    jamiguel77 wrote:
          1) i have a file .java with some great functions,
    If that is one Java file only I really doubt that those functions are "great" from a technical point of view...
    this functions i need use in all projects, then what is the easy by moment i start a project, and copy this file to project..
      is possible have only 1 file with these utilities functions? (if yes how to declare or use in all projects?)
    Note these utilkities file i want use on JAVA desktop(swinf and javafx), on JSP webpages and in the futhurer on the mobile.
    There is a  common approach to this problem which is a dependency repository. Various build tools address the dependency resolution problem. Most common are maven and greadle. Place your Jar file on a location you can reach from your various developement environments (eg. a share on a server in your network) Then configure your build tool to know about your repository.
    A better solution that a naked net share is a nexus server, which will not only hanlde dependencies you namually placed on your share but also dependencies available on public repositories.
    In your project you simply declare the (direct) dependencies of the Code you're writing. For maven you need an aditional file in your project: the pom.xml. maven (or greadle) will handle all the transient dependencies for you (as long as the pom.xml of the dependency also declares its own dependencies and those other dependencies are reachable for maven too).
    bye
    TPD

  • How to include Java embedding in BPEL to connect with Siebel On Demand

    Hi,
    I am trying to integrate Siebel on Demand with BPEL using the instructions given in the Best practices page http://www.oracle.com/technology/tech/fmw4apps/siebel/ofm-siebel-blog-postings.html.
    The code used in the Java embedding does not send a response back. I have increased the timeout period but still i get a time out error.
    Please let me know if anyone is aware of a work aorund for this
    Thanks.

    jamiguel77 wrote:
          1) i have a file .java with some great functions,
    If that is one Java file only I really doubt that those functions are "great" from a technical point of view...
    this functions i need use in all projects, then what is the easy by moment i start a project, and copy this file to project..
      is possible have only 1 file with these utilities functions? (if yes how to declare or use in all projects?)
    Note these utilkities file i want use on JAVA desktop(swinf and javafx), on JSP webpages and in the futhurer on the mobile.
    There is a  common approach to this problem which is a dependency repository. Various build tools address the dependency resolution problem. Most common are maven and greadle. Place your Jar file on a location you can reach from your various developement environments (eg. a share on a server in your network) Then configure your build tool to know about your repository.
    A better solution that a naked net share is a nexus server, which will not only hanlde dependencies you namually placed on your share but also dependencies available on public repositories.
    In your project you simply declare the (direct) dependencies of the Code you're writing. For maven you need an aditional file in your project: the pom.xml. maven (or greadle) will handle all the transient dependencies for you (as long as the pom.xml of the dependency also declares its own dependencies and those other dependencies are reachable for maven too).
    bye
    TPD

  • Bug in 6.1 SP6 + 8.1 SP2 in WebAppServletContext.setAttribute

              Althoug I found a depending Fixed Problem Message for BEA 7.0, I get the following
              NullPointer Exception with BEA Weblogic Server 6.1 SP6 (in SP 4 it works fine)
              and in 8.1 SP2.
              The J2EE Spec allowes to use setAttribute("xy", null) and it should be handled
              in the same way like caling removeAttribute("xy").
              11:19:37,573 ERROR (AdministrationConstantReloadTab.java:101) - Fehler beim Anzeigen
              des AdministrationAntragReloadTabs
              java.lang.NullPointerException
              at java.util.Hashtable.put(Hashtable.java:389)
              at weblogic.servlet.internal.WebAppServletContext.setAttribute(WebAppServletContext.java:669)
              at de.abc.elektra.administration.control.AdministrationConstantReloadTab.handleAction(AdministrationConstantReloadTab.java:90)
              at de.abc.elektra.common.control.TabHandler$TabFormListener.formSubmitted(TabHandler.java:216)
              at com.javelin.swinglets.SForm.processFormEvent(SForm.java:168)
              at com.javelin.swinglets.SForm.processEvent(SForm.java:132)
              at com.javelin.swinglets.SComponent.dispatchEvent(SComponent.java:1179)
              at com.javelin.swinglets.ServletManager.handle(ServletManager.java:256)
              at de.abc.elektra.common.control.WindowHandler.handleContext(WindowHandler.java:44)
              at de.abc.elektra.common.control.Navigator.process(Navigator.java:239)
              at de.abc.elektra.common.control.Navigator.doPost(Navigator.java:117)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
              at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
              at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
              at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html#setAttribute(java.lang.String,
              java.lang.Object)
              javax.servlet
              Interface ServletContext
              setAttribute
              public void setAttribute(java.lang.String name,
              java.lang.Object object)Binds an object to a given attribute
              name in this servlet context. If the name specified is already used for an attribute,
              this method will replace the attribute with the new to the new attribute.
              If listeners are configured on the ServletContext the container notifies them
              accordingly.
              If a null value is passed, the effect is the same as calling removeAttribute().
              Attribute names should follow the same convention as package names. The Java
              Servlet API specification reserves names matching java.*, javax.*, and sun.*.
              Parameters:
              name - a String specifying the name of the attribute
              object - an Object representing the attribute to be bound
              It is not really a problem if you have the chance to quickly change your implementation
              as you can use removeAttribute(String). But if there is a BEA employee reading
              this, then that bug should be fixed in the upcoming Service Packs.
              Guido Reiff
              

    I think we are running into a related issue with WLS6.1 SP6. We use struts
              and on re-loading some of the action classes, we see a NPE on a
              getServletContext call in org.apache.structs.action.RequestProcessor. This
              worked fine in WLS6.1 SP4.
              - Prasad
              "greiff" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Althoug I found a depending Fixed Problem Message for BEA 7.0, I get the
              following
              > NullPointer Exception with BEA Weblogic Server 6.1 SP6 (in SP 4 it works
              fine)
              > and in 8.1 SP2.
              >
              > The J2EE Spec allowes to use setAttribute("xy", null) and it should be
              handled
              > in the same way like caling removeAttribute("xy").
              >
              >
              > 11:19:37,573 ERROR (AdministrationConstantReloadTab.java:101) - Fehler
              beim Anzeigen
              > des AdministrationAntragReloadTabs
              > java.lang.NullPointerException
              > at java.util.Hashtable.put(Hashtable.java:389)
              > at
              weblogic.servlet.internal.WebAppServletContext.setAttribute(WebAppServletCon
              text.java:669)
              > at
              de.abc.elektra.administration.control.AdministrationConstantReloadTab.handle
              Action(AdministrationConstantReloadTab.java:90)
              > at
              de.abc.elektra.common.control.TabHandler$TabFormListener.formSubmitted(TabHa
              ndler.java:216)
              > at com.javelin.swinglets.SForm.processFormEvent(SForm.java:168)
              > at com.javelin.swinglets.SForm.processEvent(SForm.java:132)
              > at
              com.javelin.swinglets.SComponent.dispatchEvent(SComponent.java:1179)
              > at
              com.javelin.swinglets.ServletManager.handle(ServletManager.java:256)
              > at
              de.abc.elektra.common.control.WindowHandler.handleContext(WindowHandler.java
              :44)
              > at
              de.abc.elektra.common.control.Navigator.process(Navigator.java:239)
              > at
              de.abc.elektra.common.control.Navigator.doPost(Navigator.java:117)
              > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              > at weblogic.servlet.internal.ServletStubImpl$ServletInvocationActi
              on.run(ServletStubImpl.java:971)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :402)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :305)
              > at
              weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
              ebAppServletContext.java:6350)
              > at
              weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
              t.java:317)
              > at
              weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
              > at
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              ntext.java:3635)
              > at
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              :2585)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              >
              >
              >
              http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html#setAttribute(java.lang.String,
              > java.lang.Object)
              > --------------------------------------------------------
              >
              > javax.servlet
              > Interface ServletContext
              > setAttribute
              >
              > public void setAttribute(java.lang.String name,
              > java.lang.Object object)Binds an object to a
              given attribute
              > name in this servlet context. If the name specified is already used for an
              attribute,
              > this method will replace the attribute with the new to the new attribute.
              > If listeners are configured on the ServletContext the container notifies
              them
              > accordingly.
              >
              > If a null value is passed, the effect is the same as calling
              removeAttribute().
              >
              >
              > Attribute names should follow the same convention as package names. The
              Java
              > Servlet API specification reserves names matching java.*, javax.*, and
              sun.*.
              >
              > Parameters:
              > name - a String specifying the name of the attribute
              > object - an Object representing the attribute to be bound
              >
              >
              > It is not really a problem if you have the chance to quickly change your
              implementation
              > as you can use removeAttribute(String). But if there is a BEA employee
              reading
              > this, then that bug should be fixed in the upcoming Service Packs.
              >
              > Guido Reiff
              

Maybe you are looking for

  • Backing up Windows Server 2012 R2 Virtual Machine

    When I try to back my Windows Server 2012 R2 Virtual machine up to a NAS, using the Windows Server Utility I get the following errors: There was a failure in preparing the backup image in one of the volumes in the backup set. Detailed error: The proc

  • Official Apple Composite Cable DOESN'T WORK with iPhone 3GS firmware 3.1.2

    I've tried everything and I cannot make the official apple composite cable (MB129LL/B) work with my iPhone 3GS 3.1.2. I get no video output AND no sound as if the cable is simply not made for my 3GS What do need to do to get composite video output on

  • QEMU mouse cursor problem

    Hello folks, I was trying to have a little fun with QEMU, so I installed Arch and Xorg in it, but after starting X then twm through startx, my mouse pointer shows only until I click for the first time, then becomes ad stays invisible even if I reboot

  • How can I get my iPod to connect to the app store again?

    Hi, my iPod touch 4th generation is not connecting to the app store. I put an app i would like to get and it loads for a few minutes and then says cannot connect to app store. Does anyone have any ideas of what I can do?

  • Outer join With a constant value

    Hi all, In one of query i have found out that the outer join with a constant value like to_currency(+)='USD' to_currency is a column name in a table.can any one please explain this outer join condtn. Thanks in advance Senthil