Thursday, May 31, 2012

ORA-12899: value too large for column "TEST1_OIM"."PCQ"."PCQ_QUESTION"

The above error is coming while setting the challenge question for the user. The reason for the error is the number of characters in the question after encryption by OIM that are getting inserted into the PCQ table. Default is 100. The message that comes on the UI is "Password reset successful but challenge question registration failed".

The resolution is yet to come. Either change the question or increase the column size. 

Getting connection to WS in connections.xml

To get connection object for the WS specified in the connections.xml, use::

WebServiceConnection wsc = (WebServiceConnection)ADFContext.getCurrent().getConnectionsContext().lookup("Name");

where Name is the reference name generated in connections.xml.

wsc.getJaxWSPort(Service.class);

where Service is the service name pointed by the connection.

Tuesday, May 29, 2012

Invalid/unknown SSL header was received from peer during SSL handshake.>

This is the exception that we got, when we were trying to start one of our server in cluster. The managed server to be started is on machine1 and cluster is on different machine2. We changed the communication type to plain in the console under nodemager settings for the machine2. But still the issue was same.The server was still using SSL for communication, since the last line of the log after nodemanager start/restart, was still "secure socket listener started on port 5556".

It got resolved by changing the SecureListener to false in the nodemanager.properties file, which made the nodemanager to use Plain communication. This changed the last line in nodemanager log after restating to
Plain socket listener started on port 5556.

Saturday, May 26, 2012

InvalidAttributeValueException: Malformed 'objectClass' attribute value

The above error comes when the method used to insert/set the value of the attribute mentioned in the error, is not as per the schema/ its type. In case of objectClass its supposed to be a multivalued attribute and this error will come if we by mistake we used the setAttributeValue() method instead of setAttributeValues()....

Friday, May 25, 2012

Startup Classes not found while starting Managed Server

After configuring new servers and while starting them from em, we were getting startup classed not found exception. The issue was resolved by changing startScriptEnable=true in the nodemanager.properties file.

Tuesday, May 8, 2012

Call Render Response phase from MBean or BBean



FacesContext.getCurrentInstance().renderResponse();

When this is required to be used?
When we have set immediate as true on a command component and want to skip the validation phase for a component.
http://docs.oracle.com/cd/E23943_01/web.1111/b31973/af_lifecycle.htm#CIAHCFJF
Above link also explains the use of autosubmit and immediate in few scenarios.

Partial Submit Vs Auto submit
https://blogs.oracle.com/jdevotnharvest/entry/partial_submit_vs_auto_submit

Sunday, May 6, 2012

Login issue after configuring LoadBalancing using Webcache

We configured loadbalancing between our two portal servers. After doing the configuration when we opened the URL for ohs server with url string attached for our application, we were successfully redirected to the login page of our application but we were not able to login into our application. However login was working when hitting direct application URL. The issue was with the session binding configuration. It requires the configuration to have JSESSIONID based login. So just set the JSESSIONID to be used for login.

Not able to login on portal and using any admin account

We faced an issue where we were stuck on the login page of our portal and also the for the oam, oim console as well. None of the username passwords were working. Looking at the logs gave an statement like "Invalid life cycle state.".... "Unable to connect to connection pool".... . The issue was the password for ODS user for oiddb schema was expired. The issue got resolved by changing the password for ods user. 

OAM Error page customization

We got a requirement to customize the error page of OAM thats comes when any unexpected error occurs or user reaches max session after login. The page that need to be customized is servererror.jsp page that can be find inside oam-server.ear file or we can find it in tmp folder of oam server under x-d-- (some name like this) folder. Provided that we got the license to customize the page, the changes can be done in the page under tmp folder or oam-server.ear file. The changes of the page inside tmp folder will be reflected without any restart, just by refreshing the page. We also need to delete the .class file ie the complied jsp file for servererror-jsp.class file.

However it may not be possible to customize the error messages that comes but still if u got the license to do that :) then you can find these messages inside serverMsg.class folder. Exact path can be found inside the jsp file itself.

On the similar path the other pages like Authorization error page (AuthZError), policy manager page can be customized that can be found inside oam-admin.ear file.