ant package-and-check command is not executing successfully.

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

ant package-and-check command is not executing successfully.

Sanjay Chaurasia
Hi Team,

I am trying to run command ant package-and-check under the folder Jmeter-trunk  (downloaded source code from git)
but getting some error mentioned below while running the command.

This task requires checkstyle, please run download_checkstyle target to download checkstyle.

Please provide solution to resolve the same.

Regards,
Sanjay Chaurasia

Reply | Threaded
Open this post in threaded view
|

Re: ant package-and-check command is not executing successfully.

shettyd
I have not checked but the error message is telling you to run the ant
target " download_checkstyle "
ant -buildfile <thebuildfile> download_checkstyle
did that not work ?

On Mon, Jan 28, 2019 at 3:04 AM Sanjay Chaurasia <
[hidden email]> wrote:

> Hi Team,
>
> I am trying to run command ant package-and-check under the folder
> Jmeter-trunk  (downloaded source code from git)
> but getting some error mentioned below while running the command.
>
> This task requires checkstyle, please run download_checkstyle target to
> download checkstyle.
>
> Please provide solution to resolve the same.
>
> Regards,
> Sanjay Chaurasia
>
>
Reply | Threaded
Open this post in threaded view
|

RE: ant package-and-check command is not executing successfully.

Sanjay Chaurasia
Thank you for your quick reply Deepak.

Yes, I tried this by executing command "ant download_checkstyle"  and  "ant download_checkstyle target"
But It's not working as well and throwing below errors.

C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk (1)\jmeter-trunk>ant download_che
ckstyle
Buildfile: C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk (1)\jmeter-trunk\build
.xml

download_checkstyle:

_process_checkstyle_jars:

_check_exists:

_check_jarfile:
     [echo] Checking checkstyle-8.8-all.jar
     [echo] Deleting checkstyle-8.8-all.jar (excluding checkstyle-8.8-all.jar)

setproxy:

_get_jarfile:
     [echo] Fetching: lib/opt/checkstyle-8.8-all.jar
      [get] Getting: https://downloads.sourceforge.net/checkstyle/checkstyle/8.8
/checkstyle-8.8-all.jar?ts=1548660102270&use_mirror=autoselect/checkstyle-8.8-al
l.jar
      [get] To: C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk (1)\jmeter-trunk\
build\checkstyle-8.8-all.jar
      [get] Error getting https://downloads.sourceforge.net/checkstyle/checkstyl
e/8.8/checkstyle-8.8-all.jar?ts=1548660102270&use_mirror=autoselect/checkstyle-8
.8-all.jar to C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk (1)\jmeter-trunk\bu
ild\checkstyle-8.8-all.jar

BUILD FAILED
C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk (1)\jmeter-trunk\build.xml:3597:
The following error occurred while executing this line:
C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk (1)\jmeter-trunk\build.xml:3541:
The following error occurred while executing this line:
C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk (1)\jmeter-trunk\build.xml:3339:
The following error occurred while executing this line:
C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk (1)\jmeter-trunk\build.xml:3383:
The following error occurred while executing this line:
C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk (1)\jmeter-trunk\build.xml:3413:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderExce
ption: unable to find valid certification path to requested target
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
        at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)
        at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
        at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
        at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.
java:1509)
        at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.jav
a:216)
        at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
        at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
        at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
        at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.
java:1375)
        at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403
)
        at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387
)
        at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:
559)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
(AbstractDelegateHttpsURLConnection.java:185)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLCon
nectionImpl.java:153)
        at org.apache.tools.ant.taskdefs.Get$GetThread.openConnection(Get.java:7
37)
        at org.apache.tools.ant.taskdefs.Get$GetThread.get(Get.java:650)
        at org.apache.tools.ant.taskdefs.Get$GetThread.run(Get.java:640)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed:
 sun.security.provider.certpath.SunCertPathBuilderException: unable to find vali
d certification path to requested target
        at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:387)
        at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.jav
a:292)
        at sun.security.validator.Validator.validate(Validator.java:260)
        at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.j
ava:324)
        at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerIm
pl.java:229)
        at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustMan
agerImpl.java:124)
        at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.
java:1491)
        ... 13 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to
 find valid certification path to requested target
        at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBu
ilder.java:141)
        at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCert
PathBuilder.java:126)
        at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
        at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
        ... 19 more

Total time: 2 seconds


Please let me know if I am making some mistakes while executing the command.


-----Original Message-----
From: Deepak Shetty [mailto:[hidden email]]
Sent: Tuesday, January 29, 2019 2:39 AM
To: JMeter Users List <[hidden email]>
Subject: Re: ant package-and-check command is not executing successfully.

I have not checked but the error message is telling you to run the ant target " download_checkstyle "
ant -buildfile <thebuildfile> download_checkstyle did that not work ?

On Mon, Jan 28, 2019 at 3:04 AM Sanjay Chaurasia < [hidden email]> wrote:

> Hi Team,
>
> I am trying to run command ant package-and-check under the folder
> Jmeter-trunk  (downloaded source code from git) but getting some error
> mentioned below while running the command.
>
> This task requires checkstyle, please run download_checkstyle target
> to download checkstyle.
>
> Please provide solution to resolve the same.
>
> Regards,
> Sanjay Chaurasia
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: ant package-and-check command is not executing successfully.

sebb-2-2
On Tue, 29 Jan 2019 at 03:22, Sanjay Chaurasia
<[hidden email]> wrote:
>
> Thank you for your quick reply Deepak.
>
> Yes, I tried this by executing command "ant download_checkstyle"  and  "ant download_checkstyle target"
> But It's not working as well and throwing below errors.
>
> C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk (1)\jmeter-trunk>ant download_che
> ckstyle

There's a space in the pathname.
That can cause issues.

Rename and try again.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: ant package-and-check command is not executing successfully.

Sanjay Chaurasia
Thank you for reply sebb, that was the typo error while executing the command I had written correct command.

-----Original Message-----
From: sebb [mailto:[hidden email]]
Sent: Tuesday, January 29, 2019 3:36 PM
To: JMeter Users List <[hidden email]>
Subject: Re: ant package-and-check command is not executing successfully.

On Tue, 29 Jan 2019 at 03:22, Sanjay Chaurasia <[hidden email]> wrote:
>
> Thank you for your quick reply Deepak.
>
> Yes, I tried this by executing command "ant download_checkstyle"  and  "ant download_checkstyle target"
> But It's not working as well and throwing below errors.
>
> C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk (1)\jmeter-trunk>ant
> download_che ckstyle

There's a space in the pathname.
That can cause issues.

Rename and try again.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: ant package-and-check command is not executing successfully.

sebb-2-2
On Tue, 29 Jan 2019 at 10:58, Sanjay Chaurasia
<[hidden email]> wrote:
>
> Thank you for reply sebb, that was the typo error while executing the command I had written correct command.

I think you have misunderstood.

According to the output you posted, the path name in which JMeter is
installed contains a space:

C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk (1)\jmeter-trunk

(It certainly looks like a space before the '(1)' above)

This space can cause problems.

Rename the path segment 'jmeter-trunk (1)' so it does not contain a
space and try again.

> -----Original Message-----
> From: sebb [mailto:[hidden email]]
> Sent: Tuesday, January 29, 2019 3:36 PM
> To: JMeter Users List <[hidden email]>
> Subject: Re: ant package-and-check command is not executing successfully.
>
> On Tue, 29 Jan 2019 at 03:22, Sanjay Chaurasia <[hidden email]> wrote:
> >
> > Thank you for your quick reply Deepak.
> >
> > Yes, I tried this by executing command "ant download_checkstyle"  and  "ant download_checkstyle target"
> > But It's not working as well and throwing below errors.
> >
> > C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk (1)\jmeter-trunk>ant
> > download_che ckstyle
>
> There's a space in the pathname.
> That can cause issues.
>
> Rename and try again.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: ant package-and-check command is not executing successfully.

Sanjay Chaurasia
I tried this, but did not work.
If you observe the error log I have shared, it is trying to find some certification path.

Please have a look below error message.

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderExce
ption: unable to find valid certification path to requested target

-----Original Message-----
From: sebb [mailto:[hidden email]]
Sent: Tuesday, January 29, 2019 4:54 PM
To: JMeter Users List <[hidden email]>
Subject: Re: ant package-and-check command is not executing successfully.

On Tue, 29 Jan 2019 at 10:58, Sanjay Chaurasia <[hidden email]> wrote:
>
> Thank you for reply sebb, that was the typo error while executing the command I had written correct command.

I think you have misunderstood.

According to the output you posted, the path name in which JMeter is installed contains a space:

C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk (1)\jmeter-trunk

(It certainly looks like a space before the '(1)' above)

This space can cause problems.

Rename the path segment 'jmeter-trunk (1)' so it does not contain a space and try again.

> -----Original Message-----
> From: sebb [mailto:[hidden email]]
> Sent: Tuesday, January 29, 2019 3:36 PM
> To: JMeter Users List <[hidden email]>
> Subject: Re: ant package-and-check command is not executing successfully.
>
> On Tue, 29 Jan 2019 at 03:22, Sanjay Chaurasia <[hidden email]> wrote:
> >
> > Thank you for your quick reply Deepak.
> >
> > Yes, I tried this by executing command "ant download_checkstyle"  and  "ant download_checkstyle target"
> > But It's not working as well and throwing below errors.
> >
> > C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk (1)\jmeter-trunk>ant
> > download_che ckstyle
>
> There's a space in the pathname.
> That can cause issues.
>
> Rename and try again.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: ant package-and-check command is not executing successfully.

Bruno Antunes
The "ant download_checkstyle" should work. Make surge you are using updated
version o Java SE 8. The download is performed from "
https://downloads.sourceforge.net/". The error you are getting is related
with validation of SSL Certificate

Actions:
* Check versions for Java and Ant

My Test

# java -version
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)

# ant download_checkstyle
Buildfile: /home/bantunes/b/apache-jmeter-5.0/build.xml

download_checkstyle:

_process_checkstyle_jars:

_check_exists:

_check_jarfile:
     [echo] Checking checkstyle-8.8-all.jar
     [echo] Deleting checkstyle-8.8-all.jar (excluding
checkstyle-8.8-all.jar)

setproxy:

_get_jarfile:
     [echo] Fetching: lib/opt/checkstyle-8.8-all.jar
      [get] Getting:
https://downloads.sourceforge.net/checkstyle/checkstyle/8.8/checkstyle-8.8-all.jar?ts=1548763907232&use_mirror=autoselect/checkstyle-8.8-all.jar
      [get] To:
/home/bantunes/b/apache-jmeter-5.0/build/checkstyle-8.8-all.jar
      [get]
https://downloads.sourceforge.net/checkstyle/checkstyle/8.8/checkstyle-8.8-all.jar?ts=1548763907232&use_mirror=autoselect/checkstyle-8.8-all.jar
permanently moved to
https://downloads.sourceforge.net/project/checkstyle/OldFiles/8.8/checkstyle-8.8-all.jar?use_mirror=autoselect%2Fcheckstyle-8.8-all.jar
      [get]
https://downloads.sourceforge.net/project/checkstyle/OldFiles/8.8/checkstyle-8.8-all.jar?use_mirror=autoselect%2Fcheckstyle-8.8-all.jar
moved to
https://master.dl.sourceforge.net/project/checkstyle/OldFiles/8.8/checkstyle-8.8-all.jar

_checkMD5:
     [echo] Checksum OK: checkstyle-8.8-all.jar
     [move] Moving 1 file to /home/bantunes/b/apache-jmeter-5.0/lib/opt
     [move] Attempting to rename:
/home/bantunes/b/apache-jmeter-5.0/build/checkstyle-8.8-all.jar to
/home/bantunes/b/apache-jmeter-5.0/lib/opt/checkstyle-8.8-all.jar

setproxy:

_get_zipfile:

BUILD SUCCESSFUL
Total time: 14 seconds


On Tue, 29 Jan 2019 at 12:04, Sanjay Chaurasia <
[hidden email]> wrote:

> I tried this, but did not work.
> If you observe the error log I have shared, it is trying to find some
> certification path.
>
> Please have a look below error message.
>
> javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException:
> PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderExce
> ption: unable to find valid certification path to requested target
>
> -----Original Message-----
> From: sebb [mailto:[hidden email]]
> Sent: Tuesday, January 29, 2019 4:54 PM
> To: JMeter Users List <[hidden email]>
> Subject: Re: ant package-and-check command is not executing successfully.
>
> On Tue, 29 Jan 2019 at 10:58, Sanjay Chaurasia <
> [hidden email]> wrote:
> >
> > Thank you for reply sebb, that was the typo error while executing the
> command I had written correct command.
>
> I think you have misunderstood.
>
> According to the output you posted, the path name in which JMeter is
> installed contains a space:
>
> C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk (1)\jmeter-trunk
>
> (It certainly looks like a space before the '(1)' above)
>
> This space can cause problems.
>
> Rename the path segment 'jmeter-trunk (1)' so it does not contain a space
> and try again.
>
> > -----Original Message-----
> > From: sebb [mailto:[hidden email]]
> > Sent: Tuesday, January 29, 2019 3:36 PM
> > To: JMeter Users List <[hidden email]>
> > Subject: Re: ant package-and-check command is not executing successfully.
> >
> > On Tue, 29 Jan 2019 at 03:22, Sanjay Chaurasia <
> [hidden email]> wrote:
> > >
> > > Thank you for your quick reply Deepak.
> > >
> > > Yes, I tried this by executing command "ant download_checkstyle"  and
> "ant download_checkstyle target"
> > > But It's not working as well and throwing below errors.
> > >
> > > C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk (1)\jmeter-trunk>ant
> > > download_che ckstyle
> >
> > There's a space in the pathname.
> > That can cause issues.
> >
> > Rename and try again.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
>

--
Bruno Antunes
Java Software Engineer
Reply | Threaded
Open this post in threaded view
|

RE: ant package-and-check command is not executing successfully.

Sanjay Chaurasia
Hi Bruno,

Thank you for reply, could you please mention ANT version too.

I am using following java/ANT version

# Java -version

C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk>java -version
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)

# ANT version:

C:\Users\sanjay.chaurasia>ant -version
Apache Ant(TM) version 1.10.1 compiled on February 2 2017

-----Original Message-----
From: Bruno Antunes [mailto:[hidden email]]
Sent: Tuesday, January 29, 2019 5:48 PM
To: JMeter Users List <[hidden email]>
Subject: Re: ant package-and-check command is not executing successfully.

The "ant download_checkstyle" should work. Make surge you are using updated version o Java SE 8. The download is performed from "
https://downloads.sourceforge.net/". The error you are getting is related with validation of SSL Certificate

Actions:
* Check versions for Java and Ant

My Test

# java -version
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08) Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)

# ant download_checkstyle
Buildfile: /home/bantunes/b/apache-jmeter-5.0/build.xml

download_checkstyle:

_process_checkstyle_jars:

_check_exists:

_check_jarfile:
     [echo] Checking checkstyle-8.8-all.jar
     [echo] Deleting checkstyle-8.8-all.jar (excluding
checkstyle-8.8-all.jar)

setproxy:

_get_jarfile:
     [echo] Fetching: lib/opt/checkstyle-8.8-all.jar
      [get] Getting:
https://downloads.sourceforge.net/checkstyle/checkstyle/8.8/checkstyle-8.8-all.jar?ts=1548763907232&use_mirror=autoselect/checkstyle-8.8-all.jar
      [get] To:
/home/bantunes/b/apache-jmeter-5.0/build/checkstyle-8.8-all.jar
      [get]
https://downloads.sourceforge.net/checkstyle/checkstyle/8.8/checkstyle-8.8-all.jar?ts=1548763907232&use_mirror=autoselect/checkstyle-8.8-all.jar
permanently moved to
https://downloads.sourceforge.net/project/checkstyle/OldFiles/8.8/checkstyle-8.8-all.jar?use_mirror=autoselect%2Fcheckstyle-8.8-all.jar
      [get]
https://downloads.sourceforge.net/project/checkstyle/OldFiles/8.8/checkstyle-8.8-all.jar?use_mirror=autoselect%2Fcheckstyle-8.8-all.jar
moved to
https://master.dl.sourceforge.net/project/checkstyle/OldFiles/8.8/checkstyle-8.8-all.jar

_checkMD5:
     [echo] Checksum OK: checkstyle-8.8-all.jar
     [move] Moving 1 file to /home/bantunes/b/apache-jmeter-5.0/lib/opt
     [move] Attempting to rename:
/home/bantunes/b/apache-jmeter-5.0/build/checkstyle-8.8-all.jar to /home/bantunes/b/apache-jmeter-5.0/lib/opt/checkstyle-8.8-all.jar

setproxy:

_get_zipfile:

BUILD SUCCESSFUL
Total time: 14 seconds


On Tue, 29 Jan 2019 at 12:04, Sanjay Chaurasia < [hidden email]> wrote:

> I tried this, but did not work.
> If you observe the error log I have shared, it is trying to find some
> certification path.
>
> Please have a look below error message.
>
> javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException:
> PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderExce
> ption: unable to find valid certification path to requested target
>
> -----Original Message-----
> From: sebb [mailto:[hidden email]]
> Sent: Tuesday, January 29, 2019 4:54 PM
> To: JMeter Users List <[hidden email]>
> Subject: Re: ant package-and-check command is not executing successfully.
>
> On Tue, 29 Jan 2019 at 10:58, Sanjay Chaurasia <
> [hidden email]> wrote:
> >
> > Thank you for reply sebb, that was the typo error while executing
> > the
> command I had written correct command.
>
> I think you have misunderstood.
>
> According to the output you posted, the path name in which JMeter is
> installed contains a space:
>
> C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk (1)\jmeter-trunk
>
> (It certainly looks like a space before the '(1)' above)
>
> This space can cause problems.
>
> Rename the path segment 'jmeter-trunk (1)' so it does not contain a
> space and try again.
>
> > -----Original Message-----
> > From: sebb [mailto:[hidden email]]
> > Sent: Tuesday, January 29, 2019 3:36 PM
> > To: JMeter Users List <[hidden email]>
> > Subject: Re: ant package-and-check command is not executing successfully.
> >
> > On Tue, 29 Jan 2019 at 03:22, Sanjay Chaurasia <
> [hidden email]> wrote:
> > >
> > > Thank you for your quick reply Deepak.
> > >
> > > Yes, I tried this by executing command "ant download_checkstyle"  
> > > and
> "ant download_checkstyle target"
> > > But It's not working as well and throwing below errors.
> > >
> > > C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk
> > > (1)\jmeter-trunk>ant download_che ckstyle
> >
> > There's a space in the pathname.
> > That can cause issues.
> >
> > Rename and try again.
> >
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
>

--
Bruno Antunes
Java Software Engineer

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: ant package-and-check command is not executing successfully.

Bruno Antunes
I tested with ant 1.10.5 but should also work with 1.10.1. What I can
suggest is downloading latest version for Java SE 8 and Ant, and try with
that versions

The Java CA Certificates are located in JAVA_HOME/jre/lib/cacerts or
JAVA_HOME/lib/cacerts

As workaround; manually download the file "
https://master.dl.sourceforge.net/project/checkstyle/OldFiles/8.8/checkstyle-8.8-all.jar"
and copy it to "lib/opt"

To check what is going on with "SSL" define the JVM "javax.net.debug" with
value "ssl:handshake:verbose" or "all". Example:

# SET ANT_OPTS=-Djavax.net.debug=ssl:handshake:verbose
#  ant  download_checkstyle


On Tue, 29 Jan 2019 at 13:26, Sanjay Chaurasia <
[hidden email]> wrote:

> Hi Bruno,
>
> Thank you for reply, could you please mention ANT version too.
>
> I am using following java/ANT version
>
> # Java -version
>
> C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk>java -version
> java version "1.8.0_77"
> Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
> Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
>
> # ANT version:
>
> C:\Users\sanjay.chaurasia>ant -version
> Apache Ant(TM) version 1.10.1 compiled on February 2 2017
>
> -----Original Message-----
> From: Bruno Antunes [mailto:[hidden email]]
> Sent: Tuesday, January 29, 2019 5:48 PM
> To: JMeter Users List <[hidden email]>
> Subject: Re: ant package-and-check command is not executing successfully.
>
> The "ant download_checkstyle" should work. Make surge you are using
> updated version o Java SE 8. The download is performed from "
> https://downloads.sourceforge.net/". The error you are getting is related
> with validation of SSL Certificate
>
> Actions:
> * Check versions for Java and Ant
>
> My Test
>
> # java -version
> java version "1.8.0_202"
> Java(TM) SE Runtime Environment (build 1.8.0_202-b08) Java HotSpot(TM)
> 64-Bit Server VM (build 25.202-b08, mixed mode)
>
> # ant download_checkstyle
> Buildfile: /home/bantunes/b/apache-jmeter-5.0/build.xml
>
> download_checkstyle:
>
> _process_checkstyle_jars:
>
> _check_exists:
>
> _check_jarfile:
>      [echo] Checking checkstyle-8.8-all.jar
>      [echo] Deleting checkstyle-8.8-all.jar (excluding
> checkstyle-8.8-all.jar)
>
> setproxy:
>
> _get_jarfile:
>      [echo] Fetching: lib/opt/checkstyle-8.8-all.jar
>       [get] Getting:
>
> https://downloads.sourceforge.net/checkstyle/checkstyle/8.8/checkstyle-8.8-all.jar?ts=1548763907232&use_mirror=autoselect/checkstyle-8.8-all.jar
>       [get] To:
> /home/bantunes/b/apache-jmeter-5.0/build/checkstyle-8.8-all.jar
>       [get]
>
> https://downloads.sourceforge.net/checkstyle/checkstyle/8.8/checkstyle-8.8-all.jar?ts=1548763907232&use_mirror=autoselect/checkstyle-8.8-all.jar
> permanently moved to
>
> https://downloads.sourceforge.net/project/checkstyle/OldFiles/8.8/checkstyle-8.8-all.jar?use_mirror=autoselect%2Fcheckstyle-8.8-all.jar
>       [get]
>
> https://downloads.sourceforge.net/project/checkstyle/OldFiles/8.8/checkstyle-8.8-all.jar?use_mirror=autoselect%2Fcheckstyle-8.8-all.jar
> moved to
>
> https://master.dl.sourceforge.net/project/checkstyle/OldFiles/8.8/checkstyle-8.8-all.jar
>
> _checkMD5:
>      [echo] Checksum OK: checkstyle-8.8-all.jar
>      [move] Moving 1 file to /home/bantunes/b/apache-jmeter-5.0/lib/opt
>      [move] Attempting to rename:
> /home/bantunes/b/apache-jmeter-5.0/build/checkstyle-8.8-all.jar to
> /home/bantunes/b/apache-jmeter-5.0/lib/opt/checkstyle-8.8-all.jar
>
> setproxy:
>
> _get_zipfile:
>
> BUILD SUCCESSFUL
> Total time: 14 seconds
>
>
> On Tue, 29 Jan 2019 at 12:04, Sanjay Chaurasia <
> [hidden email]> wrote:
>
> > I tried this, but did not work.
> > If you observe the error log I have shared, it is trying to find some
> > certification path.
> >
> > Please have a look below error message.
> >
> > javax.net.ssl.SSLHandshakeException:
> > sun.security.validator.ValidatorException:
> > PKIX path building failed:
> > sun.security.provider.certpath.SunCertPathBuilderExce
> > ption: unable to find valid certification path to requested target
> >
> > -----Original Message-----
> > From: sebb [mailto:[hidden email]]
> > Sent: Tuesday, January 29, 2019 4:54 PM
> > To: JMeter Users List <[hidden email]>
> > Subject: Re: ant package-and-check command is not executing successfully.
> >
> > On Tue, 29 Jan 2019 at 10:58, Sanjay Chaurasia <
> > [hidden email]> wrote:
> > >
> > > Thank you for reply sebb, that was the typo error while executing
> > > the
> > command I had written correct command.
> >
> > I think you have misunderstood.
> >
> > According to the output you posted, the path name in which JMeter is
> > installed contains a space:
> >
> > C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk (1)\jmeter-trunk
> >
> > (It certainly looks like a space before the '(1)' above)
> >
> > This space can cause problems.
> >
> > Rename the path segment 'jmeter-trunk (1)' so it does not contain a
> > space and try again.
> >
> > > -----Original Message-----
> > > From: sebb [mailto:[hidden email]]
> > > Sent: Tuesday, January 29, 2019 3:36 PM
> > > To: JMeter Users List <[hidden email]>
> > > Subject: Re: ant package-and-check command is not executing
> successfully.
> > >
> > > On Tue, 29 Jan 2019 at 03:22, Sanjay Chaurasia <
> > [hidden email]> wrote:
> > > >
> > > > Thank you for your quick reply Deepak.
> > > >
> > > > Yes, I tried this by executing command "ant download_checkstyle"
> > > > and
> > "ant download_checkstyle target"
> > > > But It's not working as well and throwing below errors.
> > > >
> > > > C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk
> > > > (1)\jmeter-trunk>ant download_che ckstyle
> > >
> > > There's a space in the pathname.
> > > That can cause issues.
> > >
> > > Rename and try again.
> > >
> > > --------------------------------------------------------------------
> > > - To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
> >
>
> --
> Bruno Antunes
> Java Software Engineer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


--
Bruno Antunes
Java Software Engineer
Reply | Threaded
Open this post in threaded view
|

RE: ant package-and-check command is not executing successfully.

Sanjay Chaurasia
Thank you so much Bruno, Now it's working  :)

-----Original Message-----
From: Bruno Antunes [mailto:[hidden email]]
Sent: Tuesday, January 29, 2019 7:39 PM
To: JMeter Users List <[hidden email]>
Subject: Re: ant package-and-check command is not executing successfully.

I tested with ant 1.10.5 but should also work with 1.10.1. What I can suggest is downloading latest version for Java SE 8 and Ant, and try with that versions

The Java CA Certificates are located in JAVA_HOME/jre/lib/cacerts or JAVA_HOME/lib/cacerts

As workaround; manually download the file "
https://master.dl.sourceforge.net/project/checkstyle/OldFiles/8.8/checkstyle-8.8-all.jar"
and copy it to "lib/opt"

To check what is going on with "SSL" define the JVM "javax.net.debug" with value "ssl:handshake:verbose" or "all". Example:

# SET ANT_OPTS=-Djavax.net.debug=ssl:handshake:verbose
#  ant  download_checkstyle


On Tue, 29 Jan 2019 at 13:26, Sanjay Chaurasia < [hidden email]> wrote:

> Hi Bruno,
>
> Thank you for reply, could you please mention ANT version too.
>
> I am using following java/ANT version
>
> # Java -version
>
> C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk>java -version java
> version "1.8.0_77"
> Java(TM) SE Runtime Environment (build 1.8.0_77-b03) Java HotSpot(TM)
> 64-Bit Server VM (build 25.77-b03, mixed mode)
>
> # ANT version:
>
> C:\Users\sanjay.chaurasia>ant -version Apache Ant(TM) version 1.10.1
> compiled on February 2 2017
>
> -----Original Message-----
> From: Bruno Antunes [mailto:[hidden email]]
> Sent: Tuesday, January 29, 2019 5:48 PM
> To: JMeter Users List <[hidden email]>
> Subject: Re: ant package-and-check command is not executing successfully.
>
> The "ant download_checkstyle" should work. Make surge you are using
> updated version o Java SE 8. The download is performed from "
> https://downloads.sourceforge.net/". The error you are getting is
> related with validation of SSL Certificate
>
> Actions:
> * Check versions for Java and Ant
>
> My Test
>
> # java -version
> java version "1.8.0_202"
> Java(TM) SE Runtime Environment (build 1.8.0_202-b08) Java HotSpot(TM)
> 64-Bit Server VM (build 25.202-b08, mixed mode)
>
> # ant download_checkstyle
> Buildfile: /home/bantunes/b/apache-jmeter-5.0/build.xml
>
> download_checkstyle:
>
> _process_checkstyle_jars:
>
> _check_exists:
>
> _check_jarfile:
>      [echo] Checking checkstyle-8.8-all.jar
>      [echo] Deleting checkstyle-8.8-all.jar (excluding
> checkstyle-8.8-all.jar)
>
> setproxy:
>
> _get_jarfile:
>      [echo] Fetching: lib/opt/checkstyle-8.8-all.jar
>       [get] Getting:
>
> https://downloads.sourceforge.net/checkstyle/checkstyle/8.8/checkstyle-8.8-all.jar?ts=1548763907232&use_mirror=autoselect/checkstyle-8.8-all.jar
>       [get] To:
> /home/bantunes/b/apache-jmeter-5.0/build/checkstyle-8.8-all.jar
>       [get]
>
> https://downloads.sourceforge.net/checkstyle/checkstyle/8.8/checkstyle
> -8.8-all.jar?ts=1548763907232&use_mirror=autoselect/checkstyle-8.8-all
> .jar
> permanently moved to
>
> https://downloads.sourceforge.net/project/checkstyle/OldFiles/8.8/checkstyle-8.8-all.jar?use_mirror=autoselect%2Fcheckstyle-8.8-all.jar
>       [get]
>
> https://downloads.sourceforge.net/project/checkstyle/OldFiles/8.8/chec
> kstyle-8.8-all.jar?use_mirror=autoselect%2Fcheckstyle-8.8-all.jar
> moved to
>
> https://master.dl.sourceforge.net/project/checkstyle/OldFiles/8.8/chec
> kstyle-8.8-all.jar
>
> _checkMD5:
>      [echo] Checksum OK: checkstyle-8.8-all.jar
>      [move] Moving 1 file to /home/bantunes/b/apache-jmeter-5.0/lib/opt
>      [move] Attempting to rename:
> /home/bantunes/b/apache-jmeter-5.0/build/checkstyle-8.8-all.jar to
> /home/bantunes/b/apache-jmeter-5.0/lib/opt/checkstyle-8.8-all.jar
>
> setproxy:
>
> _get_zipfile:
>
> BUILD SUCCESSFUL
> Total time: 14 seconds
>
>
> On Tue, 29 Jan 2019 at 12:04, Sanjay Chaurasia <
> [hidden email]> wrote:
>
> > I tried this, but did not work.
> > If you observe the error log I have shared, it is trying to find
> > some certification path.
> >
> > Please have a look below error message.
> >
> > javax.net.ssl.SSLHandshakeException:
> > sun.security.validator.ValidatorException:
> > PKIX path building failed:
> > sun.security.provider.certpath.SunCertPathBuilderExce
> > ption: unable to find valid certification path to requested target
> >
> > -----Original Message-----
> > From: sebb [mailto:[hidden email]]
> > Sent: Tuesday, January 29, 2019 4:54 PM
> > To: JMeter Users List <[hidden email]>
> > Subject: Re: ant package-and-check command is not executing successfully.
> >
> > On Tue, 29 Jan 2019 at 10:58, Sanjay Chaurasia <
> > [hidden email]> wrote:
> > >
> > > Thank you for reply sebb, that was the typo error while executing
> > > the
> > command I had written correct command.
> >
> > I think you have misunderstood.
> >
> > According to the output you posted, the path name in which JMeter is
> > installed contains a space:
> >
> > C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk (1)\jmeter-trunk
> >
> > (It certainly looks like a space before the '(1)' above)
> >
> > This space can cause problems.
> >
> > Rename the path segment 'jmeter-trunk (1)' so it does not contain a
> > space and try again.
> >
> > > -----Original Message-----
> > > From: sebb [mailto:[hidden email]]
> > > Sent: Tuesday, January 29, 2019 3:36 PM
> > > To: JMeter Users List <[hidden email]>
> > > Subject: Re: ant package-and-check command is not executing
> successfully.
> > >
> > > On Tue, 29 Jan 2019 at 03:22, Sanjay Chaurasia <
> > [hidden email]> wrote:
> > > >
> > > > Thank you for your quick reply Deepak.
> > > >
> > > > Yes, I tried this by executing command "ant download_checkstyle"
> > > > and
> > "ant download_checkstyle target"
> > > > But It's not working as well and throwing below errors.
> > > >
> > > > C:\Users\sanjay.chaurasia\Desktop\jmeter-trunk
> > > > (1)\jmeter-trunk>ant download_che ckstyle
> > >
> > > There's a space in the pathname.
> > > That can cause issues.
> > >
> > > Rename and try again.
> > >
> > > ------------------------------------------------------------------
> > > --
> > > - To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > >
> >
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
> >
>
> --
> Bruno Antunes
> Java Software Engineer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


--
Bruno Antunes
Java Software Engineer

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]