ERROR: java.io.IOException: Failed to install ZAP_2.5.0_Linux.tar.gz

2016-07-19 Thread Prakhash Sivakumar
Hi all,

I'm using Jenkins 1.626, When I try to install ZAP by pointing the 
repository URL in the zaproxy plugin I'm getting the following error

Unpacking 
http://github.com/zaproxy/zaproxy/releases/download/2.5.0/ZAP_2.5.0_Linux.tar.gz
 to 
/build/jenkins-home/tools/com.cloudbees.jenkins.plugins.customtools.CustomTool/ZAP_2.5.0
 on Jenkins
ERROR: java.io.IOException: Failed to install 
http://github.com/zaproxy/zaproxy/releases/download/2.5.0/ZAP_2.5.0_Linux.tar.gz
 to 
/build/jenkins-home/tools/com.cloudbees.jenkins.plugins.customtools.CustomTool/ZAP_2.5.0
at hudson.FilePath.installIfNecessaryFrom(FilePath.java:833)
at 
hudson.tools.ZipExtractionInstaller.performInstallation(ZipExtractionInstaller.java:79)
at 
hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68)
at 
hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:108)
at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206)
at 
com.cloudbees.jenkins.plugins.customtools.CustomTool.forNode(CustomTool.java:154)
at 
com.cloudbees.jenkins.plugins.customtools.CustomTool.forNode(CustomTool.java:59)
at 
fr.novia.zaproxyplugin.ZAProxy.retrieveZapHomeWithToolInstall(ZAProxy.java:739)
at fr.novia.zaproxyplugin.ZAProxy.checkParams(ZAProxy.java:797)
at fr.novia.zaproxyplugin.ZAProxy.startZAP(ZAProxy.java:856)
at 
fr.novia.zaproxyplugin.ZAProxyBuilder.perform(ZAProxyBuilder.java:189)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.build(MavenModuleSetBuild.java:905)
at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:856)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
at hudson.model.Run.execute(Run.java:1741)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:525)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:408)
Caused by: java.io.IOException: Failed to unpack 
http://github.com/zaproxy/zaproxy/releases/download/2.5.0/ZAP_2.5.0_Linux.tar.gz
 (0 bytes read of total 0)
at hudson.FilePath.installIfNecessaryFrom(FilePath.java:827)
... 19 more
Caused by: java.io.IOException: Failed to extract input stream
at hudson.FilePath.readFromTar(FilePath.java:2299)
at hudson.FilePath.access$400(FilePath.java:191)
at hudson.FilePath$10.invoke(FilePath.java:721)
at hudson.FilePath$10.invoke(FilePath.java:719)
at hudson.FilePath.act(FilePath.java:991)
at hudson.FilePath.act(FilePath.java:969)
at hudson.FilePath.untarFrom(FilePath.java:719)
at hudson.FilePath.installIfNecessaryFrom(FilePath.java:825)
... 19 more
Caused by: java.io.EOFException: Unexpected end of ZLIB input stream
at 
com.jcraft.jzlib.InflaterInputStream.fill(InflaterInputStream.java:186)
at 
com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:106)
at org.apache.tools.tar.TarBuffer.readBlock(TarBuffer.java:257)
at org.apache.tools.tar.TarBuffer.readRecord(TarBuffer.java:223)
at 
hudson.org.apache.tools.tar.TarInputStream.getNextEntry(TarInputStream.java:228)
at hudson.FilePath.readFromTar(FilePath.java:2276)
... 26 more



How to resolve this issue


Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/20445478-67d2-4baa-aa1d-78c14ee15a48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Getting java.lang.OutOfMemoryError: Java heap space

2016-07-14 Thread Prakhash Sivakumar
Hi Keil,
Sorry for the late response.

I got it done. Thanks, I was implemented the JiraIssueCreaterAPI which 
loads all the existing Jira to memory & do the processing, It encountered a 
memory leakage issue.

Thanks


