May 21

So debugging why an Ad Hoc build is not working on your client’s device is not easy. As you already know there are ton of files that need to be just right for the process to be successful. On top of that if you are passing the Ad Hoc .app files back and forth using something like DropBox there other errors you can see like: The application “myApp” was not installed on the ipod “device name” because its resources have been modified.

I’m not going to go into everything here, I’m just going to tell you the steps I took, show you my settings and point you to some resources.

Check the obvious

You must be able to build your app to your device first.

Go to the  iPhone Provisioning Portal > Provisioning > Distribution Tab and make sure that all your UDID for your devices are in that Provisioning Profile. Download and install that .mobileprovision file by double clicking on it. . You will also give this .mobileprovision to your Ad Hoc testers.

Get the Ad Hoc Xcode Target Build Setting right

In Xcode double click on your target and check it against these screenshots. Since this is an AD Hoc build you want to make sure you select iPhone Distribution . You also want to make sure you have setup your Signing Entitlements properly ( Check the first link in the resources ) only for the Ad Hoc Configuration.

Target Info

Important: If you set the Entitlements entry for Ad Hoc configuration make sure it is unset for Debug and/or Release configurations. Otherwise you will see:

Error launching remote program: failed to get the task for process

After some trial and error I found using the Automatic Profile Selector (Recommended) -> iPhone Distribution under the Code Signing -> Code Signing Identity worked the best.

Code Signing

Testing your Ad Hoc Build

Building Xcode

If you are doing an Ad Hoc build don’t bother doing a ‘Build & Run’ from Xcode. Ad Hoc builds are meant to be sent to a tester so what you want to do is a ‘Build’ and go to you build dir inside of your Xcode project, take the .app file from inside the ‘Ad Hoc-iphoneos’ folder and follow the instruction from the link below: Apple - iPhone Development Guide - Publishing Applications for Testing – Instructions for Application Testers.


What to give to your client

Apple - iPhone Development Guide - Publishing Applications for Testing – Instructions for Application Testers:

Tagged with:
May 21

I was doing an iPhone Ad Hoc build for a client and we came up against this error. Client and I are using DropBox to send the Ad Hoc .app builds back and forth. Randomly we would see this error:

The application "myApp" was not installed on the ipod "device name" because its resources have been modified

Turns out that DropBox touches the files inside of the .app in some way. The fix is to zip or Archive your .app and then put it up on DropBox.



Tagged with:
May 09

find . -name .svn -print0 | xargs -0 rm -rf

Tagged with:
Oct 15

For some reason this tool decides that it needs to reset your Accelerators every once in a while and do away with the Enter/Return key.

To fix to under Tools -> Accelerators. Click the ‘Load Presets’ button and load the appropriate one for your system.

Caution: If you have remapped any Accelerators and have not saved them out they may get lost.

Tagged with:
Sep 28

In case I forget again to get a   non-breaking space in ADF.


Hint: Don’t do a right click and Reformat or else JDeveloper will swap the &nbsp for a &amp;nbsp


Tagged with:
Sep 22

If you are using the Desk Mess WordPress theme and you want to use the Google Analytics for WordPress plugin your status may not be receiving the data until you add some code to the footer.php.

In my case I went to www-root/wp-content/themes/desk-mess/footer.php and added wp_footer();. The end result looks like this:

<div id=”bottom”>

<p style=”padding-top:110px; clear:both;”>Copyright © <?php echo date(“Y”); ?> <strong><?php bloginfo(‘name’); ?></strong> All rights reserved. Theme by <a style=”text-decoration:none; color: #635537;” href=”” title=”Geek with Laptop”>Laptop Geek</a>.</p>
<? wp_footer(); ?>

May 25

Was seeing this error on some pages of our application. I found that it only happened on pages that used more than one Application Module (AM). After a lot of googleing and trail and error I found a solution. In our Logout class I added the following code before the redirect with the critical piece in bold:

FacesContext fc = FacesContext.getCurrentInstance();

ValueBinding vb = fc.getCurrentInstance().getApplication().createValueBinding(“#{data}”);

BindingContext bc = (BindingContext)vb.getValue(fc.getCurrentInstance());

if( session != null ) {

Turns out if you use more than one AM on a page you must release it.

Appartly Oracle has patched this known issue (bug # 6416122, base bug# 6365500) but some people mentioned that the fix did not fix their problem. I did not bother applying the patch.

Below is also the helpful pages durning my search.

Tagged with:
May 20

This is how to create a email address link using af:golink;

<af:goLink text=”#{row.EmailAddress}”
destination=”#{\”mailto:\”} #{row.EmailAddress}”/>

Tagged with:
Mar 11

The other day I was deploying a new version of an application to our TomCat server. When I tried to shutdown the server I got:

Mar 10, 2008 3:07:31 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop: Connection refused
at Method)
at org.apache.catalina.startup.Catalina.stopServer(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.apache.catalina.startup.Bootstrap.stopServer(
at org.apache.catalina.startup.Bootstrap.main(

I thought that was really weird error for a shutdown script… but the startup did the same as well…

The solution was that my loopback interface was not configured on the machine and the .properties file database url was configured to point to localhost. So when I changed the database url entry from ‘localhost’ to an ip address… it worked.

Feb 28

If you need to compare every file between two revisions/tags in cvs use:

cvs -q rdiff -s -r b5130_0202 -r b5130_0203 project1 [project2] [project_n]

I was doing it by check out both branches and using Araxis Merge do diff the directories. I really the tool, but nothing like keeping it server side and getting CVS to do the work for you. :)

Tagged with: