ADF Faces & business components application crash
My application crashes with the following stack. Any idea what's causing this?
06/05/15 17:38:09 Exception in thread "Reference Handler" java.lang.NullPointerException
06/05/15 17:38:09 at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:123)
06/05/15 17:38:09 <3>[2785] (0) DCBindingContainer.internalRefreshControl(2311) **** refreshControl() for BindingContainer :effectenPageDef
Fatal error: Cannot find class java/lang/NullPointerException
Fatal error: Cannot find class java/lang/NullPointerException
Fatal error: Cannot find class java/lang/NullPointerException
Fatal error: Cannot find class java/lang/NullPointerException
Process exited with exit code 128.
Thanks,
Andrej
May be this additional info helps pinpointing:
I work with JHeadstart (10.1.3.0.59) and JDeveloper 10.1.3 SU3 and generated default pages on top of two ADF Business Components. No customization done yet. One jspx page works nicely, wheras the other also gives me:
Fatal error: Cannot find class java/lang/StackOverflowError
Fatal error: Cannot find class java/lang/NullPointerException
In the Embedded OC4J server log.
The only difference between the two Entity Objects and View Objects is the size of them:
- the working EO/VO page contains 38 attributes (yet, still have to tune and remove unnecessary attributes)
- the other, error-giving EO/VO page contains nearly 60 attributes (same comment here on the tuning part).
So, is it possible that the number of attributes and therefor the size of jspx pages can cause these Fatal errors? The JRE seems fine, since some pages work, others do not.
Toine
Similar Messages
-
ADF faces client Demo application not able to download from oracle site
Hi
Why http://www.oracle.com/technetwork/developer-tools/adf/downloads/index.html link from Oracle site shows blank area.
I want to download source code for ADF Faces Rich Client Components Demo application.
Can someone please provide direct URL for source code not war file.
Thanks
Vikas MLooks like the download is temporary down. Worked yesterday.
Timo -
ADF Faces 16 Components not displaying in Disign Tab
I am trying to create a page with the ADF Faces Table component. When I add the component to the page it tells me to restart JDeveloper (as expected). When I restart JDev the page shows up blank in the designer tab. The source tab seems to have all the code.
Also, when I run the project the page does display with the header text but without the table.
Any ideas on how to get the components to show in the designer?btw, here is the jsp code:
<?xml version='1.0' encoding='windows-1252'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/EA16"
xmlns:afh="http://xmlns.oracle.com/adf/faces/EA16/html">
<jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
doctype-system="http://www.w3.org/TR/html4/loose.dtd"
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
<jsp:directive.page contentType="text/html;charset=windows-1252"/>
<f:view>
<afh:html binding="#{backing_JSFCustomerUwq.html1}">
<afh:head title="JSFCustomerUwq"
binding="#{backing_JSFCustomerUwq.head1}">
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252"/>
<style type="text/css">
body {
background-color: #ffffff;
</style>
</afh:head>
<afh:body binding="#{backing_JSFCustomerUwq.body1}">
<link href="css/blaf.css" rel="stylesheet" media="screen"/>
<h2>
My Delinquent Customer Work List
</h2>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
<af:table binding="#{backing_JSFCustomerUwq.table1}" banding="Row"
bandingInterval="2" rows="5"
value="#{CustomerUwqBean.customers}" var="DelCustomers"/>
</p>
</afh:body>
</afh:html>
</f:view>
</jsp:root> -
Hi,
Oracle corporations has plans to incorporate new components?
If answer is if, As and when?
Thanks.Hi! Frank,
If new Components will be added to Trinidad, then will we, the Oracle ADF faces users, be left untouched by the additions?
if so , should we migrate to OpenSource ADF Faces/Trinidad ?
Or will the Components addded to Trinidad , will also reflect in Oracle ADF Faces version.
I request you to Please Clarify this,
Thanking you,
Samba. -
Hello everybody,
After completing the SRDemo tutorial in OC4J I just want to see what is it doing in JBoss and as you may guess I hit some problems.
So I am trying to deploy SRDemo tutorial to the JBoss 4.0.4 GA.
After some small fights, I managed to deploy to JBoss without any exception.
At the begining I have to fight subjects like
- First Jboss complained about not able to find SRPublicFacade at JNDI tree, after adapting JNDI tree to the EJB3 standards (because JBoss place the Session Bean to the JNDI tree with '/local' added on it), that is solved, so web.xml looks like
<ejb-local-ref>
<ejb-ref-name>ejb/local/SRPublicFacade/local</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>oracle.srdemo.datamodel.SRPublicFacadeLocal</local>
<local-home>org.jboss.ejb3.test.servlet.Session30LocalHome</local-home>
<ejb-link>SRPublicFacade</ejb-link>
</ejb-local-ref>
-Then JBoss start complaining that web.xml is missing the <local-home> entry, I figure out for EJB3 we have to use this dummy home 'org.jboss.ejb3.test.servlet.Session30LocalHome'
and this in jboss-web.xml
ejb-local-ref>
<ejb-ref-name>ejb/local/SRPublicFacade/local</ejb-ref-name>
<local-jndi-name>Session30LocalHome</local-jndi-name>
</ejb-local-ref>
After these changes and some small things like security and pattern url problems application started without any expection.
But that is not the end of the story, after I called the SRList.jspx page, I am getting this error messages without any exception trace or anything like that, they are just there.
WARNUNG: JBO-25221: Die Methode RPublicFacadeLocal.dataProvider.findUserByEMail() wird nicht unterstützt. (it basicly says findUserByEMail method is not supported)
Anybody has an idea about that, I could not find anything on the net about it, it is looking like Datacontrol binding is not able to find the methods on the Session Bean, which in my opinion happening because of some EJB 3 features.
Another interesting thing, when I say JDeveloper to deploy ADF Runtime it is copying a datatags.ear, which has a reference to oracle.jbo.server.EMDServlet inside of the web.xml and the funny part inside of the ear(actually inside of the war file contained inside of ear) there is the classes directory and necessary package structure but directory server is empty, what is the use of this datatags.ear and is anybody has a version containing EMDServlet
Thx in advance
here is the all problem aread
12:17:51,735 DEBUG [LifecycleImpl] Skipping rest of execute() because of a reload
12:17:51,735 DEBUG [LifecycleImpl] render(com.sun.faces.context.FacesContextImpl@1172c5)
12:17:51,735 ERROR [STDERR] 30.11.2006 12:17:51 oracle.adf.controller.faces.lifecycle.FacesPageLifecycle addMessage
WARNUNG: JBO-25221: Die Methode SRPublicFacadeLocal.dataProvider.findUserByEMail() wird nicht unterst³tzt.
12:17:51,735 DEBUG [FacesContextImpl] Adding Message[sourceId=<<NONE>>,summary=JBO-25221: Die Methode SRPublicFacadeLoca
l.dataProvider.findUserByEMail() wird nicht unterst³tzt.)
12:17:51,766 ERROR [STDERR] 30.11.2006 12:17:51 oracle.adf.controller.faces.lifecycle.FacesPageLifecycle addMessage
WARNUNG: JBO-25221: Die Methode SRPublicFacadeLocal.dataProvider.findServiceRequests() wird nicht unterst³tzt.
12:17:51,766 DEBUG [FacesContextImpl] Adding Message[sourceId=<<NONE>>,summary=JBO-25221: Die Methode SRPublicFacadeLoca
l.dataProvider.findServiceRequests() wird nicht unterst³tzt.)
12:17:51,797 DEBUG [RenderResponsePhase] Entering RenderResponsePhase
12:17:51,797 DEBUG [RenderResponsePhase] About to render view /app/SRList.jspxAfter little bit more digging and increasing the logging level I found this in the log
FEIN: [51] Could not find method:findServiceRequests in org.jnp.interfaces.NamingContext - org.jnp.interfaces.NamingContext.findServiceRequests(java.lang.Integer, java.lang.String)
ADF or BC4J looking the method name inside of the jndi tree??????????
and the full exception trace
FEIN: [54] oracle.jbo.InvalidOperException: JBO-25221: Die Methode SRPublicFacadeLocal.dataProvider.findServiceRequests(
) wird nicht unterst³tzt.
at oracle.adf.model.binding.DCInvokeMethod.invokeMethod(DCInvokeMethod.java:442)
at oracle.adf.model.binding.DCDataControl.invokeMethod(DCDataControl.java:1795)
at oracle.adf.model.generic.DCGenericDataControl.invokeMethod(DCGenericDataControl.java:248)
at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:219)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1289)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:1802)
at oracle.adf.model.generic.DCGenericDataControl.invokeOperation(DCGenericDataControl.java:266)
at oracle.adf.model.adapter.AdapterDCService.invokeOperation(AdapterDCService.java:318)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:627)
at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.invokeMethodAction(JUMethodIteratorDef.j
ava:160)
at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.initSourceRSI(JUMethodIteratorDef.java:5
42)
at oracle.adf.model.binding.DCIteratorBinding.callInitSourceRSI(DCIteratorBinding.java:1421)
at oracle.adf.model.binding.DCIteratorBinding.getRowSetIterator(DCIteratorBinding.java:1404)
at oracle.adf.model.binding.DCIteratorBinding.setRangeSize(DCIteratorBinding.java:2642)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:2487)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2260)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:99)
at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareModel(FacesPageLifecycle.java:73)
at oracle.adf.controller.v2.lifecycle.Lifecycle$8.execute(Lifecycle.java:210)
at oracle.adf.controller.v2.lifecycle.Lifecycle.executePhase(Lifecycle.java:116)
at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.mav$executePhase(ADFPhaseListener.java:33)
at oracle.adf.controller.faces.lifecycle.ADFPhaseListener$4.after(ADFPhaseListener.java:331)
at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:94)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:254)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:231)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:200)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:122)
at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java
:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Unknown Source)
14:27:02,485 ERROR [STDERR] 30.11.2006 14:27:02 oracle.jbo.common.ADFLoggerDiagnosticImpl print
FEIN: [55] Exception during implicit execution of method bound to iteratorBinding:findServiceRequestsIter
14:27:02,516 ERROR [STDERR] 30.11.2006 14:27:02 oracle.jbo.common.ADFLoggerDiagnosticImpl print
FEIN: [56] *** IGNORING! following exception in JUMethodIteratorDef.initSourceRSI()
14:27:02,516 ERROR [STDERR] 30.11.2006 14:27:02 oracle.jbo.common.ADFLoggerDiagnosticImpl print
FEIN: [57] oracle.jbo.InvalidOperException: JBO-25221: Die Methode SRPublicFacadeLocal.dataProvider.findServiceRequests(
) wird nicht unterst³tzt.
at oracle.adf.model.binding.DCInvokeMethod.invokeMethod(DCInvokeMethod.java:442)
at oracle.adf.model.binding.DCDataControl.invokeMethod(DCDataControl.java:1795)
at oracle.adf.model.generic.DCGenericDataControl.invokeMethod(DCGenericDataControl.java:248)
at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:219)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1289)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:1802)
at oracle.adf.model.generic.DCGenericDataControl.invokeOperation(DCGenericDataControl.java:266)
at oracle.adf.model.adapter.AdapterDCService.invokeOperation(AdapterDCService.java:318)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:627)
at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.invokeMethodAction(JUMethodIteratorDef.j
ava:160)
at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.initSourceRSI(JUMethodIteratorDef.java:5
42)
at oracle.adf.model.binding.DCIteratorBinding.callInitSourceRSI(DCIteratorBinding.java:1421)
at oracle.adf.model.binding.DCIteratorBinding.getRowSetIterator(DCIteratorBinding.java:1404)
at oracle.adf.model.binding.DCIteratorBinding.setRangeSize(DCIteratorBinding.java:2642)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:2487)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2260)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:99)
at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareModel(FacesPageLifecycle.java:73)
at oracle.adf.controller.v2.lifecycle.Lifecycle$8.execute(Lifecycle.java:210)
at oracle.adf.controller.v2.lifecycle.Lifecycle.executePhase(Lifecycle.java:116)
at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.mav$executePhase(ADFPhaseListener.java:33)
at oracle.adf.controller.faces.lifecycle.ADFPhaseListener$4.after(ADFPhaseListener.java:331)
at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:94)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:254)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:231)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:200)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:122)
at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java
:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Unknown Source) -
ADF BC Business components and Thrid party JDBC Driver
Hello all
I am using JT400.jar file to connect to AS/400 data base in my JSF/ADF Application.
We are using shared library for all non oracle jar files . and my application fails with error message
## Detail 0 ##
java.sql.SQLException: No suitable driver
During runtime. even though i am importing the required jar files from shared library settings in server.xml / application.xml
When i don't have the entry in shared library for this jar file it will fail during deployment time it self, but with shared library link it works during deployment but fails during runtime
it will work during runtime if i add my jar file to BC4J/lib folder. but team responsible for mintaining application server don't accept adding non oracle jar files to oracle installation folders
Any Advise
ThanksThe ADF BC runtime library JAR files are in the BC4J/lib directory.
The ADF/BC4J runtime JAR files may also be included in the ADF/BC application by copying the files to the WEB-INF/lib directory of the ADF BC application. -
Can ADF Faces tree components do an arbitrary number of levels?
In the help/ADF Developers Guide for the latest version (JDev 10.1.3 build 3673), the section titled "Working with Master-Detail Relationships" shows an example of using the Tree Binding Editor to wire up an ADF Tree component. The process of doing "Add New Rule" to wire up each node of the tree suggests that the number of levels in the tree must be known beforehand.
Is there any way to do the binding for an arbitrary number of levels (e.g. if you are using a composite pattern)?
I'm guessing that if I can't do an arbitrary number of levels, I'll somehow be able to set up a maximum number of levels and have the component behave properly when less than the maximum are actually in use.
TIA,
Clarkanyone?
-
ADF - BC Business transaction auditing/logging plugin/tool needed
Hello,
Project that I am currently working in requires to Log any transactions (add / delete / update) or any modifications to the database by users done form there login/account (point to note here is that users have different account at application level where as they connect to the database through the same schema/user). I need a logging plugin/software or something that can easily be integrated in my current Framework (ADF - BC) and supports the IDE (JDeveloper) saving all the changes to a database so that any change can be traced or monitored.
I am using ADF Faces - Business Components and nothing else (and JDeveloper Ofcourse).
Asad Imtiaz.I don't know if is the same issue or solution. I'm using a linux (FC7) and setting the enviroment variable TZ='America/Buenos_Aires' works for me.
-
ADF Faces + BC 10.1.3: prompting to save changes after any navigation
Hello all,
Working on an application that uses ADF Faces + Business Components. We're using the PanelPage component and using a menu tree model bean specified in faces-config.xml for the menu1, menu2, and menu3 facets of the PanelPage.
What we'd like to be able to do is, regardless of what page the user is on, be able to check if the user is trying to navigate via the menu without having saved changes and then prompt them "do you want to save your changes" with a Dialog.
Creating the dialog is the part I know how to do, but how could I, in a generic way:
a). Have some code execute during the navigation. I assume this is a custom ADFPhaseListener/FacesPageLifecycle class, but not sure.
b).Detect whether the model has uncommitted changes. I assume this is something on the Application Module, but could not figure this out.
Has anyone done something like this before?
Thanks for any insight into this.
Regards,
JohnOK, gang, here's an update:
I wanted to try to, in a generic way, capture changes that have happened to the data without having to go through a change listener on each field. Since my pages are all based upon BC View Objects with underlying Entity Objects, I have cobbled together some code (with lots of stuff hard-coded for now) that is able to tell me whether the data has been modified or not. The way I have the code right now, it works if the page is based upon one view object that has one underlying entity. Extending this to a view object that has multiple entities should be relatively straightforward (just loop through all of the entities and look for modifed status, instead of looking at only the first one).
System.out.println("Starting the test");
FacesContext ctx = FacesContext.getCurrentInstance();
Application app = ctx.getApplication();
ValueBinding bind = app.createValueBinding("#{data.AppModuleDataControl.dataProvider}");
AppModuleImpl svc = (AppModuleImpl) bind.getValue(ctx);
ViewObject v = svc.findViewObject("InputSheetView1");
ViewRowImpl vri = ((ViewRowImpl)vo.getCurrentRow());
EntityImpl ei = vri.getEntity(0);
int i = (int) ei.getEntityState();
System.out.println(Entity.STATUS_NEW);
System.out.println(Entity.STATUS_UNMODIFIED);
System.out.println(Entity.STATUS_MODIFIED);
System.out.println(Entity.STATUS_DELETED);
System.out.println(Entity.STATUS_DEAD);
System.out.println(Entity.STATUS_INITIALIZED);
System.out.println("The answer is");
System.out.println(i);
System.out.println("Finishing the test");Now, how to make this generic. How could I, from the page's backing bean:
1). Determine the name of the data control(s) used on the page? Alternatively, how to determine the name of the application modules used by the page? I know this information is in DataBindings.cpx, but how to find it programatically?
2). How to determine which View Objects from the AM's are used on the page? I know this is in the PageDef, but again, how to do this programatically?
Thanks for any ideas?
Regards,
John -
Not a visible GUI in Business Components Type of Application
Hi ,
Trying to discover the various types of JDeveloper 10g , I have developed a very simple form (Business Components Application) based on emp , dept data tables.
However , i don't see any visual object... as in a SWING Application....
At runtime , some objects - text fields , menus,,,e.t.c. are appeared.
Is it possible to modify the visual objects of these objects at design time...?????
Thanks , a lot
SimonThe BC Browser is just a tester - it create a default UI to ease testing.
If you want to configure the user interface, create a Swing application based on your ADF BC. See the JDeveloper tutorials page for more info. -
ADF Faces components are not rendered in Jdeveloper visual editor
Hi!
I'm using Jdeveloper 1013 Developer Preview. I found that the components of ADF Faces EA16 are not shown on the visual editor in Jdeveloper, but the ADF Faces EA15 components are shown. I'm just wondering if this is normal, and there is anything that can be done to fix this?
MeenI know there's a recent release with a visual editor problem, but I'm not sure which one it is. This thread says you need a fresh install? Can you try that?
Re: ADF Faces tutorial/code sample for data table? -
Does ADF faces works in a page that created by JSC and has some of its comp
Hi
Thank you for reading my post
does any one tried to run ADF faces with JSC applications ?
I tried to use some of its components (color picker) or a jsf page creted by JSC but after i add taglib and components code to jsp file my page does not shows anything and nothing appeared in log viewer.
does any one yet tried this ?
ThanksHi
Thank you for reading my post
does any one tried to run ADF faces with JSC
applications ?
I tried to use some of its components (color picker)
or a jsf page creted by JSC but after i add taglib
and components code to jsp file my page does not
shows anything and nothing appeared in log viewer.
does any one yet tried this ?Are you trying to 1) get the ADF faces components working in Creator itself or 2) adding them afterward to an existing Creator developed page? Unfortunately, #1 requires additional work. See http://blogs.sun.com/roller/page/edwingo?entry=component_authoring_for_creator for more information. You may be able to do #2, but I haven't tried it.
-Edwin
Creator team
http://blogs.sun.com/edwingo/ -
ADF Faces (Trinidad?) & Facelets Support
This is long, but help and advice is very much needed.
My programming team is facing a migration from UIX to JSF (ADF Faces) for future applications and we have hit a road block in regards to a template structure that is easy to use and maintain. We had gone through official Oracle training with JSF, however the trainer's answer to templates was to "create a template and copy and paste for every new file". For our team this is unacceptable so I've been charged with figuring out how to simply templates for our team. Not only do we need to make this easy for our application developers but we need to keep it simple for web developers to create "simple" survey-like applications.
From what I've come across the answers seems to be either Facelets or Regions.
Working with Regions seem to be over-complicated, requiring too much replication (basically back to copy/pasting an entire template) or passing the panelPage's content as a java object (bad for our web developers). I presented the combinations to my team and supervisor and it was agreed that Regions are impractical for our development practices.
So it seems the answer is with Facelets. The problems I have with this is that:
1. JDeveloper doesn't appear to natively handle Facelets, or include the libraries.
2. From what I've learned, the ADF Faces library that comes with JDeveloper doesn't have Facelets support either.
3. Looking into Trinidad, Facelets support exists but there is a lack of the Oracle skin.
Facelets support is really what my team needs, as it's the closest thing to the old UIX templates I've seen so far.
I've followed instructions/examples on several posts here, but I've yet to come across an example that works. I've Googled countless pages and examples, but when it comes down to ADF Faces and Facelets, it seems I'm at a dead end.
So, can anyone help me with this?
Thanks in advance,
Rick
PS:
Using JDeveloper 10.1.3.2.0.4066 with stock ADF Faces
External libraries used:
Facelets 1.1.11
Trinidad 1.0.1-incubatingIt just so happens that not long after I posted, I catch the "adf-facelets.jar" on the facelets site.
dvohra, I had seen the links you've pasted however none of them described the actual process to get it to work, it's all been segmented copy/paste instructions. This doesn't really help someone who is struggling.
So... I'll paste what my solution was, hopefully this will help others:
1. Download and install the Facelets 1.1.11 library
https://facelets.dev.java.net/servlets/ProjectDocumentList?folderID=3635&expandFolder=3635&folderID=0
2. Download and install the ADF Facelets library
https://facelets.dev.java.net/servlets/ProjectDocumentList?folderID=3990&expandFolder=3990&folderID=0
3. In web.xml add the following:
<context-param>
<param-name>oracle.adf.view.faces.ALTERNATE_VIEW_HANDLER</param-name>
<param-value>com.sun.facelets.FaceletViewHandler</param-value>
</context-param>
4. Make sure your project's libraries have loaded your Facelets and ADF Facelets, as well as ADF Faces Runtime.
5. Begin using UI Components as desired.
Example: http://eugeneciurana.com/pastebin/pastebin.php?show=1308
Extra notices:
I had to comment out the following in my faces-config.xml as it conflicted with the web.xml setting:
<view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
This is what worked for me, I hope this helps others out there.
Thanks,
Rick -
JBO-25001 Business Components Error
Hi to all,
I am experiencing some VERY STRANGE behaviour in JDeveloper ADFBC.
I am using Jdeveloper 10.1.3.1.0.3984 to build an application using ADF and Business Components.
I have four tables, JAAS_USERS, JAAS_ROLES, JAAS_REALMS and JAAS_MAPPINGS. The only associations are that JAAS_MAPPINGS have JAAS_USERS_ID, JAAS_ROLES_ID and JAAS_REALMS_ID.
I created my entities (package: datamodel.entities) and i have specified that JAAS_USERS entity use a DBSequence for USER_ID. Please note that i included control hints for every entity.
Then i created my first view (package: datamodel.views), called JaasUsers
that simply selects all attributes of the entity.
I then created an application module (package: datamodel) and i included the view. When i test the application module everything is fine!
I created a jsf and i dragged the view as a table -> read only table and everything was fine.
I then run the page and again everything is fine.
I then realized that i needed to change the control hint for some columns. Instead of changing the control hint of the entity (JAAS_USERS) i changed the object view (JAAS_USERS).
From this point and on NOTHING WORKS!!!!!!!!!!!!!!!!!!!
Here is the error message:
(oracle.jbo.common.ampool.ApplicationPoolException) JBO-30003: The application pool (.110255D7D2E) failed to checkout an application module due to the following exception:
----- LEVEL 1: DETAIL 0 -----
(oracle.jbo.JboException) JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.NameClashException, msg=JBO-25001: Name JaasMappings of object type Attribute already exists
----- LEVEL 2: DETAIL 0 -----
(oracle.jbo.JboException) JBO-29000: Unexpected exception caught: oracle.jbo.NameClashException, msg=JBO-25001: Name JaasMappings of object type Attribute already exists
----- LEVEL 3: DETAIL 0 -----
(oracle.jbo.NameClashException) JBO-25001: Name JaasMappings of object type Attribute already exists
Please help me becuase i don;t know hot to fix this BUG!Hey ppl , I got an exact similar error when trying to migrate from a 10g R2 to R3 version in Jdeveloper. Quite irritating this error,
Well i guess most would have figured this out , but for benefit of all , theres a slightly easier way to tackle this ( JDEV Release 3)
in the Application Navigator view Double click your Association , within association properties un-check your expose accessor checkboxes for both the source and destination .Apply changes and do a compile. If it is required , jdev will throw an error. Simply follow the process again and check the Expose accessor boxes again. This solves the problem most of the time.
Main advantage being , you can avoid the tedious task of manually changing the xml information on Notepad or the kind.
Hope this helps.... -
How to add adf faces in component pallete of jdeveloper 11g?
how to add adf faces in component pallete of jdeveloper 11g?
Hi,
the replacement of ADF Faces HTML components in JDeveloper 11 is Trinidad. For existing applications, a migration path will be provided in JDeveloper 11 production. I wouldn't recommend configuring ADF Faces in JDeveloper 11.
You an configure ADF Faces Components in JDeveloper 11 by :
- Tools --> Manage Libraries
- Create a User Library
- select ADF Faces adf-faces-impl.jar
- Enure the namespace is not af or afh but something different to not cnflic with teh ADF Faces RC components
Note that adding the ADF Faces components to the component palette will not make them show in the ADF binding context menu nor will it automaticaly set up the web.xml file. The components are available as any other JSF library set
Again, I wouldn't go this way ;-)
Frank
Maybe you are looking for
-
Office 2013 Professional Plus - error 1653
Hi I tried to install Office 2013 Professional Plus 64 bit on my Windows 8.1 Update 1 pro 64 bit Lenovo Thinkpad E530. The MSI crashes after I deselected Lync and OneDrive for Business and selected Organigram for Powerpoint with the error code 1653 s
-
Text comes blurry when i connect my macbook pro to bush 42" 3dtv (Hdmi)
anyone has any ideas how to fix it? i tried setting the tv to a few different modes but still no luck. i am connecting using that superport converter to an hdmi cable. i can get sound, videos and movies comes good, but text are really bad.
-
My Creative Zen wont download on Windows Vis
I have recently purchased a toshiba notebook laptop. I have a Creative Zen but I cant download the software onto Windows Vista I have a disk it loads up the creative logo then nothing else and when I put the mp3 player into usb port it tries to downl
-
What is the reason that apple did not make infinity folder ico
And do they gona make it later
-
Removing posts that have not been responded to
hi all. i love the forums and am excited about the new redesign. another great example of why switching back to mac is working nicely for me. can i please ask if it is possible to multiple remove or otherwise conveniently remove posts that have not b