Application of the ADF MAF reopen on device or emulator

jDeveloper 12.1.3, MAF 2.0.0.0

The application don't re - will not open after coming out outside. Using the arrow to the left, the original key, force shut down the application. Application opens only once per deployment. This happens on both the emulator and according to deploy on a mobile device. Everyone knows this?

I guess I got the place where you get a NullPointerException.

{Finally

If (conn! = null)

Conn.Commit ();

Conn.Close ();

}

Finally, the above will be always called, even after DB initialization when you open the application for the second time.

Finally is executed even when you return from your try statement.

For the second time that your conn will be null and conn.close () will always run resulting in NPE

Modify the code above to below and your problem should be solved:

{Finally

If (conn! = null)

{

Conn.Commit ();

Conn.Close ();

}

}

Kind regards

Deepak

Tags: Oracle Mobile

Similar Questions

  • Can I put an af:PanelHeader on the right to the left in the application of the adf?

    Mr President.

    Can I put an af:PanelHeader on the right to the left in the application of the adf?

    Concerning

    Take a look, maybe you can use one of the facets of the existing af:panelHeader (context, info. legend,...) to the text that you want to appear on the right:

    In this case, you can set the Text property of the panelHeader (required) to be just an empty space.

  • Where is the best place to implement the business logic in application of the ADF?

    I use jdeveloper 11g R2, JSF, Facelet

    Where is the best place to implement the business logic in application of the ADF?
    I mean something like the service layer in the spring

    Appreciate your comments

    Concerning
    Mohsen

    your application module...

  • Urgent - Custom authentication and authorization for the application of the ADF

    Hi friends,

    Custom implementation for authentication and authorization for the application of the ADF

    My project to use the OID , authentication and authorization, we will need to support both OAM and DB tables ( according to the preferences of the client during the installation ).

    I am new to this and do not have a clue about the same.

    Please guide me how to set up both in JDeveloper 11 g + ADF

    Thanks in advance.

    The answers you got up to present every point in the right direction. ADF security see the authentication of WLS, even for business authorization with respect to user roles defined on the WLS server. During the deployment, ADF security defined application roles are mapped to the user enterprise groups

    Application developed using Jdeveloper ADF +.

    This would use WLS for authentication

    Users of authentication - LDAP (OID) - are stored in LDAP

    Use the OID authentication provider in WLS

    Authorization - OAM or database (authorization details are stored in the DB or OAM tables)

    You can't allow users without authentication. If you need create authentication providers additional if they exist for OAM and RDBMS (there is a supplier of existing RDBMA, that you can use to identify users and to assign membership user groups). Then, you set the optional flag so that when authentication fails for additional providers you can always start the application.

    When running Admin users - create users from roles to create and assign permission privileges to the role (for pages and workflows)
    assign (or remove) the roles to/to leave users.

    ADF security uses JAAS to permissions that you can change using Enterprise Manager when running. Permissions are granted to the application roles and application roles are granted to business roles that which then has users become members of the. If you want to change the status of user account, then you don't do this the ADF or EM, but use a direct access to the provider of the user (for example, access OID, RDBMS access etc.) There is no unified administration API available that would allow you to do this via WLS (which uses OPSS).

    If your question is in the context of the ADF, the documentation, with that you should follow is OPSS and WLS authentication providers.

    Frank

  • JSR-303 Bean Validation use in applications of the ADF?

    I need some opinions on usage of the JSR-303 Bean Validation in the ADF applications? I know it s posible, but it s a good practice? ......

    User, tell us your version of jdev, please!

    The answer depends. If you use the stack complete adf, there is no advantage in using the JSR 303 validation. In this case, the validation logic is read from business objects and transmitted via the link of the user interface layer. In this way the validation is concentrated in the business object.

    If you do not use adfbc, for example you are using jpa/ejb as the business layer, JSR 303 helps.

    Timo

  • Different applications of the ADF will not work in the same browser window

    Hello
    When I recorded with an application and then open another browser window and I just record in the second request. Back to first and take any action and it shows error, as if my session has expired.
    I put a ViewHandler method sobreescibe restoreView (FacesContext FacesContext, String viewId) as follows:

    UIViewRoot root = null;
    root = parent.restoreView (FacesContext, viewId);
    If (root == null) {}
    root = createView (FacesContext, viewId);
    }
    Returns the root;

    But this solution is temporary, because I need to create a view of all the data you had in the PageFlow, for example, the results of a search.

    Anyone know if this is a bug in the adf, or have I missed some settings?

    The versions that I work with are:

    JDeveloper: 11.1.1.3.0
    WebLogic Server: 10.3.3.0
    ADF:
    Oracle-Version: 11.1.1.3.37.56.60
    Oracle-Label: JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660
    Oracle-Builder: iibuild on asbld15 Linux

    Hello

    I had a similar problem. I solved this way:
    -create the weblogic.xml (deployment descriptor Weblogic--> located in JDeveloper when you tap new "Général Deployment Descriptor") for your ViewController project.
    -set the cookie path to a unique name (for both apps)

    example:

    
    
      
        /myapp
      
    
    

    and the demand for /myOtherApp ;)

    Martin

  • Reading Message parameters in the application of the ADF

    Hello world

    I have a little problem with reading the parameters of publication in my application of ADF. This is the scenario:

    External site redirects to my site, including the publication settings. Something like this:

    < form action ="""http://somesite.com/mysite/faces/LandingPage.jspx""">

    < entry type ='hidden' name ="firstname" value ='Mickey'>

    < entry type ='hidden' name ="lastname" value ='Mouse'>

    < entry type ="submit" value ="Submit">

    < /Form >



    Now, I would like to know how to read the settings on my end in the back of the page bean.

    Any help is appreciated.




    Thank you

    Check out this post ADF: method using POST pass parameter to the base ADF web application

    And http://adfpractice-fedor.blogspot.de/2013/07/url-task-flow-call-with-http-post-method.html

    Timo

  • [ADF, JDev12.1.3] Can I use this FacesUtils.java in applications of the ADF with no problems?

    Hallo,

    I would like to know if I can use this http://www.google.it/url?sa=t & rct = j & q = & esrc = s & source = web & cd = 2 & ved = 0CCoQFjAB & url = http %3 C % 2F % www.icesoft.org%2Fwiki%2Fdo 2F... in my ADF applications without any problem.

    Ore is at - it a specific class of more JDev ADF to use?

    Thank you

    Federico

    Federico, the code can be used without problem. However, if you use the class you get a different path to the "org.icesoft.samples.mobi.example1.view.util" package; That points to a different framework. As you have the source, you can easily create your own class in your package structure. You can get almost the same code of samples of the oracle too.

    The code is standard, and I don't think you break anything by copying in your path.

    Timo

  • How to disable the right mouse click in the application of the ADF

    Hi Experts ADF,

    JDeveloper 11.1.1.7.0

    Is there any way in ADF application we can disable the right mouse click. This should work in all browsers.

    Thanks in advance.

    RS

    Hello

    I tried to code below. Who worked for IE and Mozilla browser.

    document.addEventListener ('contextmenu',
    {function (e)
    e.preventDefault ();

    },

    (false);
    document. OnMouseDown = disableclick;

    status =
    "Right click disabled";

    function
    {disableclick (Event)}

    If
    (event.button == 2) {
    Alert (Status);
    Returns false;

    }

    }

    Thank you

    RS

  • Several Applications of the ADF and deploy

    Hi guys

    I am a new user of JDeveloper, from the world IntelliJ and Eclipse, but a little trouble with the installation of the structure of the project in JDeveloper.

    I'm trying to set up a project ADF, the configuration is something like this:

    • Pilier1
    • Pillar2
    • Pillar3
    • PillarN
    • PillarDeploy

    Now, all the pillars are ADF applications with a project of model-view-controller and each of them deploy a JAR file (IE. Pillar1-model and pilier1-view).

    The PillarDeploy should contain all the JAR files generated from pilier1-PillarN and packaged as a WAR file.

    I've tried several things, but it seems to me that I find myself with a solution where I have to open each pillar and select deploy, then copy the JAR file in web-inf/lib folder of a PillarDeploy. Then deploy PillarDeply. Seems very heavy...

    I would like to be able to deploy PillarDeploy as easy as possible, both in JDeveloper (by selecting deploy to WAR/IntegratedServer) or run a MAVEN with or without an ANT script. I of course, however, the 'right' way of don't do this, or best practice so I run not in some cautionary notes subsequently.

    Is it possible to include all the pillars in PillarDeploy using JDeveloper and when I press on deploy all pillars are compiled and packaged as a WAR file.

    It is usually best to opt for a Maven / Ant script? How to deploy the integrated server to JDeveloper?

    Thank you

    You should look at using the utility ojdeploy for that of ant or maven. https://pinboard.in/search/u:OracleADF? query = Ojdeploy

  • Image resources not being cached by the browser in the Application of the ADF

    Fusion Middleware Version: 11.1.1.5

    WebLogic: 10.3.5.0

    JDeveloper Build: Build JDEVADF_11.1.1.5.0_GENERIC_110409.0025.6013

    Project: Custom Portal Application WebCenter integrated with ADF custom workflows. Oracle Access Manager 11.1.1.5 used for authentication.

    Within our application WebCenter portal, see static ADF resources served by the servlet "resources" being cached by the browser as WebLogic sends us a header Cache-Control 'Public', as well as a directive expires at a later date. This works perfectly but we do not see this with static content in-app.

    In contrast to resources under < context_root > /afr / * images directly in the application are returned to the browser without header a Cache-Control, so some browsers are asking the image whenever the page is loaded. We have thousands of users, so it's originally a large number of unnecessary applications.

    Resources (images) are in a directory called 'images' in the folder 'public_html '.

    How can we ensure that WebLogic/ADF sends a "Public" Cache-Control directive in the browser when the resources are being requested?

    Any help much appreciated.

    Thank you

    Hello

    Please make sure that the images are uploaded through the servlet by reference or resource direct public_html/subfolder in the configurations of your image. Alternatively, you can put your images in a JAR file as shown here

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/86-images-from-jar-427953.PDF

    Frank

  • Configuring user and group LDAP in application of the ADF

    Hi all

    I have to use LDAP user and groups in my ADF application. I have configured the LDAP Protocol on WLS Server successfully and you can see all users/groups under the tab "users and groups". I added the role of business in jazn-"Data.xml" corresponding on behalf of the groups. Created the Application role in jazn-"Data.xml" and assigned a business role role.

    However, not added any user in jazn-"Data.xml". Which I do not necessary because it will be taken from LDAP.

    Now how to set up the JDeveloper for use these users? What changes must make jazn-"Data.xml"? or jps-file config.xml / web.xml / weblogic application. XML

    Did I miss nay configuration step. I just ADF security set in place the tutorial step by step - quick - question but not found it useful

    I use JDeveloper 11.1.1.5.

    Thanking you in advance.

    Mukesh.

    Hello
    So, these are the steps:
    1. create an application role and the role of the company in the jazndata file
    2. map of the application role business role.
    3 the provider in the default domain also create sufficient brand
    4. change the default identity provider and set it as sufficient.
    5. start the application and connect using the enterprise user who has group companies are assigned.

    Here are the steps...

  • Right to left script for languages such as Arabic in application of the ADF

    Hi all

    I'm working on a multilingual ADF application. I need to understand the language written from right to the left in my implementation. Here are the steps that I put in place for the same thing.

    1 resource file bundle Arab is in place.
    2 locale added to the list of locales supported as well.
    3. Add the tag < right - left > Trinity-config file. XML
    4 added UTF-8 encoding type in the web.xml file in the adfBindgings filter. (the page was also the type of UTF-8 encoding)

    When I run the application, the rendered page, shows content in random characters (not Arabic) and right-to-left script does not work either.

    Am I missing out on something here. Help and suggestions really appreciated.

    Thank you
    Usha

    Try this
    Select Tools--> Preferences--> environment
    and then set the UTF-8 encoding.
    and then try to clean all and rebuild projects.

  • By using compression gzip in application of the adf

    Dear all,

    I have a massive adf page with lots of af: tables in there... in fact, inside the stubborn taskflow, I want to use compression gzip for my application. Can someone so suggest me any solution for this. In fact, I searched a lot on the net, but do not get any solution. Hope you guys have a better solution,


    Thank you and best regards,
    David
    JDeveloper 11.1.1.5.0

    Have you seen this post: ADF and HTTP compression ?

    Kind regards

  • How to call the pl/sql function in application of the ADF

    Hi Experts,

    I need to call the pl/sql function in application of ADF, I have logic written in my AM

    Method:

    public String reportStoredProcedure (locationID customerID, number,
    String tailNum) {}

    CallableStatement st = null;
    String v_sanctioned = null;
    If (locationID! = null & & customerID! = null & & tailNum! = null) {}
    System.out.println (locationID + "" + customerID + "" + tailNum);
    Tail string = "TAIL";
    String result = "N";

    try {}
    String stmt =
    "start XXWFS_SANCTIONS_PKG. CHECK_SANCTION(:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11); end; « ;
    St = getDBTransaction () .createCallableStatement (stmt, 0);
    st.setNull (1, Types.VARCHAR);
    st.setNull (2, Types.NUMERIC);
    st.setObject (3, customerID);
    st.setNull (4, Types.NUMERIC);
    st.setNull (5, Types.NUMERIC);
    st.setObject (6, locationID);
    st.setNull (7, Types.NUMERIC);
    st.setNull (8, Types.NUMERIC);
    st.setObject (9, tail);
    st.setObject (10, tailNum);
    st.setObject (11, result);
    St.Execute ();
    System.out.println ("v_sanctioned in AM:" + v_sanctioned);
    } catch (Exception e) {}
    e.printStackTrace ();
    return "N";
    } {Finally
    If (st! = null)
    try {}
    St.Close ();
    } catch (Exception e1) {}
    E1. PrintStackTrace();
    return "N";
    }
    }
    } else {}
    System.out.println ("v_sanctioned is null");
    v_sanctioned = "N";
    }
    Return v_sanctioned;
    }


    Error:

    java.sql.SQLException: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in the call to 'CHECK_SANCTION '.
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored

    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:191)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:950)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1224)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3487)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:3858)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
    at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:99)
    at model.view.CardAMImpl.reportStoredProcedure(CardAMImpl.java:182)
    at com.emboss.bean.ReadyToPrint.invokeVSanctioned(ReadyToPrint.java:485)
    at com.emboss.bean.ReadyToPrint.PrintingCards(ReadyToPrint.java:434)
    at com.emboss.bean.ReadyToPrint.printCards(ReadyToPrint.java:204)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
    at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
    at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1259)
    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
    at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:97)
    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:90)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94)
    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:91)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:420)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:420)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:94)
    at java.security.AccessController.doPrivileged (Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.doIt (WebAppServletContext.java:3684)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3650)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    Can someone help me how to call...

    Call it in function, not as a procedure you do

    try {
    String stmt =
    "begin :1 := XXWFS_SANCTIONS_PKG.CHECK_SANCTION(:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12); end;";
    st = getDBTransaction().createCallableStatement(stmt, 0);
    st.registerOutParameter(1, Types.VARCHAR);
    st.setNull(2, Types.VARCHAR);
    st.setNull(3, Types.NUMERIC);
    st.setObject(4, customerID);
    st.setNull(5, Types.NUMERIC);
    st.setNull(6, Types.NUMERIC);
    st.setObject(7, locationID);
    st.setNull(8, Types.NUMERIC);
    st.setNull(9, Types.NUMERIC);
    st.setObject(10, tail);
    st.setObject(11, tailNum);
    st.setObject(12, result);
    st.execute();
     = st.getString(1);
    

Maybe you are looking for