URL object with https string throws malformed url exception: unknown protocol: https

In WebLogic I am trying to connect to an HTTPS url by passing that url
string into the contructor for URL object. This throws a Malformed URL
Exception : unknown protocol: https.
When i run this same block of code outside of weblogic (in a stand-alone
app), it runs perfectly. (not exceptions when creating the URL object).
why do i get this exception in weblogic?
could weblogic be loading its own URL class rather than the java.net.URL
class (which supports ssl)? if so how do i override that classloading?
is there a weblogic security "feature" that prevents opening an ssl
connection?
thanks for any help
mike
[email protected]

You need to modify your weblogic.policy file to allow you to change the
the property java.protocol.handler.pkgs ... and any other properties
that you may probably change using JSSE (for example:
javax.net.ssl.trustStore for storing certificates of servers that you
want to connect to from WLS )
Regards,
John Salvo
Michael Harrison wrote:
>
thanks for the help dennis, but still get the "unknown protocol https".
the URL object sees that the URLStreamHandler ==null and get the value for
java.protocol.handler.pkgs (which should be
com.sun.net.ssl.internal.www.protocol) then it tries to load that class. i
believe that the GetPropertyAction("java.protocol.handler.pkgs","") is not
returning com.sun.net.ssl.internal.www.protocol. therefore the class is not
getting loaded
i think that my classpath is set up properly for classpath and
weblogic_classpath so i think that i me calling
System.setProperty("java.protocol.handler.pkgs",
"com.sun.net.ssl.internal.www.protocol"); is not effective.
do you know anyway i can trouble shoot this.
thanks
mike
Dennis O'Neill <[email protected]> wrote in message
news:39d23c28$[email protected]..
Https is an add-in so to speak. Try this before you create your url:
System.setProperty ("java.protocol.handler.pkgs",
"com.sun.net.ssl.internal.www.protocol");
// add the default security provider (again, in JSSE1.0.1)
int iap = java.security.Security.addProvider(new
com.sun.net.ssl.internal.ssl.Provider() );
dennis

