Troubleshooting BOF Development Mode

One of my readers had some trouble getting his local BOF development working. 

No matter what he did he always got NoClassDefFoundError when DFC attempted to load his service class locally.

Turns out that his issue was an eclipse issue.  He had specified something like this as a vm-arg in his junit launch config:-

“-Ddfc.development.bof.registry_file=${project_loc}/bof.registry_file.properties”

And for some reason eclipse was not resolving the variable “${project_loc}” properly.

After he re-specified this setting with a fully-qualified path, everything worked as expected.

A good tip is that DFC will report, during start-up, some basic status about BOF development mode, as far as it is concerned. 

Look out for:-

“Error during initialization of BOF Development mode”

if something catastrophic happens, Or:-

“BOF Development Mode: can not find registry file {0}”

if DFC cant find the local registry file that it thinks it is looking for.  This was my readers issue.  Or (hopefully):-

“******* BOF Development Mode is enabled *******”

if DFC is able to load the registry file.

I thought I would put this out in case anyone else ran into same the problem.  And of course if anyone knows why eclipse is failing to resolve the variable then we’d all love to know that too.

Happy Composing.

Advertisements

2 thoughts on “Troubleshooting BOF Development Mode

  1. Hello Paul,

    I am experiencing the same problem and Eclipse is not resolving the variable “${project_loc}” properly for me too.

    My setting in JUNIT Arguments tab Arguments VM is

    C:\workspaceComposerD6.5/PCTIngestionAfterEMCwithSource/src/com/mfs/tbo/boftest/ bof.registry_file.properties

    When I am specifying compelete path as you had recommended, the Eclipse IDE removes it and loads my jar file from some unknown location.

    Could you, please, provide me with additional recommendations on how to resolve this.

    Thank you for your help

    Rima

    • Hi Rima,

      Not sure what to suggest to be honest. Aside from the obvious statements:-

      – Check your DFC version – this is a 6.5 feature I believe
      – use forward slashes in your path (just in case)
      – does DFC report any of the blogs error conditions?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s