Quantcast
Channel: SCN : All Content - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3285

java.lang.IllegalArgumentException Consuming oData Service

$
0
0

Hi,

 

I have 2 apps( xs app that offers Odata service and UI5 that calls oData service ), I need to consume the oData Service that my XS app expose on my UI5 app.

I have on my UI5 app this:

  var odataModel = new sap.ui.model.odata.ODataModel("proxy/https://s10hanaxs.hanatrial.ondemand.com:443/pxxxtrial/hana/pos/services/pos.xsodata/", false);

But I'm getting :

 

java.lang.IllegalArgumentException: protocol = https host = null

sun.net.spi.DefaultProxySelector.select(Unknown Source)

sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)

sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)

sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)

sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)

com.sap.ui5.proxy.SimpleProxyServlet.service(SimpleProxyServlet.java:219)

javax.servlet.http.HttpServlet.service(HttpServlet.java:731)

org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

 

when I try to consume the oData service. Can anyone help me to solve this problem?


Viewing all articles
Browse latest Browse all 3285

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>