Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4665D200C72 for ; Thu, 27 Apr 2017 23:05:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4523A160BA7; Thu, 27 Apr 2017 21:05:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9128F160B9E for ; Thu, 27 Apr 2017 23:05:08 +0200 (CEST) Received: (qmail 98861 invoked by uid 500); 27 Apr 2017 21:05:07 -0000 Mailing-List: contact dev-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list dev@brooklyn.apache.org Received: (qmail 98843 invoked by uid 99); 27 Apr 2017 21:05:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Apr 2017 21:05:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 431471889D3 for ; Thu, 27 Apr 2017 21:05:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Fus44jdeJAOR for ; Thu, 27 Apr 2017 21:05:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id B59865FAC9 for ; Thu, 27 Apr 2017 21:05:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 0FCF3E00C7 for ; Thu, 27 Apr 2017 21:05:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 4C35C21DEC for ; Thu, 27 Apr 2017 21:05:04 +0000 (UTC) Date: Thu, 27 Apr 2017 21:05:04 +0000 (UTC) From: "Aled Sage (JIRA)" To: dev@brooklyn.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BROOKLYN-302) SSLException: close_notify in ResourceUtils getResourceAsString against https url MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 27 Apr 2017 21:05:09 -0000 [ https://issues.apache.org/jira/browse/BROOKLYN-302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15987678#comment-15987678 ] Aled Sage commented on BROOKLYN-302: ------------------------------------ I suggest we close this as "won't fix" - users have the workaround you identified. [~duncangrant] you could add it to the docs troubleshooting section (as well as this jira being indexed by search engines)? > SSLException: close_notify in ResourceUtils getResourceAsString against https url > --------------------------------------------------------------------------------- > > Key: BROOKLYN-302 > URL: https://issues.apache.org/jira/browse/BROOKLYN-302 > Project: Brooklyn > Issue Type: Bug > Affects Versions: 0.10.0 > Reporter: Duncan Grant > Priority: Minor > > This can be reproduced by running the following in the groovy console of brooklyn but I'm not sure when it will fail. > {code} > org.apache.brooklyn.util.core.ResourceUtils utils = org.apache.brooklyn.util.core.ResourceUtils.create(); > String result = utils.getResourceAsString("https://github.com/apache/brooklyn-library/raw/master/examples/simple-web-cluster/src/main/resources/visitors-creation-script.sql"); > System.out.println(result); > {code} > I have seen this consistently fail for the last few days and have tried with java versions 1.7.0_71, 1.8.0_45, and 1.8.0_92. > Error on failure is: > {noformat} > 2016-06-14 16:43:13,301 WARN Problem in user-supplied script: org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: SSLException: Received fatal alert: close_notify > org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: > at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:128) ~[brooklyn-utils-common-0.10.0-20160613.090333-51.jar:0.10.0-SNAPSHOT] > Caused by: javax.net.ssl.SSLException: Received fatal alert: close_notify > at sun.security.ssl.Alerts.getSSLException(Alerts.java:208) ~[na:1.8.0_92] > {noformat} > However this is working for me today. This may be because I am running this from the office rather than from home so I will try again at home this evening. -- This message was sent by Atlassian JIRA (v6.3.15#6346)