[ 
https://issues.apache.org/jira/browse/MNG-6388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16423892#comment-16423892
 ] 

Michael Osipov commented on MNG-6388:
-------------------------------------

I know where this crash comes from, I recently commented on the HttpClient 
issue. Can you enable HTTPClient debugging too or show be a screenshot of the 
wireshark dump of the cert? I'd like to see wether the file has been correctly 
transfered from your mirror first. Please enable [these two logging 
params|https://github.com/apache/maven/blob/master/apache-maven/src/conf/logging/simplelogger.properties#L31-L32]
 with debug.

HTTPCLIENT-1836 is the cause and 
[here|https://github.com/apache/httpcomponents-client/commit/c58288c9af339343a4433888a73f70669c2556ff#diff-37867f2a85d5bbb38730b5e7aca159cc]
 is the fix.

Can you provide from Wireshark a dump of the type and the byte array as 
depicted in 
[here|https://docs.oracle.com/javase/7/docs/api/java/security/cert/X509Certificate.html#getSubjectAlternativeNames()]?
 It can either be an {{IA5String}} or an {{OCTET STRING}}.

[~olegk], [~garydgregory], this is an interesting case for HTTPCLIENT-1836. Do 
we need to roll a small ASN.1 DER parser for both types now?

> Error Fetching Artifacts: "[B cannot be cast to java.lang.String"
> -----------------------------------------------------------------
>
>                 Key: MNG-6388
>                 URL: https://issues.apache.org/jira/browse/MNG-6388
>             Project: Maven
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 3.5.3
>         Environment: $ docker run --rm -it maven:3-jdk-8 mvn --version
> Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 
> 2018-02-24T19:49:05Z)
> Maven home: /usr/share/maven
> Java version: 1.8.0_162, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/java-8-openjdk-amd64/jre
> Default locale: en, platform encoding: UTF-8
> OS name: "linux", version: "3.10.0-693.21.1.el7.x86_64", arch: "amd64", 
> family: "unix"
> ----
>  $ mvn -version
> Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 
> 2018-02-24T14:49:05-05:00)
> Maven home: /opt/local/share/java/maven3
> Java version: 1.8.0_161, vendor: Oracle Corporation
> Java home: 
> /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.12.6", arch: "x86_64", family: "mac"
>            Reporter: Mike Kelly
>            Priority: Major
>
> When using Maven 3.5.3 with Artifactory 5.10.0 configured as a "*" mirror, 
> downloads & uploads fail with errors like:
> {noformat}
> [ERROR] Failed to execute goal on project ccc-persistence: Could not resolve 
> dependencies for project REDACTED:REDACTED:jar:3.47.0-SNAPSHOT: Failed to 
> collect dependencies at org.flywaydb:flyway-core:jar:3.2.1: Failed to read 
> artifact descriptor for org.flywaydb:flyway-core:jar:3.2.1: Could not 
> transfer artifact org.flywaydb:flyway-core:pom:3.2.1 from/to artifactory 
> (https://artifactory.REDACTED.com/artifactory/all): [B cannot be cast to 
> java.lang.String -> [Help 1]{noformat}
> I've seen this issue both with the official Docker container, and with Maven 
> 3.5.3 from MacPorts; in both cases, downgrading back down to 3.5.2 resolved 
> the issue.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to