JDeveloper 10.1.3.5.0 and jdk1.7.0_06

Hi,
I'm trying to use JDeveloper 10.1.3.5.0 with jdk1.7.0_06 and i'm getting the error "Unable to launch the Java Virtual Machine" at path... when trying to launch JDeveloper.
I checked the path and jvm.dll is on the right path : path\jdk1.7.0_06\jre\bin\client\jvm.dll.
I changed the jdev.conf with SetJavaHome set to path\jdk1.7.0_06.
What other configuration should I make ?
How do I know which Java version is supported by this version of JDeveloper ?
Thank you for your help...
Cheuyi

Read the install guide for your version and you'll see that 10.1.3 is not certified with JDK 1.7
Try using JDeveloper 11.1.1.6 instead.

Similar Messages

  • JDeveloper 3.1 and JDK1.2.2: are they REALLY compliant?

    Hi,
    I've already been developing in JDev 3.0 using Java 1.1.8 for a few months and have a number of EJB's deployed in an Oracle8i 8.1.5 database. These are accessed by a servlet which is called from a C++ application in order to populate the db tables. I'm using Java Webserver 2.0 and everything works fine.
    I've been upgrading to Java 2 with JDev 3.1, Oracle 8i R2, and JDK1.2.2. Everything again works fine when I am testing and debugging in the JDev 3.1 IDE but when I deploy to the Web server, my context lookup for the EJB published name freezes, returns an error status to the C++ app but does not display any error/exception msgs in the server console/log files.
    On investigating I found that the java.exe bundled with JDev 3.1 as the JDK1.2.2 version is actually NOT the java.exe that has been dispatched with the release version of JDK1.2.2! There are however two files in the bin directory of the JDK1.2.2 called oldjava.exe and oldjavaw.exe which correspond to the ones bundled with JDev 3.1?
    Could someone please explain what is going on? As it stands at the moment the version of java.exe with JDK1.2.2 does not work for my EJB's but if I replace it with the oldjava.exe, it works fine. Does this mean that JDev 3.1 is NOT actually JDK1.2.2 compliant or have I done something wrong?
    This is potentially a major problem for our projects so if anyone at Oracle has any info it would be greatly appreciated.
    Cheers
    Dave

    David,
    I changed Sun Java 1.2.2 VM to JDeveloper 3.0 1.1.8 VM and now I get this:
    [Root exception is java.lang.ClassNotFoundException: EJBBibles.BibleSearchHomeHelper]javax.naming.Na
    mingException: Unknown reasons
    at oracle.aurora.jndi.sess_iiop.SessionCtx._activate(SessionCtx.java:82)
    at oracle.aurora.jndi.sess_iiop.SessionCtx.activate(SessionCtx.java:276)
    at oracle.aurora.jndi.sess_iiop.ServiceCtx.lookup(ServiceCtx.java:320)
    at oracle.aurora.jndi.sess_iiop.sess_iiopURLContext.lookup(sess_iiopURLContext.java:215)
    at oracle.aurora.jndi.sess_iiop.sess_iiopURLContext.lookup(sess_iiopURLContext.java:201)
    at javax.naming.InitialContext.lookup(InitialContext.java:288)
    at EJBBiblesServlet.Servlet1.init(Servlet1.java:36)
    at org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java:315)
    at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:445)
    at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
    at org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
    at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHand
    ler.java:160)
    at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
    at java.lang.Thread.run(Thread.java:466)
    If I use JDev 1.2 VM, I get this:
    javax.naming.NotContextException: fumaca:2481:eatg/test/BibleSearchRemote
    java.lang.Object oracle.aurora.jndi.sess_iiop.sess_iiopURLContext.lookup(javax.naming.Name)
    java.lang.Object oracle.aurora.jndi.sess_iiop.sess_iiopURLContext.lookup(java.lang.String)
    java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
    void EJBBiblesServlet.Servlet1.init(javax.servlet.ServletConfig)
    void org.apache.tomcat.core.ServletWrapper.initServlet()
    void org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.Request, org
    .apache.tomcat.core.Response)
    void org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.HttpServletR
    equestFacade, org.apache.tomcat.core.HttpServletResponseFacade)
    void org.apache.tomcat.servlets.InvokerServlet.service(javax.servlet.http.HttpServletRequest
    , javax.servlet.http.HttpServletResponse)
    void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.Serv
    letResponse)
    void org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.Request, org
    .apache.tomcat.core.Response)
    void org.apache.tomcat.core.ContextManager.service(org.apache.tomcat.core.Request, org.apach
    e.tomcat.core.Response)
    void org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(org.apache.tomca
    t.service.TcpConnection, java.lang.Object[])
    void org.apache.tomcat.service.TcpConnectionThread.run()
    void java.lang.Thread.run()
    Which means that there is a difference relative to the VM version.
    All the names are correct on 8i deployment. And all necessary files are on classpath, (including the EJB source and generated jars, that are also in the /lib on the context dochome).
    Any thoughts?
    Thanks,
    Eduardo
    null

  • JDeveloper 11.1.1.5.0 and the Fusion Order Sample Application

    Hi all
    I am trying to explore SOA Suite 11g features, particularly the BPM part. I am unable to find any tutorials relating to this feature (can someone point me to some?) and therefore am trying to simply install the Fusion Order demo to have a look around myself.
    I have installed JDeveloper 11.1.1.5.0 (and the SOA Composite Editor and BPM Studio add-ins) and am trying to get the Fusion Order demo to work with it. I downloaded the zip file from http://www.oracle.com/technetwork/developer-tools/jdev/learnmore/fod1111-407812.html and followed the instructions there but when I try to run the StoreFrontUI project all I get is a blank screen.
    The server log has messages:
    <AzUtil> <getPermClassLoadingErrorMessage> Cannot instantiate permission class "oracle.fodemo.storefront.store.view.AccountPermission", target "AccountPermission", or actions "view" as defined in the system policy context.
    and
    <ADFContext> <getCurrent> Automatically initializing a DefaultContext for getCurrent.
    Then theses messages appear
    <ApplicationImpl> <createComponent> JSF1004: Cannot instantiate component of type oracle.dss.adf.graph.Graph
    <NavigationPaneRenderer> <_renderContent> Warning: There are no items to render for this level
    I have also tried running the login.jspx page directly, which loads and presents me with a login screen, but using the FOD/fusion combination I had in the Build.Properties.xml I get the message invalid username/password and again get the message
    <AzUtil> <getPermClassLoadingErrorMessage> Cannot instantiate permission class "oracle.fodemo.storefront.store.view.AccountPermission", target "AccountPermission", or actions "view" as defined in the system policy context.
    Can anyone suggest what I might be happening, what I've done wrong?
    Thanks
    Roy

    Just for verification - which version of FOD did you download? what's the zip name?
    For SOA tutorials doucmentation on getting started see the SOA section here:
    http://download.oracle.com/docs/cd/E21764_01/develop.htm
    You might want to try posting on the SOA Suite forums for more tips on getting started.

  • Log4j and jdk1.5

    log4j-1.2.8 and jdk1.5
    they don't seem to work together? too many errors/warnings
    any solutions?

    hehe
    thats a good solution thnx :)
    what i actually meant to ask was ... is there a way for jdk1.5 to work with log4j

  • Why Jdeveloper Version 10.1.3.3  and  10.1.3.5  settings folder?

    Hello Everybody,
    I am new to JDeveloper IDE. I wanted to know why the JDeveloper versions 10.1.3.3 and 10.1.3.5 do not create a settings folder named 'JDeveloper' under "C:\Documents and Settings\<username>\Application Data" path? In JDeveloper 11g preview release this folder is created when the IDE is run for the first time. I am using the 10g version as it has embedded OC4J server. I need the above mentioned settings folder to configure Oracle MapViewer.ear.
    If there is way to make the IDE create this settings folder under "C:\Documents and Settings\<username>\Application Data" kindly let me know? Or if any workarounds?
    Regards,
    Shiva

    do u have this done in your home system
    In this case you should can change the directory per 11g installation by setting the ide.user.dir property (use forward slashes) in the <middleware install dir>\jdeveloper\jdev\bin\jdev.boot file or add it to the startup script with -J-Dide.user.dir=<some directory>.

  • Weblogic NT Service 4.5.1 and Jdk1.2.2

    I am trying to set up the Weblogic NT Service with 4.5.1 SP9 and
    jdk1.2.2.
    When I use t3config to set up my JAVA_HOME with e:\jdk1.2.2 instead of
    using the -jre 1.2 I get an error saying that javai.dll can't be found.
    The problem is javai.dll is a jdk1.1.7B module. Has anyone else had
    this problem.
    Thanks,
    Mike Ball
    [email protected]

    It doesn't even get that far, java.exe can't start because it is looking for
    a jdk1.1.7b dll
    Mauricio Del Moral wrote:
    Trying setting
    -Djava.library.path=d:\weblogic\bin
    when server starts.
    I think you had jdk1.1.7B installed before, right?.
    Michael Ball <[email protected]> wrote:
    I am trying to set up the Weblogic NT Service with 4.5.1 SP9 and
    jdk1.2.2.
    When I use t3config to set up my JAVA_HOME with e:\jdk1.2.2 instead of
    using the -jre 1.2 I get an error saying that javai.dll can't be found.
    The problem is javai.dll is a jdk1.1.7B module. Has anyone else had
    this problem.
    Thanks,
    Mike Ball
    [email protected]

  • Difference between jdk1.3 and jdk1.4 and jdk1.5

    Hi All
    1: I wud like to know the difference between jdk1.3 and jdk1.4 and jdk1.5. I could not recoginze the correct answer for this.. mostly i need the added advantages for version of JDK..
    2: I wud also like to know difference in J2SE and J2EE.
    Thanks in advance

    while I can't tell you exclusively the differences, other than more methods have been added and some have been deprecated, from version to version, that is at least one difference.
    I know several like me are reluctant at the moment to jump on up to 1.5, for fear of (and reasonably so) making their current apps go haywire!
    Mine did just the other day when I tried to upgrade the JDK from 1.4.0 to 1.4.2.12!! It hosed everything.
    J2SE is the Standard Environment, and J2EE is the Enterprise environment, which at the very least allows for things like the java Mail interface, using servlets and classes with the HTTP environment!
    I'm sure many other posters could more accurately and specifically give you some other criterion of differences and advantages.

  • JDev 10.1.3 and JDK1.2.2 use javac problem

    I have an old application that I need to compile in 1.2.2, and have tried the "use javac" checkbox on the project properties compile page. The compiler seems to run, but there is an intential error in the code. I put it there, because the class file didn't seem to get generated. I tried this on command line, and apparently '-source' is an invalid option in 1.2.2.
    E:\jdk1.2.2\bin\javac.exe -J-mx512m -verbose -source 1.2 -target 1.2 -encoding Cp1252 -g -classpath E:\jdk1.2.2\jre\lib\rt.jar;E:\jdk1.2.2\jre\lib\i18n.jar;E:\jdk1.2.2\jre\classes;E:\app\codebase;E:\oracle\jdev1013\j2ee\home\lib\ojsp.jar;E:\oracle\jdev1013\j2ee\home\jsp\lib\taglib\ojsputil.jar;E:\oracle\jdev1013\j2ee\home\oc4j.jar;E:\oracle\jdev1013\j2ee\home\lib\oc4j-internal.jar;E:\oracle\jdev1013\j2ee\home\lib\servlet.jar;E:\oracle\jdev1013\jdev\lib\ojc.jar -sourcepath E:\app\src -d E:\PTC\Windchill\codebase @C:\DOCUME~1\gteft\LOCALS~1\Temp\javac30279.tmp
    [1:53:55 PM] Successful compilation: 0 errors, 0 warnings.
    Has anyone else run into this?
    Any help or thoughts on how to adjust this behavior for 1.2.2's javac would be appreciated.

    Thank you for responding. I am aware of (and frustrated by) issues and limitations due to this application's dependancies on an aging platform, and would upgrade if it were my choice. The dependancy is in the vendor's API, and not in code that I can change.
    As the invalid option was not captured as a message or counted as an error, I thought that perhaps this could be a potential issue for using javac with any version.
    I was hoping to see if there were additional settings controlling the command line options that I couldn't find.
    Thanks,
    Greg

  • JDeveloper 10.1.3.2.0 and database 11g, problem in JDBC ?

    We developed our j2ee application (using hibernate) for some time. Now we came to newer Oracle database 11g and have problem - endless waiting for fetched data. I think, that problem is in JDBC version.
    Adding new JDBC into project as new library and placing it 'before' the old one doesn't help. Btw. hibernate gets connection from applicationContext_dataSource.xml file and is defined for example like this
    <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
    <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
    <property name="url" value="jdbc:oracle:thin:@host:port:SID"/>
    <property name="username" value="name"/>
    <property name="password" value="password"/>
    </bean>
    It has nothing to do with defined conections.
    My question is this:
    - Can I upgrade JDBC in our 10.1.3.2.0 JDeveloper to new version or latest version of JDeveloper is needed ?
    Thanks.
    Message was edited by:
    jnejedly

    The OC4J server embedded in JDeveloper 11g does not support JDBC 4.0.
    Java applications using the JDBC 4.0 driver may be developed in JDeveloper 11g.

  • Installation failed with Windows Vista and JDK1.602

    Hi All,
    Appreciate any help to resolve the following installation error on my Windows Vista system with JDK1.602
    Pop-up Error Message:
    The installer is unable to run graphical mode. Please check the value of the DISPLAY environment varibale.
    Thanks,
    CP

    JSE8.1 (based on NetBeans 5.0) is not supported on Vista. You may want to consider using the latest NetBeans 5.5.1. (NetBeans is where all future development is planned for).
    http://forum.java.sun.com/thread.jspa?threadID=5192837
    From the release notes of NB551:
    # Issue #85361: NetBeans 5.5 installer does not start on Windows Vista.
        Description: On systems running Windows Vista, the NetBeans 5.5 installer fails to start
    and a message suggesting running with the "silent" or "console" flag appears.
        Workaround: To correct this, run the installer on JDK 6.0 build 96 or newer.
        If you encounter further difficulties, disable Compatibility Mode manually. You can do
    this by right-clicking the .exe installer file and choosing Properties from the pop-up menu,
    then deselecting Compatibility Mode in the Compatibility tab of the File Properties dialog.
    Note that if Compatibility Mode was turned on automatically, it is necessary to disable it
    for both the current user AND all users. To do so, click the "Show Settings for All Users"
    button, then deselect the Compatibility Mode checkbox in the "Compatibility for All Users"
    dialog.You can try the same workaround for installing jse8.1, to see if that works. But, it is an older version that is not supported on vista and hence my suggestion to consider a later version of NB.

  • JDeveloper 10.1.2 with MySQL and PostgreSQL

    I'm testing JDeveloper 10.1.2 business components with mysql or postgresql because my company needs to connect also to these non-oracle DBs. ADF suits our developement needs, in speed and functionalities; anyway to make it our main developement system we need it to be compatible.
    I made three tests and they were all disappointing.
    At first, I installed MySQL 4.0 on my windows machine. I used the stable Connector/J 3.1
    and then MySQL Connector/J 3.0, but in both cases JDeveloper had a strange behaviour: I can make the connection, I can navigate correctly through all tables in the connection-navigator, I see all the column names etc... Anyway, as I try to build a "new Entity Object" from a table, there are no available table properties, like if the table had no columns.
    In this forum I only found documentation about rowid problems with mysql, but nothing about Entity Object wizard issues.
    Then I switched to PostgreSQL. I installed it locally, so I had to choose the 8.01 since I'm on a windows machine. JDBC driver: postgresql-8.0-310 jdbc3
    The developement test phase went ok, it is possible to use this DB just as if it was a Oracle, all the business components wizards works perfectly.
    The problem is at runtime, unfortunately. I built a simple datapage on the struts-config diagram and I dragged on it a "read-only table" from the data control palette.
    As I run the application, the embedded OC4J immediately returns this error:
    oracle.jbo.JboException: JBO-29000: JBO-29000: JBO-29000: JBO-26061: Errore durante lapertura della connessione JDBC.
    at oracle.jbo.JboException.<init>(JboException.java:343)
    (in english: Error during JDBC connection)
    There are no other available JDBC drivers for JVM 1.4x so I see no solution...
    I also tried to connect to an older PostgresSQL with its (older) JDBC but I get same the result.
    Anyone can help? Is it a JDev 10.1.2 issue?

    Hi Paolo.
    I'm also doing such tests.
    I did not ran into these problems because I created the busisness componentes using an Oracle connection first.
    After that, I switched the datatype of the table columns in the entity object to meet the SQL92 criteria ( like changing NUMBER(n) to INTEGER ).
    And then, I switched the connection to the postgreSQL or MySQL. This worked fine for me.
    But, the other big problem you will face is related to updating records using postgreSQL connection.
    Please see my post "Problem updating records using BC4J with foreign data sources" Problem updating records using BC4J with foreign data sources
    It would by fine if we help each other to solve this problems.
    Thanks
    Denis

  • JDeveloper 11.1.2.1, IE8 and erratic popup behavior

    I am trying to do a simple proof of concept in JDeveloper 11.1.2.1 involving a databound table and a popup. I want to add a row to the table by filling in a form on the popup. The popup is opened via an action by clicking a button in the form. I used the Code Corner example #77 as a template for adding rows. Using IE8 (not in compatibility mode), I click on the "Add" button and the popup opens. However, error messages in the dialog also appear indicating that non-null fields require values. Here's where it gets interesting. If I create the exact same form, managed bean, entity/view objects in JDeveloper 11.1.1.6, then everything works fine while adding rows. I am guessing I am missing some sort of property setting, but I have yet to find it. I am new to JDeveloper/ADF. Form structure and managed bean code is below. Any ideas?
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <af:document title="popuptest.jsf" id="d1">
    <af:messages id="m1" inline="false"/>
    <af:form id="f1">
    <af:table value="#{bindings.allDepartments.collectionModel}" var="row"
    rows="#{bindings.allDepartments.rangeSize}"
    emptyText="#{bindings.allDepartments.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.allDepartments.rangeSize}" rowBandingInterval="0"
    selectedRowKeys="#{bindings.allDepartments.collectionModel.selectedRow}"
    selectionListener="#{bindings.allDepartments.collectionModel.makeCurrent}" rowSelection="single"
    id="t1" partialTriggers="::cb1" binding="#{CreateDepartmentPageHelper.departmentsTable}">
    <af:column sortProperty="#{bindings.allDepartments.hints.DepartmentId.name}" sortable="false"
    headerText="#{bindings.allDepartments.hints.DepartmentId.label}" id="c1">
    <af:outputText value="#{row.DepartmentId}" id="ot1">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.allDepartments.hints.DepartmentId.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="#{bindings.allDepartments.hints.DepartmentName.name}" sortable="false"
    headerText="#{bindings.allDepartments.hints.DepartmentName.label}" id="c2">
    <af:outputText value="#{row.DepartmentName}" id="ot2"/>
    </af:column>
    <af:column sortProperty="#{bindings.allDepartments.hints.ManagerId.name}" sortable="false"
    headerText="#{bindings.allDepartments.hints.ManagerId.label}" id="c3">
    <af:outputText value="#{row.ManagerId}" id="ot3">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.allDepartments.hints.ManagerId.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="#{bindings.allDepartments.hints.LocationId.name}" sortable="false"
    headerText="#{bindings.allDepartments.hints.LocationId.label}" id="c4">
    <af:outputText value="#{row.LocationId}" id="ot4">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.allDepartments.hints.LocationId.format}"/>
    </af:outputText>
    </af:column>
    </af:table>
    <af:commandButton text="Add" id="cb1" partialSubmit="true"
    action="#{CreateDepartmentPageHelper.cb1_action}"/>
    <af:popup autoCancel="enabled" id="p1"
    binding="#{CreateDepartmentPageHelper.popup}"
    contentDelivery="lazyUncached" eventContext="self">
    <af:dialog id="d2">
    <f:facet name="buttonBar"/>
    <af:panelFormLayout id="pfl1">
    <af:inputText value="#{bindings.DepartmentId.inputValue}"
    label="#{bindings.DepartmentId.hints.label}"
    required="#{bindings.DepartmentId.hints.mandatory}"
    columns="#{bindings.DepartmentId.hints.displayWidth}"
    maximumLength="#{bindings.DepartmentId.hints.precision}"
    shortDesc="#{bindings.DepartmentId.hints.tooltip}" id="it1">
    <f:validator binding="#{bindings.DepartmentId.validator}"/>
    <af:convertNumber groupingUsed="false" pattern="#{bindings.DepartmentId.format}"/>
    </af:inputText>
    <af:inputText value="#{bindings.DepartmentName.inputValue}"
    label="#{bindings.DepartmentName.hints.label}"
    required="#{bindings.DepartmentName.hints.mandatory}"
    columns="#{bindings.DepartmentName.hints.displayWidth}"
    maximumLength="#{bindings.DepartmentName.hints.precision}"
    shortDesc="#{bindings.DepartmentName.hints.tooltip}" id="it2">
    <f:validator binding="#{bindings.DepartmentName.validator}"/>
    </af:inputText>
    <af:inputText value="#{bindings.ManagerId.inputValue}" label="#{bindings.ManagerId.hints.label}"
    required="#{bindings.ManagerId.hints.mandatory}"
    columns="#{bindings.ManagerId.hints.displayWidth}"
    maximumLength="#{bindings.ManagerId.hints.precision}"
    shortDesc="#{bindings.ManagerId.hints.tooltip}" id="it3">
    <f:validator binding="#{bindings.ManagerId.validator}"/>
    <af:convertNumber groupingUsed="false" pattern="#{bindings.ManagerId.format}"/>
    </af:inputText>
    <af:inputText value="#{bindings.LocationId.inputValue}"
    label="#{bindings.LocationId.hints.label}"
    required="#{bindings.LocationId.hints.mandatory}"
    columns="#{bindings.LocationId.hints.displayWidth}"
    maximumLength="#{bindings.LocationId.hints.precision}"
    shortDesc="#{bindings.LocationId.hints.tooltip}" id="it4">
    <f:validator binding="#{bindings.LocationId.validator}"/>
    <af:convertNumber groupingUsed="false" pattern="#{bindings.LocationId.format}"/>
    </af:inputText>
    </af:panelFormLayout>
    </af:dialog>
    </af:popup>
    </af:form>
    </af:document>
    <!--oracle-jdev-comment:preferred-managed-bean-name:CreateDepartmentPageHelper-->
    </f:view>
    BACKING BEAN CODE:
    package view;
    import javax.faces.context.FacesContext;
    import oracle.adf.model.BindingContext;
    import oracle.adf.model.binding.DCIteratorBinding;
    import oracle.adf.share.ADFContext;
    import oracle.adf.view.rich.component.rich.RichPopup;
    import oracle.adf.view.rich.component.rich.data.RichTable;
    import oracle.adf.view.rich.context.AdfFacesContext;
    import oracle.adf.view.rich.event.DialogEvent;
    import oracle.adf.view.rich.event.DialogEvent.Outcome;
    import oracle.adf.view.rich.render.ClientEvent;
    import oracle.binding.BindingContainer;
    import oracle.binding.OperationBinding;
    import oracle.adf.view.rich.util.ResetUtils;
    import oracle.jbo.Row;
    import oracle.jbo.server.ViewRowImpl;
    public class CreateDepartmentPageHelper {
    //old "current row" value is saved in view scope in case the rw creation is
    //cancelled, in which case this row needs to become current again
    final String OLD_CURR_KEY_VIEWSCOPE_ATTR = "__oldCurrentRowKey__";
    private RichPopup popup;
    private RichTable departmentsTable;
    public CreateDepartmentPageHelper() {
    public void setPopup(RichPopup popup) {
    this.popup = popup;
    public RichPopup getPopup() {
    return popup;
    //system generated method when you create a managed bean method for
    //a component that has an ADF binding referenced in its action listener
    public BindingContainer getBindings() {
    return BindingContext.getCurrent().getCurrentBindingsEntry();
    //command action that create a new row in teh departments table and then
    //opens an edit dialog for commit/cancel
    public String cb1_action() {
    BindingContainer bindings = getBindings();
    //get current row and save its rowKey in view scope for later use
    DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("allDepartmentsIterator");
    Row oldCcurrentRow = dciter.getCurrentRow();
    //ADFContext is a convenient way to access all kinds of memory scopes.
    //If you like to be persistent in yur ADF coding then this is what you
    //want to use
    ADFContext adfCtx = ADFContext.getCurrent();
    adfCtx.getViewScope().put(OLD_CURR_KEY_VIEWSCOPE_ATTR,
    oldCcurrentRow.getKey().toStringFormat(true));
    //perform row create
    OperationBinding operationBinding = bindings.getOperationBinding("CreateInsert");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    //access the popup dialog and bring it up. The reference is through a
    //JSF component binding reference using the popup "binding" property
    RichPopup popup = this.getPopup();
    RichPopup.PopupHints hints = new RichPopup.PopupHints();
    //empty hints renders dialog in center of screen
    popup.show(hints);
    return null;
    public void onDialogAction(DialogEvent dialogEvent) {
    Outcome outcome = dialogEvent.getOutcome();
    //the dialog event only propagates yes, no, ok actions to the
    //server. The cancel outcome is only available on the browser
    //client. If there is a need to handle the cancel even then you
    //need to use a clientListener and JavaScript as we do on this
    //example
    if(outcome == Outcome.ok){
    //commit
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("Commit");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    //handle errors if any
    return;
    AdfFacesContext.getCurrentInstance().addPartialTarget(this.getDepartmentsTable());
    public void setDepartmentsTable(RichTable departmentsTable) {
    this.departmentsTable = departmentsTable;
    public RichTable getDepartmentsTable() {
    return departmentsTable;
    //method that is called from the serverListener on the client. The server
    //listener is used to queue a custom event and pass information from the
    //client to the server using JavaScript. Its actually doing this Ajax thing
    //that everyone wants to do using the XmlHTTPRequest object
    public void onDialogCancel(ClientEvent clientEvent) {
    BindingContainer bindings = getBindings();
    RichPopup popup = this.getPopup();
    popup.hide();
    ResetUtils.reset(clientEvent.getComponent());
    //the cancel operation is executed with immediate=true to bypass the
    //model update. Therefore we manually deletethe new row from the iterator
    DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("allDepartmentsIterator");
    dciter.removeCurrentRow();
    //set current row back to original row
    ADFContext adfCtx = ADFContext.getCurrent();
    String oldCurrentRowKey = (String) adfCtx.getViewScope().get(OLD_CURR_KEY_VIEWSCOPE_ATTR);
    dciter.setCurrentRowWithKey(oldCurrentRowKey);
    AdfFacesContext.getCurrentInstance().addPartialTarget(this.getDepartmentsTable());
    FacesContext fctx = FacesContext.getCurrentInstance();
    //we don't want to continue with the remainder of the lifecycle and
    //thus skip the rest
    fctx.renderResponse();
    }

    Hi Frank,
    Thanks for the reply. I retested with a .jspx file just to confirm my results. I've tried Facelets as well without success. Results for .jspx are as follows:
    1. If the add button PartialSubmit property is set to true, and the popup's ContentDelivery=lazyUncached, ChildCreation=deferred, and AutoCancel=disabled, then:
    the popup appears with error messages outlining the required fields
    2. If the add button PartialSubmit Property is set to false and popup properties are the same as above then the popup opens as expected. However, if an attempt is made to insert a duplicate record - using departments table as an example, trying to create a row with an existing department - then a red box appears around the DepartmentId cell in the popup without any error message. If I press OK again, then the duplicate key error message appears as expected.

  • EJB and Jdk1.5 problem

    We are trying to migrate jdk 1.4 (wl 8.1) to jdk1.5 (wl 9.1), when we complie Java source code and build EJB ( using Ant/build.xml), we got following error and can not proceed any further.
    [java] /home/fipdev/DeltaOne/newproductimport/ejbcgen/com/leh/deltaone/ejb/business/newproductimport/DONewProductImportAccessor_41o8gs_Impl.java:12: cannot access com.leh.deltaone.ejb.business.newproductimport.DONewProductImportAccessorBean
    [java] bad class file: /home/fipdev/DeltaOne/newproductimport/ejbcgen/com/leh/deltaone/ejb/business/newproductimport/DONewProductImportAccessorBean.class
    [java] class file has wrong version 49.0, should be 48.0
    [java] Please remove or make sure it appears in the correct subdirectory of the classpath.
    [java] extends DONewProductImportAccessorBean
    [java] ^
    [java] 1 error
    [java] Exec failed .. exiting
    [java] Java Result: 1
    49.0 means using jdk1.5 and 48.0 means using jdk1.4, we do use jdk 1.5 in our development server and could verify by
    bash-2.03$ java -version
    java version "1.5.0_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
    Java HotSpot(TM) Server VM (build 1.5.0_06-b05, mixed mode)
    do you know why?
    Michael Zou

    Much appreciated your reply, I used both Windows and Unix system and Ant to build EJB, both CLASSPATH and PATH are configured to Jdk 1.5 version.
    CLASSPATH=C:\bea\jdk150_06\lib and PATH=C:\bea\jdk150_06\bin, and verify that it is 1.5 not 1.4 version.
    C:\Eclipse_WorkSpace\DeltaOne\ant>java -version
    java version "1.5.0_16"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)
    Java HotSpot(TM) Client VM (build 1.5.0_16-b02, mixed mode, sharing)
    but still getting error, any an idea? thank you again.
    Michael

  • JDeveloper 10.1.3.4.0 and getter/setter

    Is there a generate getter/setter functionality in this version of JDeveloper? I can't seem to find it.

    Hi :-)
    You can find this function at "Refactor -> Encapsulate Fields".
    If you wish to generate the methodes of a single variable, you must put your cursor at the declaration of this variable and call the function. Else you would generate methodes for all variables, if they dont even exists.
    Regards
    Majo
    Edited by: DerMajo on 16.10.2009 07:53

  • 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

Maybe you are looking for

  • XML import is duplicating xml elements

    I have a document which I am importing XML into to create a menu.  The xml is in this format. <Root>   <Categories>     <Category>       <CategoryName>Black teas from around the world</CategoryName>       <Tea>         <TeaNumber>1</TeaNumber>       

  • Will not fast forward, or display track length, on many songs/videos

    I understand that this may be a codec/format thing, but that would be puzzling as many of the mp3's I cannot currently FF on do so, on my much older 4thGen iPod. I am surprised that this is not featuring on more forums - I have not been able to see i

  • Jdk6 - cannot find symbol

    Hi, I've just encountered a problem compiling with sun jdk6, that I've never met before. I've the class Arch that uses objects of the class Node. I compile the Node class without any problem ( javac -cp "../lib/*" it/bcdm/di/core/Node.java); but whil

  • Problem trying to import a CD

    I have a CD that, when I insert it into the CD drive, iTunes doesn't respond at all. It's the Bright Eyes - I'm Wide Awake It's Morning CD. I'm running iTunes 7.4 on a Windows machine. If I view the contents of the CD, I can see all 12 tracks, with a

  • Best way to increase image size for print

    I have a jpeg of an image that I will have to increase roughly 140% for a final print size of 16"x20". I am creating the final design in InDesign, but am editing the image in Photoshop first. My question is what's the best way to increase the size of