NPE when running "scm create snapshot"
Hi,
I'm trying to create a snapshot using the command line. This operation works fine via the GUI. The command I'm using is:
sstone@sagitta:~/temp$ scm create snapshot -n 20091123-1402 -r <repository> -u <user> -P <password> "<stream>"
I get the following NPE:
Unexpected exception
java.lang.NullPointerException
at com.ibm.team.scm.client.internal.WorkspaceConnection.createBaselineSet(WorkspaceConnection.java:3264)
at com.ibm.team.filesystem.cli.client.internal.createcommand.CreateSnapshotCmd.run(CreateSnapshotCmd.java:96)
at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.run(Unknown Source)
at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.doStart(Unknown Source)
at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.run(Unknown Source)
at com.ibm.team.filesystem.cli.core.internal.Application.start(Unknown Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at org.eclipse.equinox.launcher.Main.invokeFramework(Unknown Source)
at org.eclipse.equinox.launcher.Main.basicRun(Unknown Source)
at org.eclipse.equinox.launcher.Main.run(Unknown Source)
Scm:
An error has occurred. See the log file
/home/sstone/.jazz-scm/scratch/0/.metadata/.log.
sstone@sagitta:~/temp$ scm version
com.ibm.team.filesystem.cli.client, version 2.0.1.I200909082015
Subcommands: load login logout create create/workspace create/baseline create/changeset create/snapshot create/component changeset changeset/comment changeset/close changeset/relocate changeset/associate changeset/disassociate changeset/suspend changeset/resume daemon daemon/start daemon/stop change-target change-target/workspace change-target/component list list/workspaces list/projectareas list/teamareas list/streams list/components list/remotefiles list/credentials list/daemons list/snapshots list/locks list/properties checkin accept deliver status conflicts resolve move lastmod share discard undo compare history diff repair workspace workspace/add-components workspace/remove-components property property/list property/get property/set lock lock/list lock/acquire lock/release annotate
com.ibm.team.filesystem.cli.tools, version 2.0.1.I200909031824
Subcommands: tools.verify tools.validate tools.echo.stdin tools.configvalue
com.ibm.team.filesystem.cli.core, version 2.0.1.I200909101716
Subcommands: help version
Does anyone have any ideas on how to resolve this?
Cheers,
Simon
Accepted answer
I had already done so:
https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/100100
It is marked for 2.0.0.2
Seems we were working on the same thing at the same time... I opened
Defect 100208 for the same think.
2 other answers
I would say that a NPE is always a valid work item candidate
Please open a new work item on jazz.net, against SCM component
Thanks.
Eric.
sstone1 a crit :
Hi,
I'm trying to create a snapshot using the command line. This operation
works fine via the GUI. The command I'm using is:
sstone@sagitta:~/temp$ scm create snapshot -n 20091123-1402 -r
repository> -u <user> -P <password
"<stream>"
I get the following NPE:
Unexpected exception
java.lang.NullPointerException
at
com.ibm.team.scm.client.internal.WorkspaceConnection.createBaselineSet(WorkspaceConnection.java:3264)
at
com.ibm.team.filesystem.cli.client.internal.createcommand.CreateSnapshotCmd.run(CreateSnapshotCmd.java:96)
at
com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.run(Unknown
Source)
at
com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.doStart(Unknown
Source)
at
com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.run(Unknown
Source)
at
com.ibm.team.filesystem.cli.core.internal.Application.start(Unknown
Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Unknown
Source)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown
Source)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unknown
Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown
Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown
Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at org.eclipse.equinox.launcher.Main.invokeFramework(Unknown Source)
at org.eclipse.equinox.launcher.Main.basicRun(Unknown Source)
at org.eclipse.equinox.launcher.Main.run(Unknown Source)
Scm:
An error has occurred. See the log file
/home/sstone/.jazz-scm/scratch/0/.metadata/.log.
sstone@sagitta:~/temp$ scm version
com.ibm.team.filesystem.cli.client, version 2.0.1.I200909082015
Subcommands: load login logout create create/workspace
create/baseline create/changeset create/snapshot create/component
changeset changeset/comment changeset/close changeset/relocate
changeset/associate changeset/disassociate changeset/suspend
changeset/resume daemon daemon/start daemon/stop change-target
change-target/workspace change-target/component list list/workspaces
list/projectareas list/teamareas list/streams list/components
list/remotefiles list/credentials list/daemons list/snapshots
list/locks list/properties checkin accept deliver status conflicts
resolve move lastmod share discard undo compare history diff repair
workspace workspace/add-components workspace/remove-components
property property/list property/get property/set lock lock/list
lock/acquire lock/release annotate
com.ibm.team.filesystem.cli.tools, version 2.0.1.I200909031824
Subcommands: tools.verify tools.validate tools.echo.stdin
tools.configvalue
com.ibm.team.filesystem.cli.core, version 2.0.1.I200909101716
Subcommands: help version
Does anyone have any ideas on how to resolve this?
Cheers,
Simon
https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/100100
It is marked for 2.0.0.2
On Tue, 24 Nov 2009 04:28:05 -0500, Eric Jodet <eric_jodet>
wrote:
Simon,
I would say that a NPE is always a valid work item candidate
Please open a new work item on jazz.net, against SCM component
Thanks.
Eric.
sstone1 a crit :
Hi,
I'm trying to create a snapshot using the command line. This operation
works fine via the GUI. The command I'm using is:
sstone@sagitta:~/temp$ scm create snapshot -n 20091123-1402 -r
repository> -u <user> -P <password
"<stream>"
I get the following NPE:
Unexpected exception
java.lang.NullPointerException
at
com.ibm.team.scm.client.internal.WorkspaceConnection.createBaselineSet(WorkspaceConnection.java:3264)
at
com.ibm.team.filesystem.cli.client.internal.createcommand.CreateSnapshotCmd.run(CreateSnapshotCmd.java:96)
at
com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.run(Unknown
Source)
at
com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.doStart(Unknown
Source)
at
com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.run(Unknown
Source)
at
com.ibm.team.filesystem.cli.core.internal.Application.start(Unknown
Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Unknown
Source)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown
Source)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unknown
Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown
Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown
Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at org.eclipse.equinox.launcher.Main.invokeFramework(Unknown Source)
at org.eclipse.equinox.launcher.Main.basicRun(Unknown Source)
at org.eclipse.equinox.launcher.Main.run(Unknown Source)
Scm:
An error has occurred. See the log file
/home/sstone/.jazz-scm/scratch/0/.metadata/.log.
sstone@sagitta:~/temp$ scm version
com.ibm.team.filesystem.cli.client, version 2.0.1.I200909082015
Subcommands: load login logout create create/workspace
create/baseline create/changeset create/snapshot create/component
changeset changeset/comment changeset/close changeset/relocate
changeset/associate changeset/disassociate changeset/suspend
changeset/resume daemon daemon/start daemon/stop change-target
change-target/workspace change-target/component list list/workspaces
list/projectareas list/teamareas list/streams list/components
list/remotefiles list/credentials list/daemons list/snapshots
list/locks list/properties checkin accept deliver status conflicts
resolve move lastmod share discard undo compare history diff repair
workspace workspace/add-components workspace/remove-components
property property/list property/get property/set lock lock/list
lock/acquire lock/release annotate
com.ibm.team.filesystem.cli.tools, version 2.0.1.I200909031824
Subcommands: tools.verify tools.validate tools.echo.stdin
tools.configvalue
com.ibm.team.filesystem.cli.core, version 2.0.1.I200909101716
Subcommands: help version
Does anyone have any ideas on how to resolve this?
Cheers,
Simon
--