New error since 2 days when my code tries to retrieve an image from image-charts.com


(ilker Aktuna) #1

Hi,

I was using the following code to generate charts on my device handler. The “dl” variable is an array with 192 integer elements. Recently I started getting the following error when the chart is called in DTH refresh function (periodically)

Does anybody know what does this error mean ?

javax.net.ssl.SSLException: java.security.ProviderException: java.security.InvalidKeyException: EC parameters error @line 1674 (genGraph)

here is the code which calls the chart :

def genGraph()
{
log.debug "genGraph"
	def dl ="t:"
    def ul ="t:"
    def tt ="t:"
    for (int i = 0; i <  191; i++){
    dl = dl + state.listdl[i] + ","
    }
    dl = dl + state.listdl[191] + "|"

	for (int i = 0; i <  191; i++){
    dl = dl + state.listul[i] + ","
    }
    dl = dl + state.listul[191]

    def maxx = Math.round(state.listdl.max())
    def maxx2 = Math.round(state.listul.max())
    if (maxx2 > maxx) {maxx=maxx2}
    
    def aralik = maxx/5
    
    
       def podParams = [
          uri: "https://chart.googleapis.com",
          //uri: "https://image-charts.com",
          path: "/chart",
          query: [cht: "lc", chd: dl, chs: "400x250", chof: "gif", chxt: "x,y", chxl: "0:|-12hr|-8hr|-4hr|now", chco: "00FF00,0000FF", chtt: "Traffic", chts:"AAAAAA,15", chxr:"0,0,192,1|1,0,"+maxx+","+aralik, ],
          contentType: 'image/gif'
        ]
        httpGet(podParams) { resp ->
            //log.debug resp.data
            saveImage(resp.data)
        }
        //log.debug "Created new graph"
genGraphx()

}

btw, when I use “https://chart.googleapis.com” instead of image-charts.com , there is no problem.

Btw, there is one other user who has similar problem recently. Please check the discussion here:


(ilker Aktuna) #2

anybody with same problem ?


(ilker Aktuna) #3

really ? just me ?