XMLDB: Almost working

This is going to be great stuff once the bugs are worked out. 8)
Given a simple table:
CREATE TABLE MY_DOCUMENTS (
ID NUMBER,
CONTENT XMLTYPE
Can anyone explain to me why:
SELECT CONTENT.getStringVal()
FROM MY_DOCUMENTS;
...gives me:
ORA-00904: "CONTENT"."GETSTRINGVAL": invalid identifier
...but adding a table alias:
SELECT foo.CONTENT.getStringVal()
FROM MY_DOCUMENTS foo;
..works fine?
Second, I have the following XML view:
create or replace view balancesheet_asset as
select value(asset).extract('/Asset/AssetType/text()').getStringVal() Asset_Type,
value(asset).extract('/Asset/AssetDescription/text()').getStringVal() Asset_Description,
value(asset).extract('/Asset/AssetValue/text()').getNumberVal() Asset_Value,
value(asset).extract('/Asset/AssetExempt/text()').getStringVal() Asset_Exempt,
value(asset).extract('/Asset/SecuredAmount/text()').getNumberVal() Secured_Amount,
value(asset).extract('/Asset/EstimatedRealizableValue/text()').getNumberVal() Estimated_Realizable_Value
from balance_Sheet x,
table(xmlsequence(x.content.extract('/mns:BalanceSheet/mns:Asset', 'xmlns:mns=http://www.my.org/myNamespace'))) asset;
select * from balancesheet_asset
order by Asset_Value;
... works fine but...
select * from balancesheet_asset
order by Asset_Value desc;
blows up with:
ORA-22806: not an object or REF
I also notice that the XMLSEQUENCE function seems to strip out the namespace information.
We're running 9.2.0.2.0 on Solaris

Questions related to XML DB should be posted in the Products->Database-> XML DB forum.... THis is the forum montored by Oracle XML DB product management and development....
XMLType is implimented as a object type. The SQL standard requires the use of a table alias when invoking methods on an object type.
You need to add the nampespace info into the extract.
Also, try usign the extractValue operators
eg extractValue(asset,'/Asset....) instead of value(asset).extract...

Similar Messages

  • Custom renderer (almost works)

    I'm creating a custom JComboBox renderer. What I want it to do is display text next to a colored box. Everything works except for the default value were its not showing the text. Anyone see the problem? Or is there a better way of doing this? I’ve included the code below:
    (Renderer Code: ComboBoxRenderer.java)
    import java.awt.*;
    import java.util.ArrayList;
    import javax.swing.*;
    class ComboBoxRenderer extends JLabel implements ListCellRenderer
        String[] _textLabels = {"Red", "Green", "Blue", "Orange", "Yellow", "Cyan"};
        private ArrayList _colors = null;
        private JPanel _coloredBox = null;
        private JPanel _container = null;
        private JLabel _label = null;
        public ComboBoxRenderer()
            setOpaque(true);
            setHorizontalAlignment(CENTER);
            setVerticalAlignment(CENTER);
            // Text container (can't get text to show without it being contained inside another jpanel. Why is this?)
            _container = new JPanel();
            Dimension holderSize = new Dimension(80, 20);
            _container.setLocation(22, 0);
            _container.setSize(holderSize);
            _container.setOpaque(false);
            _container.setLayout(new BorderLayout());
            this.add(_container, BorderLayout.WEST);
            // Text
            _label = new JLabel("Disabled");
            Dimension textSize = new Dimension(80, 20);
            _label.setForeground(Color.black);
            _label.setPreferredSize(textSize);
            _label.setHorizontalAlignment(JTextField.LEFT);
            _container.add(_label, BorderLayout.WEST);
            // Colored box
            _coloredBox = new JPanel();
            Dimension preferredSize = new Dimension(16, 16);
            _coloredBox.setLocation(2, 2);
            _coloredBox.setSize(preferredSize);
            _coloredBox.setOpaque(true);
            this.add(_coloredBox, BorderLayout.WEST);
            // Initialize color list
            _colors = new ArrayList();
            _colors.add(new Color(255, 0, 0));
            _colors.add(new Color(0, 255, 0));
            _colors.add(new Color(0, 0, 255));
            _colors.add(new Color(255, 215, 0));
            _colors.add(new Color(255, 255, 0));
            _colors.add(new Color(0, 255, 255));
        public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
            // Get the selected index.
            int selectedIndex = ((Integer)value).intValue();
            // Set the background color for each element
            if (isSelected) {
                setBackground(list.getSelectionBackground());
                setForeground(list.getSelectionForeground());
            } else {
                setBackground(list.getBackground());
                setForeground(list.getForeground());
            // Set text
            String text = _textLabels[selectedIndex];
            _label.setText(text);
            _label.setFont(list.getFont());
            // Set box
            Color current = (Color) _colors.get(selectedIndex);
            _coloredBox.setBackground(current);
            return this;
    }(Main: CustomComboBoxDemo.java)
    import java.awt.*;
    import javax.swing.*;
    public class CustomComboBoxDemo extends JPanel
        public CustomComboBoxDemo()
            super(new BorderLayout());
            // Combo list
            Integer[] intArray = new Integer[6];
            for (int i = 0; i < 6; i++) intArray[i] = new Integer(i);
            // Create the combo box.
            JComboBox colorList = new JComboBox(intArray);
            ComboBoxRenderer renderer= new ComboBoxRenderer();
            renderer.setPreferredSize(new Dimension(120, 20));
            colorList.setRenderer(renderer);
            colorList.setMaximumRowCount(5);
            colorList.setSelectedIndex(2);
            // Lay out the demo.
            add(colorList, BorderLayout.PAGE_START);
            setBorder(BorderFactory.createEmptyBorder(20,20,20,20));
        private static void CreateAndShowGUI()
            // Create and set up the window.
            JFrame frame = new JFrame("CustomComboBoxDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            // Create and set up the content pane
            JComponent newContentPane = new CustomComboBoxDemo();
            newContentPane.setOpaque(true);
            frame.setContentPane(newContentPane);
            // Display the window.
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args)
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    CreateAndShowGUI();
    }Edited by: geforce2000 on Dec 13, 2009 3:37 AM
    Edited by: geforce2000 on Dec 13, 2009 3:38 AM

    BeForthrightWhenCrossPostingToOtherSites
    Here's one: [custom-renderer-almost-works|http://www.java-forums.org/awt-swing/23831-custom-renderer-almost-works.html]
    Any others?
    Next issue: TellTheDetails
    You may understand fully just what is not working here, but we don't since you tell us that it doesn't work, but never really tell us how.

  • Suspend almost working, input/output error after resume

    Hi,
    I have gotten suspend to ram almost working on my sony vaio sz 28 laptop. It resumes properly and I can use the terminal to list files for a while, but I cannot launch any programs, I get "input output error" It's like the machine cannot do anything new that wasn't started before the suspend. After a while some programs quits (nm-manager), because of I/O error, and then shutdown won't even finish. At first I tought the hard drive didn't work, but since I can list files in the terminal, that shouldn't be the problem.
    Any ideas ?
    My /etc/powersave/sleep contains
    UNLOAD_MODULES_BEFORE_SUSPEND2RAM="prism54 ipw3945 i810 sky2 ath_pci "
    and
    SUSPEND2RAM_RESTART_SERVICES="ipw3945d networkcpufreq"
    thanks,
    Steinar

    I am running powersaved on a vaio c2z laptop with this config. Maybe it helps.
    UNLOAD_MODULES_BEFORE_SUSPEND2RAM=""
    SUSPEND2RAM_RESTART_SERVICES=""
    SUSPEND2RAM_SWITCH_VT="yes"
    Also you dont need to run the cpufreq service powersaved and the acpid can do this too. I disabled all of them and let the kernel
    handel my cpufreq. The only thing iam doing is to tell the system on startup which govenour it should use by default, for me thats "conservative".
    #!/bin/bash
    # /etc/rc.local: Local multi-user startup script.
    cpufreq-set -c 0 -g conservative
    cpufreq-set -c 1 -g conservative
    If i need another one i can adjust that via the terminal (cpufreq-set or via direct echo in /sys) or gnomes cpufreq applet.
    For using the kernel handler correctly you have modify these entries
    1. in /etc/powersave/cpufreq to prevent powersaved from setting cpufreq.
    CPUFREQ_ENABLED="no"
    2. in /etc/acpi/handlers.sh to prevent acpid from setting corespeed back to kernels default govenour (mostly performance) after returning from suspend.
    ac_adapter)
    case "$2" in
    AC)
    case "$4" in
    00000000)
    echo -n $minspeed >$setspeed <--- add a # before this command
    #/etc/laptop-mode/laptop-mode start
    00000001)
    echo -n $maxspeed >$setspeed <--- add a # before this command
    #/etc/laptop-mode/laptop-mode stop
    esac
    *) logger "ACPI action undefined: $2" ;;
    esac
    Have fun

  • Applescript to open URL in Safari without titlebar...almost working :-)

    Hi guys,
    I'm trying to open an URL in Safari with applescript, and i don't want any toolbar in the opened window, actually this code almost works but it open 2 windows as the javascript is executed from document 1
    I use Javascript because i dont want to have any modifications of Safari preferences, so when i close it and reopen it should not have the toolbar hidden.
    <pre class="jive-pre">tell application "Safari"
    activate
    tell document 1
    do JavaScript ("window.open('http://www.google.com','_blank','titlebar=0');")
    end tell
    end tell</pre>
    Does anybody knows a way to make this work or to open a window without the toolbars ?? I've tried different things but i'm stuck, so any help appreciated.
    Thanks by advance,
    Max

    This is about the best you're going to do using JavaScript...
    <pre style="width:630px;height:auto;overflow-x:auto;overflow-y:hidden;"
    title="Copy this code and paste it into your Script Editor application.">tell application "Safari"
    activate
    set theURL to URL of document 1
    set windowID to id of window 1
    do JavaScript ("window.open('" & theURL & "','_blank','titlebar=0');") in document 1
    close window id windowID
    end tell</pre>
    The above script opens a new window with the current document's url and then closes the original window. As far as I've read you cannot get JavaScript to act upon the current window.
    Hope this helps at least a little...

  • How To Install A (Almost) Working Lion Server With Profile Management/SSL/OD/Mail/iCal/Address Book/VNC/Web/etc.

    I recently installed a fresh version of Lion Server after attempting to fix a broken upgrade. With some help from others, I've managed to get all the new features working and have kept notes, having found that many or most of the necessary installation steps for both the OS and its services are almost entirely undocumented. When you get them working, they work great, but the entire process is very fragile, with simple setup steps causing breaks or even malicious behaviors. In case this is useful to others, here are my notes.
    Start with an erased, virgin, single guid partitioned drive. Not an upgrade. Not simply a repartitioned drive. Erased. Clean. Anything else can and probably will break the Lion Server install, as I discovered myself more than once. Before erasing my drive, I already had Lion and made a Lion install DVD from instructions widely available on the web. I suppose you could also boot into the Lion recovery partition and use disk utility to erase the OS X partition then install a new partition, but I cut a DVD. The bottom line is to erase any old OS partitions. And of course to have multiple, independent backups: I use both Time Machine with a modified StdExclusions.plist and Carbon Copy Cloner.
    Also, if you will be running your own personal cloud, you will want to know your domain name ahead of time, as this will be propagated everywhere throughout server, and changing anything related to SSL on Lion Server is a nightmare that I haven't figured out. If you don't yet have a domain name, go drop ten dollars at namecheap.com or wherever and reserve one before you start. Soemday someone will document how to change this stuff without breaking Lion Server, but we're not there yet. I'll assume the top-level domain name "domain.com" here.
    Given good backups, a Lion Install DVD (or Recovery Partition), and a domain name, here are the steps, apparently all of which must be more-or-less strictly followed in this order.
    DVD>Disk Utility>Erase Disk  [or Recovery Partition>Disk Utility>Erase Partition]
    DVD>Install Lion
    Reboot, hopefully Lion install kicks in
    Update, update, update Lion (NOT Lion Server yet) until no more updates
    System Preferences>Network>Static IP on the LAN (say 10.0.1.2) and Computer name ("server" is a good standbye)
    Terminal>$ sudo scutil --set HostName server.domain.com
    App Store>Install Lion Server and run through the Setup
    Download install Server Admin Tools, then update, update, update until no more updates
    Server Admin>DNS>Zones [IF THIS WASN'T AUTOMAGICALLY CREATED (mine wasn't): Add zone domain.com with Nameserver "server.domain.com." (that's a FQDN terminated with a period) and a Mail Exchanger (MX record) "server.domain.com." with priority 10. Add Record>Add Machine (A record) server.domain.com pointing to the server's static IP. You can add fancier DNS aliases and a simpler MX record below after you get through the crucial steps.]
    System Prefs>Network>Advanced>Set your DNS server to 127.0.0.1
    A few DNS set-up steps and these most important steps:
    A. Check that the Unix command "hostname" returns the correct hostname and you can see this hostname in Server.app>Hardware>Network
    B. Check that DNS works: the unix commands "host server.domain.com" and "host 10.0.1.2" (assuming that that's your static IP) should point to each other. Do not proceed until DNS works.
    C. Get Apple Push Notification Services CA via Server.app>Hardware>Settings><Click toggle, Edit... get a new cert ...>
    D. Server.app>Profile Manager>Configure... [Magic script should create OD Master, signed SSL cert]
    E. Server.app>Hardware>Settings>SSL Certificate> [Check to make sure it's set to the one just created]
    F. Using Server.app, turn on the web, then Server.app>Profile Manager> [Click on hyperlink to get to web page, e.g. server.domain.com/profilemanager] Upper RHS pull-down, install Trust Profile
    G. Keychain Access>System>Certificates [Find the automatically generated cert "Domain", the one that is a "Root certificate authority", Highlight and Export as .cer, email to all iOS devices, and click on the authority on the device. It should be entered as a trusted CA on all iOS devices. While you're at it, highlight and Export... as a .cer the certificate "IntermediateCA_SERVER.DOMAIN.COM_1", which is listed an an "Intermediate CA" -- you will use this to establish secure SSL connections with remote browsers hitting your server.]
    H. iOS on LAN: browse to server.domain.com/mydevices> [click on LHS Install trust cert, then RHS Enroll device.
    I. Test from web browser server.domain.com/mydevices: Lock Device to test
    J. ??? Profit
    12. Server Admin>DNS>Zones> Add convenient DNS alias records if necessary, e.g., mail.domain.com, smtp.domain.com, www.domain.com. If you want to refer to your box using the convenient shorthand "domain.com", you must enter the A record (NOT alias) "domain.com." FQDN pointing to the server's fixed IP. You can also enter the convenient short MX record "domain.com." with priority 11. This will all work on the LAN -- all these settings must be mirrored on the outside internet using the service from which you registered domain.com.
    You are now ready to begin turning on your services. Here are a few important details and gotchas setting up cloud services.
    Firewall
    Server Admin>Firewall>Services> Open up all ports needed by whichever services you want to run and set up your router (assuming that your server sits behind a router) to port forward these ports to your router's LAN IP. This is most a straightforward exercise in grepping for the correct ports on this page, but there are several jaw-droppingly undocumented omissions of crucial ports for Push Services and Device Enrollment. If you want to enroll your iOS devices, make sure port 1640 is open. If you want Push Notifications to work (you do), then ports 2195, 2196, 5218, and 5223 must be open. The Unix commands "lsof -i :5218" and "nmap -p 5218 server.domain.com" (nmap available from Macports after installing Xcode from the App Store) help show which ports are open.
    SSH
    Do this with strong security. Server.app to turn on remote logins (open port 22), but edit /etc/sshd_config to turn off root and password logins.
    PermitRootLogin no
    PasswordAuthentication no
    ChallengeResponseAuthentication no
    I'm note sure if toggling the Allow remote logins will load this config file or, run "sudo launchctl unload -w /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist ; sudo launchctl load -w /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist" to restart the server's ssh daemon.
    Then use ssh-keygen on remote client to generate public/private keys that can be used to remotely login to the server.
    client$ ssh-keygen -t rsa -b 2048 -C client_name
    [Securely copy ~/.ssh/id_rsa.pub from client to server.]
    server$ cat id_rsa.pub > ~/.ssh/known_hosts
    I also like DenyHosts, which emails detected ssh attacks to [email protected]. It's amazing how many ssh attacks there are on any open port 22. Not really an added security feature if you've turned off password logins, but good to monitor. Here's a Lion Server diff for the config file /usr/share/denyhosts:
    $ diff denyhosts.cfg-dist denyhosts.cfg
    12c12
    < SECURE_LOG = /var/log/secure
    > #SECURE_LOG = /var/log/secure
    22a23
    > SECURE_LOG = /var/log/secure.log
    34c35
    < HOSTS_DENY = /etc/hosts.deny
    > #HOSTS_DENY = /etc/hosts.deny
    40a42,44
    > #
    > # Mac OS X Lion Server
    > HOSTS_DENY = /private/etc/hosts.deny
    195c199
    < LOCK_FILE = /var/lock/subsys/denyhosts
    > #LOCK_FILE = /var/lock/subsys/denyhosts
    202a207,208
    > LOCK_FILE = /var/denyhosts/denyhosts.pid
    > #
    219c225
    < ADMIN_EMAIL =
    > ADMIN_EMAIL = [email protected]
    286c292
    < #SYSLOG_REPORT=YES
    > SYSLOG_REPORT=YES
    Network Accounts
    User Server.app to create your network accounts; do not use Workgroup Manager. If you use Workgroup Manager, as I did, then your accounts will not have email addresses specified and iCal Server WILL NOT COMPLETELY WORK. Well, at least collaboration through network accounts will be handled clunkily through email, not automatically as they should. If you create a network account using Workgroup Manager, then edit that account using Server.app to specify the email to which iCal invitations may be sent. Server.app doesn't say anything about this, but that's one thing that email address entry is used for. This still isn't quite solid on Lion Server, as my Open Directory logs on a freshly installed Lion Server are filled with errors that read:
    2011-12-12 15:05:52.425 EST - Module: SystemCache - Misconfiguration detected in hash 'Kerberos':
         User 'uname' (/LDAPv3/127.0.0.1) - ID 1031 - UUID 98B4DF30-09CF-42F1-6C31-9D55FE4A0812 - SID S-0-8-83-8930552043-0845248631-7065481045-9092
    Oh well.
    Email
    Email aliases are handled with the file /private/etc/postfix/aliases. Do something like this
    root:           myname
    admin:          myname
    sysadmin:       myname
    certadmin:      myname
    webmaster:      myname
    my_alternate:   myname
    Then run "sudo newaliases". If your ISP is Comcast or some other large provider, you probably must proxy your outgoing mail through their SMTP servers to avoid being blocked as a spammer (a lot of SMTP servers will block email from Comcast/whatever IP addresses that isn't sent by Comcast). Use Server.app>Mail to enter your account information. Even then, the Lion Server default setup may fail using this proxy. I had to do this with the file /private/etc/postfix/main.cf:
    cd /etc/postfix
    sudo cp ./main.cf ./main.cf.no_smtp_sasl_security_options
    sudo echo 'smtp_sasl_security_options = noanonymous' >> ./main.cf
    sudo serveradmin stop mail
    sudo serveradmin start mail
    Finally, make sure that you're running a blacklisting srevice yourself! Server Admin>Mail>Filter> Use spamhaus.org as a blacklister. Finally, set up mail to use strong Kerberos/MD5 settings under on Server Admin>Mail>Advanced. Turn off password and clear logins. The settings should be set to "Use" your SSL cert, NOT "Require". "Require" consistently breaks things for me.
    If you already installed the server's Trust Certificate as described above (and opened up the correct ports), email to your account should be pushed out to all clients.
    iCal Server
    Server.app>Calendar>Turn ON and Allow Email Invitations, Edit... . Whatever you do, do NOT enter your own email account information in this GUI. You must enter the account information for local user com.apple.calendarserver, and the password for this account, which is stored in the System keychain: Keychain Access>System> Item com.apple.servermgr_calendar. Double-click and Show Password, copy and paste into Server.app dialog. This is all described in depth here. If you enter your own account information here (DO NOT!), the iCal Server will delete all Emails in your Inbox just as soon as it reads them, exactly like it works for user com.apple.calendarserver. Believe me, you don't want to discover this "feature", which I expect will be more tightly controlled in some future update.
    Web
    The functionality of Server.app's Web management is pretty limited and awful, but a few changes to the file /etc/apache2/httpd.conf will give you a pretty capable and flexible web server, just one that you must manage by hand. Here's a diff for httpd.conf:
    $ diff httpd.conf.default httpd.conf
    95c95
    < #LoadModule ssl_module libexec/apache2/mod_ssl.so
    > LoadModule ssl_module libexec/apache2/mod_ssl.so
    111c111
    < #LoadModule php5_module libexec/apache2/libphp5.so
    > LoadModule php5_module libexec/apache2/libphp5.so
    139,140c139,140
    < #LoadModule auth_digest_apple_module libexec/apache2/mod_auth_digest_apple.so
    < #LoadModule encoding_module libexec/apache2/mod_encoding.so
    > LoadModule auth_digest_apple_module libexec/apache2/mod_auth_digest_apple.so
    > LoadModule encoding_module libexec/apache2/mod_encoding.so
    146c146
    < #LoadModule xsendfile_module libexec/apache2/mod_xsendfile.so
    > LoadModule xsendfile_module libexec/apache2/mod_xsendfile.so
    177c177
    < ServerAdmin [email protected]
    > ServerAdmin [email protected]
    186c186
    < #ServerName www.example.com:80
    > ServerName domain.com:443
    677a678,680
    > # Server-specific configuration
    > # sudo apachectl -D WEBSERVICE_ON -D MACOSXSERVER -k restart
    > Include /etc/apache2/mydomain/*.conf
    I did "sudo mkdir /etc/apache2/mydomain" and add specific config files for various web pages to host. For example, here's a config file that will host the entire contents of an EyeTV DVR, all password controlled with htdigest ("htdigest ~uname/.htdigest EyeTV uname"). Browsing to https://server.domain.com/eyetv points to /Users/uname/Sites/EyeTV, in which there's an index.php script that can read and display the EyeTV archive at https://server.domain.com/eyetv_archive. If you want Apache username accounts with twiddles as in https://server.domain.com/~uname, specify "UserDir Sites" in the configuration file.
    Alias /eyetv /Users/uname/Sites/EyeTV
    <Directory "/Users/uname/Sites/EyeTV">
        AuthType Digest
        AuthName "EyeTV"
        AuthUserFile /Users/uname/.htdigest
        AuthGroupFile /dev/null
        Require user uname
        Options Indexes MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    Alias /eyetv_archive "/Volumes/Macintosh HD2/Documents/EyeTV Archive"
    <Directory "/Volumes/Macintosh HD2/Documents/EyeTV Archive">
        AuthType Digest
        AuthName "EyeTV"
        AuthUserFile /Users/uname/.htdigest
        AuthGroupFile /dev/null
        Require user uname
        Options Indexes MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    I think you can turn Web off/on in Server.app to relaunch apached, or simply "sudo apachectl -D WEBSERVICE_ON -D MACOSXSERVER -k restart".
    Securely copy to all desired remote clients the file IntermediateCA_SERVER.DOMAIN.COM_1.cer, which you exported from System Keychain above. Add this certificate to your remote keychain and trust it, allowing secure connections between remote clients and your server. Also on remote clients: Firefox>Advanced>Encryption>View Certificates>Authorities>Import...> Import this certificate into your browser. Now there should be a secure connection to https://server.domain.com without any SSL warnings.
    One caveat is that there should be a nice way to establish secure SSL to https://domain.com and https://www.domain.com, but the automagically created SSL certificate only knows about server.domain.com. I attempted to follow this advice when I originally created the cert and add these additional domains (under "Subject Alternate Name Extension"), but the cert creation UI failed when I did this, so I just gave up. I hope that by the time these certs expire, someone posts some documentation on how to manage and change Lion Server SSL scripts AFTER the server has been promoted to an Open Directory Master. In the meantime, it would be much appreciated if anyone can post either how to add these additional domain names to the existing cert, or generate and/or sign a cert with a self-created Keychain Access root certificate authority. In my experience, any attempt to mess with the SSL certs automatically generated just breaks Lion Server.
    Finally, if you don't want a little Apple logo as your web page icon, create your own 16×16 PNG and copy it to the file /Library/Server/Web/Data/Sites/Default/favicon.ico. And request that all web-crawling robots go away with the file /Library/Server/Web/Data/Sites/Default/robots.txt:
    User-agent: *
    Disallow: /
    Misc
    VNC easily works with iOS devices -- use a good passphrase. Edit /System/Library/LaunchDaemons/org.postgresql.postgres.plist and set "listen_addresses=127.0.0.1" to allow PostgreSQL connections over localhost. I've also downloaded snort/base/swatch to build an intrusion detection system, and used Macports's squid+privoxy to build a privacy-enhanced ad-blocking proxy server.

    Privacy Enhancing Filtering Proxy and SSH Tunnel
    Lion Server comes with its own web proxy, but chaining Squid and Privoxy together provides a capable and effective web proxy that can block ads and malicious scripts, and conceal information used to track you around the web. I've posted a simple way to build and use a privacy enhancing web proxy here. While you're at it, configure your OS and browsers to block Adobe Flash cookies and block Flash access to your camera, microphone, and peer networks. Read this WSJ article series to understand how this impacts your privacy. If you configure it to allow use for anyone on your LAN, be sure to open up ports 3128, 8118, and 8123 on your firewall.
    If you've set up ssh and/or VPN as above, you can securely tunnel in to your proxy from anywhere. The syntax for ssh tunnels is a little obscure, so I wrote a little ssh tunnel script with a simpler flexible syntax. This script also allows secure tunnels to other services like VNC (port 5900). If you save this to a file ./ssht (and chmod a+x ./ssht), example syntax to establish an ssh tunnel through localhost:8080 (or, e.g., localhost:5901 for secure VNC Screen Sharing connects) looks like:
    $ ./ssht 8080:[email protected]:3128
    $ ./ssht 8080:alice@:
    $ ./ssht 8080:
    $ ./ssht 8018::8123
    $ ./ssht 5901::5900  [Use the address localhost:5901 for secure VNC connects using OS X's Screen Sharing or Chicken of the VNC (sudo port install cotvnc)]
    $ vi ./ssht
    #!/bin/sh
    # SSH tunnel to squid/whatever proxy: ssht [-p ssh_port] [localhost_port:][user_name@][ip_address][:remotehost][:remote_port]
    USERNAME_DEFAULT=username
    HOSTNAME_DEFAULT=domain.com
    SSHPORT_DEFAULT=22
    # SSH port forwarding specs, e.g. 8080:localhost:3128
    LOCALHOSTPORT_DEFAULT=8080      # Default is http proxy 8080
    REMOTEHOST_DEFAULT=localhost    # Default is localhost
    REMOTEPORT_DEFAULT=3128         # Default is Squid port
    # Parse ssh port and tunnel details if specified
    SSHPORT=$SSHPORT_DEFAULT
    TUNNEL_DETAILS=$LOCALHOSTPORT_DEFAULT:$USERNAME_DEFAULT@$HOSTNAME_DEFAULT:$REMOT EHOST_DEFAULT:$REMOTEPORT_DEFAULT
    while [ "$1" != "" ]
    do
      case $1
      in
        -p) shift;                  # -p option
            SSHPORT=$1;
            shift;;
         *) TUNNEL_DETAILS=$1;      # 1st argument option
            shift;;
      esac
    done
    # Get local and remote ports, username, and hostname from the command line argument: localhost_port:user_name@ip_address:remote_host:remote_port
    shopt -s extglob                        # needed for +(pattern) syntax; man sh
    LOCALHOSTPORT=$LOCALHOSTPORT_DEFAULT
    USERNAME=$USERNAME_DEFAULT
    HOSTNAME=$HOSTNAME_DEFAULT
    REMOTEHOST=$REMOTEHOST_DEFAULT
    REMOTEPORT=$REMOTEPORT_DEFAULT
    # LOCALHOSTPORT
    CDR=${TUNNEL_DETAILS#+([0-9]):}         # delete shortest leading +([0-9]):
    CAR=${TUNNEL_DETAILS%%$CDR}             # cut this string from TUNNEL_DETAILS
    CAR=${CAR%:}                            # delete :
    if [ "$CAR" != "" ]                     # leading or trailing port specified
    then
        LOCALHOSTPORT=$CAR
    fi
    TUNNEL_DETAILS=$CDR
    # REMOTEPORT
    CDR=${TUNNEL_DETAILS%:+([0-9])}         # delete shortest trailing :+([0-9])
    CAR=${TUNNEL_DETAILS##$CDR}             # cut this string from TUNNEL_DETAILS
    CAR=${CAR#:}                            # delete :
    if [ "$CAR" != "" ]                     # leading or trailing port specified
    then
        REMOTEPORT=$CAR
    fi
    TUNNEL_DETAILS=$CDR
    # REMOTEHOST
    CDR=${TUNNEL_DETAILS%:*}                # delete shortest trailing :*
    CAR=${TUNNEL_DETAILS##$CDR}             # cut this string from TUNNEL_DETAILS
    CAR=${CAR#:}                            # delete :
    if [ "$CAR" != "" ]                     # leading or trailing port specified
    then
        REMOTEHOST=$CAR
    fi
    TUNNEL_DETAILS=$CDR
    # USERNAME
    CDR=${TUNNEL_DETAILS#*@}                # delete shortest leading +([0-9]):
    CAR=${TUNNEL_DETAILS%%$CDR}             # cut this string from TUNNEL_DETAILS
    CAR=${CAR%@}                            # delete @
    if [ "$CAR" != "" ]                     # leading or trailing port specified
    then
        USERNAME=$CAR
    fi
    TUNNEL_DETAILS=$CDR
    # HOSTNAME
    HOSTNAME=$TUNNEL_DETAILS
    if [ "$HOSTNAME" == "" ]                # no hostname given
    then
        HOSTNAME=$HOSTNAME_DEFAULT
    fi
    ssh -p $SSHPORT -L $LOCALHOSTPORT:$REMOTEHOST:$REMOTEPORT -l $USERNAME $HOSTNAME -f -C -q -N \
        && echo "SSH tunnel established via $LOCALHOSTPORT:$REMOTEHOST:$REMOTEPORT\n\tto $USERNAME@$HOSTNAME:$SSHPORT." \
        || echo "SSH tunnel FAIL."

  • Https ssl config Oracle AS, webcache, portal...almost works

    Hi,
    I have searched the forums and I havent found anything that works for me.
    I have Oracle infrastructure on one server, and Oracle App server/portal on another server. I can get as far as the http server showing the "welcome to oracle" page in https form. When I try to access a page in the portal (plsql) I get a blank page. It does convert the "https://myserver:xxxx//pls/portal/url/page/IRWEB/HOME
    " to "https://myserver:xxxx/portal/page?_pageid=73,86254,73_86264:73_86316:73_8632...." but nothing comes up.
    Also, it uses the Infrastructure server for single-sign-on...so I need to make the app server do the single sign-on. I've tried by adding /pls/orasso entry in DADS.conf of http server..
    So as far as I can tell...the http server IS operating in https/ssl, but the single-sign-on and the pages in the portal are not.
    I have to do everything manually since I am using 10.1.2 (no Oracle Collab Suite installed, so no SSLConfigTool and other assistants)
    Here is what I've done to get https://myserver:xxxx/ to come up ok.
    server 1: Oracle Infrastructure and Oracle database release 1 10.1.2.0.0
    server 2: Oracle Application Server / Portal with webcache release 2 10.1.2
    using Oracle Wallet for certificate,
    http server -> process management "ssl-enabled",
    http server -> advanced -> ssl.config: SSLWallet file:, SSLWalletPassword, virtual host for ssl
    webcache -> added settings for ssl (I used the current entries for non-ssl as a guide for the ssl entries)
    Interesting issue...with the ports in the ssl.conf file example:
    Port 4459
    Listen 4459
    VirtualHose myserver.blah.edu:4450
    Port 4458
    When I get the blank page trying to use ssl and 4459, I can manually change the url in my browser to 4458 (or maybe its the other way around) and get this message: "Error: The portlet could not be contacted"
    Is this a problem with webcache? Do I have to do any ssl config on the server with the database?
    I've even tried disabling the webcache, both with the oracle sql script and through web interface but neither made a difference...same problem.
    Any help would be greatly appreciated..I feel as if I'm almost there.
    If I did not post enough info for accurate help, please ask what you need to know to provide help! Thanks in advance.

    Hi,
    Yes you can go for SSl configuration without re-installing any of the components.
    Regards,
    access_tammy

  • Almost working: change strings of whole application

    Hi! I've been trying to let the end user change the language of a menu. It's almost done, now I have a Menus class showing 3 items : File Help and Description
    In the File item you click in Configuration and there is the combo box where you select the language, you select for example Spanish and click the button and it changes the language of the 3 items above (File,Help and Description).
    To do that I have a Selector class where I declare the Locales and an updateString method that I call after setting the Resources. So far so good
    Now in the Description item I have a subitem named Test and in Test there's a panel named Conver with just some labels and a button, I'm trying to change the language of this panel too in my Configuration panel but does not work ...
    Here are the classes:
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    public class Menus extends JFrame
       public ResourceBundle res;
       private JMenuBar jmbarBarraDeMenus;
       private JMenu jmnuArchivo;
       private JMenu jmnuHelp;
         private JMenu jmnuDescriptiva;//agregu�
       private JMenuItem jmnuAbrir;
       private JMenuItem jmnuConfigura;
         private JMenuItem jmnuUniva;//agregu�
              //private javax.swing.JLabel jlbGradosC;
       public Menus()
          Locale.setDefault(new Locale("en")); //Ingl�s
          res = ResourceBundle.getBundle("Resources");
          setSize(500, 300);
          setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          initComponents();
          updateStrings();
          setVisible(true);
       private void initComponents()
          jmbarBarraDeMenus = new javax.swing.JMenuBar();
          jmnuArchivo = new javax.swing.JMenu();
              jmnuDescriptiva = new javax.swing.JMenu();//agregu�
          jmbarBarraDeMenus.add(jmnuArchivo);
          jmnuHelp = new javax.swing.JMenu();
          jmbarBarraDeMenus.add(jmnuHelp);
              jmbarBarraDeMenus.add(jmnuDescriptiva);
          jmnuAbrir = new javax.swing.JMenuItem();
          jmnuArchivo.add(jmnuAbrir);
          jmnuConfigura = new javax.swing.JMenuItem();
          jmnuArchivo.add(jmnuConfigura);
              jmnuUniva = new javax.swing.JMenuItem();//agregue     
          jmnuDescriptiva.add(jmnuUniva);//agregu�
              // jlbGradosC = new javax.swing.JLabel();
          jmnuConfigura.addActionListener(
             new ActionListener()
                public void actionPerformed(ActionEvent e)
                   jMenuConf_actionPerformed(e);
         jmnuUniva.addActionListener(
             new ActionListener()
                public void actionPerformed(ActionEvent e)
                   jMenuUniva_actionPerformed(e); //agregu�
            getContentPane().setLayout(null);
          setJMenuBar(jmbarBarraDeMenus);
       private void updateStrings()
          setTitle(res.getString("TITLE"));
          jmnuArchivo.setText(res.getString("FILE"));
          jmnuHelp.setText(res.getString("HELP"));
          jmnuAbrir.setText(res.getString("OPEN"));
          jmnuConfigura.setText(res.getString("CONFIGURATION"));
              jmnuDescriptiva.setText(res.getString("DESCRIPTIVE"));
              jmnuUniva.setText(res.getString("UNIVARIANTE"));     
       private void jMenuConf_actionPerformed(ActionEvent e)
          Selector dlg = new Selector(this);
          res = ResourceBundle.getBundle("Resources");
          updateStrings();
    private void jMenuUniva_actionPerformed(ActionEvent e)//Agregu� esto
            System.out.println("hello I'm hereeeeee");
         Conver conv = new Conver(this);
          res = ResourceBundle.getBundle("Resources");
          updateStrings();
       public static void main(String args[])
          new Menus();
    }the Selector:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    public class Selector extends JDialog implements ActionListener
       private final static String[] LANG_STRINGS = { "Spanish", "French", "Dutch", "Chinese", "English" };
       private final static String[] LOCALES      = { "es",      "fr",     "nl",    "cn",      "en"};
       private static int lastIndex = 4;
       private JComboBox langList;
       private JButton OKButton;
       public Selector(JFrame owner)
          super(owner, true);
          setSize(300, 200);
          setTitle("Language Selector");
          initComponents();
          setVisible(true);
       private void initComponents()
          getContentPane().setLayout(null);
          addWindowListener(
             new java.awt.event.WindowAdapter()
                public void windowClosing(WindowEvent evt)
                   dispose();
          langList = new JComboBox(LANG_STRINGS);
          langList.setSelectedIndex(lastIndex);
          langList.setBounds(42, 50, 204, 30);
          getContentPane().add(langList);
          OKButton = new JButton("OK");
          OKButton.setBounds(90, 110, 100, 30);
          OKButton.setActionCommand("seleccionar");
          OKButton.addActionListener(this);
          getContentPane().add(OKButton);
       public void actionPerformed(ActionEvent e)
          if (e.getActionCommand().equals("seleccionar"))
             lastIndex = langList.getSelectedIndex();
             Locale.setDefault(new Locale(LOCALES[lastIndex]));
             dispose();
       public static void main(String args[])
          new Selector(null);
    }the new panel:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    public class Conver extends  JFrame
    /**Crear un nuevo formulario Conver*/
    public Conver(JFrame owner)
      setSize(500,200);//tama�o del formulario
      setTitle("Conversion de temperaturas");//titulo del formulario
      initComponents();//iniciar componenetes
    /** El siguiente metodo es llamado por el constructorpara iniciar el formulario**/
    private void initComponents()
      //Crear los objetos
      jlbGradosC = new javax.swing.JLabel();
      jtfGradosC = new javax.swing.JTextField();
      jlbGradosF = new javax.swing.JLabel();
      jtfGradosF = new javax.swing.JTextField();
      jbtAceptar = new javax.swing.JButton();
      getContentPane().setLayout(null);
      addWindowListener(new java.awt.event.WindowAdapter()
         public void windowClosing(java.awt.event.WindowEvent evt)
          exitForm(evt);
      //Etiqueta "Grados centigrados"
      jlbGradosC.setText("Grados Centigrados");
      getContentPane().add(jlbGradosC);
      jlbGradosC.setBounds(12,28,116,16);
      //Caja de texto para los grados centigrados
      jtfGradosC.setText("0.00");
      jtfGradosC.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
      getContentPane().add(jtfGradosC);
      jtfGradosC.setBounds(132,28,144,20);
      //Etiqueta "Grados Fahrenheit"
      jlbGradosF.setText("Grados fahrenheit");
      getContentPane().add(jlbGradosF);
      jlbGradosF.setBounds(12,68,104,24);
       //Caja de texto para los grados fahreneit
      jtfGradosF.setText("32.00");
      jtfGradosF.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
      getContentPane().add(jtfGradosF);
      jtfGradosF.setBounds(132,72,144,20);
       //Boton Aceptar
      jbtAceptar.setText("Aceptar");
      jbtAceptar.setMnemonic('A');
      getRootPane().setDefaultButton(jbtAceptar);
      getContentPane().add(jbtAceptar);
      jbtAceptar.setBounds(132,120,144,24);
    java.awt.event.KeyAdapter kl=
    new java.awt.event.KeyAdapter()
    public void keyTyped(java.awt.event.KeyEvent evt)
    // jtfGradosKeyTyped(evt);
      jtfGradosC.addKeyListener(kl);
      jtfGradosF.addKeyListener(kl);
    /**Salir de la aplicacion*/
    private void exitForm(java.awt.event.WindowEvent evt)
       System.exit(0);
    *parametro args: argumentos en linea de ordenes
    public static void main(String args[])
       try
           //Aspecto de la interfaz grafica
           javax.swing.UIManager.setLookAndFeel(
            javax.swing.UIManager.getSystemLookAndFeelClassName());
         catch (Exception e)
          System.out.println("No se pudo establecer el aspecto deseado: " + e);
          new Conver(null).setVisible(true);
         private javax.swing.JLabel jlbGradosC;
         private javax.swing.JTextField jtfGradosC;
         private javax.swing.JButton jbtAceptar;
         private javax.swing.JLabel jlbGradosF;
         private javax.swing.JTextField jtfGradosF;
         

    I hope you get an answer to your problem.
    Unfortunately, it's a lot of code to wade through, and many regulars know you
    cross-post your problems all over the place, so probably ignore your posts
    rather than risk their time being wasted on a problem already solved.
    When I said "I hope you get an answer to your problem.",
    I lied.

  • DNS almost working

    Hello All,
    Thanks to this forum I got DNS working, well almost. We have Mac OS X Sever 10.5.2 and our configuration:
    Primary Zone: example.com.
    Nameservers: server.example.com.
    Machine Name: server
    IP Addr: 172.16.1.200
    Added ISP's to Forwarder IP Address. Everything looks good; changeip, host and nslookup checkout. But I can't access our web server within the local network (www.example.com). So I tried adding the web server as follows:
    Machine Name: www.example.com.
    IP Addr: 172.16.2.200
    In Safari, I can access it with www.example.com but not with example.com. Please help. How do I make both www.example.com and example.com work? What am I doing wrong?
    Thank you so much.
    dianne

    Hello Leif and Jin,
    I think it works now thanks to both of you! Instead of using an alias, I just added another record. So here is what I ended up with:
    example.com. Primary Zone
    server Machine 172.16.1.200
    www Machine 172.16.2.200
    example.com. Machine 172.16.2.200
    Safari on the leopard server still can't find example.com but I tried nslookup/host/dig on the command line and they found it. Safari and Firefox on the client machines with tiger can find www.example.com as well as example.com.
    To answer Leif's question, the leopard server and webserver are behind a firewall.
    Please let me know if my setup above doesn't look good, I don't want to use it just because it works.
    Thank you very much again.
    Dianne

  • Custom Calculation Script almost works...

    I'm trying to creaet a form that uses a dropdown box to select the proper text for a text field.  I have created the form and the Custom Calculation for my Text box works great (Thanks to these forums!).
    The problem I am experincing now is that I want to be able to use an Add Page button to spawn another blank copy of the form within the file.  The page spawns correctlly (Once again thanks to these forums!), but My text fields in all of the pages only have the calculated value based upon the last page added.
    Here is my script to spawn the page based upon a template called "Additional Information":
    var a = this.getTemplate("Additional Information");
    a.spawn();
    resetFieldsOnPage(pageNum++);
    resetFieldsOnPage() is a document level javascript that is used to clear the form when it spawns and also to clear and indvidual page with the use of a Clear Button:
    function resetFieldsOnPage(p)
    var fields = [];
        for (var i=0; i<this.numFields; i++) {
            var f = this.getField(this.getNthFieldName(i));
            if (f==null) continue;
            if (f.page==p)
                fields.push(f.name);
        this.resetForm(fields);
    My Text field with the custom calaculation script looks like this:
    //var v = this.getField("Dropdown2").value;
    var v;
    var p = "P";
    var pagecount = this.pageNum;
    var AI= ".Additional Information.";
    var drop = "Dropdown21";
    var Value1013A = "VALUEA";
    var Value1013B = "VALUEB";
    var Value1013C = "VALUEC";
    var Value1013D = "VALUED";
    var Value1013E = "VALUEE";
    var Value1013F = "VALUEF";
    var Value1013G = "VALUEG";
    var Value1013H = "VALUEH.";
    var Value1015A = "VALUE105A";
    if (pagecount == "0") v = this.getField(drop).value;
        else v = this.getField(p+pagecount+AI+drop).value;
    if (v=="101-3 subd.A") this.event.value = Value1013A;
         else if (v=="101-3 subd.B") this.event.value = Value1013B;
         else if (v=="101-3 subd.C") this.event.value = Value1013C;
         else if (v=="101-3 subd.D") this.event.value = Value1013D;
         else if (v=="101-3 subd.E") this.event.value = Value1013E;
         else if (v=="101-3 subd.F") this.event.value = Value1013F;
         else if (v=="101-3 subd.G") this.event.value = Value1013G;
         else if (v=="101-3 subd.H") this.event.value = Value1013H;
         else if (v=="101-5 subd.A") this.event.value = Value1015A;
         else this.event.value = " ";
    I can add pages succesfully with the ADD PAGE button and the additional forms are blank.  As soon as I select a Value in dropdown21 on the new page, All the text boxes that have the above custom calcualtion script change to the value on the last page.  The last page is correct, but all the pages before it have changed.
    I have made sure that the form is blank before creating the template.  I have even exported a copy of the orginal page with no data in it and then imported it as a new page.  After the import I have changed all of the form field to completelly different names and then modified the script of the imported page before creating the template.  I just can't see the problem.  Any help is appreciated.  Thanks

    Simple field notation: Field 1 / Field 2
    Custom script:
    var v1 = +this.getField("Field 1").value;
    var v2 = +this.getField("Field 2").value;
    if (v2==0) event.value = "";
    else event.value = (v1 / v2);

  • Network ... almost working but not for all adresses[RESOLVED]

    Hi,
    I have a very weird matter since a few weeks. (can't figure out if it's due tu an update or what).
    I'm currently writing from my arch laptop : so you may say my network works fine.
    Exept, it only works with some sites.
    I mean : I cannot access http://www.archlinux.fr/ for exampe, or many other, whereas other work juste fine.
    (by "access" I mean : use a browser to see the page.)
    This happens :
    - on Wifi
    - on linked network
    - with chromium or firefox
    On the other hand : ping and traceroute works fine for these otherwise unreachable adresses.
    Weirder still : if I reboot on another OS, everything works flawlessly.
    Another PC linked to the same broadband router will show no problem either.
    Accessing the "cache" version of sites from g**gle page shows results.
    I tried reboot, network restart ... now I dont' know what to try.
    Here's my hardware : Laptop is Lenovo Y510
    03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
    04:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5906M Fast Ethernet PCI Express (rev 02)
    kernel 2.6.32-ARCH
    in one word : Help !  ;-)
    Last edited by skai (2010-01-09 12:09:16)

    Hmm, seems I solved it by tweeking with the broadband router.
    (I fed it with a backup DNS, and reactivated DoS firewall)
    Does neither explain why another PC worked well alongside this one,
    nor why another OS gave other results.
    Maybe just a broadband router inconsistency, anyway, l'll consider this fixed for now.

  • Mail service almost working

    I'm trying to set up a leopard home server and have rebuilt it several times now trying toiget the mail service to work correctly.
    I will no doubt omit lots of necessary information but please bear with me
    I have a registered domain and a static ip. My ISP supplies a broadband modem which just acts as a bridge to my own wireless router. I have done what I understand to be the required port forwarding - 21, 25, 80 & 110.
    I have DNS at the ISP but have also set up DNS internally since I couldn't get anything to work without it!
    Whilst I can send mail from the server my users can only send to the outside & receive no mail from inside or out.
    The SMTP since the last restart:-
    Feb 24 17:56:19 merlin postfix/master[37]: daemon started -- version 2.4.3, configuration /etc/postfix
    Feb 24 18:08:53 merlin postfix/smtpd[282]: connect from demokritos5.cytanet.com.cy[195.14.130.179]
    Feb 24 18:08:54 merlin postfix/smtpd[282]: NOQUEUE: reject: RCPT from demokritos5.cytanet.com.cy[195.14.130.179]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<demokritos5.cytanet.com.cy>
    Feb 24 18:08:54 merlin postfix/smtpd[282]: disconnect from demokritos5.cytanet.com.cy[195.14.130.179]
    Feb 24 18:12:14 merlin postfix/anvil[284]: statistics: max connection rate 1/60s for (smtp:195.14.130.179) at Feb 24 18:08:53
    Feb 24 18:12:14 merlin postfix/anvil[284]: statistics: max connection count 1 for (smtp:195.14.130.179) at Feb 24 18:08:53
    Feb 24 18:12:14 merlin postfix/anvil[284]: statistics: max cache size 1 at Feb 24 18:08:53
    Feb 24 18:12:16 merlin postfix/smtpd[317]: connect from demokritos3.cytanet.com.cy[195.14.130.227]
    Feb 24 18:12:16 merlin postfix/smtpd[317]: NOQUEUE: reject: RCPT from demokritos3.cytanet.com.cy[195.14.130.227]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<demokritos3.cytanet.com.cy>
    Feb 24 18:12:16 merlin postfix/smtpd[317]: disconnect from demokritos3.cytanet.com.cy[195.14.130.227]
    Feb 24 18:12:46 merlin postfix/smtpd[317]: connect from unknown[213.149.189.165]
    Feb 24 18:12:46 merlin postfix/smtpd[317]: NOQUEUE: reject: RCPT from unknown[213.149.189.165]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<[192.168.1.4]>
    Feb 24 18:12:47 merlin postfix/smtpd[317]: disconnect from unknown[213.149.189.165]
    Feb 24 18:12:58 merlin postfix/smtpd[317]: connect from unknown[213.149.189.165]
    Feb 24 18:12:59 merlin postfix/smtpd[317]: NOQUEUE: reject: RCPT from unknown[213.149.189.165]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<[192.168.1.4]>
    Feb 24 18:12:59 merlin postfix/smtpd[317]: disconnect from unknown[213.149.189.165]
    Feb 24 18:13:28 merlin postfix/smtpd[317]: connect from unknown[213.149.189.165]
    Feb 24 18:13:29 merlin postfix/smtpd[317]: NOQUEUE: reject: RCPT from unknown[213.149.189.165]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<[192.168.1.4]>
    Feb 24 18:13:29 merlin postfix/smtpd[317]: disconnect from unknown[213.149.189.165]
    Feb 24 18:14:09 merlin postfix/smtpd[317]: connect from unknown[213.149.189.165]
    Feb 24 18:14:09 merlin postfix/smtpd[317]: NOQUEUE: reject: RCPT from unknown[213.149.189.165]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<[192.168.1.4]>
    Feb 24 18:14:09 merlin postfix/smtpd[317]: disconnect from unknown[213.149.189.165]
    Feb 24 18:14:20 merlin postfix/smtpd[317]: connect from unknown[213.149.189.165]
    Feb 24 18:14:20 merlin postfix/smtpd[317]: disconnect from unknown[213.149.189.165]
    Feb 24 18:15:50 merlin postfix/smtpd[317]: connect from unknown[213.149.189.165]
    Feb 24 18:15:50 merlin postfix/smtpd[317]: NOQUEUE: reject: RCPT from unknown[213.149.189.165]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<[192.168.1.4]>
    Feb 24 18:15:50 merlin postfix/smtpd[317]: disconnect from unknown[213.149.189.165]
    Feb 24 18:19:10 merlin postfix/anvil[318]: statistics: max connection rate 3/60s for (smtp:213.149.189.165) at Feb 24 18:13:28
    Feb 24 18:19:10 merlin postfix/anvil[318]: statistics: max connection count 1 for (smtp:195.14.130.227) at Feb 24 18:12:16
    Feb 24 18:19:10 merlin postfix/anvil[318]: statistics: max cache size 2 at Feb 24 18:12:46
    Feb 24 18:20:09 merlin postfix/smtpd[376]: connect from merlin.2ndwivesclub.eu[192.168.1.2]
    Feb 24 18:20:09 merlin postfix/smtpd[376]: 4D4ED8123E: client=merlin.2ndwivesclub.eu[192.168.1.2]
    Feb 24 18:20:09 merlin postfix/cleanup[378]: 4D4ED8123E: message-id=<[email protected]>
    Feb 24 18:20:09 merlin postfix/qmgr[100]: 4D4ED8123E: from=<[email protected]>, size=583, nrcpt=1 (queue active)
    Feb 24 18:20:15 merlin postfix/smtpd[385]: connect from localhost[127.0.0.1]
    Feb 24 18:20:15 merlin postfix/smtpd[385]: B202081265: client=localhost[127.0.0.1]
    Feb 24 18:20:15 merlin postfix/cleanup[378]: B202081265: message-id=<[email protected]>
    Feb 24 18:20:15 merlin postfix/qmgr[100]: B202081265: from=<[email protected]>, size=1037, nrcpt=1 (queue active)
    Feb 24 18:20:15 merlin postfix/smtpd[385]: disconnect from localhost[127.0.0.1]
    Feb 24 18:20:15 merlin postfix/smtp[386]: B202081265: to=<[email protected]>, relay=none, delay=0.05, delays=0.02/0.03/0/0, dsn=5.4.6, status=bounced (mail for 2ndwivesclub.eu loops back to myself)
    Feb 24 18:20:15 merlin postfix/cleanup[378]: CBEAD81267: message-id=<[email protected]>
    Feb 24 18:20:15 merlin postfix/qmgr[100]: CBEAD81267: from=, size=2928, nrcpt=1 (queue active)
    Feb 24 18:20:15 merlin postfix/bounce[387]: B202081265: sender non-delivery notification: CBEAD81267
    Feb 24 18:20:15 merlin postfix/qmgr[100]: B202081265: removed
    Feb 24 18:20:15 merlin postfix/smtp[386]: CBEAD81267: to=<[email protected]>, relay=none, delay=0.02, delays=0.01/0/0/0, dsn=5.4.6, status=bounced (mail for 2ndwivesclub.eu loops back to myself)
    Feb 24 18:20:15 merlin postfix/qmgr[100]: CBEAD81267: removed
    Feb 24 18:20:15 merlin postfix/smtp[379]: 4D4ED8123E: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.7, delays=0.2/0.13/0.4/6, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as B202081265)
    Feb 24 18:20:15 merlin postfix/qmgr[100]: 4D4ED8123E: removed
    Feb 24 18:21:09 merlin postfix/smtpd[376]: disconnect from merlin.2ndwivesclub.eu[192.168.1.2]
    And conf:-
    merlin:~ alf$ postconf -n
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    content_filter = smtp-amavis:[127.0.0.1]:10024
    daemon_directory = /usr/libexec/postfix
    debugpeerlevel = 2
    enableserveroptions = yes
    html_directory = no
    inet_interfaces = all
    localrecipientmaps =
    luser_relay = postmaster
    mail_owner = _postfix
    mailboxsizelimit = 0
    mailbox_transport = cyrus
    mailq_path = /usr/bin/mailq
    manpage_directory = /usr/share/man
    messagesizelimit = 10485760
    mydestination = $myhostname,localhost.$mydomain,localhost
    mydomain = 2ndwivesclub.eu
    mydomain_fallback = localhost
    myhostname = mail.2ndwivesclub.eu
    newaliases_path = /usr/bin/newaliases
    queue_directory = /private/var/spool/postfix
    readme_directory = /usr/share/doc/postfix
    relayhost =
    sample_directory = /usr/share/doc/postfix/examples
    sendmail_path = /usr/sbin/sendmail
    setgid_group = _postdrop
    smtpdpw_server_securityoptions = none
    smtpdrecipientrestrictions = permitmynetworks,reject_unauthdestination,permit
    smtpduse_pwserver = no
    unknownlocal_recipient_rejectcode = 550
    merlin:~ alf$
    And a rejection notice.
    Some help would be really appreciated.
    Cheers.
    John

    Add 2ndwivesclub.eu to local host aliases in Server Admin -> Mail -> Settings -> Advanced -> Hosting

  • FMS2 on Linux almost working!

    Hi there,
    I've been testing FMS2 on Linux (CentOS). I figured that
    since CentOS is in essence RedHat that I shouldn't have any
    trouble. The good news is that it all seems to have installed
    nicely. When I attempt a ./fmsmgr list it gives me a couple
    processes that are running and everything. I can even login to the
    administrative system. The issue is rtmp service over 1935 isn't
    responding. I attempted to connect with a simple application I
    wrote but it constantly fails.
    So I checked the logs and I'm basically getting this:
    Apr 28 09:20:04 as 257[25875]: Server stopped .
    Apr 28 09:20:44 as 257[4028]: Server starting...
    Apr 28 09:20:44 as Server[4028]: No primary license key
    found. Switching to Developer Edition.
    Apr 28 09:20:44 as Server[4042]: No primary license key
    found. Switching to Developer Edition.
    Apr 28 09:20:44 as 257[4028]: Server started
    (/opt/macromedia/fms/conf/Server.xml).
    Apr 28 09:20:44 as Server[4045]: No primary license key
    found. Switching to Developer Edition.
    Apr 28 09:20:44 as Adaptor[4042]: Listener started (
    _defaultRoot__edge1 ) : 19350
    Apr 28 09:20:45 as Adaptor[4042]: Failed to create thread
    (TCAsyncIO::init).
    Apr 28 09:20:45 as Adaptor[4042]: Failed to create thread
    (TCProtocolAdaptor::startListenerThread).
    Apr 28 09:20:45 as Adaptor[4042]: Failed to start listeners
    for adaptor _defaultRoot__edge1.
    Apr 28 09:20:45 as 257[4042]: Server aborted.
    Apr 28 09:20:49 as Server[5379]: No primary license key
    found. Switching to Developer Edition.
    Apr 28 09:20:49 as Adaptor[5379]: Listener started (
    _defaultRoot__edge1 ) : 19350
    Apr 28 09:20:50 as Adaptor[5379]: Failed to create thread
    (TCAsyncIO::init).
    Apr 28 09:20:50 as Adaptor[5379]: Failed to create thread
    (TCProtocolAdaptor::startListenerThread).
    Apr 28 09:20:50 as Adaptor[5379]: Failed to start listeners
    for adaptor _defaultRoot__edge1.
    Apr 28 09:20:50 as 257[5379]: Server aborted.
    I can start, restart the service and do everything without
    harm. But it seems as if the server itself is failing when it's
    initialized despite admin and other services running perfectly.
    I'm wondering if I need to do something to Adaptor.xml or
    Vhost.xml. This is a fresh setup and I haven't touched/configured
    anything. I'm not sure if I should be tweaking the
    configuration...assignging any IP addresses etc.
    Also you sould know that this is a shared host with multiple
    domains on the same system. So I'm not sure if that will effect it
    at all.
    Your help is greatly appreciated, I really want to see this
    working on Linux,
    David

    Try:
    /opt/macromedia/fms/fmsmaster
    If you see and error about libnspr4.so you'll need to install
    some more RPMs. You can find my notes on installing FMS on linux
    at:
    http://renaun.com/blog/2006/11/10/149/
    http://renaun.com/blog/2006/03/18/20/

  • IMAP Almost Working, But Can't Subscribe to New Folders

    Hello,
    We've got a shared IMAP folder that I'm accessing just fine. Unfortunately when someone else adds a folder I can't seem to subscribe to it.
    I can see the new folder when I go to "Get Account Info" (it shows up nicely under Quote limits) but the subscription list is blank so I can neither subscribe or unsubscribe to them.
    I've read that this is an old problem - http://discussions.apple.com/message.jspa?messageID=5668307
    There must be an easy fix for this problem. The ones that were there when I first loaded the IMAP account all show up, so perhaps I need to delete & reinstall it. How crude!
    This is with an SL upgrade. I just migrated from Thunderbird, wondering if that might have been a mistake.
    Mike

    Hi,  
    I have left BT Broadband -- we've moved abroad -- and want to retain my BTINTERNET.COM email address etc but have been unable to use any of the sign-up processes for PremiumMail.  I've spent hours about this with BT helpers over the phone before we moved -- I've just spent more than an hour trying it all again, following the advise of the helpers to the letter. 
    Please help to solve this once and for all -- our 90-day grace period is almost over. 
    When I try the 'upgrade your mail' link (http://register.btinternet.com/cgi-bin/load_page?h​ead=/templates/home_header&page=/register/chprodpw​...) and I enter my current details (that I use to access my btinternet.com email address), I get this notice:
    "Sorry, but there seems to be a problem with the status of your account.  Please contact the BT Yahoo! Internet team on the link below for help."  That help link takes me to the email-address sign-in page.
    When I try the 'get it [PremiumMail] now'-route via https://register.btinternet.com/cgi-bin/registerno​w?version=ie5&ex=1&product_type=PMR, and I access all the relevant data, I get to a point where I have to choose a primary email address etc.  When I enter my current details (ie my current email address at btinternet.com and my current password), I'm told that's already been taken.
    What to do?
    Before we left we were told that the online sign-up process is faulty when you try to sign up to Premium Mail while still in the UK -- but that it's all fine once you're aborad.  Well, it isn't. 
    I've tried Firefox and Internet Explorer browsers.  It makes no difference.
    I cannot lose the current email (btinternet.com) address, it's used for too many important purposes etc.  If you can advise me how to complete a subscription to PremiumMail and therefore retain my current BT email accounts it would be much appreciated.
    Many thanks in advance,
    Despondent

  • Windows 7 64-bit HotSync almost works

    I downloaded the drivers from Aceeca, but when I Hotsynch using the USB cable, everything on my Palm TX synchonizes with the Palm Desktop EXCEPT the datebook/calendar.  As this is the most important thin I want to synchronize, I wonder if anyone else has had the problem.  The Hotsync simply hangs when it gets to Datebook, and I have to cancel.  I then tried synching everything except the Datebook, and it worked fine: and then tried Datebook on its own, and again it hangs.
    I'd be grateful for any suggestions: I'd like to be able to get 5 years of information out of the TX and onto the Desktop, and I've had even more trouble trying to do it by Bluetooth.
    Post relates to: Palm TX

    Hello Janet1593, I'd suggest reading the very first post at the top of this section.  Sounds like you may need to run DBFixit.
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • My decoding/encoding program that almost works.  What's wrong?

    I've been working on the following program. After it prompts the user to enter a "code," it is then supposed to examine it and either encode or decode it, depending on what the user entered. All entries from the user that are meant to be decoded need to be inputted in this form: "lkdhe lakdh idhal" (1 space after every five letters, and it can only consist of lower or uppercase letters and the numbers 1-5).
    If anything else is entered by the user, the program will encode it. However, I can only get the program to call the encode function, the decode function only comes up when I enter in 1 letter to the console. I'm pretty sure the problem is concerning this loop which is suppose to test to see if the user entered in anything other than a letter or number. I don't think it's doing what I want it to do though. I have another loop to test for the required spaces, and I know that one is working.
    for(n = 0; n <= s.length() ;n++)
              s1 = s.substring(n);
              if(Code.CODE1.indexOf(s1) == -1)
                   return false;
         }Here is the rest of the code:
    import java.util.Scanner;
    public class Enc1
    public static void main (String []args)
         //String message = args[0];
         //String codedMessage = args[1];
         boolean valid = false;
         int i;
         int j;
         Scanner keyboard = new Scanner(System.in);
        System.out.println("Enter a code");
        String code = keyboard.nextLine();
         System.out.println(code);
         if (isCoded(code))
              System.out.println(decode(code));
         else
              System.out.println(encode(code));
    public class Code{
         private static final String CODE1 = "HTNZUL5m3lDQchenpIuORws1jPgVtzKWbfBxXSArdayCJkvqGiF2YoM4E";
         public static final String CODE2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ,.;:";
        public static String encode (String message)
              message = "Encode called";
              return message;
             //CODE1.charAt(0);  //0 will equal H
             //CODE1.indexOf(CODE1, 0); //Not sure what it returns
        public static String decode (String codedMessage)
              codedMessage = "Decode called";
              return codedMessage;
         public static boolean isCoded(String s){
         int n;
         int m;
         boolean valid = true;
         String s1;
         for(n = 0; n <= s.length() ;n++)
              s1 = s.substring(n);
              if(Code.CODE1.indexOf(s1) == -1)
                   return false;
         for(m = 5; m <= s.length()-1; m = m+6)
                   if(s.charAt(m) == ' ')
                         valid = true;
                   else
                   return false;
         return valid;
        }Any suggestions? I hope I explained my problem clearly enough, I'm a little burnt out on this program, I've been working on it for hours. Any help would be greatly appreciated.

    Hey Bud,
    I think it wouldnt be really clean to mention
    boolean valid = true;in the beginning of your for and if.
    I would personally start of by making my booleans false in the beginning and changing it on logic.
    HTH

Maybe you are looking for