You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@iotdb.apache.org by Haonan Hou <hh...@outlook.com> on 2019/11/12 08:30:48 UTC

A bug of running mvnw.cmd in Windows OS

Hi,

I just tried to run `.\mvnw.cmd package -DskipTest` in windows 10 and got an error like this.
```
C:\Users\IoTDB\Documents\GitHub\incubator-iotdb>.\mvnw.cmd package -DskipTests
Couldn't find "C:\Users\IoTDB\Documents\GitHub\incubator-iotdb\.mvn\wrapper\maven-wrapper.jar", downloading it ...
Downloading from: "https://repo1.maven.org/maven2/io/takari/maven-wrapper/0.2.1/maven-wrapper-0.2.1.jar"
Finished downloading "C:\Users\IoTDB\Documents\GitHub\incubator-iotdb\.mvn\wrapper\maven-wrapper.jar"
Downloading https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.6.1/apache-maven-3.6.1-bin.zip

Exception in thread "main" javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
```

This bug may related to https://issues.apache.org/jira/projects/IOTDB/issues/IOTDB-254?filter=allopenissues.

I tried to replace the url from `https://` to `http://` and this problem didn’t appear again.

I am not sure if there is any other problem if I made this change.

Best,
Haonan Hou

Re: A bug of running mvnw.cmd in Windows OS

Posted by Haonan Hou <hh...@outlook.com>.
Hi Chris,

I try to use the latest version of Oracle Java 8. The running result is same as before.
 It doesn’t seem like a Java version problem. 

Haonan

> On Nov 12, 2019, at 4:41 PM, Christofer Dutz <ch...@c-ware.de> wrote:
> 
> Hi Haonan,
> 
> what version of Java are you using? 
> I know that Java 7 had less available cypher suites available.
> 
> Chris
> 
> 
> 
> Am 12.11.19, 09:31 schrieb "Haonan Hou" <hh...@outlook.com>:
> 
>    Hi,
> 
>    I just tried to run `.\mvnw.cmd package -DskipTest` in windows 10 and got an error like this.
>    ```
>    C:\Users\IoTDB\Documents\GitHub\incubator-iotdb>.\mvnw.cmd package -DskipTests
>    Couldn't find "C:\Users\IoTDB\Documents\GitHub\incubator-iotdb\.mvn\wrapper\maven-wrapper.jar", downloading it ...
>    Downloading from: "https://repo1.maven.org/maven2/io/takari/maven-wrapper/0.2.1/maven-wrapper-0.2.1.jar"
>    Finished downloading "C:\Users\IoTDB\Documents\GitHub\incubator-iotdb\.mvn\wrapper\maven-wrapper.jar"
>    Downloading https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.6.1/apache-maven-3.6.1-bin.zip
> 
>    Exception in thread "main" javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
>    ```
> 
>    This bug may related to https://issues.apache.org/jira/projects/IOTDB/issues/IOTDB-254?filter=allopenissues.
> 
>    I tried to replace the url from `https://` to `http://` and this problem didn’t appear again.
> 
>    I am not sure if there is any other problem if I made this change.
> 
>    Best,
>    Haonan Hou
> 
> 


Re: A bug of running mvnw.cmd in Windows OS

Posted by Haonan Hou <hh...@outlook.com>.
Hi Chris,

I am using OpenJDK 8 in my Windows machine. Let me try to install an Oracle JDK and see what happens.

Haonan

On Nov 12, 2019, at 4:41 PM, Christofer Dutz <ch...@c-ware.de>> wrote:

Hi Haonan,

what version of Java are you using?
I know that Java 7 had less available cypher suites available.

Chris



Am 12.11.19, 09:31 schrieb "Haonan Hou" <hh...@outlook.com>>:

   Hi,

   I just tried to run `.\mvnw.cmd package -DskipTest` in windows 10 and got an error like this.
   ```
   C:\Users\IoTDB\Documents\GitHub\incubator-iotdb>.\mvnw.cmd package -DskipTests
   Couldn't find "C:\Users\IoTDB\Documents\GitHub\incubator-iotdb\.mvn\wrapper\maven-wrapper.jar", downloading it ...
   Downloading from: "https://repo1.maven.org/maven2/io/takari/maven-wrapper/0.2.1/maven-wrapper-0.2.1.jar"
   Finished downloading "C:\Users\IoTDB\Documents\GitHub\incubator-iotdb\.mvn\wrapper\maven-wrapper.jar"
   Downloading https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.6.1/apache-maven-3.6.1-bin.zip

   Exception in thread "main" javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
   ```

   This bug may related to https://issues.apache.org/jira/projects/IOTDB/issues/IOTDB-254?filter=allopenissues.

   I tried to replace the url from `https://` to `http://` and this problem didn’t appear again.

   I am not sure if there is any other problem if I made this change.

   Best,
   Haonan Hou




Re: A bug of running mvnw.cmd in Windows OS

Posted by Christofer Dutz <ch...@c-ware.de>.
Hi Haonan,

what version of Java are you using? 
I know that Java 7 had less available cypher suites available.

Chris



Am 12.11.19, 09:31 schrieb "Haonan Hou" <hh...@outlook.com>:

    Hi,
    
    I just tried to run `.\mvnw.cmd package -DskipTest` in windows 10 and got an error like this.
    ```
    C:\Users\IoTDB\Documents\GitHub\incubator-iotdb>.\mvnw.cmd package -DskipTests
    Couldn't find "C:\Users\IoTDB\Documents\GitHub\incubator-iotdb\.mvn\wrapper\maven-wrapper.jar", downloading it ...
    Downloading from: "https://repo1.maven.org/maven2/io/takari/maven-wrapper/0.2.1/maven-wrapper-0.2.1.jar"
    Finished downloading "C:\Users\IoTDB\Documents\GitHub\incubator-iotdb\.mvn\wrapper\maven-wrapper.jar"
    Downloading https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.6.1/apache-maven-3.6.1-bin.zip
    
    Exception in thread "main" javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
    ```
    
    This bug may related to https://issues.apache.org/jira/projects/IOTDB/issues/IOTDB-254?filter=allopenissues.
    
    I tried to replace the url from `https://` to `http://` and this problem didn’t appear again.
    
    I am not sure if there is any other problem if I made this change.
    
    Best,
    Haonan Hou