Hi,

I have a service exposed on a WSO2 ESB with and HTTPS endpoint. I can
access the service just fine in a browser but when I access it with
gadgets.io.makeRequest I get a 500 error.

In fact I can't seem to access anything over https with the gadgets api.

I have looked around and I can't seem to find anyone else that has had
this problem. I have not really found any examples of anyone accessing
https services with the gadgets api.

The stack trace on the server looks like:

[2013-02-15 13:39:34,171] ERROR - SourceHandler I/O error: Received
fatal alert: internal_error
javax.net.ssl.SSLException: Received fatal alert: internal_error
        at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLEngineImpl.recvAlert(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readRecord(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readNetRecord(Unknown 
Source)
        at com.sun.net.ssl.internal.ssl.SSLEngineImpl.unwrap(Unknown Source)
        at javax.net.ssl.SSLEngine.unwrap(Unknown Source)
        at
org.apache.http.impl.nio.reactor.SSLIOSession.doHandshake(SSLIOSession.java:163)
        at
org.apache.http.impl.nio.reactor.SSLIOSession.isAppInputReady(SSLIOSession.java:273)
        at
org.apache.http.impl.nio.SSLServerIOEventDispatch.inputReady(SSLServerIOEventDispatch.java:229)
        at
org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:158)
        at
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:340)
        at
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:318)
        at
org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:278)
        at
org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)
        at
org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:542)
        at java.lang.Thread.run(Unknown Source)

I was thinking that it was a problem with my truststores but I am fairly
certain they are fine. Problems with trust stores would generally give a
verification error any way. This error doesn't really give me a whole
lot of information.

My gadget code looks like:

    var url =
"https://devwebservice.ls.cbn:8244/services/create_new_series";;

    var params = {};

    params[gadgets.io.RequestParameters.HEADERS] = {
      "X-WSSE" : w
    }

    gadgets.io.makeRequest(url, response, params);

I have also tried without setting the X-WSSE header and I get the same
results.

Any thoughts on how I can get this to work?

Thanks,

-- 
Bram Cymet
Software Developer
Canadian Bank Note Co. Ltd.
613-608-9752
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to