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(CommonDeploymentManager.java:90)

Tuesday, May 24, 2011

Jdeveloper 11.1.1.5

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"
       executable="${ojdeploy.path}"
       failonerror="true"
       ora:statuslog="ojdeploy-statuslog.xml"
       ora:buildscript="ojdeploy-build.xml">

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"
    classname="oracle.jdeveloper.deploy.ant.OJDeployAntTask"
    uri="oraclelib:OJDeployAntTask"
    classpath="${ant.library}"/>
    <ora:ojdeploy xmlns:ora="oraclelib:OJDeployAntTask" 
    executable="${ojdeploy.path}"
    ora:statuslog="${basedir}/${ora.jdev.dir}${project.deploy.name}-ojd-stlog.xml"
    ora:buildscript="${basedir}/${oracle.jdev.dir}/ojd-build.xml">
      <ora:deploy>
        <ora:parameter name="workspace"
                       value="${workspace.fixed.location}"/>
        <ora:parameter name="project" value="${project.name}"/>
        <ora:parameter name="profile" value="${project.name}Deploy"/>
        <ora:parameter name="nodatasources" value="true"/>
        <ora:parameter name="forcerewrite" value="true"/>
    <ora:parameter name="basedir" value="${basedir}"/>
  </ora:deploy>
</ora:ojdeploy>