WebLogic, ADF, Mobile, JET, SOA, WebCenter, JDeveloper, Oracle Cloud
Monday, November 21, 2011
My DOAG 2011 Slides – Upgrade Guide for Oracle ADF on WebLogic Server
Hopefully someone will find it useful. At the conference there were just too few attendees…
http://www.slideshare.net/multikoop/doag-2011-upgrade-guide-for-oracle-adf-on-weblogic-server
Friday, November 11, 2011
ADF 11.1.2.1 - clicktoedit table, createinsert, rollback bug?
ADF version: 11.1.2.1
Firefox: 5.0
Prerequistes
-Using ADF BC
-Create the most simple jsf page declarativly (no custom java code)
--table features: single selection, sorting, filtering
--change table attributes: editingMode=clickToEdit
Steps to reproduce
1. start http://127.0.0.1:7101/TestInsertIntoClickToEditTable2-ViewController-context-root/faces/view1
[notice the yellow marked rows.]
2. Now Click on CreateInsert
OK, new row is inserted and can be edited now.
3. Click on Rollback-Button (or Execute-Button)
What happened to the last two rows?
Further issue: clicktoedit not working on some rows
You may click as often you want. The row won't change into edit mode. In the log window you will see
<FacesCtrlHierBinding$FacesModel> <makeCurrent> ADFv: Keine Zeile gefunden für rowKey: [oracle.jbo.Key[191 ]].
Known workaround so far
1. Click the Execute-Button after Rollback.
2. Bind Rollback action to a backing bean method and do the following (Rollback + setActiveRowKey)
/**
* Rollsback and Re-Executes the table iterator
* @param actionEvent
*/
public void onRollback(ActionEvent actionEvent) {
final DCBindingContainer bc = (DCBindingContainer)getBindings();
bc.getOperationBinding("Rollback").execute();
setActiveRowKey(bc);
}
/**
*
* @param bc
*/
private void setActiveRowKey(final DCBindingContainer bc) {
final DCIteratorBinding empIter = bc.findIteratorBinding("EmployeesView1Iterator");
final Row newRow = empIter.getCurrentRow();
final ArrayList activeRowKeyList = new ArrayList();
activeRowKeyList.add(newRow.getKey());
getEmpTable().setActiveRowKey(activeRowKeyList);
}
public BindingContainer getBindings(){
return BindingContext.getCurrent().getCurrentBindingsEntry();
}
Download
Sample Application: http://www.box.net/s/od2t8en8ojo3hho704uz
Similiar issues
http://adfbugs.blogspot.com/2010/03/rollback-does-not-refresh-current-row.html
JDev 11.1.2.1 – Clear WLS Log tab Bug?
Applies to JDeveloper: 11.1.2.1
Problem Description
After starting the integrated WLS from JDev the wls log is displayed in the log tab. Open mouse context menu and “clear” item is not activated
I have no chance to clear the log tab!! Arghh.
Is there any good reason for this behaviour? ( not beeing able to clear the log). The memory consumption is already enormous. Dear Oracle, please let me clear the log tab again…
Never seen this issue in 11gR1 versions.
Is there any workaround?
Saturday, October 8, 2011
[solved] Download offline bc4j-junit_bundle 11.1.2.1 version/download link mismatch
Applies to: JDeveloper 11.1.2.1
Download from: http://www.oracle.com/ocom/groups/public/@otn/documents/webcontent/131167.xml#oracle.BC4J.junit
Problem description
Trying to install the downloaded bc4j-junit_bundle offline version as extension I get the following error
Analysis
Open the corresponding bundle ZIP an lets see if it is really wrong version
But as you can see I have downloaded the correct version. So there is a mismatch.
Solution
After further investigating the download link I realized that it just references the old version
http://download-llnw.oracle.com/otn-pub/jdeveloper/11.1.2.0.0/extensions/bc4j-junit_bundle.zip
So let's try to adjust manually the URL und download
http://download-llnw.oracle.com/otn-pub/jdeveloper/11.1.2.1.0/extensions/bc4j-junit_bundle.zip
é voilà now the installation works fine as well
[solved] JDeveloper - Install Extensions offline / licences check issue
Applies to: JDeveloper 11.1.2.1
Issue
Results in
The impact is that you are unable to install JUnit-Extension in a Workshop Lab e.g. where
you can't assume that the attendees have an internet connection
Workaround
Because we are quite smart let's workaround....
Open Bundle with your favourite archiver tool
and remove or comment out the following line
<u:requires-agreement url="http://junit.sourceforge.net/cpl-v10.html" />
Save change and Update Archive.
Import extension again.
=> No license check requirement shows up. Yeeeees we can!
Monday, October 3, 2011
Upgrade Oracle Team Productivity Center to 11.1.2.1 / Hudson Plugin
From Version: 11.1.1.5
To Version: 11.1.2.1
Prepare
Check the content of the current otpc schema
SQL> select * from otpc_version t;
ID DB_UPGRADE_NUM DB_VERSION VERSION
-------------------- -------------------- ---------------------------------------------------------------- --------------------
1 2 11.1.1.5.37.60.13 1
Download tpcinstaller.jar from OTN
Installation
Start new installer
jar -jar tpcinstaller.jar
Click Next
Great: The installer recognized everything, so you really can expect the installation process will do the right thing
Choose: NExt
Point to the autodeploy directory of the privious installation. If you just point to the DOMAIN_HOME Location you will get an exception:
TPC-90026: The otpc.war of current installation for upgrade is missing in the server deployment directory
(Enhencement request: The installer should be smart enough to be able to check for otpc.war in the given domain!)
Choose: Next
Choose: Next
...
...
Upgrade completed. Plus Hudson Plugin installed.
Verify installation/ Upgrade
Verify otpc_version in database schema:
SQL> select * from otpc_version t;
ID DB_UPGRADE_NUM DB_VERSION VERSION
-------------------- -------------------- ---------------------------------------------------------------- --------------------
1 2 11.1.2.1.38.60.81 2
SQL>
Everything worked as expected. Nice.
Lets start weblogic and check if otpc server is running
Seems to run, but (as stated in one of my privious posts) nobody can be sure which version actually is running. Especially from an ALM tool which now integrates with hudson I REALLY CAN EXPECT to see a BUILD-Number here! Dear Oracle, if you are reading this, please log an enhencement request to integrate a build number in the otpc server homepage! Further it would be nice if that homepage lists all installed otpc plugins (plus which version of course). Thanks.
BTW:
After starting the new otpc server a new folder has been created in DOMAIN_HOME
activemq-data
=> Oracle uses ActiveMQ now. I think in order to be able multi app server compatible. And ActiveMQ is obviously tinier than the WLS one.
OTPC Hudson Plugin
Now I am really interessted in how the hudson plugin looks like. So lets start my local hudson sanbox.
java -jar hudson-2.1.1.war -httpPort=8081 (8080 is used by the XE DB)
Observing the Hudson > Plugin Manager > Installed
=> No hints to a newly installed plugin
Looking into Hudson > Plugin Manager > Available
=> Bingo.
(Additional info. The plugin has been put to
$HUDSON_HOME/HudsonTpcPlugin.hpi
by the OTPC installer and not into the $HUDSON_HOME/plugins/ as I would expect.)
Ok, move on
Restart hudson.
The otpc plugin shows up in the installed section of the plugin manager.
So now we can use the plugin in our hudson jobs. Choose your job and configure..
Save changes and run your job.
Check the jobs console output
"The test result(s) Testergebnis will be sent to the Oracle Team Productivity Team Server at http://localhost:7001.
Successfully loggedin."
Thats all so far. Nothing else shows up in your hudson ui ;-(
What's next
Check OTPC in new JDev 11.1.2.1
Let's open an old task repository
Hhhm. let's create a new task repository
Same problem here.
Conclusion
OTPC is still not enterprise ready. OTPC should improve in the following
- Task repository connection does not work in new version! Wow. Where is the mistake? the server logs
WARNUNG: RepositoryServerServiceImpl.getAll() 10/03/2011 17:43:29 MESZ - reposit
ory server 'New Repository Server11121' does not have any parameters by parentN
ame 'REPOSITORY_SERVER.New Repository Server11121.OTCP Task Repository11121'.
03.10.2011 17:43:29 oracle.alminternal.server.core.RepositoryServerServiceImpl g
etAll
- Integration BUILD-Number into otpc server homepage
- List installed connectors on otpc server homepage
- Integrate LDAP vor OTPC Users/Groups. Provide a mapping from those users/groups to OTPC Roles
- Integrate some nice charts in the hudson jobs webpages ;)
Like (in general about OTPC)
- Saving the IDE context for a specific task.!! This really rocks!