On Tuesday, July 12, 2016 at 4:38:33 PM UTC+5:30, Werner Keil wrote:
>
> Hi,
>
> The link you mentioned helps if you run Jenkins "standalone" meaning with 
> its own app server (usually installed via apt-get or similar) 
> I used it and know it works for this Jenkins setup.
>
> If you deployed the Jenkins WAR into Tomcat, you have to adjust memory 
> there, see e.g. the Tomcat Wiki: https://wiki.apache.org/tomcat/FAQ/Memory
>
> I don't know all the various Jenkins plugins out there, but 
>
> JiraIssueCreaterAPI
>
> in org.zaproxy to me does not sound like it has anything to do with 
> Jenkins at all. Are you running JIRA or Confluence on that same Tomcat?
>
> Regards,
> Werner Keil
>
> Am Dienstag, 12. Juli 2016 04:56:15 UTC+2 schrieb Prakhash Sivakumar:
>>
>> Hi all,
>> I'm using Jenkins which is deployed on tomcat server. I'm getting the 
>> below error when running a task in Jenkins. I have searched for the 
>> possibilities which are mentioned on [1] , but I couldn't find any Jenkins 
>> related configuration files mentioned. Please provide suggestions to handle 
>> this issue
>>
>>
>> [1] 
>> https://support.cloudbees.com/hc/en-us/articles/209715698-How-to-add-Java-arguments-to-Jenkins
>>
>> 45554 [ZAP-ProxyThread-5] ERROR org.zaproxy.zap.ZAP$UncaughtExceptionLogger  
>> - Exception in thread "ZAP-ProxyThread-5"
>> java.lang.OutOfMemoryError: Java heap space
>>  at java.util.Arrays.copyOf(Arrays.java:3332)
>>  at 
>> java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:137)
>>  at 
>> java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:121)
>>  at 
>> java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:569)
>>  at java.lang.StringBuilder.append(StringBuilder.java:190)
>>  at 
>> com.sun.jersey.core.util.ReaderWriter.readFromAsString(ReaderWriter.java:172)
>>  at 
>> com.sun.jersey.core.util.ReaderWriter.readFromAsString(ReaderWriter.java:157)
>>  at 
>> com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider.readFromAsString(AbstractMessageReaderWriterProvider.java:114)
>>  at 
>> com.sun.jersey.core.impl.provider.entity.StringProvider.readFrom(StringProvider.java:73)
>>  at 
>> com.sun.jersey.core.impl.provider.entity.StringProvider.readFrom(StringProvider.java:58)
>>  at 
>> com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:553)
>>  at 
>> com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:506)
>>  at 
>> org.zaproxy.zap.extension.wso2jiraissuecreator.JiraRestClient.invokeGetMethod(JiraRestClient.java:43)
>>  at 
>> org.zaproxy.zap.extension.wso2jiraissuecreator.XmlDomParser.getAllOpenIssues(XmlDomParser.java:327)
>>  at 
>> org.zaproxy.zap.extension.wso2jiraissuecreator.XmlDomParser.parseXmlDoc(XmlDomParser.java:57)
>>  at 
>> org.zaproxy.zap.extension.wso2jiraissuecreator.ExtensionJiraIssueCreater.createJiraIssues(ExtensionJiraIssueCreater.java:215)
>>  at 
>> org.zaproxy.zap.extension.wso2jiraissuecreator.JiraIssueCreaterAPI.handleApiAction(JiraIssueCreaterAPI.java:60)
>>  at org.zaproxy.zap.extension.api.API.handleApiRequest(Unknown Source)
>>  at org.parosproxy.paros.core.proxy.ProxyThread.processHttp(Unknown 
>> Source)
>>  at org.parosproxy.paros.core.proxy.ProxyThread.run(Unknown Source)
>>  at java.lang.Thread.run(Thread.java:745)
>>
>>
>>
>> Thanks
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/29687db8-ae17-4335-8877-f2b1147e9c44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Getting java.lang.OutOfMemoryError: Java heap space

2016-07-11 Thread Prakhash Sivakumar
Hi all,
I'm using Jenkins which is deployed on tomcat server. I'm getting the below 
error when running a task in Jenkins. I have searched for the 
possibilities which are mentioned on [1] , but I couldn't find any Jenkins 
related configuration files mentioned. Please provide suggestions to handle 
this issue


[1] 
https://support.cloudbees.com/hc/en-us/articles/209715698-How-to-add-Java-arguments-to-Jenkins

45554 [ZAP-ProxyThread-5] ERROR org.zaproxy.zap.ZAP$UncaughtExceptionLogger  - 
Exception in thread "ZAP-ProxyThread-5"
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3332)
at 
java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:137)
at 
java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:121)
at 
java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:569)
at java.lang.StringBuilder.append(StringBuilder.java:190)
at 
com.sun.jersey.core.util.ReaderWriter.readFromAsString(ReaderWriter.java:172)
at 
com.sun.jersey.core.util.ReaderWriter.readFromAsString(ReaderWriter.java:157)
at 
com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider.readFromAsString(AbstractMessageReaderWriterProvider.java:114)
at 
com.sun.jersey.core.impl.provider.entity.StringProvider.readFrom(StringProvider.java:73)
at 
com.sun.jersey.core.impl.provider.entity.StringProvider.readFrom(StringProvider.java:58)
at 
com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:553)
at 
com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:506)
at 
org.zaproxy.zap.extension.wso2jiraissuecreator.JiraRestClient.invokeGetMethod(JiraRestClient.java:43)
at 
org.zaproxy.zap.extension.wso2jiraissuecreator.XmlDomParser.getAllOpenIssues(XmlDomParser.java:327)
at 
org.zaproxy.zap.extension.wso2jiraissuecreator.XmlDomParser.parseXmlDoc(XmlDomParser.java:57)
at 
org.zaproxy.zap.extension.wso2jiraissuecreator.ExtensionJiraIssueCreater.createJiraIssues(ExtensionJiraIssueCreater.java:215)
at 
org.zaproxy.zap.extension.wso2jiraissuecreator.JiraIssueCreaterAPI.handleApiAction(JiraIssueCreaterAPI.java:60)
at org.zaproxy.zap.extension.api.API.handleApiRequest(Unknown Source)
at org.parosproxy.paros.core.proxy.ProxyThread.processHttp(Unknown 
Source)
at org.parosproxy.paros.core.proxy.ProxyThread.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)



Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/965d5774-d92e-437f-a9a3-ac00346bcd30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to include post steps in jenkins for OWASP Dependency-Check

2016-06-01 Thread Prakhash Sivakumar
Hi all,
I'm following this 

 tutorial 
to use OWASP Dependency-Check plugin as Jenkins plugin, I'm not clear about 
adding post steps and post build steps which are mentioned in this example, 
do I need to configure the OWASP Dependency-Check plugin for every job I 
work with ?

it would be great if anyone could suggest me any material where I can find 
proper documentation on this integration.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/fceb2305-f64f-4fe1-87ac-59f54499fcfd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.