New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE: scm inputs for import action when there are items which do not have tracked jobs #99

Closed
gschueler opened this Issue May 16, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@gschueler
Member

gschueler commented May 16, 2017

from #62 (comment)

Hi guys. This is actually even more of an issue when trying to deploy a new instance of Rundeck from an already populated git repo.

We are able to setup all the config needed but because of this issue we can not retrieve the items that need to be synced.

Import remote Changes: Import the modifications to Rundeck
Fields:

Items:
java.lang.NullPointerException
	at org.rundeck.client.api.model.ScmImportItem.toMap(ScmImportItem.java:38)
	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
	at org.rundeck.client.tool.commands.projects.SCM.inputs(SCM.java:254)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.simplifyops.toolbelt.ToolBelt$MethodInvoker.run(ToolBelt.java:778)
	at com.simplifyops.toolbelt.ToolBelt$CommandSet.runCommand(ToolBelt.java:492)
	at com.simplifyops.toolbelt.ToolBelt$CommandSet.run(ToolBelt.java:359)
	at com.simplifyops.toolbelt.ToolBelt$CommandSet.runCommand(ToolBelt.java:492)
	at com.simplifyops.toolbelt.ToolBelt$CommandSet.run(ToolBelt.java:359)
	at com.simplifyops.toolbelt.ToolBelt$CommandSet.runCommand(ToolBelt.java:492)
	at com.simplifyops.toolbelt.ToolBelt$CommandSet.run(ToolBelt.java:359)
	at com.simplifyops.toolbelt.ToolBelt$CommandSet.runMain(ToolBelt.java:322)
	at org.rundeck.client.tool.Main.main(Main.java:56)

@gschueler gschueler added the bug label May 16, 2017

@gschueler gschueler closed this in 5a42e57 May 16, 2017

gschueler added a commit that referenced this issue May 16, 2017

Merge pull request #100 from rundeck/issue/99
Fix #99: npe when scm import inputs tracked item job is null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment