Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: ???HTTPS from Oracle...getting java.net.MalformedURLException???

Re: ???HTTPS from Oracle...getting java.net.MalformedURLException???

From: Rauf Sarwar <rsarwar_at_ifsna.com>
Date: 19 Jun 2002 22:14:02 -0700
Message-ID: <c2d690f2.0206192114.7a17f8cb@posting.google.com>


rsarwar_at_ifsna.com (Rauf Sarwar) wrote in message news:<c2d690f2.0206191220.7569e54_at_posting.google.com>...
> fcolon_at_onebox.com (Frank) wrote in message news:<3271719f.0206181431.541aa878_at_posting.google.com>...
> > Hi,
> >
> > I've developed a Java stored procedure that will make an https call to
> > a remote host and retrieve data.
> >
> > The java procedure is rapped in an Oracle Stored Procedure.
> >
> > But when I call it I get the exception:
> >
> > java.net.MalformedURLException: unknown protocol: https
> >
> > Has anybody tried this before? Do you have experience getting this
> > exception?
> >
> > Any advice on how I could fix this would be greatly appreciated.
> >
> > Thanks
>
>
> A URL constructor throws this MalformedURLException if no protocol is
> specified, or an unknown protocol is found in your URL. Check the URL
> address and see if you specify a correct protocol e.g. http etc. or
> post a snippet of your code...maybe someone can look at it and make a
> suggestion.

In my haste I did not check that you were getting the error on https protocol.
The URL class is part of the core java that is loaded when you install JVM in Oracle..however, when you try to create an instance of the https URLConnection, it cannot create it unless JSSE (Java Secure Socket Extension) jar file is installed. Use loadjava utility provided in ORACLE_HOME\bin folder with, I believe -synonym switch, to load JSSE jar file into SYS schema.

HTH Received on Thu Jun 20 2002 - 00:14:02 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US