[JIRA] [workflow-plugin] (JENKINS-26191) Empty workflow configuration screen

2014-12-22 Thread h...@qint.de (JIRA)














































Hans Marggraff
 created  JENKINS-26191


Empty workflow configuration screen















Issue Type:


Bug



Assignee:


Jesse Glick



Attachments:


jenkins-no-workflow.PNG



Components:


workflow-plugin



Created:


22/Dec/14 11:17 AM



Description:


I installed all plugins named workflow-xx (was that right??)
and trued to define a workflow job.
However the configuration screen does not allow me to enter a workflow definition.
When I press save I get a NPE.
So I cannot use the plugin at all.

java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
	at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:46)
	at org.kohsuke.stapler.Function$InterceptedFunction.invoke(Function.java:399)
	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
-

Caused by: java.lang.NullPointerException
	at org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval.hash(ScriptApproval.java:314)
	at org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval.configuring(ScriptApproval.java:357)
	at org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition.init(CpsFlowDefinition.java:76)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
	at org.kohsuke.stapler.RequestImpl.invokeConstructor(RequestImpl.java:447)
	at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:699)
	at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:81)
	at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:596)
	at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:400)
	at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:396)
	at org.jenkinsci.plugins.workflow.job.WorkflowJob.submit(WorkflowJob.java:156)
	at hudson.model.Job.doConfigSubmit(Job.java:1188)
	... 83 more






Environment:


Linux, Jetty, Jenkins 1.595, workflow plugin 1.1




Project:


Jenkins



Labels:


workflow




Priority:


Blocker



Reporter:


Hans Marggraff

























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [workflow-plugin] (JENKINS-26191) Empty workflow configuration screen

2014-12-22 Thread h...@qint.de (JIRA)














































Hans Marggraff
 updated  JENKINS-26191


Empty workflow configuration screen
















Change By:


Hans Marggraff
(22/Dec/14 12:32 PM)




Description:


Iinstalledallpluginsnamedworkflow-xx(wasthatright??)and
trued
tried
todefineaworkflowjob.Howevertheconfigurationscreendoesnotallowmetoenteraworkflowdefinition.WhenIpresssaveIgetaNPE.SoIcannotusethepluginatall.java.lang.reflect.InvocationTargetException	atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)	atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	atjava.lang.reflect.Method.invoke(Method.java:601)	atorg.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)	atorg.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:46)	atorg.kohsuke.stapler.Function$InterceptedFunction.invoke(Function.java:399)	atorg.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)-Causedby:java.lang.NullPointerException	atorg.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval.hash(ScriptApproval.java:314)	atorg.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval.configuring(ScriptApproval.java:357)	atorg.jenkinsci.plugins.workflow.cps.CpsFlowDefinition.init(CpsFlowDefinition.java:76)	atsun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeMethod)	atsun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)	atsun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)	atjava.lang.reflect.Constructor.newInstance(Constructor.java:525)	atorg.kohsuke.stapler.RequestImpl.invokeConstructor(RequestImpl.java:447)	atorg.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:699)	atorg.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:81)	atorg.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:596)	atorg.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:400)	atorg.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:396)	atorg.jenkinsci.plugins.workflow.job.WorkflowJob.submit(WorkflowJob.java:156)	athudson.model.Job.doConfigSubmit(Job.java:1188)	...83more



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [workflow-plugin] (JENKINS-26191) Empty workflow configuration screen

2014-12-22 Thread jgl...@cloudbees.com (JIRA)















































Jesse Glick
 resolved  JENKINS-26191 as Cannot Reproduce


Empty workflow configuration screen
















Here script is null in the CpsFlowDefinition, whereas it should be at worst an empty string. But I think this is a red herring. From the screenshot I gather that the configuration of the definition, including the script field, did not appear at all for some reason. Most likely there is some error either in your Jenkins logs or in the browser _javascript_ console which would explain why the configuration form is broken.

Did you try restarting Jenkins after installing the Workflow plugin? Currently some features are known not to work after an initial dynamic install (but I have not heard of this problem).

At any rate, I tried running 1.595 on a fresh $JENKINS_HOME and installing Workflow: Aggregator (which pulls in its dependencies), and was able to configure and save a new flow.





Change By:


Jesse Glick
(22/Dec/14 4:49 PM)




Status:


Open
Resolved





Resolution:


CannotReproduce



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.