GlassFish and ADF JDeveloper

We have a problem in an ADF Application (Jdevelper version: Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5)).

kindly if you have an idea why this error occurs when a workflow running with an jsff affair.

The stack trace is as follows:

ADF_FACES - 60098:Faces life cycle receives exceptions that are unhandled in the phase RENDER_RESPONSE 6 java.lang.VerifyError: (class: bc4j_relativePath_expression_Expression_gs, method: super$ $3 evaluate signature: (Ljava/io/file ;)) Ljava/lang/object ;) Illegal use of calling non-virtual function at java.lang.Class.getDeclaredConstructors0 (Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2532) at java.lang.Class.getConstructor0(Class.java:2842) at java.lang.Class.newInstance(Class.java:345) at org.codehaus.groovy.runtime.InvokerHelper.createScript(InvokerHelper.java:421) at groovy.lang.GroovyShell.parse(GroovyShell.java:625) at groovy.lang.GroovyShell.parse(GroovyShell.java:652) at oracle.jbo.ExprEval.parseScript(ExprEval.java:1571) at oracle.jbo.ExprEval.findScript(ExprEval.java:1152) at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:1956) at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:1928) at oracle.jbo.ExprEval.evaluateForRow(ExprEval.java:1647) at oracle.adf.model.bean.DCDataVO.createViewAccessorRS(DCDataVO.java:1291) at oracle.adf.model.bean.DCCriteriaBaseVOImpl.createViewAccessorRS(DCCriteriaBaseVOImpl.java:33) to oracle.jbo.server.ViewRowImpl.createViewAccessorRS(ViewRowImpl.java:2774) to oracle.adf.model.bean.DCDataRow.createViewAccessorRS(DCDataRow.java:427) to oracle.jbo.server.ViewRowImpl.createViewAccessorRS(ViewRowImpl.java:2785) to oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:1929) to oracle.jbo.server.ViewRowImpl.getAttributeValue(ViewRowImpl.java:2036) to oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:886) to oracle.jbo.server.ProgrammaticViewRowImpl.getAttributeInternalDelegation(ProgrammaticViewRowImpl.java:195) to oracle.adf.model.bean.DCDataRow.getAttributeInternal(DCDataRow.java:279) to oracle.adf.model.bean.DCCriteriaRowImpl.getAttributeInternal) DCCriteriaRowImpl.java:84) to oracle.jbo.server.ViewRowImpl.getAttrInvokeAccessor(ViewRowImpl.java:968) to oracle.jbo.server.ViewRowImpl.getAttribute(ViewRowImpl.java:916) to oracle.jbo.server.ViewRowImpl.getAttribute(ViewRowImpl.java:1035) to oracle.adf.model.bean.DCBeanDataControl.getAccessorValue(DCBeanDataControl.java:1425) to oracle.adf.model.binding.DCDataControl.createAccessorRowSetIterator(DCDataControl.java:679) to oracle.adf.model.bc4j.DCJboDataControl.createAccessorRowSetIterator(DCJboDataControl.java:1154) to oracle.adf.model.binding.DCDataControl.createAccessorRowSetIterator(DCDataControl.java:662) to oracle.jbo.uicli.binding.MyIteratorBinding.initSourceRSI(JUAccessorIteratorDef.java:857) to oracle.adf.model.binding.DCIteratorBinding.callInitSourceRSI(DCIteratorBinding.java:1751) to...

Looks like you have some problem with glassfish classpath (so he chose an incorrect version of groovy jar) or with the version of the JDK.

To verify which version of the JDK is used for your glassfish domain and also install essentials new adf libraries (make sure they are for 12.1.3 version)

Dario

Tags: Java

Similar Questions

  • What happened to place English "JDeveloper and ADF?

    I see various forms of this ('JDeveloper and ADF,' 'JDeveloper and ADF') in the other language of the site.

    The English forum ADF is available at JDeveloper and ADF

    Timo

  • Problem with ADF JDeveloper 12 c to Glassfish deployment

    Hello

    I'm new to JDeveloper/ADF, but not for the JSF, etc.. I'm trying to load a simple application of the ADF (a single entity object and object of a view in a model project and a jsf page where I dropped the view of the data control object). We use Glassfish so I'm trying to deploy it and am following blog Shay Shmeltzer (https://blogs.oracle.com/shay/entry/deploying_oracle_adf_applications_to), which deploys on a server Glassfish 3.1 JDeveloper 11. So I use the last JDeveloper, which can be a problem?

    The problem is that my deployment fails. Here are my entries server.log:


    [#: 2013 07-24 T 15: 43:14.908 - 0700 |] WARNING | glassfish3.1.2 | org.apache.catalina.connector.Request | _ThreadID = 88; _ThreadName = wire 2. PWC4011: cannot set the application context UTF-8 character encoding, because the request parameters have already been read, or ServletRequest.getReader () has already been called. #]

    [#: 2013 07-24 T 15: 43:15.014 - 0700 |] INFO | glassfish3.1.2 | org.GlassFish.admingui | _ThreadID = 88; _ThreadName = wire 2. deployment GUI: uploadToTempfile | #]

    [#| 2013-07-24T15:43:15.014-0700|INFO|glassfish3.1.2|org.glassfish.admingui|_ThreadID=88;_ThreadName=Thread-2;|uploadFileName=C:\JDeveloper\mywork\TestADF\deploy\TestADF_Glassfish.ear|#]

    [#: 2013 07-24 T 15: 43:15.278 - 0700 |] GOOD | glassfish3.1.2 | javax.enterprise.System.core.com.Sun.enterprise.v3.Server | _ThreadID = 98; _ThreadName = wire 2. ClassName = com.sun.enterprise.v3.server.ApplicationLifecycle; MethodName = getContext. deployment expansion took 145 | #]

    [#: 2013 07-24 T 15: 43:16.630 - 0700 |] GOOD | glassfish3.1.2 | javax.enterprise.System.core.com.Sun.enterprise.v3.Server | _ThreadID = 98; _ThreadName = wire 2. ClassName = org.glassfish.api.ActionReport; MethodName = failure; unrecognized for module C:\JavaEE\glassfish-3.1.2.2\glassfish\domains\domain1\applications\TestADF_Glassfish|# Module type]

    [#: 2013 07-24 T 15: 43:16.631 - 0700 |] SEVERE | glassfish3.1.2 | javax.enterprise.System.core.com.Sun.enterprise.v3.Server | _ThreadID = 98; _ThreadName = wire 2. unrecognized for module C:\JavaEE\glassfish-3.1.2.2\glassfish\domains\domain1\applications\TestADF_Glassfish|# Module type]

    [#: 2013 07-24 T 15: 43:16.631 - 0700 |] GOOD | glassfish3.1.2 | javax.enterprise.System.core.com.Sun.enterprise.v3.Server | _ThreadID = 98; _ThreadName = wire 2. ClassName = org.glassfish.api.ActionReport; MethodName = failure; Exception when deploying the application [TestADF_Glassfish] | #]

    [#: 2013 07-24 T 15: 43:16.631 - 0700 |] SEVERE | glassfish3.1.2 | javax.enterprise.System.core.com.Sun.enterprise.v3.Server | _ThreadID = 98; _ThreadName = wire 2. Exception when deploying the application [TestADF_Glassfish] | #]

    [#: 2013 07-24 T 15: 43:16.632 - 0700 |] SEVERE | glassfish3.1.2 | javax.enterprise.System.core.com.Sun.enterprise.v3.Server | _ThreadID = 98; _ThreadName = thread 2;: java.lang.NullPointerException
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:375)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
    at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
    to com.sun.enterprise.v3.admin.CommandRunnerImpl$ 1.execute(CommandRunnerImpl.java:348)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
    to com.sun.enterprise.v3.admin.CommandRunnerImpl.access$ 1200 (CommandRunnerImpl.java:95)
    to com.sun.enterprise.v3.admin.CommandRunnerImpl$ ExecutionContext.execute (CommandRunnerImpl.java:1291)
    to com.sun.enterprise.v3.admin.CommandRunnerImpl$ ExecutionContext.execute (CommandRunnerImpl.java:1259)
    at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:214)
    at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:207)
    at org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:148)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    to com.sun.jersey.spi.container.JavaMethodInvokerFactory$ 1.invoke(JavaMethodInvokerFactory.java:60)
    to com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ ResponseOutInvoker._dispatch (AbstractResourceMethodDispatchProvider.java:205)
    at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
    at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
    at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
    at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
    at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
    at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
    at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer._service(GrizzlyContainer.java:182)
    at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer.service(GrizzlyContainer.java:147)
    at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:148)
    at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
    at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
    to com.sun.enterprise.v3.services.impl.ContainerMapper$ Hk2DispatcherCallable.call (ContainerMapper.java:354)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
    to com.sun.grizzly.util.AbstractThreadPool$ Worker.doWork (AbstractThreadPool.java:532)
    to com.sun.grizzly.util.AbstractThreadPool$ Worker.run (AbstractThreadPool.java:513)
    at java.lang.Thread.run(Thread.java:722)
    |#]

    [#: 2013 07-24 T 15: 43:16.636 - 0700 |] SEVERE | glassfish3.1.2 | javax.enterprise.System.Tools.admin.org.GlassFish.deployment.admin | _ThreadID = 98; _ThreadName = wire 2. Exception when deploying the application [TestADF_Glassfish] | #]

    [#: 2013 07-24 T 15: 43:16.662 - 0700 |] INFO | glassfish3.1.2 | org.GlassFish.admingui | _ThreadID = 88; _ThreadName = wire 2. Exception occurred: error occurred during deployment: Exception when deploying the application [TestADF_Glassfish]. Please see server.log for more details. | #]

    I don't see what about the NullPointerException.

    It is a server Glassfish 3.1.2.2. I get the same message that I have deploy JDeveloper or GlassFish (just try to download the .ear file). Blog of Shay, subsequently, I loaded jars adf-essentials in the zip file and changed the parameters of the JVM. In JDeveloper, I right click on the application and will deploy and click the deployment profile. I click on deploy to the application server and choose my local server to Glassfish.

    I appreciate all help. Thank you.

    Steve

    OK, my problem was my deployment descriptor. When I created a new Glassfish deployment descriptor, it did not automatically the ViewController project in the Application Assembly to the EAR application. So now, the Application Assembly for the EAR includes the deployment for ViewController project (the ViewController project has a dependency on the model project is also included).

    The application now deploys correctly on a Glassfish 3.1 server.

    Steve

  • How to find the discussions in JDeveloper and ADF subspace in this forum, I created?

    Hi, experts.

    I know there are way to find in subspace JDeveloper and ADF discussions in this forum, I created.

    But I have tried and tried and can't find a way to again tonight.

    (I searched the menu: profile, activity, action, inbox etc..)

    Can someone give some advice?

    Thank you.

    Click on your name at the top of this page, then click on "view profile".

    Here you have a link to 'content' and that brings other links on the left where we are 'written '.

    don't know if you can filter it into subspace...

    Good bye

    DPT

  • Can you start and stop the glassfish server in JDeveloper 12 c and how?

    Mr President.

    Can you start and stop the glassfish server in JDeveloper 12 c and how?

    Concerning

    have you looked at

    http://www.Java-n-me.com/2014/02/GlassFish-extension-for-JDeveloper-12C-go-live.html

  • What was the stable JDeveloper and ADF to go with the project?

    Hi all

    What was the best and stable Jdeveloper and ADF for the elaboration of a draft?

    Concerning

    There is no problem because the difference of the WLS version does not influence with adf. 11.1.1.7.0 can be installed on wls 10.3.5 and 10.3.6. Application developed with 11.1.1.7.0 can be deployed on WLS 10.2.5 or 10.3.6 havingthe ALI DURATION installed 11.1.1.7.0.

    Timo

  • Prerequistees for Jdeveloper and ADF!

    Hi all

    I m 11g form/reports developer and has a few basics of Java.

    Please let me know prerequistees for Jdeveloper and ADF in details.

    Thank you/cordially.

    Biron.

    No need to jump on 12 c! I understand that you want to learn the ADF. In this case read blog of Shay https://blogs.oracle.com/shay/entry/how_do_i_start_learning_oracle_adf_and_jdeveloper that gives you a good list of things you can do. If you think you know enough about one of the topics, goto the next.

    There are many other documents on the web, like YouTube video tutorials or onlins as https://blogs.oracle.com/jdevotnharvest/entry/learn_adf_online_and_for or Oracle ADF Insider - Learn Oracle ADF Onliner

    or https://blogs.oracle.com/jdevotnharvest/entry/learn_adf_online_and_for

    and most linked on the homepage of JDev.

    Timo

  • RTO: JDeveloper and ADF as RSS feed

    Hi Heroes,

    Is it possible to get the OTN forum as an RSS on windows 7?
    Not expected...

    thnks

    Not sure what you mean.
    You can easily subscribe to the OTN RSS feeds to any player you like, but it has nothing to do with jdeveloper.

    This is the link I use JDeveloper and ADF

    Timo

  • Difference between JDeveloper and ADF

    Hello

    Can someone explain the difference between JDevloper and ADF



    Rgds

    sexy

    Good question. ADF as a framework comes with JDeveloper. It's near enough impossible to dissociate (or at least you wouldn't bother). Download this track JDev and you get included free ADF.

    CM.

  • MySQL and ADF Essentials

    Hi guys,.

    I recently changed my PHP/MySQL Tools Oracle (JDeveloper and ADF...). However, my organization has decided to continue to use MySQL as our database backend for now. Since I am still a beginner in Oracle development tools; I started to follow the tutorial using JDeveloper 12 c. I set up a MySQL connection and tested its connection with success.

    I also added the file mysql-connector-java - 5.1.27 - bin.jar on the class path DefaultDomain of WebLogic by placing it in the folder: C:\Users\imad\AppData\Roaming\JDeveloper\system12.1.2.0.40.66.68\DefaultDomain\lib

    When I create a basic jsf application and run it, I get weird error in my browser:

    java.lang.IllegalArgumentException: no constant enum oracle.adfinternal.view.faces.partition.PartitionContext$ AgentName to value "netscape".

    It is followed by a long list of 'at' references...

    Could someone please explain why my basic demo application does not run?

    I seriously intend to shift to Oracle Java applications and need help to start my learning curve.

    Thank you

    Imad

    What browser do you use?  This occurs in other types of browsers (Chrome/FF)?

    This happens with any JSF into your application?

  • JasperReport - ADF - JDeveloper Studio 11.1.1.2.0 Swing

    Hello everyone, okay?
    Could someone give me a tutorial how to work with JasperReport ADFSwing and using JDeveloper?

    For jasper, you may consult:

    http://jdevguru.com/?p=30

    http://programming.itags.org/development-tools/66612/

    http://jdevelopertips.blogspot.com/2007/03/integrating-Jasper-reports-with.html

    http://www.theregister.co.UK/2006/10/24/jasperreports_tutorial/

    for adf swing:

    http://wiki.Oracle.com/page/ADF+Swing

    http://Groundside.com/blog/GrantRonald.php?title=adf_swing_resources&more=1&c=1&TB=1&pb=1

    NA
    http://nickaiva.blogspot.com

  • OAF and ADF

    Hello

    Please help me to find the differences between the OFA and ADF...

    Kind regards
    Anupam

    ADF 11 g is production in JDeveloper 11 g.
    Your understanding is correct - if you want to customize and Oracle EBS system, you will need to use OFA.
    If you want to build a new system that has a level of integration with Oracle EBS you can do with ADF and SOA lets talk at EBS, back-end system.

  • Performance (listener APEX) glassFish and ADR issues

    Hello world

    We have a number of applications available APEX to APEX Listener installed on 4.1 GlassFish (Open Source Edition). The APEX is version 2.0.9.224.01.07.

    Any installation is using the default values, the documentation available now.

    The problem is that after a while (two days, maybe weeks) the answer is really slow, which means you have to wait a few minutes to change pages or get the application to react. While everything works normally by another instance of GlassFish and auditor of the APEX, which means that everything is ok with the database and the problem must be with the GlassFish and/or listener of the APEX. After you restart GlassFish domain things to improve for a while, but finally that we are facing problems of performance even. There is nothing suspicious in the newspapers of GlassFish, and we do not know where to look further.

    I tried the web search for more information on how to configure GlassFish and APEX listener for the documentation and production environments, but did not find much. We increased settings memory JVM for GlassFish to 2 GB, but I would like to know is there something else about the GlassFish settings (son HTTP, JDBC, pool etc.) we could do to avoid the problems described, or is there a way to detect what is the real problem. Any suggestions or pointers to relevant documents?

    Thanks in advance,

    Bruno

    Hi bruno2,

    bruno2 wrote:

    We have a number of applications available APEX to APEX Listener installed on 4.1 GlassFish (Open Source Edition). The APEX is version 2.0.9.224.01.07.

    Any installation is using the default values, the documentation available now.

    The problem is that after a while (two days, maybe weeks) the answer is really slow, which means you have to wait a few minutes to change pages or get the application to react. While everything works normally by another instance of GlassFish and auditor of the APEX, which means that everything is ok with the database and the problem must be with the GlassFish and/or listener of the APEX. After you restart GlassFish domain things to improve for a while, but finally that we are facing problems of performance even. There is nothing suspicious in the newspapers of GlassFish, and we do not know where to look further.

    I tried the web search for more information on how to configure GlassFish and APEX listener for the documentation and production environments, but did not find much. We increased settings memory JVM for GlassFish to 2 GB, but I would like to know is there something else about the GlassFish settings (son HTTP, JDBC, pool etc.) we could do to avoid the problems described, or is there a way to detect what is the real problem. Any suggestions or pointers to relevant documents?

    For ADR + Glassfish performance should be on two fronts:

    • Side of GlassFish:

    As you use 4.1 GlassFish (Open Source Edition) you should refer to the official documentation for Glassfish 4.

    Reference: https://glassfish.java.net/docs/4.0/performance-tuning-guide.pdf

    But as I've used Oracle Glassfish Server 3.1 which comes with the integrated tuner. I just follow the following documentation:

    Reference: https://docs.oracle.com/cd/E18930_01/html/821-2431/toc.html and https://docs.oracle.com/cd/E18930_01/html/821-2431/gkxwm.html

    • Side of ADR:

    The performance tuning side ADR includes the correct JDBC settings in the ADR configuration files.

    Reference: http://krisrice.blogspot.in/2012/05/apex-listener-jdbcsecurity-setup.html

    So, set your ADR for instance so that you get the performance you want. For this you will need: change the JDBC settings-> load/stress test and repeat this operation.

    Stress/load tests is shown by Morten Bråten in the following blog in his blog series about ADR.

    Reference: ORA-00001: Unique constraint violated: ADR, installation Oracle XE and Apex on CentOS - part fourth: Stress tests

    NOTE: This blog is for ADR + Apache Tomcat, but ADR configuration settings remain the same in your case.

    Finally, if you want to see more practical best ADR with Oracle APEX follow the slides for "ADR in the Production" by Dietmar Aust.

    Reference: daust_de: Oracle XE / APEX: presentation for my ADR slides talk to KScope 2015

    NOTE: This presentation is also to ADR + Apache Tomcat, but things related to ADR are same in your case.

    Also, as this thread is related to ADR, you must move this thread to the appropriate forum: ADR, SODA & JSON in the database

    Kind regards

    Kiran

  • ICX session sharing between EBS and ADF. Navigate from EBS page by page of ADF custom application. but every time I get the session as a GUEST, even if I give valid credentils to enter into EBS.

    Hello

    I am integrating EBS and ADF through sharing of session ICX. Navigate from EBS page by page of ADF custom application. but whenever I get session as GUEST (VALID_GUEST), even if I give credentials valid at the EBS system. I should get a valid session that I have connected with a valid user. As it it a VALID_GUEST that the status of cookie icx, back (he got newspapers/debug) and I am.  Comparing with status cookie VALID icx, so every time system opens the Apps login page.  I used fndext.jar to do this. Please help me on this. I'm not sure it's a problem with DB/EBS EBS system, or the code of the adf. My code spruce is given below.

    import java.io.IOException;

    import java.sql.Connection;

    import java.sql.SQLException;

    Import javax.faces.application.FacesMessage;

    Import javax.faces.context.FacesContext;

    to import javax.servlet.http.HttpServletRequest;

    to import javax.servlet.http.HttpServletResponse;

    Import oracle.adf.controller.v2.lifecycle.Lifecycle;

    Import oracle.adf.controller.v2.lifecycle.PagePhaseEvent;

    Import oracle.adf.controller.v2.lifecycle.PagePhaseListener;

    Import oracle.apps.fnd.ext.common.AppsRequestWrapper;

    Import oracle.apps.fnd.ext.common.CookieStatus;

    Import oracle.apps.fnd.ext.common.EBiz;

    Import oracle.apps.fnd.ext.common.Session;

    / public class MyCustomPhaseListner implements PagePhaseListener {}

    public MyCustomPhaseListner() {}

    Super();

    }

    AppsRequestWrapper wrappedRequest = null;

    HttpServletRequest request = null;

    HttpServletResponse response = null;

    String currentUser store = null;

    String currentUserId = null;

    {} public void afterPhase (PagePhaseEvent pagePhaseEvent)

    If (pagePhaseEvent.getPhaseId () == Lifecycle.PREPARE_RENDER_ID) {}

    System.out.println ("in phase");

    If (wrappedRequest! = null & &)

    wrappedRequest.getConnection ()! = null) {}

    try {}

    If (! wrappedRequest.getConnection () .isClosed ())

    wrappedRequest.getConnection (m:System.NET.Sockets.Socket.close ());

    } catch (SQLException e) {}

    }

    }

    }

    }

    {} public void beforePhase (PagePhaseEvent pagePhaseEvent)

    If (pagePhaseEvent.getPhaseId () == Lifecycle.INIT_CONTEXT_ID) {}

    Channel agent = null;

    System.out.println ("forward Phase");

    FacesContext fctx = FacesContext.getCurrentInstance ();

    request =

    (HttpServletRequest) fctx.getExternalContext () .getRequest ();

    answer =

    (HttpServletResponse) fctx.getExternalContext () m:System.NET.FtpWebRequest.GetResponse ();

    CookieStatus icxCookieStatus = null;

    try {}

    Connection EBSconn = ConnectionProvider.getConnection ();

    EBiz instance = EBizUtil.getEBizInstance ();

    wrappedRequest =

    new AppsRequestWrapper (request, response, EBSconn,

    (instance);

    A session = wrappedRequest.getAppsSession (true);

    tried with "a session = wrappedRequest.getAppsSession ();" / / do not return not of any session

    icxCookieStatus =

    session.getCurrentState () .getIcxCookieStatus ();

    Agent = wrappedRequest.getEbizInstance () .getAppsServletAgent ();

    If (! icxCookieStatus.equals (CookieStatus.VALID)) {}

    response.sendRedirect (agent + "AppsLocalLogin.jsp");

    return;

    }

    currentUser = session.getUserName ();

    currentUserId = session.getUserId ();

    } catch (Exception ob) {}

    ob.printStackTrace ();

    }

    FacesMessage message =

    new FacesMessage ("Session is:" + icxCookieStatus + "" +)

    currentUser + "" + currentUserId);

    fctx.addMessage (null, message);

    }

    }

    }

    Have you checked

    https://blogs.Oracle.com/jruiz/entry/adf_and_oracle_e_business

    https://blogs.Oracle.com/jruiz/entry/adf_and_oracle_e_business2

    http://www.Oracle.com/technetwork/tutorials/EBS-SDK-ADF-1887167.PDF

    https://www.YouTube.com/watch?v=9wGv7yxRgVU

    Timo

  • What is the difference between the ADF and ADF Essentials?

    What is the difference between the ADF and ADF Essentials?

    and how to ensure that the essentials of the ADF is enough for the project rather then ADF.

    Thanks in advance.

    Hello

    The main problem is, you are not allowed to deploy critical applications of the ADF in the clustered environment.

    Kuba

Maybe you are looking for