>From what I see in the code, the issue is for the missing ZAPDriver 
structure, which should be passed within the "zaproxy" structure. Due to 
whatever reason, in your case this entire structure went to the top level 
of JSON, likely because of the "table" tag in the entry (Jenkins UI is 
table-based and hence it does not like tables much).

The general recommendation is to avoid using any custom HTML tags within 
"f:entry".

For the layout you want to achieve you will likely need to customize 
classes, e.g. by Javascript. Or maybe a custom Jelly control.

вторник, 11 апреля 2017 г., 7:14:20 UTC+2 пользователь JordanGS написал:
>
> I've dumbed it down even more.
>
> Current (working): 
> https://github.com/jenkinsci/zap-plugin/blob/development/src/main/resources/org/jenkinsci/plugins/zap/ZAPDriver/config.jelly#L252-L255
>
> <f:entry title="${%Title}" field="exportreportTitle">
>   <f:textbox />
> </f:entry>
>
> What i want though, is the following:
>
> <f:entry>
>   <table width="100%">
>     <tr>
>       <td>${%Title}</td>
>       <td><f:textbox field="exportreportTitle"/></td>
>     </tr>
>   </table>
> </f:entry>
>
> The reason is that i want multiple rows/cols like in the picture above. 
> Yet when i made this SIMPLE change, i get the following error:
>
>
> The data bound constructor: 
> https://github.com/jenkinsci/zap-plugin/blob/development/src/main/resources/org/jenkinsci/plugins/zap/ZAPDriver/config.jelly#L252-L255
>
> Full project: https://github.com/jenkinsci/zap-plugin/
>
> If anyone can spare 10-15minutes to take a look, maybe you'll see what i 
> missed. Thanks.
>
>
> java.lang.NullPointerException
>         at org.jenkinsci.plugins.zap.ZAPBuilder.<init>(ZAPBuilder.java:94)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method)
>         at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>         at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
>         at 
> org.kohsuke.stapler.RequestImpl.invokeConstructor(RequestImpl.java:529)
>         at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:783)
>         at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83)
>         at 
> org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:678)
>         at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478)
>         at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474)
>         at hudson.model.Descriptor.newInstance(Descriptor.java:591)
>
> Caused: java.lang.Error: Failed to instantiate class org.jenkinsci.plugins
> .zap.ZAPBuilder from {"zapHost":"127.0.0.1","zapPort":"9090",
> "startZAPFirst":false,"jdk":"InheritFromJob","autoInstall":"true",
> "toolUsed":"","zapHome":"ZAPROXY_HOME","timeout":"60","zapSettingsDir":"",
> "autoLoadSession":"true","loadSession":"","sessionFilename":"",
> "removeExternalSites":false,"internalSites":"","contextName":"",
> "includedURL":"","excludedURL":"","authMode":false,"username":"user1",
> "password":"pwd1","loggedInIndicator":"","authMethod":"FORM_BASED",
> "loginURL":"","usernameParameter":"","passwordParameter":"",
> "extraPostData":"","authScript":"","targetURL":"","spiderScanURL":false,
> "spiderScanRecurse":true,"spiderScanSubtreeOnly":false,
> "spiderScanMaxChildrenToCrawl":"0","ajaxSpiderURL":false,
> "ajaxSpiderInScopeOnly":false,"activeScanURL":false,"activeScanPolicy":"",
> "activeScanRecurse":true,"generateReports":false,"deleteReports":false,
> "reportFilename":"JENKINS_ZAP_VULNERABILITY_REPORT","selectedReportMethod"
> :"DEFAULT_REPORT","selectedReportFormats":[],"selectedExportFormats":[],
> "exportreportTitle":"","exportreportBy":"","exportreportFor":"",
> "exportreportScanDate":"","exportreportReportDate":"",
> "exportreportScanVersion":"","exportreportReportVersion":"",
> "exportreportReportDescription":"","exportreportAlertHigh":true,
> "exportreportAlertMedium":true,"exportreportAlertLow":true,
> "exportreportAlertInformational":true,"exportreportCWEID":true,
> "exportreportWASCID":true,"exportreportDescription":true,
> "exportreportOtherInfo":true,"exportreportSolution":true,
> "exportreportReference":true,"exportreportRequestHeader":false,
> "exportreportResponseHeader":false,"exportreportRequestBody":false,
> "exportreportResponseBody":false,"jiraCreate":false,"jiraProjectKey":"",
> "jiraAssignee":"","jiraAlertHigh":false,"jiraAlertMedium":false,
> "jiraAlertLow":false,"jiraFilterIssuesByResourceType":false,
> "stapler-class":"org.jenkinsci.plugins.zap.ZAPBuilder","$class":
> "org.jenkinsci.plugins.zap.ZAPBuilder"}
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/759262d5-1af9-4a03-913f-37883885738f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to