Wednesday, September 7, 2011

JDeveloper 11.1.2/WLS 10.3.5 hot deployment issue [solved]

Status: Solved

Applies to: JDeveloper 11.1.2 / WLS 10.3.5, Windows XP

Problem Description

Having activated the WebLogic Fast Swap Option

0000@2510_2510-412669670fedcbaa

a strange Exception comes up in the Log-Window for the integrated WebLogic Server output.

java.net.URISyntaxException: Illegal character in opaque part at index 16: zip:C:/Dokumente und Einstellungen/ak/Anwendungsdaten/JDeveloper/system11.1.2.0.38.60.17/DefaultDomain/servers/DefaultServer/tmp/_WL_user/adf.oracle.domain.webapp/q433f9/WEB-INF/lib/adf-richclient-impl-11.jar!/oracle/adfinternal/view/faces/renderkit/rich/PageTemplateRenderer.class
at java.net.URI$Parser.fail(URI.java:2809)
at java.net.URI$Parser.checkChars(URI.java:2982)
at java.net.URI$Parser.parse(URI.java:3019)
at java.net.URI.<init>(URI.java:578)
at java.net.URL.toURI(URL.Java:918)
at com.bea.wls.redef.io.ClassChangeNotifier.toURI(ClassChangeNotifier.java:251)
at com.bea.wls.redef.io.ClassChangeNotifier.isRelative(ClassChangeNotifier.java:211)
at com.bea.wls.redef.io.ClassChangeNotifier.updateCache(ClassChangeNotifier.java:80)
at com.bea.wls.redef.RedefiningClassLoader.findClass(RedefiningClassLoader.java:115)
at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
at java.lang.ClassLoader.loadClass(ClassLoader.java:246)

Issue Analysis

It turns out that the Exception occures because the (by default) created WebLogic domain is located at a directory which contains spaces, e.g. C:/Dokumente und Einstellungen/<user>/Anwendungsdaten/JDeveloper/system11.1.2.0.38.60.17/

Solution

Move your JDev User Dir to a location without space in directory names! This can be done as follows

1. systemwide (for all your JDev installations)

0001@2510_0000@2507_0-412669653f2a1908

2. or finegrained (for specific JDev installation)

$MW_HOME\jdeveloper\jdeveloper.exe -J-Dide.user.dir=c:\ak\JDeveloper

(this will not effect other jdeveloper installations on your machine.)

If you now start Jdeveloper a new jdev user dir will be created.

0002@2510_0001@2507_2507-41266965401845c9

Note: If you want to keep your prefs, etc. copy the system11.1.2.0.38.60.17 from old location to the new one and delete the wls default domain

system11.1.2.0.38.60.17\DefaultDomain directory. (This is needed, because many scripts in DefaultDomain are generated at time of domain creation and so may contain absolute paths! So in order not to get stuck with those issues just delete the DefaultDomain directory. it will be created next time you start wls from jdeveloper)

Conclusion

After moving the jdev user dir you will see in the wls log window

[05:26:06 PM] Updated /C:/ak/JDeveloper/system11.1.2.0.38.60.17/o.j2ee/drs/<app>/<app>WebApp.war/WEB-INF/classes

(after Rebuild of your ViewController project).

Happy fast swapping! It is a real timesaver now!

Further reading

Section 36.4, "Reloading Oracle ADF Metadata in Integrated WebLogic Server." of fusion developmen guide 11.1.2.0.

Thursday, May 19, 2011

ALM with Oracle Team Productivity Center, OpenFire and Hudson

Applies to: JDeveloper 11.1.1.2+, OTPC 11.1.1.2+

Introduction

Since JDeveloper 11g does not provide integration with Hudson CI Server I came up with the idea to use the chat component of Oracles Team Productivity Center Plugin in combination with OpenFire (XMPP Server) and hudson ci on your build server with IM plugin. The main aim is to be able to start builds from the jdeveloper IDE and also get informed if a build currently is running.

