Monday, May 30, 2011

Deployment NullPointerException SOA suite examples

Got a Nullpointer on deployment of the soa suite examples running the ant task compile-deploy-all:
Saw some info about ulimit but I am running on windows so should not impact me.

I looked everywhere tried to fix it and wasted a couple of hours on this. Eventually I stopped and started weblogic and the problem dissipated who knew hope it doesnt come back to haunt me and I learned long ago not to ask too many questions in a case like this.

oracle.fabric.common.FabricDeploymentException: java.lang.NullPointerException {rootCauses=[]}
    at oracle.integration.platform.blocks.deploy.CommonDeploymentManager.logError(

Tuesday, May 24, 2011


Ok so I have upgraded to the new version of Jdev from now on will update this post if I find anything funky

OJDeploy again

Windows 64bit problems:
My build would not fail on windows despite the failonerror property.
I had to use the ojdeploy64.exe to get my build to return the failure the ojdeploy.exe just would not give me a failed build. (using 64bit jvm)

Linux problems:
Use failonerror property. ie

    <ora:ojdeploy xmlns:ora="oraclelib:OJDeployAntTask"

Tuesday, May 17, 2011

OJDeploy revisited libraries not included in compile via ant

My ojdeploy build was crashing when running via ant.
The difference between the command line build which was working and the ant build was a relative (../) location in the name of the workspace.

C:/Projects/Common/Model/../Common.jws instead of C:/Projects/Common/Common.jws

So the fix was as follows:
Add a new property with the location attribute:

And use this in my ant task:

  <taskdef name="ojdeploy"
    <ora:ojdeploy xmlns:ora="oraclelib:OJDeployAntTask" 
        <ora:parameter name="workspace"
        <ora:parameter name="project" value="${}"/>
        <ora:parameter name="profile" value="${}Deploy"/>
        <ora:parameter name="nodatasources" value="true"/>
        <ora:parameter name="forcerewrite" value="true"/>
    <ora:parameter name="basedir" value="${basedir}"/>