Month: September 2012

Caused By: java.net.SocketException: Write failed: Broken pipe

<oracle.adfinternal.view.faces.lifecycle.LifecycleImpl> <BEA-000000> <ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6 javax.faces.FacesException: Write failed: Broken pipe at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:920) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:367) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:222) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256) at weblogic.work.ExecuteThread.run(ExecuteThread.java:221) Caused By: java.net.SocketException: Write failed: Broken

Continue reading

javax.faces.application.ViewExpiredException: – ADF_FACES-30107:The view state of the page has expired. Reload the page.

You need to define the value for org.apache.myfaces.trinidad.CLIENT_STATE_MAX_TOKENS in the web.xml of your web application. <context-param> <description>Chooses how many tokens should be preserved at any one time.</description> <param-name>org.apache.myfaces.trinidad.CLIENT_STATE_MAX_TOKENS</param-name> <param-value>50</param-value> </context-param> Link to this post!

Continue reading

Caused By: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (APPS.PS_TXN_PK) violated oracle.jbo.PCollException: JBO-28030: Could not insert row into table PS_TXN

This might happen when you deploy another application in the same server environment where the already defined Transaction Id is again attempted to add in the existing table and violates the unique identity constraint. Reset the sequence number. Other Useful

Continue reading

Exception occured during invocation of JCA binding: “JCA Binding execute of Reference operation ‘insert’ failed due to: JCA Binding Component connection issue. JCA Binding Component is unable to create an outbound JCA (CCI) connection.

The connection factory getting used in your application for the DBAdapter is not being defined with the data source value and due to that the run time connection issue occurs. Click on the Deployment Click on the DBAdapter and it should have

Continue reading

Defining caching rules for images in the ADF Faces Caching Filter

<adf-faces-config xmlns=”http://xmlns.oracle.com/adf/faces/config”> <caching-rules> <caching-rule id=”cache js”> <cache>true</cache> <compress>true</compress> <duration>99999</duration> <agent-caching>true</agent-caching> <cache-key-pattern>*.js</cache-key-pattern> </caching-rule> <caching-rule id=”cache jpeg”> <cache>true</cache> <compress>false</compress> <duration>99999</duration> <agent-caching>true</agent-caching> <cache-key-pattern>*.jpeg</cache-key-pattern> </caching-rule> <caching-rule id=”cache png”> <cache>true</cache> <compress>false</compress> <duration>99999</duration> <agent-caching>true</agent-caching> <cache-key-pattern>*.png</cache-key-pattern> </caching-rule> <caching-rule id=”cache PNG”> <cache>true</cache> <compress>false</compress> <duration>99999</duration> <agent-caching>true</agent-caching> <cache-key-pattern>*.PNG</cache-key-pattern>ion </caching-rule> <caching-rule

Continue reading

How to execute method on page load method call in ADF Faces

1. Open the page definition of your JSF Page – TestOnPageLoad.jspx 2. Add the controllerlclass in the <PageDefinition> tag as given below <pageDefinition xmlns=”http://xmlns.oracle.com/adfm/uimodel” version=”11.1.1.60.13″ id=”TestOnPageLoadPageDef” Package=”view.pageDefs” ControllerClass=”com.test.bean.PageLoadBackingBean”> 3. Create the class – executeOnPageLoadMethod which implements PagePhaseListener and override the

Continue reading

How ADF client authentication can be defined or set in the web.xml

<security-constraint> <web-resource-collection> <web-resource-name>allPages</web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>valid-users</role-name> </auth-constraint> </security-constraint> <security-constraint> <web-resource-collection> <web-resource-name>adfAuthentication</web-resource-name> <url-pattern>/adfAuthentication</url-pattern> </web-resource-collection> <auth-constraint> <role-name>valid-users</role-name> </auth-constraint> </security-constraint> <login-config> <auth-method>CLIENT-CERT</auth-method> </login-config> <security-role> <role-name>valid-users</role-name> </security-role> Link to this post!

Continue reading

mime types to be defined in web.xml for pdf, css, images,javascript in the mime-mapping tag

If you are using the PDF or JavaScript or images with differnt extensions png, jpeg, gif then that should be defined in the mime-mapping tag in the web.xml . Example is given below. <mime-mapping> <extension>pdf</extension> <mime-type>application/pdf</mime-type> </mime-mapping> <mime-mapping> <extension>javascript</extension> <mime-type>application/x-javascript</mime-type>

Continue reading

How to identify the different user agent values for browsers in ADF Faces

Place the below sample code in your application to receive the user agent values for diffent browsers like safari, chrome ,IE , Mozilla public String getUserAgentValue() { FacesContext facesCtx = FacesContext.getCurrentInstance().getCurrentInstance(); ExternalContext externalctx = facesCtx.getExternalContext(); HttpServletRequest request = (HttpServletRequest)externalctx.getRequest(); String

Continue reading
Copy Protected by Chetan's WP-Copyprotect.