It's all about the answers!

Ask a question

NPE when running "scm create snapshot"


Simon Stone (11) | asked Nov 23 '09, 9:17 a.m.
edited Oct 10 '17, 4:55 p.m. by David Lafreniere (4.6k7)

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


permanent link
Jose Miguel Ordax Cassa (2.4k2125100) | answered Nov 24 '09, 11:53 a.m.
On 24-Nov-09 5:12 PM, Andrew Hoo wrote:
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.
David Lafreniere selected this answer as the correct answer

2 other answers



permanent link
Eric Jodet (6.3k5108120) | answered Nov 24 '09, 4:38 a.m.
JAZZ DEVELOPER
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&gt; -u &lt;user&gt; -P &lt;password
&quot;&lt;stream&gt;&quot;

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

permanent link
Andrew Hoo (1.0k1) | answered Nov 24 '09, 11:23 a.m.
JAZZ DEVELOPER
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

On Tue, 24 Nov 2009 04:28:05 -0500, Eric Jodet &lt;eric_jodet&gt;
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&gt; -u &lt;user&gt; -P &lt;password
&quot;&lt;stream&gt;&quot;
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



--

Your answer


Register or to post your answer.