Using absolute coordinates with JButton

I have a project that uses the JDesktop, JInternalFrame, JPanel. I am able to place JButtons on the JPanel but I am unable to use the setLayout(null) and setLocation( literalx, literaly) to position buttons where I want.
Can someone give me a simple example of how to do this?
Ulimately I want to be able to create an event that allows me to click on the button and drag it to another x and y coordinate as part of a simple layout designing tool.

[url http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html]Absolute Positioning

Similar Messages

  • Can't use inherited method with JButton

    I am trying to use the getActionListeners() method on a JButton. The method is inherited from the AbstractButton class. However, when I try to compile with this line...
    ActionListener CurrentListeners[] = OKButton.getActionListeners();I get the following error:
    Method getActionListeners() not found in class javax.swing.JButton.
    I am also using the removeActionListener() method, which is inherited from the same object, and the compiler has no problem with that!

    Okay, then does anyone know how I can change the
    ActionListener for a JButton? I want to use the
    removeActionListener(ActionListener l) method and then
    addActionListener(...). However, since I can't get
    the current ActionListener, I have nothing to pass
    into the remove method.It's my belief that's this is why this method was added to AbstractButton in JDK 1.4. It makes life so much easier. Why don't you download the JDK 1.4 and install it into your IDE?
    Otherwise, you should subclass JButton as someone else suggested and provide an accessor method for the listener.

  • Not rally a question, just wanted to share my absolute frustration with the update of iTunes...this is, without a shadow of a doubt THE WORST application i have EVER used, Mac or PC! And that's saying something with the amount of PC dross that's out there

    Not rally a question, just wanted to share my absolute frustration with the update of iTunes...this is, without a shadow of a doubt THE WORST application i have EVER used, Mac or PC! And that's saying something with the amount of PC dross that's out there...Apple...PLEASE update and give us back the old version of iTunes...

    Pull down View > Show Sidebar. This will give you back the same functionality of iTunes 10.x.x.

  • Help! I deleted my System preferences by mistake! I'm absolutely positive they are gone. Unfortunately so are the disks that came with it. I'm using an Imac with os 10.4.11. Any help would be greatly appreciated!

    Help! I deleted my System preferences by mistake! I'm absolutely positive they are gone. I checked spotlight, blue apple and the hard drive, applications. Gone. Unfortunately so are the disks that came with it. I'm using an Imac with os 10.4.11. Any help would be greatly appreciated!

    Try cleaning the disc, and be sure you have the right one.
    If that doesn't help, it sounds like it's time for a trip to the Apple Store. 
    Make an appointment here:  http://www.apple.com/retail/geniusbar/

  • Absolute coordinates using DefaultKeyboardFocusManager

    I want to rerun events through Robot to recreate a user's actions. I created my own version of DefaultKeyboardFocusManager to print all events to a file. When I looked at the file I realized that all of the mouse-move coordinates were relative, not absolute, i.e. they are in reference to every widget the mouse happens to lie over. The application I need to test is large and all widgets (JPanels, et al) are not named, so I cannot reference them by name (if all widgets were named, I could keep track of relative positioning as the mouse enters each new widget). Is there a way to generate absolute coordinates instead of relative coordinates? The easiest solution would be a method to toggle between relative and absolute coordinates, but that does not appear to exist.

    not that i agree with your methods but there is a Component method called
    getLocationOnScreen(). also, im fairly sure there is a method to translate a relative component
    location to a location relative to its parent, but im embarrassed to say i forgot what
    its called.
    but of course thats exactly why this sort of question should be posted in the Swing forum instead...

  • Using directory alias with a wanboot installation

    I have setup a Jumpstart server and have been using it for a while without issues. Now I want to incorporate wanboot into the process so that I do not need boot servers in each of our subnets. Since the jumpstart directory structure is already in place and I have apache running on the same server, I did not want to have to recreate the whole jumpstart directory structure. So I decided to create an alias in the apache configuration for the jumpstart directory:
    root@swamphenxb:/usr/local/apache2/conf> cat httpd.conf
    <snip>
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client. The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    Alias /jumpstart /export/jumpstart
    ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
    </IfModule>
    <IfModule cgid_module>
    # ScriptSock: On threaded servers, designate the path to the UNIX
    # socket used to communicate with the CGI daemon of mod_cgid.
    #Scriptsock logs/cgisock
    </IfModule>
    # "/usr/local/apache2/cgi-bin" should be changed to whatever your ScriptAliased
    # CGI directory exists, if you have that configured.
    <Directory "/usr/local/apache2/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    </Directory>
    *<Directory /export/jumpstart>*
    AllowOverride None
    Options All
    Order allow,deny
    Allow from all
    *</Directory>*
    The wanboot.conf file is located in /etc/netboot and looks with the following information:
    root@swamphenxb:/usr/local/apache2/conf> cat /etc/netboot/wanboot.conf
    # Copyright 2004 Sun Microsystems, Inc. All rights reserved.
    # Use is subject to license terms.
    # ident "@(#)wanboot.conf.sample 1.2 04/01/30 SMI"
    # wanboot.conf(4): boot configuration file.
    # Please consult wanboot.conf(4) for further information. Note that
    # this interface is "Evolving" as defined by attributes(5).
    # Anything after a '#' is comment. Values may be quoted (e.g. "val").
    # <empty> means there is no value, i.e. null. The absence of any
    # parameter implies that it takes a default value (<empty> unless
    # otherwise specified).
    # <url> is of the form http://... or https://...
    # The path of the bootstrap file (within htdocs) which is served up
    # by wanboot-cgi(bootfile).
    boot_file=/jumpstart/wanboot/wanboot.s10_sparc # <absolute pathname>
    # These are used by wanboot-cgi(bootfile|bootfs|rootfs) to determine
    # whether boot_file or the bootfs is to be sent encrypted/signed, or
    # root_file is to be sent signed; the client must be setup with the
    # corresponding encryption/signature key(s) (which cannot be auto-
    # matically verified).
    # If an encryption_type is specified then a signature_type must also
    # be specified.
    encryption_type= # 3des | aes | <empty>
    signature_type= # sha1 | <empty>
    # This is used by wanboot-cgi(bootfs) and wanboot to determine whether
    # server authentication should be requested during SSL connection
    # setup.
    server_authentication=no # yes | no
    # This is used by wanboot-cgi(bootfs) and wanboot to determine whether
    # client authentication should be requested during SSL connection
    # setup. If client_authentication is "yes", then server_authentication
    # must also be "yes".
    client_authentication=no # yes | no
    # wanboot-cgi(bootfs) will construct a hosts file which resolves any
    # hostnames specified in any of the URLs in the wanboot.conf file,
    # plus those found in certificates, etc. The following parameter
    # may be used to add additional mappings to the hosts file.
    resolve_hosts= # <hostname>[,<hostname>*] | <empty>
    # This is used to specify the URL of wanboot-cgi on the server on which
    # the root_file exists, and used by wanboot to obtain the root server's
    # URL; wanboot substitutes root_file for the pathname part of the URL.
    # If the schema is http://... then the root_file will be signed if there
    # is a non-empty signature_type. If server_authentication is "yes", the
    # schema must be https://...; otherwise it must be http://...
    root_server=http://170.12.14.240/cgi-bin/wanboot-cgi # <url> | <empty>
    # This is used by wanboot-cgi(rootfs) to locate the path of the
    # rootfs image (within htdocs) on the root_server.
    root_file=/jumpstart/miniroot/miniroot # <absolute pathname> | <empty>
    # This is used by wanboot to determine the URL of the bootserver
    # (and whether bootlog traffic should be sent using http or https),
    # or whether it should simply be sent to the console.
    boot_logger= # <url> | <empty>
    # This is used by the system startup scripts. If set, it should
    # point to a file that contains name value pairs to be used at
    # start up time. For example, this file may be used to provide
    # install the values for sysidcfg and jumpscfg.
    system_conf=system.conf
    I have the client configured to boot from the web server and when I attempt to boot, I get the following message:
    {2} ok boot net - install
    Boot device: /pci@9,700000/pci@2/network@0 File and args: - install
    /pci@9,700000/pci@2/network@0: 1000 Mbps full duplex link up
    HTTP: Bad Response: 500 Internal Server Error (boot_file missing)
    Boot load failed
    I am able to see a listing of all the directories and files including the boot_file in my browser. The permissions for the /etc/netboot directory is:
    root@swamphenxb:/etc/netboot> ls -al
    total 26
    drwx------ 3 daemon other 512 Nov 20 13:09 .
    drwxr-xr-x 63 root sys 6144 Nov 2 11:43 ..
    drwx------ 3 daemon other 512 Nov 20 13:10 170.12.144.0
    -rw------- 1 daemon other 80 Nov 5 17:02 system.conf
    -rw------- 1 daemon other 3331 Nov 2 14:07 wanboot.conf
    It looks like maybe wanboot does not like the alias I am using, but I want to verify that before I move on to plan B. Thanks.
    Chuck Briggs

    Long but this is a copy of my lab configuration files for WAN boot
    */etc/ethers*
    0:3:ba:16:99:f5 wgls01
    0:3:ba:14:b9:71 wgls02
    0:3:ba:16:a5:bf wgls03
    0:3:ba:5b:c7:5b wgls04
    0:3:ba:16:9d:31 wgls05
    0:3:ba:e8:65:9 wgls07
    0:3:ba:e8:92:a9 wgls08
    0:3:ba:16:6b:27 wgls09
    0:3:ba:2b:35:c2 wgls10
    0:3:ba:5c:b0:5 wgls11*/etc/bootparams*
    wgls01 root=wgls06:/js/sparc/Solaris_10_2009-10/Solaris_10/Tools/Boot install=wgtsinf01:/js/sparc/Solaris_10_2009-10 boottype=:in   rootopts=:rsize=8192
    wgls02 root=wgls06:/js/sparc/Solaris_9_2005-09/Solaris_9/Tools/Boot   install=wgtsinf01:/js/sparc/Solaris_9_2005-09  boottype=:in   rootopts=:rsize=8192
    wgls03 root=wgls06:/js/sparc/Solaris_10_2009-10/Solaris_10/Tools/Boot install=wgtsinf01:/js/sparc/Solaris_10_2009-10 boottype=:in   rootopts=:rsize=8192
    wgls04 root=wgls06:/js/sparc/Solaris_10_2009-10/Solaris_10/Tools/Boot install=wgtsinf01:/js/sparc/Solaris_10_2009-10 boottype=:in   rootopts=:rsize=8192
    wgls05 root=wgls06:/js/sparc/Solaris_9_2005-09/Solaris_9/Tools/Boot   install=wgtsinf01:/js/sparc/Solaris_9_2005-09  boottype=:in   rootopts=:rsize=8192
    wgls06 root=wgls06:/js/sparc/Solaris_10_2009-10/Solaris_10/Tools/Boot install=wgtsinf01:/js/sparc/Solaris_10_2009-10 boottype=:in   rootopts=:rsize=8192
    wgls07 root=wgls06:/js/sparc/Solaris_10_2009-10/Solaris_10/Tools/Boot install=wgtsinf01:/js/sparc/Solaris_10_2009-10 boottype=:in   rootopts=:rsize=8192
    wgls08 root=wgls06:/js/sparc/Solaris_10_2009-10/Solaris_10/Tools/Boot install=wgtsinf01:/js/sparc/Solaris_10_2009-10 boottype=:in   rootopts=:rsize=8192
    wgls09 root=wgls06:/js/sparc/Solaris_8_2004-02/Solaris_8/Tools/Boot   install=wgtsinf01:/js/sparc/Solaris_8_2004-02  boottype=:in   rootopts=:rsize=8192
    wgls10 root=wgls06:/js/sparc/Solaris_10_2009-10/Solaris_10/Tools/Boot install=wgtsinf01:/js/sparc/Solaris_10_2009-10 boottype=:in   rootopts=:rsize=8192*/etc/hosts*
    # Fake prod subnet
    #10.64.86.30     wgls01.nz.thenational.com wgls01
    #10.64.86.31     wgls02.nz.thenational.com wgls02
    10.64.86.32     wgls03.nz.thenational.com wgls03
    10.64.86.33     wgls04.nz.thenational.com wgls04
    10.64.86.34     wgls05.nz.thenational.com wgls05
    10.64.86.35     wgls06.nz.thenational.com wgls06
    10.64.86.36     wgls07.nz.thenational.com wgls07
    #10.64.86.37     wgls08.nz.thenational.com wgls08
    #10.64.86.42     wgls09.nz.thenational.com wgls09
    10.64.86.43     wgls10.nz.thenational.com wgls10Under wgls06:/js/sparc I have many small (~85MB) directories just to load the boot code
    # find /js/sparc/Solaris_10_2008-10
    /js/sparc/Solaris_10_2008-10
    /js/sparc/Solaris_10_2008-10/Solaris_10
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Installers
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Installers/solarisn
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Installers/liveupgrade20
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Installers/.install
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Installers/.install/solarisn.class
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Installers/.install/JRE
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Installers/.install/liveupgrade20.class
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Installers/.install/com
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Installers/.install/com/sun
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Installers/.install/com/sun/launcher
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Installers/.install/com/sun/liveupgrade
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Installers/.install/install_common
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/rm_install_client
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/add_install_client
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/pkg_db.cpio.bz2
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/X_small.cpio.bz2
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform/sun4us
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform/sun4us/inetboot
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform/sun4us/wanboot
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform/sun4us/boot_archive
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform/sun4u
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform/sun4u/boot_archive
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform/sun4u/inetboot
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform/sun4u/wanboot
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform/sun4v
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform/sun4v/wanboot
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform/sun4v/inetboot
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform/sun4v/boot_archive
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/netmask
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/X.cpio.bz2
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/lu.platforms
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/lu.cpio.bz2
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/.wanboot_unneeded_packages
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/setup_install_server
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/dialAll OS files are located at wgtsinf01:/js/sparc
    Firewalls should allow the traffic (TFTP)

  • Why, since CS6 does DW now use ABSOLUTE image paths when dragging images into Design View from a folder in Finder?!

    While I am grateful the previous issue I had with not being able to drag files into design view at all (in CC and CC2014) was resolved.
    Guys (Adobe), seriously, if you're going to change the functioning of something that used to work just fine, at least supply a way for a user to revert to the old way... I absolutely loathe that I need a legacy version of DW to continue with my current workflow. Please put it back to the way it was, or at least allow a user to chose between the two behaviours.
    If there is a way to do this, without using the Site Manager (which still doesn't work from Finder even with relative to document selected), I would appreciate any guidance.
    As for using the Site Manager (before some smart guy suggests that I just use that) I do not wish to navigate to and create up to 20 "sites" a week and wait for DW to cache them all, when I am already in the folder with the image assets in Finder.
    Also before someone pipes up and says: "You shouldn't be diving sites in design view anyway", I don't... I develop many, many newsletters every week and the folder structure is such that navigation to the actual image folder using the Site Manager would be painful at best.
    I don't really like having to and replace all instances of "file:///Users/me/Work/company/Mailers/Year/wk14/mailer/dev/img/prod5.jpg". It is horrendously wasteful, time-wise.
    Thanks in advance for any helpful replies

    Sorry Murray, DW used to have an idea, my point is that since CS6 its developed a case of Amnesia.
    The "elements" are in the "root" folder as follows:
    newslettername.htm
    img
         imagename.jpg
    So the relative path would be <img src"img/imagename.jpg" />
    However since the change: <img src"file:///Users/me/work/Company/year/week/campaign/img/imagename.jpg" />
    Which is completely useless and needs to be corrected before I upload the html anywhere.
    As for using the site directory, I did answer that in my initial post. I use a laptop, I really don't want a site manager taking half my screen just so I can see the folder structure and navigate with that, especially since I am already at the files I need in Finder.
    Again, this is something that used to work just fine in previous iterations of DW, so I don't believe Adobe is incapable of fixing it nor am I being unreasonable asking for a choice for those that may find the local absolute paths useful in some way. All I want is to be able to chose not to use absolute paths when dragging from Finder.

  • How to configure OC4J using RMI/IIOP with SSL

    Any help?
    I just mange configure the OC4J using RMI/IIOP but base on
    But when I follow further to use RMI/IIOP with SSL I face the problem with: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
    p/s: I use self generate keystore which should be ok as I can use it for https connection.
    Any one can help?
    Below is the OC4J log:
    D:\oc4j\j2ee\home>java -Djavax.net.debug=all -DGenerateIIOP=true -Diiop.runtime.debug=true -jar oc4j.jar
    05/02/23 16:43:16 ================ IIOPServerExtensionProvider.preInitApplicationServer
    05/02/23 16:43:38 ================= IIOPServerExtensionProvider.postInitApplicationServer
    05/02/23 16:43:38 ================== config = {SEPS={IIOP={ssl-port=5556, port=5555, ssl=true, trusted-clients=*, ssl-client-server-auth-port=5557, keystore=D:\\oc4j\\j2ee\\home\\server.keystore, keystore-password=123456, truststore=D:\\oc4j\\j2ee\\home\\server.keystore, truststore-password=123456, ClassName=com.oracle.iiop.server.IIOPServerExtensionProvider, host=localhost}}}
    05/02/23 16:43:38 ================== server.getAttributes() = {threadPool=com.evermind.server.ApplicationServerThreadPool@968fda}
    05/02/23 16:43:38 ================== pool: null
    05/02/23 16:43:38 ====================== In startServer ...
    05/02/23 16:43:38 ==================== Creating an IIOPServer ...
    05/02/23 16:43:38 ========= IIOP server being initialized
    05/02/23 16:43:38 SSL port: 5556
    05/02/23 16:43:38 SSL port 2: 5557
    05/02/23 16:43:43 com.sun.corba.ee.internal.iiop.GIOPImpl(Thread[Orion Launcher,5,main]): getEndpoint(IIOP_CLEAR_TEXT, 5555, null)
    05/02/23 16:43:43 com.sun.corba.ee.internal.iiop.GIOPImpl(Thread[Orion Launcher,5,main]): createListener( socketType = IIOP_CLEAR_TEXT port = 5555 )
    05/02/23 16:43:44 com.sun.corba.ee.internal.iiop.GIOPImpl(Thread[Orion Launcher,5,main]): getEndpoint(SSL, 5556, null)
    05/02/23 16:43:44 com.sun.corba.ee.internal.iiop.GIOPImpl(Thread[Orion Launcher,5,main]): createListener( socketType = SSL port = 5556 )
    05/02/23 16:43:45 ***
    05/02/23 16:43:45 found key for : mykey
    05/02/23 16:43:45 chain [0] = [
    Version: V1
    Subject: CN=Server, OU=Bar, O=Foo, L=Some, ST=Where, C=UN
    Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
    Key: SunJSSE RSA public key:
    public exponent:
    010001
    modulus:
    b1239fff 2ae5d31d b01a0cfb 1186bae0 bbc7ac41 94f24464 e92a7e33 6a5b0844
    109e30fb d24ad770 99b3ff86 bd96c705 56bf2e7a b3bb9d03 40fdcc0a c9bea9a1
    c21395a4 37d8b2ce ff00eb64 e22a6dd6 97578f92 29627229 462ebfee 061c99a4
    1c69b3a0 aea6a95b 7ed3fd89 f829f17e a9362efe ccf8034a 0910989a a8573305
    Validity: [From: Wed Feb 23 15:57:28 SGT 2005,
                   To: Tue May 24 15:57:28 SGT 2005]
    Issuer: CN=Server, OU=Bar, O=Foo, L=Some, ST=Where, C=UN
    SerialNumber: [    421c3768]
    Algorithm: [MD5withRSA]
    Signature:
    0000: 34 F4 FA D4 6F 23 7B 84 30 42 F3 5C 4B 5E 18 17 4...o#..0B.\K^..
    0010: 73 69 73 A6 BF 9A 5D C0 67 8D C3 56 DF A9 4A AC sis...].g..V..J.
    0020: 88 AF 24 28 C9 39 16 22 29 81 01 93 86 AA 1A 5D ..$(.9.")......]
    0030: 07 89 26 22 91 F0 8F DE E1 4A CF 17 9A 02 51 7D ..&".....J....Q.
    0040: 92 D3 6D 9B EF 5E C1 C6 66 F9 11 D4 EB 13 8F 17 ..m..^..f.......
    0050: E7 66 58 9F 6C B0 60 7C 39 B4 E0 B7 04 A7 7F A6 .fX.l.`.9.......
    0060: 4D A5 89 E7 F4 8A DC 59 B4 E7 A5 D4 0A 35 9A F1 M......Y.....5..
    0070: A2 CD 3A 04 D6 8F 16 B1 9E 6F 34 40 E8 C0 47 03 ..:[email protected].
    05/02/23 16:43:45 ***
    05/02/23 16:43:45 adding as trusted cert:
    05/02/23 16:43:45 Subject: CN=Client, OU=Bar, O=Foo, L=Some, ST=Where, C=UN
    05/02/23 16:43:45 Issuer: CN=Client, OU=Bar, O=Foo, L=Some, ST=Where, C=UN
    05/02/23 16:43:45 Algorithm: RSA; Serial number: 0x421c3779
    05/02/23 16:43:45 Valid from Wed Feb 23 15:57:45 SGT 2005 until Tue May 24 15:57:45 SGT 2005
    05/02/23 16:43:45 adding as trusted cert:
    05/02/23 16:43:45 Subject: CN=Server, OU=Bar, O=Foo, L=Some, ST=Where, C=UN
    05/02/23 16:43:45 Issuer: CN=Server, OU=Bar, O=Foo, L=Some, ST=Where, C=UN
    05/02/23 16:43:45 Algorithm: RSA; Serial number: 0x421c3768
    05/02/23 16:43:45 Valid from Wed Feb 23 15:57:28 SGT 2005 until Tue May 24 15:57:28 SGT 2005
    05/02/23 16:43:45 trigger seeding of SecureRandom
    05/02/23 16:43:45 done seeding SecureRandom
    05/02/23 16:43:45 com.sun.corba.ee.internal.iiop.GIOPImpl(Thread[Orion Launcher,5,main]): getEndpoint(SSL_MUTUALAUTH, 5557, null)
    05/02/23 16:43:45 com.sun.corba.ee.internal.iiop.GIOPImpl(Thread[Orion Launcher,5,main]): createListener( socketType = SSL_MUTUALAUTH port = 5557 )
    05/02/23 16:43:45 matching alias: mykey
    matching alias: mykey
    05/02/23 16:43:46 ORB created ..com.oracle.iiop.server.OC4JORB@65b738
    05/02/23 16:43:47 com.sun.corba.ee.internal.corba.ClientDelegate(Thread[Orion Launcher,5,main]): invoke(ClientRequest) called
    05/02/23 16:43:47 com.oracle.iiop.server.OC4JORB(Thread[Orion Launcher,5,main]): process: dispatching to scid 2
    05/02/23 16:43:47 com.oracle.iiop.server.OC4JORB(Thread[Orion Launcher,5,main]): dispatching to sc [email protected]7
    05/02/23 16:43:48 com.sun.corba.ee.internal.corba.ClientDelegate(Thread[Orion Launcher,5,main]): invoke(ClientRequest) called
    05/02/23 16:43:48 com.oracle.iiop.server.OC4JORB(Thread[Orion Launcher,5,main]): process: dispatching to scid 2
    05/02/23 16:43:48 com.oracle.iiop.server.OC4JORB(Thread[Orion Launcher,5,main]): dispatching to sc com.sun.corba.ee.internal.corba.ServerDelegate@9300cc
    05/02/23 16:43:48 com.sun.corba.ee.internal.corba.ServerDelegate(Thread[Orion Launcher,5,main]): Entering dispatch method
    05/02/23 16:43:48 com.sun.corba.ee.internal.corba.ServerDelegate(Thread[Orion Launcher,5,main]): Consuming service contexts, GIOP version: 1.2
    05/02/23 16:43:48 com.sun.corba.ee.internal.corba.ServerDelegate(Thread[Orion Launcher,5,main]): Has code set context? false
    05/02/23 16:43:48 com.sun.corba.ee.internal.corba.ServerDelegate(Thread[Orion Launcher,5,main]): Dispatching to servant
    05/02/23 16:43:48 com.sun.corba.ee.internal.corba.ServerDelegate(Thread[Orion Launcher,5,main]): Handling invoke handler type servant
    05/02/23 16:43:48 NS service created and started ..org.omg.CosNaming._NamingContextExtStub:IOR:000000000000002b49444c3a6f6d672e6f72672f436f734e616d696e672f4e616d696e67436f6e746578744578743a312e30000000000001000000000000007c000102000000000c31302e312e3231342e31310015b3000000000031afabcb0000000020d309e06a0000000100000000000000010000000c4e616d65536572766963650000000004000000000a0000000000000100000001000000200000000000010001000000020501000100010020000101090000000100010100
    05/02/23 16:43:48 NS ior = ..IOR:000000000000002b49444c3a6f6d672e6f72672f436f734e616d696e672f4e616d696e67436f6e746578744578743a312e30000000000001000000000000007c000102000000000c31302e312e3231342e31310015b3000000000031afabcb0000000020d309e06a0000000100000000000000010000000c4e616d65536572766963650000000004000000000a0000000000000100000001000000200000000000010001000000020501000100010020000101090000000100010100
    05/02/23 16:43:48 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0) initialized
    05/02/23 16:45:14 com.sun.corba.ee.internal.iiop.ConnectionTable(Thread[JavaIDL Listener,5,main]): Server getConnection(119e583[Unknown 0x0:0x0: Socket[addr=/127.0.0.1,port=1281,localport=5556]], SSL)
    05/02/23 16:45:14 com.sun.corba.ee.internal.iiop.ConnectionTable(Thread[JavaIDL Listener,5,main]): host = 127.0.0.1 port = 1281
    05/02/23 16:45:14 com.sun.corba.ee.internal.iiop.ConnectionTable(Thread[JavaIDL Listener,5,main]): Created connection Connection[type=SSL remote_host=127.0.0.1 remote_port=1281 state=ESTABLISHED]
    com.sun.corba.ee.internal.iiop.MessageMediator(Thread[JavaIDL Reader for 127.0.0.1:1281,5,main]): Creating message from stream
    05/02/23 16:45:14 JavaIDL Reader for 127.0.0.1:1281, handling exception: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
    05/02/23 16:45:14 JavaIDL Reader for 127.0.0.1:1281, SEND TLSv1 ALERT: fatal, description = unexpected_message
    05/02/23 16:45:14 JavaIDL Reader for 127.0.0.1:1281, WRITE: TLSv1 Alert, length = 2
    05/02/23 16:45:14 JavaIDL Reader for 127.0.0.1:1281, called closeSocket()
    05/02/23 16:45:14 com.sun.corba.ee.internal.iiop.ReaderThread(Thread[JavaIDL Reader for 127.0.0.1:1281,5,main]): IOException in createInputStream: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
    05/02/23 16:45:14 javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
    05/02/23 16:45:14 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.d(DashoA12275)
    05/02/23 16:45:14 at com.sun.net.ssl.internal.ssl.AppInputStream.read(DashoA12275)
    05/02/23 16:45:14 at com.sun.corba.ee.internal.iiop.messages.MessageBase.readFully(MessageBase.java:520)
    05/02/23 16:45:14 at com.sun.corba.ee.internal.iiop.messages.MessageBase.createFromStream(MessageBase.java:58)
    05/02/23 16:45:14 at com.sun.corba.ee.internal.iiop.MessageMediator.processRequest(MessageMediator.java:110)
    05/02/23 16:45:14 at com.sun.corba.ee.internal.iiop.IIOPConnection.processInput(IIOPConnection.java:339)
    05/02/23 16:45:14 at com.sun.corba.ee.internal.iiop.ReaderThread.run(ReaderThread.java:63)
    05/02/23 16:45:14 Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
    05/02/23 16:45:14 at com.sun.net.ssl.internal.ssl.InputRecord.b(DashoA12275)
    05/02/23 16:45:14 at com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA12275)
    05/02/23 16:45:14 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
    05/02/23 16:45:14 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA12275)
    05/02/23 16:45:14 at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
    05/02/23 16:45:14 ... 6 more
    05/02/23 16:45:14 com.sun.corba.ee.internal.iiop.IIOPConnection(Thread[JavaIDL Reader for 127.0.0.1:1281,5,main]): purge_calls: starting: code = 1398079696 die = true
    05/02/23 16:45:14 JavaIDL Reader for 127.0.0.1:1281, called close()
    05/02/23 16:45:14 JavaIDL Reader for 127.0.0.1:1281, called closeInternal(true)
    05/02/23 16:45:14 JavaIDL Reader for 127.0.0.1:1281, called close()
    05/02/23 16:45:14 JavaIDL Reader for 127.0.0.1:1281, called closeInternal(true)
    05/02/23 16:45:14 JavaIDL Reader for 127.0.0.1:1281, called close()
    05/02/23 16:45:14 JavaIDL Reader for 127.0.0.1:1281, called closeInternal(true)
    05/02/23 16:45:14 com.sun.corba.ee.internal.iiop.ConnectionTable(Thread[JavaIDL Reader for 127.0.0.1:1281,5,main]): DeleteConn called: host = 127.0.0.1 port = 1281

    Good point, I do belive what you are referring to is this:
    Any client, whether running inside a server or not, has EJB security properties. Table 15-2 lists the EJB client security properties controlled by the ejb_sec.properties file. By default, OC4J searches for this file in the current directory when running as a client, or in ORACLE_HOME/j2ee/home/config when running in the server. You can specify the location of this file explicitly with the system property setting -Dejb_sec_properties_location=pathname.
    Table 15-2 EJB Client Security Properties
    Property Meaning
    # oc4j.iiop.keyStoreLoc
    The path and name of the keystore. An absolute path is recommended.
    # oc4j.iiop.keyStorePass
    The password for the keystore.
    # oc4j.iiop.trustStoreLoc
    The path name and name of the truststore. An absolute path is recommended.
    # oc4j.iiop.trustStorePass
    The password for the truststore.
    # oc4j.iiop.enable.clientauth
    Whether the client supports client-side authentication. If this property is set to true, you must specify a keystore location and password.
    # oc4j.iiop.ciphersuites
    Which cipher suites are to be enabled. The valid cipher suites are:
    TLS_RSA_WITH_RC4_128_MD5
    SSL_RSA_WITH_RC4_128_MD5
    TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA
    SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA
    TLS_RSA_EXPORT_WITH_RC4_40_MD5
    SSL_RSA_EXPORT_WITH_RC4_40_MD5
    TLS_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA
    SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA
    nameservice.useSSL
    Whether to use SSL when making the initial connection to the server.
    client.sendpassword
    Whether to send user name and password in clear form (unencrypted) in the service context when not using SSL. If this property is set to true, the user name and password are sent only to servers listed in the trustedServer list.
    oc4j.iiop.trustedServers
    A list of servers that can be trusted to receive passwords sent in clear form. This has no effect if client.sendpassword is set to false. The list is comma-delimited. Each entry in the list can be an IP address, a host name, a host name pattern (for example, *.example.com), or * (where "*" alone means that all servers are trusted.

  • How to use SRT file with MP4

    I want to use soft subtitles with video so I still have the option to play them without subtitles if I wish. How can I enable QuickTime Player to play MP4 with soft subtitles SRT extension? I can play AVI with subtitles in QuickTime (QT doesn't have codecs for AVI, duh, but I installed Perian to overcome that weakness). I can export the MP4 as AVI, but when I do, the result looks terrible. It seems QuickTime cannot correctly export MP4 to AVI. I can play MP4 with SRT subtitles in VLC Player, but the subtitles don't have decent shading to make them readable, like they do in QuickTime Player. Because of that, I want to find a solution for using MP4 with SRT in QuickTime Player. Any suggestions?

    The reason you see SRT soft subtitles in AVIs is because it's the Perian component that's drawing subtitles. QuickTime itself has no capability to read any external subtitle files. When you open up a MP4 file, Apple's own codecs kick in, and not Perian; therefore, you don't see any subtitles.
    There's not a lot you can do:
    1. You can wait for Apple to implement SRT support. I wouldn't hold my breath.
    2. You can talk to/beg/threaten the Perian developers and see what they can do. Note that this feature request is already filed in 2007 ( http://trac.perian.org/ticket/56 ), and they haven't acted on the request for three years.
    3. You can extract the video and audio tracks from the container and put it in a Perian-compatible container. MKV is the best option for this, I think. Note that you do not want to directly export your video to a new format, or to re-encode the tracks -- that will cost you quality. You need to find a program that lets you extract the MP4/AAC/whatever tracks from the container and remux them into a different container, such as MKV or AVI. If you can get Perian to handle the video, rather than Apple's default decoders, you'll get the SRT in QuickTime Player.
    4. You can use a different player. Honestly, I agree you with that most of the alternative players out there have absolutely atrocious user interfaces (I'm looking at ya, VLC). In the end, though, I just want to watch the video, and not fight with various video/audio formats.

  • How to use NODIM func with out it's values being rounded

    I created a new calculated key figure in Query Designer 3.x, and used the function NODIM() - Value with out dimensions. When I use this function, the values are rounding off to the nearest value.
    For example, I have a value 0.000075 US$, when I use NODIM function the value is displayed as 0.000080. Value is getting rounded to nearest value.
    I tried using absolute value it did not work.
    Can any one tell me how to use NODIM function with out it's value being rounded to nearest value.
    Thanks,

    Hi,
    According to your description, you might want that "Notice" field has a default value when form is created and users can be able to change the value of that
    field.
    As a workaround, you can add an action rule in “Name” field via InfoPath to fill the default value in “Notice” field only when “Name” field is not blank and “Notice”
    field is blank.
    Settings of the rule are as below, you can modify it based on your need:
    Here is a link about how to add an action rule in InfoPath form, you can use it as a reference:
    https://support.office.microsoft.com/en-us/article/Add-rules-for-performing-other-actions-5322d726-b787-4e5f-8d37-ba6db68b451d?CorrelationId=8a64c12f-aa60-4d90-b1f9-a44fcc4e74b5&ui=en-US&rs=en-US&ad=US
    Best regards
    Patrick Liang
    TechNet Community Support

  • GPS coordinates with minutes and seconds always 0

    I noticed the geotagged photos from my Android phone (Samsung Galaxy S3 with Android 4.3.1 Jelly Bean) have GPS coordinates always rounded to integers in Aperture. However when viewing the photo coordinates on the phone directly before importing in Aperture, or using a non-Apple tool (such as ExifTool), precise coordinates with minutes and seconds are displayed. After some research, I conclude this is an Apple bug. It affects iPhoto and Preview.app too (probably due to same underlying code reading Exif tags).
    Did you experience the same bug? What phone and firmware were used to take the picture?
    For the technical record, here's the bug (which I've notified to Apple). Internally (in the binary format of Exif tags), coordinates are represented by 3 values for degrees, minutes and seconds. Each of these values is represented by a rational number encoded with 2 integers (numerator and denominator). Most cameras will set an integer in the degrees values, and fractional part in the minutes and/or seconds. This format is properly decoded by Aperture. It is however valid format to set minutes and seconds values to 0, and a non-integer value in degrees, such as 70,764,776 / 10,000,000 = 7.0764776 deg. This format is not correctly parsed by Aperture.

    Yosemite has fixed the issue. Coordinates are now correctly displayed.

  • Why not to use static methods - with example

    Hi Everyone,
    I'd like to continue the below thread about "why not to use static methods"
    Why not to use static methods
    with a concrete example.
    In my small application I need to be able to send keystrokes. (java.awt.Robot class is used for this)
    I created the following class for these "operations" with static methods:
    public class KeyboardInput {
         private static Robot r;
         static {
              try {
                   r = new Robot();
              } catch (AWTException e) {
                   throw new RuntimeException(e + "Robot couldn't be initialized.");
         public static void wait(int millis){
              r.delay(millis);
         public static void copy() {
              r.keyPress(KeyEvent.VK_CONTROL);
              r.keyPress(KeyEvent.VK_C);
              r.keyRelease(KeyEvent.VK_C);
              r.keyRelease(KeyEvent.VK_CONTROL);
         public static void altTab() {
              r.keyPress(KeyEvent.VK_ALT);
              r.keyPress(KeyEvent.VK_TAB);
              r.keyRelease(KeyEvent.VK_TAB);
              r.keyRelease(KeyEvent.VK_ALT);
                   // more methods like  paste(), tab(), shiftTab(), rightArrow()
    }Do you thinks it is a good solution? How could it be improved? I've seen something about Singleton vs. static methods somewhere. Would it be better to use Singleton?
    Thanks for any comments in advance,
    lemonboston

    maheshguruswamy wrote:
    lemonboston wrote:
    maheshguruswamy wrote:
    I think a singleton might be a better approach for you. Just kill the public constructor and provide a getInstance method to provide lazy initialization.Thanks maheshguruswamy for advising on the steps to create a singleton from this class.
    Could you maybe advise also about why do you say that it would be better to use singleton? What's behind it? Thanks!In short, it seems to me that a single instance of your class will be able to coordinate actions across your entire application. So a singleton should be enough.But that doesn't answer why he should prefer a singleton instead over a bunch of static methods. Functionally the two are almost identical. In both cases there's only one "thing" on which to call methods--either a single instance of the class, or the class itself.
    To answer the question, the main reason to use a Singleton over a classful of static methods is the same reason the drives a lot of non-static vs. static decisions: Polymorphism.
    If you use a Singleton (and and interface), you can do something like this:
    KeyboardInput kbi = get_some_instance_of_some_class_that_implements_KeyboardInput_somehow_maybe_from_a_factory();And then whatever is calling KBI's public methods only has to know that it has an implementor of that interface, without caring which concrete class it is, and you can substitute whatever implementation is appropriate in a given context. If you don't need to do that, then the static method approach is probably sufficient.
    There are other reasons that may suggest a Singleton--serialization, persistence, use as a JavaBean pop to mind--but they're less common and less compelling in my experience.
    And finally, if this thing maintains any state between method calls, although you can handle that with static member variables, it's more in keeping with the OO paradigm to make them non-static fields of an instance of that class.

  • JSF always uses absolute path

    Hi I am new to JSF. You might be able to help me with an absolute path problem I encountered in my project.
    Our team has a JSF project called PHA, it has been deployed to 8 production machines. Recently I made some change to it and want to test it on one of my company's testing machine n251. In order to access n251, I need to use my company's proxy bbweb1. Here is the URL I ran:
    http://bbweb1.xxxxx.com/bravo/pxhistory/map/n251/charlie/pha/ to access PHA on n251.(BTW, we use http://bbweb1.xxxxx.com/charlie/pha/ to access our production machines.) It seems like I got my main PHA page from N251. But when I clicked any
    of the menu bars, bbweb1 proxy always ignores the relative path "bravo/pxhistory/map/n251" and simply rediect me to the main page again on one of our production machines. Here is the URL AFTER I clicked the menu bar:"http://bbweb1.xxxxx.com/charlie/pha/faces/jsp-pages/main page.jsp;jsessionid=CC8BD42D458EB5361532FF99FC1F5D83". I studied my code for the last 3 days and didn't find any problem. An only wild guess is: when I view source on my IE, I found JSF
    always use absolute path :
    src="/charlie/pha/faces/myFacesExtensionResource/tree2.HtmlTreeRenderer/1161281
    90776/javascript/tree.js"></script><script type="text/javascript" I don't know if this indicates why I failed to route to N251. Could this cause by a wrong config on bbweb1? or is there some trick I don't know? ... Since I don't
    have much experience on JSF, can you please help me with this? Thanks in advance.

    I wish there were. I don't know of any way to do this. Why
    not submit it
    here -
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "mikeycorn" <[email protected]> wrote in
    message
    news:gou2p7$8dl$[email protected]..
    > When I design my newsletters in Dreamweaver, I always
    have to manually
    > switch
    > the image links to the absolute path before sending it
    out as an email.
    > Is
    > there a way I can switch back and forth between relative
    paths for when
    > I'm
    > designing the site and absolute paths for when I'm doing
    the newsletter?
    >

  • Getting mouse click coordinates with image button

    I'm using ADF Rich Client components in JDeveloper 11g Technology preview.
    I have to get the mouse click coordinates with an image button. In the page I put something like this:
    <af:commandButton text="commandButton1" icon="ambiente.jpg"
    actionListener="#{prova.listen}" action="#{prova.esegui}" />
    In the listener method of the managed bean I try to get the coordinates with this code:
    public void listen(ActionEvent e)
    FacesContext context = FacesContext.getCurrentInstance();
    String clientId = e.getComponent().getClientId(context);
    Map requestParams =
    context.getExternalContext().getRequestParameterMap();
    int x =
    new Integer((String) requestParams.get(clientId + ".x")).intValue();
    int y =
    new Integer((String) requestParams.get(clientId + ".y")).intValue();
    but it doesn't work. It seems that there aren't in the request the coordinates of the image point clicked. Is it true? How can I do that with ADF ?

    Hi,
    the mouse position is not part of the request parameters send. You will have to use client side JavaScript for this
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document>
    <f:verbatim>
    <![CDATA[
    <script>
    function handleMouseCoordinates(event) {      
    alert("x: "+event.getPageX()+" y: "+event.getPageY());
    </script>
    ]]>
    </f:verbatim>
    <af:form>
    <af:commandButton text="My Click Button" icon="/images/jdev_cup.gif">
    <af:clientListener method="handleMouseCoordinates" type="click"/>
    </af:commandButton>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Frank

  • (261718088) Q: Can you use xm:multiple with Objects other than String?

    Q: Can you use xm:multiple with Objects other than Strings?
    <br>
    A: You bet. Attached find a text file with some code from the example I showed
    today, a version of the multipleSayHiTo() method that has a parameter of an Array
    of Person objects rather than a parameter of an Array of Strings. The code within
    the text file comes from the Greeting.jws file (the Greeting Web Service).
    [multiple.txt]

    So you are saying that the recovery discs I made do include the copy of windows that was originally installed?
    Absolutely! They will restore the hard disk to its original out-of-the-box contents. Follow the instructions in the section Restoring from recovery DVDs/media, which begins on p. 73 of the User's Guide.
       Satellite A660 Series User’s Guide
    maybe i can make a deal with wd to have them swap this drive out for the BEKT instead...
    That would be a good idea in any case.
    As I said, the 10-fc12-045d error would not be due to the drive's being AFT, but more likely the discs are not being read properly. New discs can be obtained from Toshiba. Scroll down to Get Recovery Media here
    -Jerry

Maybe you are looking for

  • Installing InDesign CS3 on Mac OS 10.9.5 Mavericks

    Installation of InDesign CS3 on Mac OS 10.9.5 Mavericks This question is Not Answered. s c perks Oct 14, 2014 6:04 AM 1. I have InDesign CS3, which I bought about 6 years ago, and installed on my MacBook Pro. I have now got a new Mac Pro running OS 1

  • STO PO(UB) MIGO NO EXCISE TAB.

    HI GURUS, I WANT TO MAP STO PO(MM ROUTE) UB DOC TYPE. FOR MANUAFACTURING PLANT TO MFG PLANT AND ALSO MFG PLANT TO DEPOT AND WISE VERSA. FOR  MFG TO MFG STO UB.(MM ROUTE) 1)CREATED STO PO UB 2)GOODS ISSUE AGAINST PO 351 MVT..DOCUMENT CREATED. 3)J1IS:E

  • Safari crash when switching swfs

    Hi, We have an application wherein we have a menu with a few buttons. On clicking of a menu button a swf is loaded in a div. On Safari on Mac, if we switch too fast between the swf's, safari crashes. If we wait long enough for the first swf to load,

  • Best method for duplicating a page layout

    As you may have seen form my other detailed queries I am struggling to relpicate layouts to new pages. What is the best method for this?

  • Installation from MX 2004 Serial... Tech Support NIGHTMARE...

    I'm sitting here on hold, and the staff at Adobe (or the outsourced help overseas..take your pick) can't seem to deliver me the proper serial number to upgrade from Studio MX 2004 (Macromedia) to ACS Web Premium. I've never experience such an enormou