Custom Protocol Handler  in WL6.0

Hi
I wrote my own url protcol handler for retrieving data with custom URLs.
It works fine in a client application, but when my custom URLs are invoked
in EJB code running inside WL6, the URL is not recognized : I get a
MalformedURLException.
Note that I added a debug statement that checks the value of the system
property java.protocol.handler.pkgs
and my package is correctly listed there after many weblogic packages.
has anyone ever been able to use a custom protocol handler inside WL6 ?
regards,
Edo

Hi,
First, I want to know what kind of Windows do you use? If it is a Windows server system, there might be a security setting that prevents this, you can try to turn it off in this way:
 Open the Server Manager, then select IE ESC,
 Turn off the Internet Explorer Enhanced security configuration both for administrator and        users in the way as the screenshot below:
If you are using a Windows client system, try to add the local address to the local intranet security setting in this way:
Open Internet Explorer, then select Internet option, click “security” item.
Select Local Intranet then click “sites”, then click “advanced”.
Add the local sites as the screenshot below:
Wade Liu
TechNet Community Support

Similar Messages

  • My custom protocol handler isn't working after upgrading from 3.0

    Redhat Enterprise Linux 4
    Firefox 3.6.7. Updated via RedHat Network.
    I'm trying to add a custom protocol handler (gdc) to Firefox. This worked in 3.0 and earlier. Now I'm getting "Firefox doesn't know how to open this address, because the protocol (gdc) isn't associated with any program." errors.
    Tried adding network.protocol-handler.app.gdc string with valid path. Didn't work. Went to #firefox irc.mozilla.org and was recommended that I add network.protocol-handler.expose.gdc and set it to false. I still get the error.

    Hi There,
    Yep I can confirm that I am having problems with wifi as well.
    My problem is that it is not re-joining known networks.
    Also the auto login feature designed for hotspots does not seem to work well either. The Log In Screen slides up then an error keeps repeating on the page...."Error Opening Page - The page could not be opened because an error occurred"

  • Creating custom protocol handler

    Hi all java's guru I hope that you guys can help me. I,ve been trying to develop custom protocol handler that handles this kind of url:
    jdbc://driver_type/database_url/statement
    I have override the URLConnection class but i get confused where to set the input stream and output stream.
    Your guys help will be really appreciated.
    Thanks in advance

    Well I've been busy implementing Thinkfree
    application server(online office applet). I have
    succeeded implementing webdav protocol(it's not that
    difficult since webdav works also via http) Now I'm
    trying to develop custom file object that getting his
    inputstream and outputstream from and into the
    database. Because database connection in java only
    possible via jdbc so I have to write my own
    URLStreamHandler and URLConnection class. Does
    anybody has experience in developing a custom
    protocol handler? any advice will be appreciatedAre you aware that the actual protocol used for communication to a database is totally proprietary? As in it depends on the database?
    Could you describe how you think this will work exactly? Because you can't just write a one-size fits all solution here. It just does not exist. And I am not too sure what you mean by the input and output streams from and into the database mean.

  • Custom protocol handler for Server and Client

    Hi there,
    I have been reading about "A New Era for Java Protocol Handlers" from http://java.sun.com/developer/onlineTraining/protocolhandlers/ . I would like to redesign my existing codes to suit this architecture.
    The article mentioned about write client side application. I am wondering whether it will be possible to use the same architecture for server side as well ?
    If it is possible, it will be the very kind of you all to guide me to the right direction. Thank you in advance.

    Thanks for your input. Yeah, the article has been there for quite sometimes. That's why I am a bit sceptical about using it. The strange thing is that there has not been any updates about this topic since then (searched in google and not many web pages are mentioning this thing). I am wondering whether it is a good choice to change the code or not.

  • Protocol handler in WL6sp1

    Hi,
    We've written our own url protocol handler for retrieving data with
    custom URLs. It works fine in a client application using:
    new java.net.URL("protocol://host:port/blah/blah.xml"); //1
    and in EJB code using
    new java.net.URL(null, "protocol://host:port/blah/blah.xsl", _handler);
    //2
    but when my custom URLs are invoked in EJB code running inside
    WL6 without specifying a Handler (like //1, which is how I need to use
    them),
    the URL is not recognized : I get a MalformedURLException.
    Note that I added a debug statement that checks the value of the
    system property java.protocol.handler.pkgs and my package is
    correctly listed there after many weblogic packages.
    has anyone ever been able to use a custom protocol handler inside WL6 ?
    thanks,
    Steve

    This is the WLE section (the C/C++ product), not WLS (the Java product).
    Try reposting -- maybe in the Servlet or Misc section.
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    http://www.tangosol.com
    +1.617.623.5782
    WebLogic Consulting Available
    "steve liles" <[email protected]> wrote in message
    news:3aed3039$[email protected]..
    Hi,
    We've written our own url protocol handler for retrieving data with
    custom URLs. It works fine in a client application using:
    new java.net.URL("protocol://host:port/blah/blah.xml"); //1
    and in EJB code using
    new java.net.URL(null, "protocol://host:port/blah/blah.xsl", _handler);
    //2
    but when my custom URLs are invoked in EJB code running inside
    WL6 without specifying a Handler (like //1, which is how I need to use
    them), the URL is not recognized : I get a MalformedURLException.
    Note that I added a debug statement that checks the value of the
    system property java.protocol.handler.pkgs and my package is
    correctly listed there after many weblogic packages.
    has anyone ever been able to use a custom protocol handler inside WL6 ?
    thanks,
    Steve

  • File, Send link doesn't open a new email. Using Firefox 11.0. Outlook 2010 is the Mailto default and W7 default email program. On the About:config page network.protocol-handler.external.mailto is set to regular font (not bold) "default Boolean true".

    File, Send link doesn’t open a new email. Running Firefox 11.0. Outlook 2010 is the Mailto default and the W7 default email program. On the About:config page, network.protocol-handler.external.mailto is set to regular font (not bold) “default Boolean true”.

    I assume you have tried toggling the setting in Firefox between Outlook and, say, Gmail:
    orange Firefox button ''or'' classic Tools menu > Options > Applications
    In the search box, type or paste '''mailto''' and pause for the list to filter.
    Change the setting and OK to save it, then return to the dialog, change back, and OK again.
    You also might want to toggle the setting at the OS level between Microsoft Outlook and the native Windows Mail client in a similar fashion. In Windows XP you could use IE's Options dialog, Programs tab, for this, but I'm not sure in Windows 7.
    Since one possibility is a problem in your Firefox settings (including the possibility of interfering add-ons), and another is a problem at the Windows level (e.g., Registry settings), it would be useful to try to identify which one it is. One quick way to distinguish is to create a new Firefox profile. It will start up with all factory settings. You can switch back to your existing profile after testing.
    First, I recommend backing up your Firefox settings in case something goes wrong. See [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    After closing Firefox, start up again in the Profile Manager as described in this article: [http://support.mozilla.com/kb/Managing+profiles Managing profiles].
    With the new profile, can Firefox successfully create a message in Outlook?

  • Custom event handler

    Just curious. I made a custom event handler that is
    dispatched from within a class when an XML document is loaded. The
    listener is attached to the instance of that class in the FLA. The
    attached code to this thread is what is for the class instance.
    Does that have to be out there? Is there a cleaner way to do it so
    that the code would be away in a class? Just wondering....
    Thanks!

    Well I need my instance to know when the data is loaded into
    the object, but I wish there was a more transparent way to do it. I
    guess I could somehow put that stuff into the initiation of the
    class....

  • ADF Custom error handler not working.

    Hi All,
    i am using jdev version 11.1.1.5.0. i have created one custom error handler class in model layer which extend DcErrorHandlerImpl class.
    and do the entry in Databinding.cpx file
    *<Application ErrorHandlerClass="mypackage.classname"/>*
    i have override getDisplayMessage(BindingContext ctx, Exception ex) method to show SQL Exception which comes from database table trigger.
    code is following-
    package com.in.jagran.view.services;
        import java.sql.SQLException;
        import oracle.adf.model.BindingContext;
        import oracle.adf.model.binding.DCErrorHandlerImpl;
        import oracle.jbo.JboException;
        public class AclasErrorHandler extends DCErrorHandlerImpl {
          public AclasErrorHandler(boolean setToThrow) {
            super(setToThrow);
            System.out.println("Inside Error Handler class");
          public AclasErrorHandler() {
              super(true);
           // this(true);
           * Returns the message that will be reported to JSF for each error that occurs.
           * Returning "null" is the way the custom error handler signals that a given exception
           * should not be reported to the client.
          @Override
          public String getDisplayMessage(BindingContext ctx, Exception ex)
            if (ex instanceof oracle.jbo.ValidationException) {
              return super.getDisplayMessage(ctx, ex);
            else {
              // Extract and return the error message that has to be displayed
              Exception exception = ex;
              String message = "";
              // If this exception is an instance of JboException,
              // try to find the cause by recursing over the eventual causing exceptions
              if (exception instanceof JboException)
                Throwable[] exceptionList = ((JboException)exception).getExceptions();
                while (exception instanceof JboException
                        && exceptionList != null && exceptionList.length > 0)
                  exception = (Exception)exceptionList[0];
                  if (exception instanceof JboException) {
                    exceptionList = ((JboException)exception).getExceptions();
              // *** Special processing of SQLExceptions
              if (exception instanceof SQLException) {
                message = exception.getMessage();
                // Ignore the lines in the error message that indicate the line number in the PLSQL code that the error resulted on.
                int ind = message.indexOf("ORA-06512");
                if (ind > 0)
                  message = message.substring(0, ind);
              // *** If the the reason for the JboException was data creation exception then display the message
              // of the top JboException (i.e. JBO-*****: Invalid numeric value, date format or time format)
              else if (exception instanceof NumberFormatException || exception instanceof IllegalArgumentException) {
                // Report the top exception
                message = ex.getMessage();
              // Otherwise report the message of the lowest exception in the hierarchy
              else {
                message = exception.getMessage();
              return message;
        }but it is not working for me.
    thanks in Advance.

    yes i have used dubugger.
    i have set break point to following line-
    return super.getDisplayMessage(ctx, ex);
    if (ex instanceof oracle.jbo.ValidationException) {
            return super.getDisplayMessage(ctx, ex);   
    }when atttribute validation done like i have attribute of type number and i have done the validation "must be greater than 0" now when i have given negative value control go to above line.
    and i have added following code also in handler class
            @Override
               public void reportException(DCBindingContainer dCBindingContainer,
                                           Exception exception) {
    System.out.println(exception.getMessage());
                       super.reportException(dCBindingContainer, exception);
                   }now when i have done commit operation control go to here and println statement print follwoing error on log window.
    JBO-26041: Failed to post data to database during "Rollback to Savepoint": SQL Statement "null".

  • Problem reading custom property file from custom event handler.

    Hi,
    My custom event handler needs some bits of information that I have set up in a property file. However, when the event handler runs it throws a FileNotFound exception - actually its because permission was denied.
    I have added the code System.getProperty("user.name") to find out the actual user that the event handler is running as. It reports that "oracle" is the user.
    That's great. However, the permissions on the file will allow oracle to read/write the file. If I log onto the server where OCDB runs (as oracle), I can vi the file.
    The file is owned by another user, but the "oracle" is a member of the group that has read/write (we're running on a unix box). The file is not 777.
    The event handler is actually calling a static utility method that returns the Properties. This utility is used elsewhere in other custom apps in conjunction with OCDB (on the same server). It works there, so the utility is functioning correctly.
    Is there something going on that I'm missing? Like somehow the event handler is acually runn as somebody else?
    Here is the node log.
    2007/07/17 12:52:16 [oracle.ifs] [37] 434364 system FINE: Error /opt/csc/sfi/configuration/sfi.properties (Permission
    denied) Additional INFO: java.io.FileNotFoundException: /opt/csc/sfi/configuration/sfi.properties (Permission denied)
    Thanks in advance for the help.
    Winston

    Matt,
    Sorry to have wasted your time. It was a server reboot issue. The ocdb server hasn't been restarted since early July. We added the users and groups late last week. Although we tested on line, the server wasn't quite up to speed with the new changes.
    We bounced the server and all is well.
    Thanks
    Winston

  • Custom View Handler

    I am creating a custom view handler , but I want that this view is used only for specific files(views) and for all other files I want that default handler to be used , can we do this in JSF ??If yes then how ??

    In your createView method of custom view handler, One of your parameter represents viewName. I guess you can inspect the viewName and delegate the method calls the appropriate implementation. You may also use a resource bundle in conjuction with this.
    This strategy depends on the enhancements that you wish to do in your custom implementation.
    I have never tried this before but dont you think its possible in your case?

  • Invalid endpoint uri with a new protocol (custom protocol)

    Hi!
    I've deployed a web service in the OSB console which has an endpoint with http protocol...(f.e. "http://myhost:port/WebService"), importing a jar which contains this files: proxy service, business service, schema and wsdl...
    I added to the weblogic server a new custom protocol.The endpoint of this new protocol must be like this: "tcp://host:port"...
    I've tried to redeploy the web service with the new protocol in the business service file...but when i redeploy the web service, the osb says that the uri is incorrect, because it's still having the last web service's uri : "http://myhost:port/WebService" and it doesn't match the new protocol's endpoint ( "tcp://...")...
    when i do the same change in the business service...(change the business service's protocol)...the osb automatically removes the existing uri and it shows me a new endpoint uri with the new protocol to add...
    does exist any way to remove the existing business service's endpoint uri when i redeploy the web service's jar in the osb console????
    Thanks!!
    Ingrid.
    Edited by: user11144501 on 17-ene-2011 7:46

    Changing URI and transport protocol itself are two different things. If you want to change URI only then that is very much possible using Customization File in OSB -
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e15867/customization.htm#CACJCAGD
    You may execute customization files using WLST as well.
    But in your case you want to change the transport protocol itself which may require changes in Transport Protocol Parameters (and other dependent settings), so it may not be possible to do the same using script. I think for changing transport protocol, you have to manually update all the service's configurations on sbconsole or in OEPE.
    Regards,
    Anuj

  • How to set up a label control from custom event handler?

    Hi,
    Below I try to describe my problem:
    I have a single instance of MyClass (I use Cairngorm framework), with ArrayCollection as a variable, in which I would like to keep a couple addresses from database.
    Additionaly  I created a custom components with a list of people retrieved from database, with eventhandler  for a doubleclick event. After I doubleclick on some person, I create a custom event and dispatch it. In command class connected with this event I connect to the database and get full data about this person and a set of her addresses. This set of addresses I placed into ArrayCollection in my model variable. And now I have a problem, because one of this address (the birth place) I would like to display below the list with persons, in a Panel with a couple of label control, but .... I can't to bind label control to my model.addresses[???] because I don't know if this doubleclicked person has this birth address at all?
    I wonder if it is possible to set up label control in my custom components in time when I'm receiving the data from database in my custom event handler???
    One of the way to achieve this is to define a string var in my model and placed this special address in it, and then the label control to this variable, for instance {model.birthplace}, but this is only needed for a moment, I don't want to keep this address in extra variable in model, because I have already it in my ArrayCollection in model, so it would be a duplicate.
    I hope that you could understand me and my english :-)
    Best regards

    Looks like I migh not be a novice swing programmer for long then.

  • Custom Error handling in DataSheet View with pop-up message or label controls or HTML

    I have a requirement in which DataSheet view is used to bulk edit or input list items and handle validations while in the process.
    We have validations done in event recievers before creating the list item. But could not provide a pop up or message with summary of all validation errors. these are buiness custom validations.
    Is there a way to custom error handle datasheet view? Is there a way to invoke a UI in context from event recievers?

    I have a requirement in which DataSheet view is used to bulk edit or input list items and handle validations while in the process.
    We have validations done in event recievers before creating the list item. But could not provide a pop up or message with summary of all validation errors. these are buiness custom validations.
    Is there a way to custom error handle datasheet view? Is there a way to invoke a UI in context from event recievers?

  • Custom Protocols in LabVIEW (Sending GOOSE messages)

    I know that IEC 61850 is not supported by NI but is there any way to use ethernet ports (and VIs) to send IEC 61850 GOOSE messages utilizing a PXI box?
    Is the only way to implement a OSI-7 protocol or custom protocols is to use a FPGA? There has to be some other way. No?
    If I was to use an FPGA, can I map FPGA I/O to ethernet cards in the PXI box? I bought a couple dual ethernet cards for my PXI box. So basically can I map virtual channels to ethernet physical layer? Probably didn't ask that correctly. 

    I have not used this protocol but usually you only have to implement the higher levels of the OSI, IE if this protocol is built ontop of TCP/IP or RS232 or 485 then you essentially only have to implement the upper layers (ie application/presentation)  this usually can be done in software depending on the timing.  There also could be 3rd party PXI cards with their own api/interface I have done this with some aero protocols before.
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • Add new protocol handler at OS level

    Hi,
    I'd like to write a new protocol handler at the OS level, so that when any browser points to myHandler:myData is should open a specified program and pass myData to it. Something similiar to the mailto: handler, which is built in. How do I do this?
    Thanks,
    Michael

    Hi Know ,
    I know that we have to use the following BADIs
    ME_PROCESS_PO_CUST
    ME_GUI_PO_CUST
    But I does not know what are the methods to be implemented
    and what is the code we have to write in that methods .
    Thanks in advance ,
    Siva.

Maybe you are looking for

  • Overall limit

    i have maintained a service limit of Rs 50 and entered a service code with total value of 110. Now at the time of service entry sheet system is allowing me to exceed the overall limit maintained . Suz

  • How to create a table using subform if  lifecycle designer 7.1 not availabl

    hi, plis tell me how to create a table because i am using adobe lifecycle 6.1 and in the library there is no object for table.. also tell me that if i have adobe lifecycle designer then which is better option and why? use table from library directly

  • Comparing and Combining 2 Excel Sheets

    Hi there, I have Microsoft Office 2008 (also Office 2007 on Windows - Using Parallel). Is there a software out there for Mac or PC where I can compare and combine two excel sheets? Each excel sheet has at least 12,000 rows. One column on each spreads

  • Problem when importing Configuration Objects in ID

    Hi, i have a problem, when importing configuration objects in my integration directory. i have one development system and one corresponding quality assurance system. in sld i have defined my business systems + groups + transport targets. the export w

  • Receive HTTP Response Message

    I set up a HTTP Receiver Adapter and successfully sent a message to a http destination. The problem is, I can't find the Response Message from the HTTP destination. Where can I find it, and how can i handle it? Thanks!