Topic
  • 1 reply
  • Latest Post - ‏2009-03-06T21:18:35Z by bdelima
FuBarre
FuBarre
3 Posts

Pinned topic Problems with vce.compare and vce.search ANT tasks.

‏2009-03-06T17:53:32Z |
Greetings,

When I compare two providers using the vce.compare task, it does not seem to be able to locate the two objects I'm trying to compare.
For example, I have two providers loaded and each has a single WebSphere.Cell, but the compare fails with a message:

Invalid object selection criteria specifed. The object selection criteria must yield exactly 2 objects of the the same type.

Other than comparing WebSphere.Provider, it doesn't seem to find two of any of the objects I wish to compare. This may be my error,
but I also discovered problems searching that seem to indicate otherwise:

When I tried using a the vce.search task to see if I could find them that way, the search doesn't return any results (in VCE it does).
In fact, I can't get the search in the vce.search to task to return results at all, and if searchPropertyNames and/or searchPropertyValues is
turned on, I will get a NullPointerException (depending on the configuration data).

I have tried this with two different workspaces (2 different sets of 2 providers each) and the problems exists on both.

Any help greatly appreciated!

Neil
I have attached the configuration, workspace, build-file, and logs of the various search tests and
here is the log for the vce.search test that generates an NPE. I never get any results back from any of my searches though.:

createWorkspace:
echo Creating workspace Srv01-Srv02-Diff.vce
vce.createWorkspace File model 'Srv01-Srv02-Diff' exists -- overwriting it.

createProviders:
echo Creating providers from C:\TEMP\VCETOOLS\vce\wasconfigs\AppSrv01.configuration using provider1
vce.createProviders Creating provider at relative path ${workspace.path}/wasconfigs/AppSrv01.configuration
vce.createProviders Creating provider at relative path ${workspace.path}/wasconfigs/AppSrv02.configuration

searchTest:
echo Comparing Providers with searchPropertyNames=true

BUILD FAILED

C:\TEMP\VCETOOLS\vce\was-config-diff.xml:15: The following error occurred while executing this line:
C:\TEMP\VCETOOLS\vce\was-config-diff.xml:56: java.lang.NullPointerException
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:706)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:584)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.ant.core.AntRunner.run(AntRunner.java:494)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Caused by: C:\TEMP\VCETOOLS\vce\was-config-diff.xml:56: java.lang.NullPointerException
at com.ibm.adt.vce.automation.ant.tasks.SearchTask.execute(SearchTask.java:65)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
at org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
... 30 more
Caused by: java.lang.NullPointerException
at com.ibm.adt.topoview.model.impl.TopologyObjectImpl.getFQN(TopologyObjectImpl.java:541)
at com.ibm.adt.vce.automation.ant.tasks.SearchTask.doExecute(SearchTask.java:103)
at com.ibm.adt.vce.automation.ant.tasks.SearchTask.execute(SearchTask.java:60)
... 39 more
  • Nested Exception ---
C:\TEMP\VCETOOLS\vce\was-config-diff.xml:56: java.lang.NullPointerException
at com.ibm.adt.vce.automation.ant.tasks.SearchTask.execute(SearchTask.java:65)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
at org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:706)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:584)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.ant.core.AntRunner.run(AntRunner.java:494)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Caused by: java.lang.NullPointerException
at com.ibm.adt.topoview.model.impl.TopologyObjectImpl.getFQN(TopologyObjectImpl.java:541)
at com.ibm.adt.vce.automation.ant.tasks.SearchTask.doExecute(SearchTask.java:103)
at com.ibm.adt.vce.automation.ant.tasks.SearchTask.execute(SearchTask.java:60)
... 39 more
  • Nested Exception ---
java.lang.NullPointerException
at com.ibm.adt.topoview.model.impl.TopologyObjectImpl.getFQN(TopologyObjectImpl.java:541)
at com.ibm.adt.vce.automation.ant.tasks.SearchTask.doExecute(SearchTask.java:103)
at com.ibm.adt.vce.automation.ant.tasks.SearchTask.execute(SearchTask.java:60)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
at org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:706)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:584)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.ant.core.AntRunner.run(AntRunner.java:494)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Updated on 2009-03-06T21:18:35Z at 2009-03-06T21:18:35Z by bdelima
  • bdelima
    bdelima
    124 Posts

    Re: Problems with vce.compare and vce.search ANT tasks.

    ‏2009-03-06T21:18:35Z  
    Hi Niel,

    The problem you are seeing with the search I believe was fixed since the last release. There should be a new VCE update posting this afternoon that should take care of this problem.

    Regarding the selection criteria for compare, you have to specify the tree structure in order for it to take. For example -

    <vce.objset type="WebSphere.Provider" include="false">
    <vce.objset type="WebSphere.Cell"/>
    </vce.objset>

    should select all objects in the workspace of type "WebSphere.Cell".