Similar Messages

  • URL exception: no protocol

    I wrote a https-URL-Reader using JSDK 1.5 who includes the latest JSSE. First the https-URL-reader fetches a page from a server who uses url-rewriting for session-tracking. So far the first step is working well, I got the page content. Inside this page are hrefs pointing to follow-up-pages. These hrefs includes a url with a JSESSIONID and params who looks like this:
    https://host.server.domain/path;JSESSIONID=id1...!id2..?name1=value&name2=value.
    The prog gets a follow-up-href from the content extract the url and tried to fetch the related page. At this point everything went down the street ... with an URL-exception: no protocol! I guess its depending an the semi-colon inside the url!
    I wondering getting a url with included JSESSIONID should be a daily task!
    When I paste this URL into a browser (IE 6) it works!
    So where is the mistake???
    Any ideas and help are welcome.
    Thanks a lot!
    Detlev
    Here are the related urls and the important code-parts:
              // The following string represents the Start-Page
              String requestedURL = "https://direkt.postbank.de/direktportalApp/index.jsp";
              /*The requestedURL is proceed with https-URL-Reader and creates a file which has the page
              content to the caller. It works fine!*/
              /* This next string shows the URL extract from a href which is given for
              a follow-up-page. This URL contains now the JSESSIONID and some params.*/
              String requestedURL = "https://direkt.postbank.de/direktportalApp/application;JSESSIONID_direktportalApp=CzJMF8h3LZzd7MnfsDDpFLKWp5y81s5FcGG9vkVnF6cyTKGnQvfv!824009080?origin=login.jsp&event=bea.portal.framework.internal.portlet.event&pageid=login&portletid=login&wfevent=button.info.weiter";
              /*With this requestedURL the https-URL-Reader is called again to fetch the follow-up-page.
              Immediately a malformedURLException is thrown and the game is over!*/
    Code-Snippet https-URL-Reader (only the important lines):
         String requestURL(String requestedURL){
         try{     ......
              URL search = new URL(requestedURL);                    
              URLConnection httpscon = search.openConnection();
              File outputFile = new File(dir,file);          
              FileWriter out = new FileWriter(outputFile);
              BufferedReader in = new BufferedReader(new InputStreamReader(httpscon.getInputStream()));
              while ((inputLine = in.readLine()) != null){
                        buffer.append(inputLine+"\n");
                        out.write(buffer.toString());
                        out.flush();
                        buffer.delete(0, buffer.length()-1);
              in.close();
              return (file);
         catch (Exception e){ 
              System.out.println("Error: "+e);     }
    p.s.
    I apologize for my bad english

    The prob is solved.

  • Comparing Collection object with a string

    Hi everyone,
    There is my problem: I have a program that generate all possible combinations of a certain number of letters for example: -ABC- will gives A, B, C, AB, AC, BC, ABC. Everything is fine at this point. But then the user can input a string like "AB" and I have to tell him if this string is contained in the generated set. My set is in a Collection, but when I used : LetterCombination.Contains(TextString), it returns always false. Even if I know that the string is contained in the set.
    Here is the code to generate the set:
    public class Recursion
         Collection LetterCombination;
    /*String Letters is the letters which I have to generate the combination, and
    the LetterNumber is the number of letters contained in my string.*/
         public Recursion(Set ItemLetters, String Letters, int LetterNumbers)
              ItemLetters = new TreeSet();
    String[] Token = Letters.split(" ");
    /*Adding the letters in the TreeSet*/
    for (int i = 0; i < LetterNumbers; i++)
         ItemLetters.add(Token);
    LetterCombination = BuildLetterSet(ItemLetters);
    private Collection BuildLetterSet(Set ItemLetters)
    Set NotUsedYet = new TreeSet();
    Set thisPowerSet = new TreeSet();
    Collection Letterresult = new ArrayList();
    NotUsedYet.addAll(ItemLetters);
    BuildByRecursion(NotUsedYet, thisPowerSet, Letterresult);
    return Letterresult;
    private void BuildByRecursion(Set notUsedYet, Set thisPowerSet, Collection result)
    if(notUsedYet.isEmpty())
    if(!thisPowerSet.isEmpty())
    Set copy = new TreeSet();
    copy.addAll(thisPowerSet);
    result.add(copy);
    return;
    Object item = notUsedYet.iterator().next();
    notUsedYet.remove(item);
    BuildByRecursion(notUsedYet, thisPowerSet, result);
    thisPowerSet.add(item);
    BuildByRecursion(notUsedYet, thisPowerSet, result);
    thisPowerSet.remove(item);
    notUsedYet.add(item);
    And if I print out the LetterCombination collection, it gives me:
    [C]
    [B, C]
    [A]
    [A, C]
    [A, B]
    [A, B, C]
    Which are the good combination needed. But I really don't understand how to compare this collection with the string entered by the user.
    I'm really lost. can somebody help me! Thanks in advance...

    You don't show where you call this constructor, or what your arguments are:
    public Recursion(Set ItemLetters, String Letters, int LetterNumbers)
       ItemLetters = new TreeSet();
       String[] Token = Letters.split(" ");
       /*Adding the letters in the TreeSet*/
       for (int i = 0; i < LetterNumbers; i++)
          ItemLetters.add(Token[ i ]);
       LetterCombination = BuildLetterSet(ItemLetters);
    }But, the constructor doesn't make sense, anyway. itemLetters is immediately set to a new TreeSet, so whatever you passed in (if anything) for the first argument is unchanged by the constructor (and the new TreeSet is lost when you finish the constructor). Also, you split your input Letters on space, but rely on LetterNumbers for the length of the split array (which may or may not be accurate). Why not do a 'for' loop testing for "i < Token.length", and eliminate LetterNumbers parameter? Your input for the second parameter to this constructor would have to be "A B C D" (some letters delimited by spaces). Your constructor only needs one parameter--that String.
    The capitalization of your variables doesn't follow standard coding conventions. Your code is hard to read without the "code" formatting tags (see "Formatting Tips"/ [ code ] button above message posting box).

  • Naming an object with a string.

    Is it possible to make on object that is named with a String?
    so you make a string String a = "Hello";
    and then you make an object that is called Hello.
    Does anyone know?
    thx, SJG

    AFAIK, no. But depending on what you want to do, there are various ways of storing a String on the basis of another string received at runtime.
    A HashMap, for example, could use the String "Hello" as a key to get at another string:
    HashMap map = new HashMap();
    String inputA = "hello";
    String inputB = "to be stored";
    map.put(inputA, inputB);
    System.out.println(map.get(inputA));Perhaps that might be useful to you?

  • Problem with web service that returns an object with a String that have som

    Hi everybody:
    I have a problem with a web service I am doing, I have made a web service that returns a collection of objects, the objects have a set of properties, there is one property that is a String,this property consists in a text fragment that could have some characters that are considered special in XML like &, <, >, " and that's why when I execute the service from a client an exception is thrown:
    {code}
    Exception in thread "main" org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Could not read XML stream.. Nested exception is com.ctc.wstx.exc.WstxParsingException: Expected a text token, got START_ELEMENT.
    at [row,col {unknown-source}]: [9,646]
    org.codehaus.xfire.fault.XFireFault: Could not read XML stream.. Nested exception is com.ctc.wstx.exc.WstxParsingException: Expected a text token, got START_ELEMENT.
    at [row,col {unknown-source}]: [9,646]
    at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
    at org.codehaus.xfire.client.Client.onReceive(Client.java:410)
    at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)
    at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
    at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
    at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
    at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
    at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
    at org.codehaus.xfire.client.Client.invoke(Client.java:336)
    at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
    at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
    at $Proxy0.search(Unknown Source)
    at cu.co.cenatav.webservices.client.Client.main(Client.java:26)
    {code}
    I know that this is happening because special characters are sent by the soap message but I don't know how to solve this problem.
    How could I avoid this exception ?
    I hope you can help me.
    Regards.
    Ariel

    Hi,
    BPEL and BPEL PM do not have a good support for SOAPENC-Array: it would be very difficult to create such an array in BPEL or to receive it and manipulate it.
    The (unfortunately very intrusive) work around is to change the WSDL of the service to use a XML type defined using XML schema. This is all the more painful that JDev 9.0.4 does not have strong support for complex types.
    In general though, I would highly recommend this best practice:
    1) Start by define the WSDL contract first
    2) Then generate the server side skeleton to implement it
    3) Use BPEL as the client to this contract.
    By starting with the contract first, you make sure that 1) your interfaces are clean and coarse grained.
    2) things like java objects, sessions, etc to not leak through the interface (which would be the worst thing that could happen because it would closely link the client and the server.
    Sorry for not being more helpful. This will get radically cleaner in Oracle AS 10.1.3.
    Edwin

  • Declaring an object with a string

    Is there a way to declare a data object (at runtime) from a
    string descriptor? For example, lets say I load a text file that
    contains the following string: "{name:"bob", age:42,
    location:"earth"}". Is there a way to then have Flash parse the
    string and interpret it as an Object object in memory?
    Thanks!

    This may be just what I need, thanks for the tip!
    I've set up a quick test though, and I'm having some
    problems. My code is as follows:
    import JSON;
    var str:String = "{'var1':'hello world'}";
    var obj:Object = JSON.parse(str);
    trace(obj.var1);
    All that I'm getting is an "[object Object]" trace in my
    output window (upon JSON.parse() calling). Scripts following the
    parse command do not run (ie: the trace action). And, if I try to
    access the obj object later (I was checking it upon a button
    press), then Flash is reporting that obj is undefined. Do you have
    any insight on this?
    Thanks for your help!!

  • Java function with Dynamic config throws null pointer exception

    hi Experts,
       I am using dynamic config using java function in my message mapping.
      The source message has a field called "fname".
      The value of "fname" is the input to my java UDF.
      The java UDF code is:
       public String getDynamicFile(String fname, Container container) throws StreamTransformationException{
       String str = fname + ".xml";
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey FileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","FileName");
    conf.put(FileName, str);
    return str;
       When I test this message mapping I get the following exception:
       Runtime Exception:[java.lang.NullPointerException: while trying to invoke the method com.sap.aii.mapping.api.DynamicConfiguration.put(com.sap.aii.mapping.api.DynamicConfigurationKey, java.lang.String) of an object loaded from local variable '<4>'] in class com.sap.xi.tf._<message mapping>_ method getDynamicFile[test, com.sap.aii.mappingtool.tf7.rt.Context@2e52cb31]
    What am I doing wrong in this UDF?
    Thanks
    Gopal

    Hi,
          Your UDF will run fine in an end to end execution,i.e, during runtime. However, if you want to test your message mapping test tab without the dynamic config UDF throwing an exception, encpasulate the code in a try catch block
    public String getDynamicFile(String fname, Container container) throws StreamTransformationException{
    String str = fname + ".xml";
    try{
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey FileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","FileName");
    conf.put(FileName, str);
    }catch(Exception ex){}
    return str;
    The above code should run fine when you test in the message mapping test tab.
    Regards

  • Encryt with a String

    Hi all
    This is the first time that I'm trying to use de cryto api, but my purpose is to encrip a object with a String of my, and then serialize it.
    I've found the following example on the net:
    try {
    // Generate a temporary key. In practice, you would save this key.
    // See also e464 Encrypting with DES Using a Pass Phrase.
    SecretKey key = KeyGenerator.getInstance("DES").generateKey();
    // Prepare the encrypter
    Cipher ecipher = Cipher.getInstance("DES");
    ecipher.init(Cipher.ENCRYPT_MODE, key);
    // Seal (encrypt) the object
    SealedObject so = new SealedObject(new MySecretClass(), ecipher);
    // Get the algorithm used to seal the object
    String algoName = so.getAlgorithm(); // DES
    // Prepare the decrypter
    Cipher dcipher = Cipher.getInstance("DES");
    dcipher.init(Cipher.DECRYPT_MODE, key);
    // Unseal (decrypt) the class
    MySecretClass o = (MySecretClass)so.getObject(dcipher);
    } catch (java.io.IOException e) {
    } catch (ClassNotFoundException e) {
    } catch (javax.crypto.IllegalBlockSizeException e) {
    } catch (javax.crypto.BadPaddingException e) {
    } catch (javax.crypto.NoSuchPaddingException e) {
    } catch (java.security.NoSuchAlgorithmException e) {
    } catch (java.security.InvalidKeyException e) {
    But i like to use it with my own key (String object), anyone knows which changes need to be performed?

    This is my standard DES example -
    import javax.crypto.*;
    import javax.crypto.spec.*;
    import java.security.*;
    import sun.misc.*;
    public class DESEncryptDataString
        static public class EncryptionException extends Exception
            private EncryptionException(String text, Exception chain)
                super(text, chain);
        public DESEncryptDataString(byte[] keyBytes, byte[] ivBytes, String characterEncoding) throws EncryptionException
            assert (keyBytes != null) && (keyBytes.length == 8);
            assert (ivBytes != null) && (ivBytes.length == 8);
            assert (characterEncoding != null);
            try
                SecretKey key1 = new SecretKeySpec(keyBytes, "DES");
                // To demonstrate that the least significant bit is the parity bit and can be ignored.
                keyBytes[0] ^=0x01;
                SecretKey key2 = new SecretKeySpec(keyBytes, "DES");
                IvParameterSpec iv = new IvParameterSpec(ivBytes);
                this.characterEncoding = characterEncoding;
                this.encryptCipher = Cipher.getInstance("DES/CBC/PKCS5Padding", "SunJCE");
                this.encryptCipher.init(javax.crypto.Cipher.ENCRYPT_MODE, key1, iv);
                this.decryptCipher = Cipher.getInstance("DES/CBC/PKCS5Padding", "SunJCE");
                this.decryptCipher.init(javax.crypto.Cipher.DECRYPT_MODE, key2, iv);
            catch (Exception e)
                throw new EncryptionException("Problem constucting " + this.getClass().getName(), e);
        synchronized public byte[] encrypt(String dataString) throws EncryptionException
            assert dataString != null;
            try
                byte[] dataStringBytes = dataString.getBytes(characterEncoding);
                byte[] encryptedDataStringBytes = encryptCipher.doFinal(dataStringBytes);
                return encryptedDataStringBytes;
            catch (Exception e)
                throw new EncryptionException("Problem encrypting string", e);
        synchronized public String decrypt(byte[] encryptedDataStringBytes) throws EncryptionException
            assert encryptedDataStringBytes != null;
            try
                byte[] dataStringBytes = this.decryptCipher.doFinal(encryptedDataStringBytes);
                String dataString = new String(dataStringBytes, characterEncoding);
                return dataString;
            catch (Exception e)
                throw new EncryptionException("Problem decrypting string", e);
        public static void main(String[] args)
            try
                // Make sure SUN are a valid provider
                Security.addProvider(new com.sun.crypto.provider.SunJCE());
                // The DES Key - any 8 bytes will do though beware of weak keys.
                // This could be read from a file.
                final byte[] keyBytes = "01234567".getBytes("ASCII");
                // IV For CBC mode
                // Again, could be read from a file.
                final byte[] IVBytes = "ABCDEFGH".getBytes("ASCII");
                // Data string encrypt agent that assumes the data string is only ASCII characters
                DESEncryptDataString dataStringEncryptAgent = new DESEncryptDataString(keyBytes, IVBytes, "UTF-8");
                // Get the data string to encrypt from the command line
                String dataString = (args.length == 0)? "The quick brown fox jumps over the lazy dog." : args[0];
                System.out.println("Data string ....................[" + dataString + "]");
                byte[] encryptedDataStringBytes = dataStringEncryptAgent.encrypt(dataString);
                BASE64Encoder base64Encoder = new BASE64Encoder();
                System.out.println("Encoded encrypted data string ..[" + base64Encoder.encode(encryptedDataStringBytes) + "]");
                String recoveredDataString = dataStringEncryptAgent.decrypt(encryptedDataStringBytes);
                System.out.println("Recovered data string ..........[" + recoveredDataString + "]");
            catch (Exception e)
                e.printStackTrace(System.out);
        private String characterEncoding;
        private Cipher encryptCipher;
        private Cipher decryptCipher;
    }Please note, DO NOT TRY TO CONVERT THE ENCRYPTED DATA TO A STRING USING
    String encryptedDataAsString = new String(encryptedDataStringBytes)
    as not all bytes and byte sequences can be recovered from teh resulting String. The result depends on the encoding.
    If you need a String representation then use Base64 or Hex encoding.

  • Instantiating Object with NDS

    I'm having no success in instantiating object with NDS. Does anyone know whether is possible?
    I can hard code a statement as follows:
    pkg1.gs_nt(gs_nt.LAST) := NEW SomeObject_ot('x');
    where pkg1 is a package with the gs_nt variable declared in the spec. (global scope). The var. gs_nt is a nested table of SomeObject_ot type.
    When I try to use the same approach using NDS I get error messages at compile time:
    PLS-000103: Encountered the symbol "" - When I try to use the SomeObject_ot in a USING clause to set the value of a placeholder. In other words, it doesn't do the substitution.
    PLS-00382: expression is of wrong type - when I try to concatenate the object with a string.
    Based on the above, I've concluded that NDS can't be used to instantiate object types.
    Is thsi conclusion correct? Does anyone have a solution?

    Does this do what you need?
    SQL> create or replace type SomeObject is Object (
      2         val varchar2(10)
      3  ) ;
      4  /
    Type created.
    SQL>
    SQL> create or replace type SomeObject_nt is table of SomeObject ;
      2  /
    Type created.
    SQL>
    SQL> CREATE OR REPLACE PACKAGE pkg1 IS
      2      gs_nt someobject_nt;
      3      PROCEDURE initialize(p_var IN VARCHAR2,
      4                           p_obj IN VARCHAR2);
      5  END;
      6  /
    Package created.
    SQL> CREATE OR REPLACE PACKAGE BODY pkg1 IS
      2      PROCEDURE initialize(p_var IN VARCHAR2,
      3                           p_obj IN VARCHAR2) IS
      4          str VARCHAR2(4000);
      5      BEGIN
      6          str := 'begin ' ||
      7                 '  ' || p_var ||'.EXTEND ; '||
      8                 '  ' || p_var || '(' || p_var ||'.LAST) := NEW ' || p_obj || '(:val) ; ' ||
      9                 'end ;';
    10          dbms_output.put_line('Count=' || pkg1.gs_nt.COUNT);
    11          EXECUTE IMMEDIATE str
    12              USING 'String';
    13          dbms_output.put_line('Count=' || pkg1.gs_nt.COUNT || ' pkg1.gs_nt(1).val='||pkg1.gs_nt(1).val);
    14      END;
    15  BEGIN
    16    gs_nt := SomeObject_nt() ;
    17  END;
    18  /
    Package body created.
    SQL> set serveroutput on size 100000
    SQL> exec pkg1.initialize(p_var => 'pkg1.gs_nt',p_obj => 'SomeObject') ;
    Count=0
    Count=1 pkg1.gs_nt(1).val=String
    PL/SQL procedure successfully completed.
    SQL>

  • WL510 SP 6 InitialContext with http/https/rmi protocol IS NOT WORKING

    Hi
    I wanted to try SP6 for WL510 and noticed that
    that you can not create initial context with http protocol anymore.
    Is this a feature or you guys made t3 tuneable?
    I couldn't find any documentation related to that.
    If I try t3 everything is fine. (If I revert to SP5 all protocols are
    working.)
    Here is some stack trace with the rmi protocol as example
    javax.naming.ServiceUnavailableException. Root exception is
    java.net.UnknownHost
    Exception: Unknown protocol RMI for somehost/10.1.110.1
    at
    weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java
    :239)
    at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:223)
    at
    weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:186
    at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:155)
    at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:200)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
    tialContextFactoryDelegate.java:195, Compiled Code)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
    tialContextFactoryDelegate.java:148)
    at
    weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialCont
    extFactory.java:123)
    at
    javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    71)
    at
    javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242
    at javax.naming.InitialContext.init(InitialContext.java:218)
    at javax.naming.InitialContext.<init>(InitialContext.java:194)

    I would like to retract this complaint :)
    I did not read the sp document thouroughly. There is a new property
    introduced called
    weblogic.httpd.tunnelingenabled=
    It needs to be set to true in order to enable tunneling with SP6. Maybe more
    visible sp docs ?
    see issue33320 in the Readme.txt file, coming with SP6.
    Thanks,
    Antoan Nikolaev.
    "Antoan Nikolaev" <[email protected]> wrote in message
    news:3a299ac5$[email protected]..
    Hi
    I wanted to try SP6 for WL510 and noticed that
    that you can not create initial context with http protocol anymore.
    Is this a feature or you guys made t3 tuneable?
    I couldn't find any documentation related to that.
    If I try t3 everything is fine. (If I revert to SP5 all protocols are
    working.)
    Here is some stack trace with the rmi protocol as example
    javax.naming.ServiceUnavailableException. Root exception is
    java.net.UnknownHost
    Exception: Unknown protocol RMI for somehost/10.1.110.1
    at
    weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java
    :239)
    at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:223)
    at
    weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:186
    at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:155)
    at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:200)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
    tialContextFactoryDelegate.java:195, Compiled Code)
    at
    weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
    tialContextFactoryDelegate.java:148)
    at
    weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialCont
    extFactory.java:123)
    at
    javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    71)
    at
    javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242
    at javax.naming.InitialContext.init(InitialContext.java:218)
    at javax.naming.InitialContext.<init>(InitialContext.java:194)

  • Attaching a URL which does not start with HTTP / HTTPS in SAP TM

    Dear Experts,
    I am trying to insert a new URL to a Attachments table in FWO / FRB application.
    My URL neither start with HTTP  nor HTTPS (Ex: Z3://searchsmartstart...). while I am trying to insert such URL, I am getting an error message 'URL not valid.Check if the URL contains the protocol (HTTP/HTTPS). Message ID - /SCMTMS/UI_MESSAGES and message number 088.
    After some analysis, I have understood that WebDynpro ABAP framework does not accept such URL.
    Could you please guide, is there any other way of doing it? The URL which I am trying to access is of SMART CLIENT.
    Thanks in advance for your reply.
    Thanks,
    Bharath.K

    Hi Bharath,
    Yes, you can achieve the same via URL redirection. Please follow the below steps.
    1.Create a service in SICF e.g. sap/bc/redirect_z3 in your SAP TM system and follow following steps.
    2. Create a class with interface IF_HTTP_EXTENSION e.g. ZCL_REDIRECT_URL
    3. Maintain  class created in step 2 into the Handler List of the service created in step 1.
    4. In class ZCL_REDIRECT_URL Method IF_HTTP_EXTENSION~HANDLE_REQUEST write below code
                        Data: lv_target type string.
                           lv_target = 'Z3://searchsmartstart.......'
                          server->response->redirect( url = lv_target ).
    5. You can also read the parameter from the source URL with below program code
    CALL METHOD server->request->get_form_data
        EXPORTING
          name = 'PAR1'
        CHANGING
          data = lv_par1.
    6. Now attach the URL of your service created in step 1(Which will be http/https URL) to Attachments table in FWO / FRB application with parameter you want.
    Now once you click this URL , Mehtod IF_HTTP_EXTENSION~HANDLE_REQUEST in Handler list class will execute here you can read the parameter as mentioned above and form a target URL and redirect to you intended target .
    Thanks, Pravin

  • Catalog Manager not working with https url

    Hi,
    On the BI server, we had to implement SSL and now I do not seem to be able to connect to the catalogue manager.
    The connection to the BI User interface works fine with https, it is only the catalogue manager that shows this error:
    Unknown connection error: sun.security.validar.Validator.Exception:PKIX path build failed:
    sun.security.provider.certpah.SunCertPathBuilderException: unable to find
    valid certification path to requested target
    Thanks and Regards
    G.

    Hi,
    Try to connect the catalogue manager by using below kind of URL.
    e.x:
    http://IP:9704/analytics/saw.dll
    Thanks
    Deva

  • WSRP Provider reg not working with https url

    Our portal is configured with https, listening to a virtual host (https://portalpilot:4443)
    In order to consume WSRP / JSR168 java portlets we
    - created a new OC4J container (wsrp_dev)
    - installed the portlet-container ( $MIDTIERHOME/j2ee/wsrp_dev/ java -jar wsrp-install.jar)
    - started the container & deployed the samples
    all OK
    but when trying to register the (tested & OK ) url https://portalpilot:4443/portalapp?WSDL
    in the Provider Registration we got an error (error in provider url)
    changing the url to the non-ssl host (http://gogol:7777) was the (pseudo) solution.
    is this behavior by design? we would like to use SSL throughout

    OOS,
    Did the info in the release notes solve your problem?
    It seems to me that the release notes address a similar but different issue. You want to run under https. The release notes are instructing you to change all references to https to http in the WSDL file. I don't see how this would fix the problem of trying to register a WSRP provider with a WSDL URL that uses https.
    The reason I ask is because I am encountering the same problem.
    Thanks.
    Message was edited by:
    user571987

  • Download URLs doesn't work with https url's?

    I've setup a simple workflow to pull manuals from a local library. The script looks like this:
    Get Current Webpage from Safari
    Get Link URLs from Webpages (Only return URLs in the same domain as the starting page unchecked)
    Filter URLs Entire URL ends with .pdf
    (stepping through it the correct files appear here)
    Download URLs
    In my practice run, with only 2 pdfs, nothing gets downloaded. I then go to a regular non https website and use the same workflow to download images, exchanging .pdf for .jpg in the filter.
    Is it https that is preventing the download?

    I think I can confirm that *Download URLs* will not work with https: links. The same library had some files linked with http: and the workflow had no problem with those.

  • Does the URL object support https?

    does the URL object support https?
    i use to get an error message - that it did not recognize it.
    sincerely
    stephen

    I would love to know the details in case someone out there knows.
    I already have
    jcert.jar
    jnet.jar
    jsse.jar
    in this path C:\jdk1.3.1_01\jre\lib\ext
    And as you can see, I am using jdk1.3.1

Maybe you are looking for

  • Get Url doesnt work in my flash .swf page

    Get url doesnt work in my flash .swf page www.wackyworld.biz/north.swf click on the building is supposed to go to a site. I made all the buildings symbols and when i hit f9 the actions window opens i put on bowling building on (Release) get URL (http

  • Adding a new field and new data item breaks layout

    I am adding a new field to a subform and populating it form a .Dat unfortunatly adding this field is causing data outputed to the subform below it to shift down one line on the page when outputted. This new field is outputted at the top of the form a

  • Importing Fireworks Slideshow to DW

    I've created a slideshow in Fireworks, but I don't know how to get it into Dreamweaver. Can anyone help me? Thank you!

  • Premiere Pro 2014 is crashing and freezing and I have to use force quit to get it to shut down.

    Premiere Pro 2014 is crashing every day. i am running Premiere Pro 2014 on a 2013 imac with 3.4 GHz Intel Core i5 with 16  GB RAM. Playback on premiere continually freezes and the program crashes. Or the playback will start to freeze and then I save

  • Iphone in recovered mode, why?

    why suddenly my iphone 4 in recovered mode, i am updating just now and suddenly goes like tis now even cant on my phone and inform thtat need restore all phone. wth