Prepare

  1. Install OpenFire and create some test users + a user that acts as Hudson CI bot (See http://www.igniterealtime.org/projects/openfire/)
  2. Install Oracle Team Productivity Center Plugin in JDeveloper
  3. Install Hudson CI Server with the following plugins
    1. Instant Messaging Plugin
    2. Jabber Plugin
  4. Configure Hudson as follows (Hudson > Manage Hudson > Confgure System)
    0002@1721_1721-4126687cbb0eca86

Test Drive

  1. Setup Build-Job with Hudson as follows
    0003@1721_1721-4126687cbb8fbd40
  2. Open JDeveloper and connect with open fire by clicking (View->Team->Chat)

0001@1721_1721-4126687ca98bf259

Now try to start a build by entering

!build <jobname>

0000@1721_0-4126646abf561784

Benefits

- Keeps Focus on Coding in JDeveloper. And so => Minimizes human context switches!

- Developers get instantly informed by the chat what's going on on the build server

- Developers are able to schedule jobs from JDeveloper

- The status of Hudson is transparent for everyone as it appears in your buddy list. If not you immediatly know that there is something wrong: server down, hudson not running, etc..

Cool stuff!

Friday, January 14, 2011

ADF 11g BC - Reactivate the "Add from Table..." button in Entity Object Overwiew Wizard

Applies to : JDeveloper 11.1.1.2

Problem description
  • you are connected to database (network)
  • you are able to choose the desired button
  • 0000@2227_2227-4126678f3a9e87c6so everything is fine, you are able to work productive

But

  • you're went standby with your machine because you moved from work to homeoffice
  • waking up you're machine, connecting to network you want to invoke "Add from Table...." button
    => No chance. the button is disabled! See my screenshot
  • 0001@2227_2227-4126678f48f5c28f
  • -OK so first solution comes to mind. reopen the *EO.xml file
    => No change.the button is still disabled!

Fastest Solution found so far

  • Open the project settings and navigate to Business compontens section
  • 0002@2227_2227-4126678f49e3ef50
  • Do nothing, apply the button "OK" (not visible in screenshot)
    => the db connections seems to be reestablished or verified or what ever
  • Close the EO.xml and reopen it
    => "Add from Table..." button is activated!
  • 0003@2227_2227-4126678f4d9e26af=> No need to restart JDeveloper. That would be another solution. But takes a lot more time if you only have an average hardware.

Failed solution approaches

  • close *EO.xml and reopen it. => "Add from Table...." button is still deactivated

Open questions / improve usability suggestion

  • Which circumstance leads actually to disable the "Add from Table..." button?
  • It would be nice if the "Add from Table..." button would be active for ever. On Demand/Click would be reported if there is no valid database connection.

 

Have you experienced similar annoying problem? Any useful hints for the observed behaviour would be greatly appreciated.

 

Andreas.

Wednesday, June 23, 2010

Reusing taskflows using ADF Libraries

Used version: JDeveloper 11.1.1.3image

Last week I did a short presentation on “ADF Taskflow Integration” on  the german ADF Partner Community.

The presentation covers some basics on ADF task flows, ADF Library and the integration process with the focus on reuseabilty. I think it is worth to share with the english community as well;-) 

Download

Further Information

Sunday, May 9, 2010

Type error in Installation Guide for Oracle Team Productivity Center Server 11.1.1.3?!

Short post, but quite interesting to mention I think.

While going through the current installation guide of Oracle TPC Server 11.1.1.3 the following line catched my eyes:

“If you are using WebLogic Server as the installation server, make sure you are using version 10.3.4.”

That’s really up to date information;) IMHO WLS 10.3.3 is the “most current” WLS version.

Further information

Friday, April 30, 2010

Monitoring Dashboard in WLS Administration Console introduced

Type: Info
Applies to: Oracle WebLogic Server: 10.3.3

Just after JDeveloper 11.1.1.3 was released of course I had to give it a try;-) Somehow I am always curious about changes the Admin Console of the WLS. Since WLS is integrated it is really easy and quick to do. Just start a simple ADF Fusion Web app and open http://localhost:7101/console

The following things catched my eyes:

a) The Admin Console  is internationalized. On my laptop the login form appears in german by default now:
image 
To change the language you just have to change the preferred language in the browser settings and reload the page.

b) On the Homepage I recognized a new entry:
image 
This opens the so called “Monitoring Dashboard” which obviously is developed by ADF Faces RC. Cool! No activation of the diagnostic console needed! No slowly loading Applet;) Thanks!

image

c) the diagnostic-console can still be activated in the preferences but just in order to inform that it has been replaced by the new monitoring dashboard….and the Request Performance

d) Request performance
image At the first look the view is a bit disappointing because you will not see anything here until you “…first configure WLDF instrumentation to use the ElapsedTimeAction diagnostic action attached to "Around" diagnostic monitors. Only data from the ElapsedTimeAction action is shown on this page.” See the context help for more information. (Maybe I will blog about it in more detail in a separate post)

It would be nice if this information (to first configure a WLDF inst) would be visible as INFO or WARNING directly on the Request Performance Tab.