Thursday, April 29, 2010

ojdeploy build failing on linux

The nodependacies flag was set on linux with ojdeploy so the dependant project was not built - this cause a class not found error.

JSF Phase Listener for ADF

Make sure you hook into the After Phase method on RESTORE_VIEW otherwise the adf context will not have been initialized.





public void afterPhase(PhaseEvent phaseEvent) {
   System.out.println("___________________________________ -after phase is logged in " + isLoggedIn());
}

private boolean isLoggedIn() {
    if (ADFContext.getCurrent() == null ||     ADFContext.getCurrent().getSecurityContext() == null ||
    ADFContext.getCurrent().getSecurityContext().getUserName() == null ||     ANONYMOUS_USERNAME.equalsIgnoreCase(ADFContext.getCurrent().getSecurityContext().getUserName()))
    {
        return false;
    }
    ADFContext.getCurrent().getSecurityContext().getUserName());
    return true;
}

ORA-03115 typo

ORA-03115: Unsupported network datatype or representation - dont do the following:
(send the query in on creation and execution)
statement =
transaction.createPreparedStatement(query, DBTransaction.DEFAULT);
ResultSet resultset = statement.executeQuery(query);

What was I thinking...

Teamcity build error

I am having a problem with Teamcity not building my builds, if we kick of the build the history is not updated but it runs through. going to upgrade to 5.1 and keep the configuration. hey well.

getUserPrincipalName returns anonymous

I upgraded to the new jdeveloper release and my security stoped working (proxy stuff).

So I had to change getUserPrincipalName in my Application module to ADFContext.getCurrent().getSecurityContext().getUserPrincipal().getName().

Who knew...

Monday, April 26, 2010

Oracle ADF

My thinking so far after one day of use and no training is a project team for ADF can include you forms developers but you really need one or two excellent java developer to get through.

Sunday, April 25, 2010

Oracle proxy user error

ORA-01012: not logged on;

If you are using the oracle proxy user setup. Check that you user has rights to proxy though you connection pool user.

ALTER USER GRANT CONNECT THROUGH

Thursday, April 22, 2010

Weblogic Custom Authentication Provider Error

If you are not getting your login exception set in javax.servlet.error.exception : try reordering your custom provider to the top of the provider list in the Weblogic Admin Console.

Just a quick note:

If you are having a hard time propogating the cause of your weblogic errors that are thrown from your custom provider try this before you throw them:


protected static void throwException(boolean propagateCauseForLoginException,
LoginException e,
Throwable cause) throws LoginException {
if (propagateCauseForLoginException) {
e.initCause(cause);
}
throw e;
}