Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes


Accepted answer

Permanent link
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

0 votes


2 other answers

Permanent link
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

0 votes


Permanent link
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



--

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 1,202
× 74
× 1

Question asked: Nov 23 '09, 9:17 a.m.

Question was seen: 8,046 times

Last updated: Oct 10 '17, 4:55 p.m.

Confirmation Cancel Confirm