Vexing static namespace problem

I'm trying to use the following expression:
     for $d in dbxml:lookup-index($container, trace($doctype, "find-linked-type"))
it's in a module which I import into my query.
Used from the dbxml shell, it works great. The namespace it uses there is bound in the shell.
Used from a program produces the following:
Debug: XmlStorage::getLinkedDocs: xmlns:t='http://ceridwen.us/test'
Query - Starting query execution
Query - find-linked-type t:TestDoc
Error: XmlStorage::getLinkedDocs: Query threw Error: No namespace for prefix [err:FONS0004]
The query is prepared in advance with a dummy XmlQueryContext and then run with a new one which sets the variable values (works fine) and the namespace, which the "Debug" message above confirms.
Does the namespace have to be declared at query creation for this to work?
Regards,
John Ralls

George,
I was afraid you were going to say that.
I imagine that one can declare namespaces in the query's prolog as well, but that's not terribly convenient if one is trying to keep things general.
Some more grist for the "Getting Started Guide", I guess.
Regards,
John Ralls

Similar Messages

  • A solution for Secure Static Versioning problem in 1.5.0_10

    Hi,
    I have JRE 1.3.1_09 and 1.5.0_10 on my computer and I think I have solved static versioning problem.
    My test computer:
    - Windows XP sp2
    - Internet Explorer 7 (on another computer also IE 6)
    - Firefox 2.0.0.1
    - JRE 1.3.1_09
    - JRE 1.5.0_10
    I. Solution for Internet Explorer 6 and Internet Explorer 7
    1. Edit registry and add:
    HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Deployment\Policy
    DWORD: EnableSecureStaticVersioning = 0 (Hex)
    2. Restart browser if started.
    3. Start web page with java applet.
    II. Solution for Firefox 2.0.0.1:
    1. Install 1.3 JRE in the same parent directory as 1.5 JRE.
    Because default default installation path for 1.5 JRE is C:\Program Files\Java\jre1.5.0_10 you need to modify
    1.3 installation path from default C:\Program Files\JavaSoft\JRE\1.3.1_09 to C:\Program Files\Java\jre1.3.1_09
    After installation check out that "bin" directory is in the following path:
    C:\Program Files\Java\jre1.3.1_09\bin
    2. Install 1.5 JRE in default installation directory: C:\Program Files\Java\jre1.5.0_10.
    After installation check out that "bin" directory is in the following path:
    C:\Program Files\Java\jre1.3.1_09\bin
    3. Restart browser if started.
    4. Start web page with java applet.
    Note: HTML page must use <object> tabs for Internet Explorer or <embed> tabs for any other browser (e.g. Firefox). You need to specify correct classid in object and/or embed tag.
    P.S. If anyone would like to discuss with me send me an e-mail to [email protected], but please post question to forum and just mail me a link to forum. I will write my answer to forum.
    Hope this helps,
    Grofaty

    I have been trying to find a solution for this issue at our organization for over 6 months. Finally, we have a work around to run multiple java versions for newer and aging java apps.
    Thanks,
    Adunlow

  • [svn] 1313: Fix for the use namespace problems we've been having with ASC ( I hope).

    Revision: 1313
    Author: [email protected]
    Date: 2008-04-20 09:41:41 -0700 (Sun, 20 Apr 2008)
    Log Message:
    Fix for the use namespace problems we've been having with ASC (I hope). The problem was that the use directive was being defined after we had called finish package. The UseDirectiveNode has a pkgdef ptr, and does different things depending if that ptr is null or not. It should not be null when the UseDirective is inside the package - but since we were generating the UseDirectiveNode after we had called finishPackage the UseDirectiveNode didn't have it's pkgdef ptr set, and so things went awry as the package didn't get set up with all the correct open namespaces. I haven't tested this in authoring/flex but I am pretty sure that this will fix all the problems we're seeing.
    Modified Paths:
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/parser/Parser.java

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • Please help with namespace problem

    Hello,
    I am trying to display a gif image an I have a namespace problem.
    Here is my xml document:
    <?xml version='1.0'?>
    <?xml-stylesheet type="text/xsl" href="authors.xsl"?>
    <authors>
    <author>
    <name>Mike Galos</name>
    <nationality>French</nationality>
    </author>
    <author>
    <name>Cynthia Randall</name>
    <nationality>Canadian</nationality>
    </author>
    </authors>
    Here is my xsl stylesheet:
    <?xml version='1.0'?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:template match="//author">
    <image     xmlns:xlink="http://www.w3.org/1999/xlink"
                   xlink:type="simple"
                   xlink:href="logo.gif"
                   xlink:show="embed"/>
    </xsl:template>
    </xsl:stylesheet>
    I want the browser to diplay the gif image but it is only showing the image icon and not the actual gif image.
    Can anyone please help??
    Thanks in advance,
    Balteo.

    do you use a special browser?
    if not, do you really expect a standard browser to understand this kind of non-HTML image tag?
    <image xmlns:xlink="http://www.w3.org/1999/xlink" xlink:show="embed" xlink:href="logo.gif" xlink:type="simple">check HTML 4.0 (http://www.devguru.com/Technologies/html/quickref/html_img.html)
    or XHTML(http://www.devguru.com/Technologies/xhtml/quickref/xhtml_img.html)
    for the correct tag syntax.

  • MSI GE70 2OE static electricity problems!

    Hi, i bought an MSI GE70 2OE gaming laptop and right away i noticed some static electricity where i put my hands on the pc case. Anyone else having problems like these, and is it dangerous? I mean even right now when i type this article i have my hands resting on the pc and i can feel some static electricity. Yesterday i even had a small discharge when i touched the corner of my pc... since the pc is metallic or aluminium or whatever, i guess it builds up charge. First i thought it was my power outlet, so i changed them and still static electricity...then i thought all sockets in my apartment were screwed up so i went to a friend across town, plugged it in...and still static electricity problems.... I mean i just bought the pc 2 weeks ago and i don't want it fried or destroyed because of this...is this dangerous?  Whenever i unplug the pc and run it on battery, everything is 100% fine and i feel no static electricity at all... and as soon as i plug it in, i feel it again when i touch my pc.

    Quote from: James D on 16-November-13, 13:05:03
    Just a note. I bet it was the first time you saw notebook exploded from wi-fi antenna from inside.
    I guess what if there is a connection? Who knows. That laptop's case is from plastic but who knows.
    OP, ask someone else to touch laptop. Not on the carpet) maybe it is just you.
    Actually, on the GT laptops it's metal....the handrest is actually metal.
    But yeah. indranil's suggestion makes more sense.

  • A non-solution to the static distortion problem

    I don't know if there's any chance of the following "solution" having value to anyone else but I'll submit it to be filed in the "For What It's Worth" folder.
    First, by way of preamble, I've upgraded iTunes a number of times now (going back to v. 4.6.0.15) and this is the first time I have had any sort of issue - the static/distortion problem that is presently being much-discussed in these forums.
    Following the leads in the early threads on this topic, I played a handful of song files with QuickTime and confirmed that everything sounded fine with that player.
    I went back to iTunes and the problem remained, although it struck me that it wasn't as severe as it had been.
    I continued playing songs, hoping for some sort of insight into what had gone wrong when it slowly dawned on me that the static/distortion had ended ... and I hadn't done anything - changed settings or anything else - except simply play songs.
    iTunes has been playing for a couple of hours now with no further sign of the problem.
    One final point of information, I'm guessing it was after having played in the area of 10-15 songs when the problem seems to have solved itself.

    I'll also add that I've since re-enabled the options I originally changed to "fix" my problem. I'm no longer getting the distortion, even with the options I changed.
    I'm not sure what's going on.. I guess I'm just glad my music is back to normal and that I can browse the Internet AND listen to music!

  • Xpath Namespace problem

    Hi,
    I'm facing a problem while reading an xpath element which has namespace attached.
    The xml document is as follows
    <ns0:_root  xmlns:ns0="http://www.oracle.bt.bp.osm/GPRLN">
    <ns0:Port_and_Routing_Details_g>
    <ns0:Action_Code>
    <ns0:Code1>Add</ns0:Code1>
    <ns0:Code2>Delete</ns0:Code2>
    <ns0:Code3>Update</ns0:Code3>
    </ns0:Action_Code>
    </ns0:Port_and_Routing_Details_g>
    <ns0:Extended_Quantity>1</ns0:Extended_Quantity>
    <ns0:Status>Pending</ns0:Status>
    <ns0:Description/>
    </ns0:_root> In the above xml document i want to capture the text node of <ns0:Code3>Update</ns0:Code3> i.e. I want to get Update as a result.
    I'm using the following java program to to get the value by using xpath but not succeeded.
    public class XMLParsing {
         public static void main(String[] args)
             try {
                       DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
             domFactory.setNamespaceAware(true);
             DocumentBuilder builder = domFactory.newDocumentBuilder();
             Document doc = builder.parse("E:\\sample.xml");
             XPathFactory factory = XPathFactory.newInstance();
             XPath xpath = factory.newXPath();
              XPathExpression fax = xpath.compile("//ns0:Port_and_Routing_Details_g/ns0:Action_Code/ns0:Code3/text()");
                        Object result = fax.evaluate(doc, XPathConstants.NODESET);
              NodeList nodes = (NodeList) result;
              int len = nodes.getLength();
              System.out.println(len);
              for (int i=0; i<len;i++){
                   System.out.println(nodes.item(i).getNodeValue());
             catch (ParserConfigurationException e) {
              e.printStackTrace();
              catch(SAXException e){
                   e.printStackTrace();
              catch(IOException e) {
                   e.printStackTrace();
              catch(XPathExpressionException e){
                   e.printStackTrace();
      }Anybody please help me on this issue
    Thanks

    Hi,
    put bolded code in your program.
    It will resolve your problem
    public class XMLParsing {
         public static void main(String[] args)
         try {
    DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
         domFactory.setNamespaceAware(true);
         DocumentBuilder builder = domFactory.newDocumentBuilder();
         Document doc = builder.parse("E:\\sample.xml");
    *NamespaceContext ctx = new NamespaceContext() {*
    *public String getNamespaceURI(String prefix) {*
    String uri;
    if (prefix.equals("ns0"))
    uri = "http://www.oracle.bt.bp.osm/GPRLN";
    else if (prefix.equals("ns2"))
    uri = "http://www.davber.com/sales-format";
    else
    uri = null;
    return uri;
    *public Iterator getPrefixes(String val) {*
    *     return null;*
    *// Dummy implemenation - not used!*
    *public String getPrefix(String uri) {*
    return null;
         XPathFactory factory = XPathFactory.newInstance();
         XPath xpath = factory.newXPath();
    xpath.setNamespaceContext(ctx);
         XPathExpression fax = xpath.compile("//ns0:Port_and_Routing_Details_g/ns0:Action_Code/ns0:Code3/text()");
    Object result = fax.evaluate(doc, XPathConstants.NODESET);
              NodeList nodes = (NodeList) result;
              int len = nodes.getLength();
              System.out.println(len);
              for (int i=0; i<len;i++){
                   System.out.println(nodes.item(i).getNodeValue());
         catch (ParserConfigurationException e) {
              e.printStackTrace();
              catch(SAXException e){
                   e.printStackTrace();
              catch(IOException e) {
                   e.printStackTrace();
              catch(XPathExpressionException e){
                   e.printStackTrace();
    }

  • XQuery Namespace Problem !

    Hello everyone...
    I'm trying to generate a Xdiff document using XQuery. First, i have tried to generate a static XDiff document using Xquery. I'm getting a problem with namespace. The XQuery I have written is
    select xmlroot(XMLQuery('
    declare namespace xsi="xsi"; (: :)
    declare namespace xd="xd"; (: :)
    let $chk1:=( <xd:delete-node xd:node-type="element" xd:xpath="/RootElement[1]/Invalid[1]" />)
    return <xd:xdiff xsi:schemaLocation="http://xmlns.oracle.com/xdb/xdiff.xsd http://xmlns.oracle.com/xdb/xdiff.xsd" xmlns:xd="http://xmlns.oracle.com/xdb/xdiff.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <?oracle-xmldiff operations-in-docorder="false" output-model="current" diff-algorithm="global"?>{$chk1}</xd:xdiff>
    returning content), VERSION '1.0')
    from dual;
    The above query gives me the output
    <?xml version="1.0"?>
    <xd:xdiff xmlns:xd="http://xmlns.oracle.com/xdb/xdiff.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLo
    cation="http://xmlns.oracle.com/xdb/xdiff.xsd http://xmlns.oracle.com/xdb/xdiff.xsd">
    <?oracle-xmldiff operations-in-docorder="false" output-model="current" diff-algorithm="global"?>
    <xd:delete-node xmlns:xd="xd" xd:node-type="element" xd:xpath="/RootElement[1]/Invalid[1]"/>
    </xd:xdiff>
    I don't want that xmlns="xd" attribute. How to eliminate that?
    Please help me.
    Thanks in advance,
    R Kaja Mohideen

    I found that giving the full URL in declare namespace resolves my issue. Oracle's XMLPatch accepts XDiff document generated by this XQuery.

  • The Good Old Static Reference Problem

    Hey All,
    I know you are probabely all sick of this question but non-static variable RobotServerStatusConditionLabel cannot be referenced from a static context
    I dont know how to go about fixing this problem, i have read the other feeds on this and more or less understood why the error is happening but cant think of a way to solve it. I am developing a GUI progam in Netbeans The code is shown below.
    The prolem i am having is that i have a thread called ModuleThreadRobot which is in a class called final class ModuleThreadRobot. I need to be able to access the variables in the GUI so that i can update them for the user so for example i want to change the text of a label in the gui:
    LabANTServerProxyGUI.RobotServerStatusConditionLabel.setText("wagamma!!");
    And the error i get is as follows:
    non-static variable RobotServerStatusConditionLabel cannot be referenced from a static context
    So if anyone can help me out here, i more or less get why its happening just don't know a way around it.
    Thanks inadvance,
    Richard
    * LabANTServerProxyGUI.java
    * Created on 26 December 2005, 07:58
    package LabANTServerProxy;
    * @author  Yap
    import javax.swing.*;
    import java.io.*;
    import java.net.*;
    public class LabANTServerProxyGUI extends javax.swing.JFrame {
        /** Creates new form LabANTServerProxyGUI */
        public LabANTServerProxyGUI() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
        private void initComponents() {
            LabANTTabbedPane = new javax.swing.JTabbedPane();
            LabANTSplashPanel = new javax.swing.JPanel();
            Title = new javax.swing.JLabel();
            Author = new javax.swing.JLabel();
            UniversityMark = new javax.swing.JTextArea();
            Copyright = new javax.swing.JTextArea();
            PicturePanel = new javax.swing.JPanel();
            jLabel2 = new javax.swing.JLabel();
            EmailLabel = new javax.swing.JLabel();
            WebAddressLabel = new javax.swing.JLabel();
            ServerControlPanel = new javax.swing.JPanel();
            StepOnePanel = new javax.swing.JPanel();
            RobotServerSettingsPanel = new javax.swing.JPanel();
            ServerIPAddressLabel = new javax.swing.JLabel();
            ServerIPAddressTextField = new javax.swing.JTextField();
            ServerPortLabel = new javax.swing.JLabel();
            ServerPortTextField = new javax.swing.JTextField();
            RobotServerSettingsTextArea = new javax.swing.JTextArea();
            StatusLabel = new javax.swing.JLabel();
            RobotServerStatusConditionLabel = new javax.swing.JLabel();
            RobotServerSettingsConnectButton = new javax.swing.JButton();
            StepTwoPanel = new javax.swing.JPanel();
            DatabaseSettingsPanel = new javax.swing.JPanel();
            DatabaseIPAddressLabel = new javax.swing.JLabel();
            DatabasePortLabel = new javax.swing.JLabel();
            DatabaseIPTextField = new javax.swing.JTextField();
            DatabasePortTextField = new javax.swing.JTextField();
            DatabaseSettingsTextArea = new javax.swing.JTextArea();
            UsernameLabel = new javax.swing.JLabel();
            PasswordLabel = new javax.swing.JLabel();
            UsernameTextField = new javax.swing.JTextField();
            PasswordTextField = new javax.swing.JPasswordField();
            DatabaseSaveButton = new javax.swing.JButton();
            TestStatusPanel = new javax.swing.JPanel();
            TestStatusConditionLabel = new javax.swing.JLabel();
            DatabaseTestButton = new javax.swing.JButton();
            StepThreePanel = new javax.swing.JPanel();
            ServerStatus = new javax.swing.JPanel();
            LabANTServerPortLabel = new javax.swing.JLabel();
            LabANTServerPortTextField = new javax.swing.JTextField();
            ServerStatusTextArea = new javax.swing.JTextArea();
            StartServerButton = new javax.swing.JButton();
            ServerMonitorPane = new javax.swing.JPanel();
            SensorDataScrollPane = new javax.swing.JScrollPane();
            SensorDataTextArea = new javax.swing.JTextArea();
            CommandDataScrollPane = new javax.swing.JScrollPane();
            CommandDataTextArea = new javax.swing.JTextArea();
            ServerMonitorNoteLabel = new javax.swing.JLabel();
            ClientDataPane = new javax.swing.JPanel();
            ClientIPAddressLabel = new javax.swing.JLabel();
            ClientIPAddressConditionLabel = new javax.swing.JLabel();
            LogsPanel = new javax.swing.JPanel();
            LogsTextArea = new javax.swing.JTextArea();
            HelpPanel = new javax.swing.JPanel();
            HelpScrollPane = new javax.swing.JScrollPane();
            HelpTextArea = new javax.swing.JTextArea();
            jPanel5 = new javax.swing.JPanel();
            AboutScrollPane = new javax.swing.JScrollPane();
            AboutTextArea = new javax.swing.JTextArea();
            getContentPane().setLayout(null);
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            LabANTTabbedPane.setFont(new java.awt.Font("Tahoma", 1, 11));
            LabANTSplashPanel.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
            LabANTSplashPanel.setFont(new java.awt.Font("MS Sans Serif", 1, 11));
            Title.setFont(new java.awt.Font("Tahoma", 1, 36));
            Title.setText("LabANT Version 1.0");
            LabANTSplashPanel.add(Title, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 20, -1, -1));
            Author.setFont(new java.awt.Font("Tahoma", 0, 18));
            Author.setText("Author: Richard McElligott ");
            LabANTSplashPanel.add(Author, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 60, -1, -1));
            UniversityMark.setBackground(javax.swing.UIManager.getDefaults().getColor("Button.background"));
            UniversityMark.setFont(new java.awt.Font("Tahoma", 0, 12));
            UniversityMark.setText("The University of Reading\nActive Robotics Laboratory");
            LabANTSplashPanel.add(UniversityMark, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 440, -1, -1));
            Copyright.setBackground(javax.swing.UIManager.getDefaults().getColor("Button.background"));
            Copyright.setFont(new java.awt.Font("Tahoma", 0, 12));
            Copyright.setText("Copyright Richard McElligott");
            LabANTSplashPanel.add(Copyright, new org.netbeans.lib.awtextra.AbsoluteConstraints(710, 470, -1, -1));
            PicturePanel.setLayout(null);
            PicturePanel.setBorder(new javax.swing.border.TitledBorder("Picutre"));
            jLabel2.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\Yap\\My Documents\\My Pictures\\leafcutterant1.jpg"));
            PicturePanel.add(jLabel2);
            jLabel2.setBounds(10, 20, 800, 300);
            LabANTSplashPanel.add(PicturePanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 90, 820, 340));
            EmailLabel.setFont(new java.awt.Font("Tahoma", 0, 11));
            EmailLabel.setText("[email protected]");
            LabANTSplashPanel.add(EmailLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(710, 450, -1, -1));
            WebAddressLabel.setFont(new java.awt.Font("Tahoma", 0, 11));
            WebAddressLabel.setText("www.arl.reading.ac.uk");
            LabANTSplashPanel.add(WebAddressLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 470, -1, -1));
            LabANTTabbedPane.addTab("LabANT", LabANTSplashPanel);
            ServerControlPanel.setLayout(null);
            ServerControlPanel.setMinimumSize(new java.awt.Dimension(861, 485));
            ServerControlPanel.setPreferredSize(new java.awt.Dimension(861, 485));
            StepOnePanel.setLayout(null);
            StepOnePanel.setBorder(new javax.swing.border.TitledBorder(null, "Step One", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11)));
            RobotServerSettingsPanel.setLayout(null);
            RobotServerSettingsPanel.setBorder(new javax.swing.border.TitledBorder(null, "Robot Server Settings", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11)));
            ServerIPAddressLabel.setFont(new java.awt.Font("Tahoma", 0, 11));
            ServerIPAddressLabel.setText("Server IP Address:");
            RobotServerSettingsPanel.add(ServerIPAddressLabel);
            ServerIPAddressLabel.setBounds(30, 20, 100, 14);
            ServerIPAddressTextField.setFont(new java.awt.Font("Tahoma", 0, 11));
            ServerIPAddressTextField.setText("127.0.0.1");
            RobotServerSettingsPanel.add(ServerIPAddressTextField);
            ServerIPAddressTextField.setBounds(30, 40, 180, 14);
            ServerPortLabel.setFont(new java.awt.Font("Tahoma", 0, 11));
            ServerPortLabel.setText("Server Port:");
            RobotServerSettingsPanel.add(ServerPortLabel);
            ServerPortLabel.setBounds(30, 60, 70, 14);
            ServerPortTextField.setFont(new java.awt.Font("Tahoma", 0, 11));
            ServerPortTextField.setText("4444");
            RobotServerSettingsPanel.add(ServerPortTextField);
            ServerPortTextField.setBounds(30, 80, 50, 14);
            RobotServerSettingsTextArea.setBackground(javax.swing.UIManager.getDefaults().getColor("Button.background"));
            RobotServerSettingsTextArea.setFont(new java.awt.Font("Tahoma", 0, 12));
            RobotServerSettingsTextArea.setLineWrap(true);
            RobotServerSettingsTextArea.setText("Please supply the settings to connect to the robots wireless rs232 to tcp/ip module. This module recieves a wireless RS232 signal via a transiever on board the robot and one on the modlue and sends this data to a small embeded server to which you must connect. To connect you need to supply the IP Address and Port Number of the module. The Default is IP Address is 127.0.0.1 and Port Number is 4444. The MAC address of the module is:  00-33-44-55-55-66\n");
            RobotServerSettingsTextArea.setWrapStyleWord(true);
            RobotServerSettingsPanel.add(RobotServerSettingsTextArea);
            RobotServerSettingsTextArea.setBounds(390, 20, 440, 110);
            StatusLabel.setFont(new java.awt.Font("Tahoma", 1, 11));
            StatusLabel.setText("Status:");
            RobotServerSettingsPanel.add(StatusLabel);
            StatusLabel.setBounds(30, 110, 50, 14);
            RobotServerStatusConditionLabel.setFont(new java.awt.Font("Tahoma", 0, 11));
            RobotServerStatusConditionLabel.setText("Disconnected");
            RobotServerSettingsPanel.add(RobotServerStatusConditionLabel);
            RobotServerStatusConditionLabel.setBounds(80, 110, 290, 14);
            RobotServerSettingsConnectButton.setFont(new java.awt.Font("Tahoma", 1, 11));
            RobotServerSettingsConnectButton.setText("Connect");
            RobotServerSettingsConnectButton.setBorder(new javax.swing.border.EtchedBorder());
            RobotServerSettingsConnectButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    RobotServerSettingsConnectButtonActionPerformed(evt);
            RobotServerSettingsConnectButton.addMouseListener(new java.awt.event.MouseAdapter() {
                public void mouseReleased(java.awt.event.MouseEvent evt) {
                    RobotServerSettingsConnectButtonMouseReleased(evt);
            RobotServerSettingsPanel.add(RobotServerSettingsConnectButton);
            RobotServerSettingsConnectButton.setBounds(140, 70, 80, 30);
            StepOnePanel.add(RobotServerSettingsPanel);
            RobotServerSettingsPanel.setBounds(10, 20, 850, 140);
            ServerControlPanel.add(StepOnePanel);
            StepOnePanel.setBounds(0, 0, 870, 170);
            StepTwoPanel.setLayout(null);
            StepTwoPanel.setBorder(new javax.swing.border.TitledBorder(null, "Step Two", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11)));
            DatabaseSettingsPanel.setLayout(null);
            DatabaseSettingsPanel.setBorder(new javax.swing.border.TitledBorder(null, "Database Settings", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11)));
            DatabaseIPAddressLabel.setFont(new java.awt.Font("Tahoma", 0, 11));
            DatabaseIPAddressLabel.setText("Database IP Address:");
            DatabaseSettingsPanel.add(DatabaseIPAddressLabel);
            DatabaseIPAddressLabel.setBounds(30, 30, 110, 14);
            DatabasePortLabel.setFont(new java.awt.Font("Tahoma", 0, 11));
            DatabasePortLabel.setText("Database Port:");
            DatabaseSettingsPanel.add(DatabasePortLabel);
            DatabasePortLabel.setBounds(30, 70, 80, 14);
            DatabaseIPTextField.setFont(new java.awt.Font("Tahoma", 0, 11));
            DatabaseIPTextField.setText("127.0.0.1");
            DatabaseSettingsPanel.add(DatabaseIPTextField);
            DatabaseIPTextField.setBounds(30, 50, 170, 14);
            DatabasePortTextField.setFont(new java.awt.Font("Tahoma", 0, 11));
            DatabasePortTextField.setText("4443");
            DatabaseSettingsPanel.add(DatabasePortTextField);
            DatabasePortTextField.setBounds(30, 90, 70, 14);
            DatabaseSettingsTextArea.setBackground(javax.swing.UIManager.getDefaults().getColor("Button.background"));
            DatabaseSettingsTextArea.setFont(new java.awt.Font("Tahoma", 0, 12));
            DatabaseSettingsTextArea.setLineWrap(true);
            DatabaseSettingsTextArea.setText("Supply settings to connect to the database, which is used for authenthicating clients and checking timetable. You must save before pressing test.");
            DatabaseSettingsTextArea.setWrapStyleWord(true);
            DatabaseSettingsPanel.add(DatabaseSettingsTextArea);
            DatabaseSettingsTextArea.setBounds(630, 20, 210, 90);
            UsernameLabel.setFont(new java.awt.Font("Tahoma", 0, 11));
            UsernameLabel.setText("Username:");
            DatabaseSettingsPanel.add(UsernameLabel);
            UsernameLabel.setBounds(250, 30, 60, 14);
            PasswordLabel.setFont(new java.awt.Font("Tahoma", 0, 11));
            PasswordLabel.setText("Password: ");
            DatabaseSettingsPanel.add(PasswordLabel);
            PasswordLabel.setBounds(250, 70, 60, 14);
            UsernameTextField.setFont(new java.awt.Font("Tahoma", 0, 11));
            UsernameTextField.setText("Enter Your Username");
            DatabaseSettingsPanel.add(UsernameTextField);
            UsernameTextField.setBounds(250, 50, 170, 14);
            DatabaseSettingsPanel.add(PasswordTextField);
            PasswordTextField.setBounds(250, 90, 170, 17);
            DatabaseSaveButton.setFont(new java.awt.Font("Tahoma", 1, 11));
            DatabaseSaveButton.setText("Save");
            DatabaseSaveButton.setBorder(new javax.swing.border.EtchedBorder());
            DatabaseSettingsPanel.add(DatabaseSaveButton);
            DatabaseSaveButton.setBounds(440, 20, 70, 30);
            TestStatusPanel.setLayout(null);
            TestStatusPanel.setBorder(new javax.swing.border.TitledBorder("Test Status"));
            TestStatusConditionLabel.setText("Disconnected");
            TestStatusPanel.add(TestStatusConditionLabel);
            TestStatusConditionLabel.setBounds(40, 20, 70, 15);
            DatabaseSettingsPanel.add(TestStatusPanel);
            TestStatusPanel.setBounds(440, 60, 150, 50);
            DatabaseTestButton.setFont(new java.awt.Font("Tahoma", 1, 11));
            DatabaseTestButton.setText("Test");
            DatabaseTestButton.setBorder(new javax.swing.border.EtchedBorder());
            DatabaseSettingsPanel.add(DatabaseTestButton);
            DatabaseTestButton.setBounds(520, 20, 70, 30);
            StepTwoPanel.add(DatabaseSettingsPanel);
            DatabaseSettingsPanel.setBounds(10, 20, 850, 130);
            ServerControlPanel.add(StepTwoPanel);
            StepTwoPanel.setBounds(0, 170, 870, 160);
            StepThreePanel.setLayout(null);
            StepThreePanel.setBorder(new javax.swing.border.TitledBorder(null, "Step Three", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11)));
            ServerStatus.setLayout(null);
            ServerStatus.setBorder(new javax.swing.border.TitledBorder(null, "Server Status:", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11)));
            LabANTServerPortLabel.setFont(new java.awt.Font("Tahoma", 0, 11));
            LabANTServerPortLabel.setText("LabANT Server Port:");
            ServerStatus.add(LabANTServerPortLabel);
            LabANTServerPortLabel.setBounds(30, 40, 100, 14);
            LabANTServerPortTextField.setFont(new java.awt.Font("Tahoma", 0, 11));
            LabANTServerPortTextField.setText("5000");
            ServerStatus.add(LabANTServerPortTextField);
            LabANTServerPortTextField.setBounds(30, 60, 100, 14);
            ServerStatusTextArea.setBackground(javax.swing.UIManager.getDefaults().getColor("Button.background"));
            ServerStatusTextArea.setFont(new java.awt.Font("Tahoma", 0, 12));
            ServerStatusTextArea.setLineWrap(true);
            ServerStatusTextArea.setText("Before starting the server ensure that you have sucessfully completed both step one and step two. Then please set the port number you whish the server to run on. Once the server is started clients can then connect to the server and log on and control the robot via the website client. \nServer Monitor will display live data and logs.\n");
            ServerStatusTextArea.setWrapStyleWord(true);
            ServerStatus.add(ServerStatusTextArea);
            ServerStatusTextArea.setBounds(230, 30, 580, 80);
            StartServerButton.setFont(new java.awt.Font("Tahoma", 1, 11));
            StartServerButton.setText("Start Server");
            StartServerButton.setBorder(new javax.swing.border.EtchedBorder());
            ServerStatus.add(StartServerButton);
            StartServerButton.setBounds(30, 90, 120, 30);
            StepThreePanel.add(ServerStatus);
            ServerStatus.setBounds(10, 20, 850, 130);
            ServerControlPanel.add(StepThreePanel);
            StepThreePanel.setBounds(0, 330, 870, 160);
            LabANTTabbedPane.addTab("Server Control", ServerControlPanel);
            ServerMonitorPane.setLayout(null);
            ServerMonitorPane.setBorder(new javax.swing.border.TitledBorder(null, "Server Monitor:", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11)));
            SensorDataScrollPane.setBorder(new javax.swing.border.TitledBorder(null, "Sensor Data", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11)));
            SensorDataScrollPane.setVerticalScrollBarPolicy(javax.swing.JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
            SensorDataTextArea.setFont(new java.awt.Font("Tahoma", 0, 12));
            SensorDataTextArea.setLineWrap(true);
            SensorDataTextArea.setText("There once was a tree a very beautiful tree");
            SensorDataTextArea.setWrapStyleWord(true);
            SensorDataScrollPane.setViewportView(SensorDataTextArea);
            ServerMonitorPane.add(SensorDataScrollPane);
            SensorDataScrollPane.setBounds(10, 20, 470, 330);
            CommandDataScrollPane.setBorder(new javax.swing.border.TitledBorder(null, "Command Data From Client", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11)));
            CommandDataScrollPane.setVerticalScrollBarPolicy(javax.swing.JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
            CommandDataTextArea.setFont(new java.awt.Font("Tahoma", 0, 12));
            CommandDataTextArea.setLineWrap(true);
            CommandDataTextArea.setText("The only way is up ... you and me babe");
            CommandDataTextArea.setWrapStyleWord(true);
            CommandDataScrollPane.setViewportView(CommandDataTextArea);
            ServerMonitorPane.add(CommandDataScrollPane);
            CommandDataScrollPane.setBounds(490, 20, 380, 330);
            ServerMonitorNoteLabel.setFont(new java.awt.Font("Tahoma", 0, 11));
            ServerMonitorNoteLabel.setText("NOTE: Logs of both Sensor Data and Command Data along with users IP address are saved in log files for later analysis.");
            ServerMonitorPane.add(ServerMonitorNoteLabel);
            ServerMonitorNoteLabel.setBounds(130, 470, 590, 20);
            ClientDataPane.setLayout(null);
            ClientDataPane.setBorder(new javax.swing.border.TitledBorder(null, "Client Data:", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11)));
            ClientIPAddressLabel.setFont(new java.awt.Font("Tahoma", 1, 11));
            ClientIPAddressLabel.setText("Client IP Address:");
            ClientDataPane.add(ClientIPAddressLabel);
            ClientIPAddressLabel.setBounds(20, 20, 110, 20);
            ClientIPAddressConditionLabel.setFont(new java.awt.Font("Tahoma", 0, 12));
            ClientIPAddressConditionLabel.setText("Unknown");
            ClientDataPane.add(ClientIPAddressConditionLabel);
            ClientIPAddressConditionLabel.setBounds(130, 20, 70, 20);
            ServerMonitorPane.add(ClientDataPane);
            ClientDataPane.setBounds(10, 360, 230, 60);
            LogsPanel.setLayout(null);
            LogsPanel.setBorder(new javax.swing.border.TitledBorder(null, "Logs", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11)));
            LogsTextArea.setBackground(javax.swing.UIManager.getDefaults().getColor("Button.background"));
            LogsTextArea.setLineWrap(true);
            LogsTextArea.setText("The logs from Sensor Data, Command Data and Client Details are save in the following files sensor.log, command.log and client.log respectfully. They are saved in the same folder that the server is run in.");
            LogsTextArea.setWrapStyleWord(true);
            LogsPanel.add(LogsTextArea);
            LogsTextArea.setBounds(10, 20, 570, 60);
            ServerMonitorPane.add(LogsPanel);
            LogsPanel.setBounds(260, 370, 600, 90);
            LabANTTabbedPane.addTab("Server Monitor", ServerMonitorPane);
            HelpPanel.setLayout(null);
            HelpPanel.setBorder(new javax.swing.border.TitledBorder("Help"));
            HelpScrollPane.setHorizontalScrollBarPolicy(javax.swing.JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
            HelpScrollPane.setVerticalScrollBarPolicy(javax.swing.JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
            HelpTextArea.setLineWrap(true);
            HelpTextArea.setText("The standard Lorem Ipsum passage, used since the 1500s\n\n\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\"\n\nSection 1.10.32 of \"de Finibus Bonorum et Malorum\", written by Cicero in 45 BC\n\n\"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?\"\n\n1914 translation by H. Rackham\n\n\"But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?\"\n\nSection 1.10.33 of \"de Finibus Bonorum et Malorum\", written by Cicero in 45 BC\n\n\"At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.\"\n\n1914 translation by H. Rackham\n\n\"On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.\" ");
            HelpTextArea.setWrapStyleWord(true);
            HelpScrollPane.setViewportView(HelpTextArea);
            HelpPanel.add(HelpScrollPane);
            HelpScrollPane.setBounds(50, 60, 770, 310);
            LabANTTabbedPane.addTab("Help", HelpPanel);
            jPanel5.setLayout(null);
            jPanel5.setBorder(new javax.swing.border.TitledBorder("About"));
            jPanel5.setMinimumSize(new java.awt.Dimension(861, 485));
            AboutScrollPane.setVerticalScrollBarPolicy(javax.swing.JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
            AboutScrollPane.setAutoscrolls(true);
            AboutScrollPane.setMinimumSize(new java.awt.Dimension(100, 340));
            AboutTextArea.setLineWrap(true);
            AboutTextArea.setText("The standard Lorem Ipsum passage, used since the 1500s\n\n\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\"\n\nSection 1.10.32 of \"de Finibus Bonorum et Malorum\", written by Cicero in 45 BC\n\n\"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?\"\n\n1914 translation by H. Rackham\n\n\"But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          &nbs

    You got flack for not providing - in your own words - the solution to your own problem
    (from which someone might be able to see where you went wrong).
    Also, try not to "break" the forum formatting with those annoyingly long lines,
    see how nice it looks when refactored.
            AboutTextArea.setText("The standard Lorem Ipsum passage, used since the 1500s\n"+
                    "\n\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor "+
                    "incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud "+
                    "exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute "+
                    "irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. "+
                    "Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit "+
                    "anim id est laborum.\"\n"+
                    "\nSection 1.10.32 of \"de Finibus Bonorum et Malorum\", written by Cicero in 45 BC\n"+
                    "\n\"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium "+
                    "doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore "+
                    "veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam "+
                    "voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur "+
                    "magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam "+
                    "est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non "+
                    "numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat "+
                    "voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam "+
                    "corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? "+
                    "Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil "+
                    "molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?\"\n"+
                    "\n1914 translation by H. Rackham\n\n\"But I must explain to you how all this mistaken "+
                    "idea of denouncing pleasure and praising pain was born and I will give you a complete "+
                    "account of the system, and expound the actual teachings of the great explorer of the "+
                    "truth, the master-builder of human happiness. No one rejects, dislikes, or avoids "+
                    "pleasure itself, because it is pleasure, but because those who do not know how to "+
                    "pursue pleasure rationally encounter consequences that are extremely painful. "+
                    "Nor again is there anyone who loves or pursues or desires to obtain pain of itself, "+
                    "because it is pain, but because occasionally circumstances occur in which toil and "+
                    "pain can procure him some great pleasure. To take a trivial example, which "+
                    "of us ever undertakes laborious physical exercise, except to obtain some advantage "+
                    "from it? But who has any right to find fault with a man who chooses to enjoy a pleasure "+
                    "that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?\"\n"+
                    "\nSection 1.10.33 of \"de Finibus Bonorum et Malorum\", written by Cicero in 45 BC\n"+
                    "\n\"At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis "+
                    "praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias "+
                    "excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia "+
                    "deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum "+
                    "facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi "+
                    "optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, "+
                    "omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem "+
                    "quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et "+
                    "voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic "+
                    "tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur "+
                    "aut perferendis doloribus asperiores repellat.\"\n\n1914 translation by H. Rackham\n"+
                    "\n\"On the other hand, we denounce with righteous indignation and dislike men who "+
                    "are so beguiled and demoralized by the charms of pleasure of the moment, so "+
                    "blinded by desire, that they cannot foresee the pain and trouble that are bound to "+
                    "ensue; and equal blame belongs to those who fail in their duty through weakness "+
                    "of will, which is the same as saying through shrinking from toil and pain. These cases "+
                    "are perfectly simple and easy to distinguish. In a free hour, when our power of choice "+
                    "is untrammelled and when nothing prevents our being able to do what we like best, "+
                    "every pleasure is to be welcomed and every pain avoided. But in certain circumstances "+
                    "and owing to the claims of duty or the obligations of business it will frequently occur that "+
                    "pleasures have to be repudiated and annoyances accepted. The wise man therefore "+
                    "always holds in these matters to this principle of selection: he rejects pleasures to "+
                    "secure other greater pleasures, or else he endures pains to avoid worse pains.\" \n");

  • Namespace problem while updating a desktop app

    Hello,
    I've searched on a lot of forums but didn't find anything accurate on my problem.
    I have an old AIR 2.0 desktop app that updated itself.
    I want to update it to the last 3.4 framework. So I followed instructions for the intermediate application to update (between 2.0 and 2.5).
    I manage to update from 2.0 to a Air 2.5 intermediate application, while still having the 2.0 namespace in the app descriptor file.
    But it is impossible for me to update this 2.5 application (with 2.0 namespace) to a 2.5 namespace !!
    Here si my update descriptor file :
    <?xml version="1.0" encoding="UTF-8"?>
    <update xmlns="http://ns.adobe.com/air/framework/update/description/2.5">
               <versionNumber>0.3.2</versionNumber>
               <versionLabel>Version for 0.3.2</versionLabel>
         <url>http://www.mywebsite/app.air</url>
         <description><![CDATA[
    Final test
               ]]></description>
    </update>
    But I'm having the error 16831 : "Application namespace and update.xml namespace are not compatible".
    It seems that my application only wants to update to another one with the exact same namespace.
    How this can be ?
    Thanks !
    I must say that I publish to AIR 2.5 with Flash CS5 and flashpro extension for air (in beta version) as Flash CS6 always overwrite the app descriptor while publishing (so it is impossible to change the namespace to 2.0 for example)

    Ok, after having searched a lot, I managed to understand what was going on....
    To those interested, the update descriptor must stay in a 1.0 namespace until the end of the process.
    When all is updated (app namespace to 2.5), you can use the 2.5 update descriptor namespace....

  • Static member problem in multiple instance of  web application

    Problem
    I am working on a product which is java based. I have a war file. I have to deploy this war file in JBoss. Further, I need to run multiple instance of this war file in same JBoss instance.
    Issue
         In that war file there is servlet Start.java. That servlet calls an other class from its init method. Here is code
    public class Start extends HttpServlet
         public void init(ServletConfig config) throws ServletException
              super.init(config);
              DB.loadProperties (�db.properties�);
         } // init
         public void doGet(HttpServletRequest request, HttpServletResponse response)
              throws ServletException, IOException
                   } // doGet
         public void doPost(HttpServletRequest request, HttpServletResponse response)
              throws ServletException, IOException
                   } // doPost
    } // Start
    public final class DB implements Serializable
         public static final String     P_UID = "ApplicationUserID";
         private static final String     DEFAULT_UID = "System";
         public static final String     P_PWD = "ApplicationPassword";
         private static final String     DEFAULT_PWD ="System";
         public static final String     P_STORE_PWD = "StorePassword";
         private static Properties           s_prop = new Properties();
    public static boolean loadProperties (String filename)
         {    // looks for properties file
    s_prop = new Properties();
              FileInputStream fis = null;
              try
                   fis = new FileInputStream(filename);
                   s_prop.load(fis);
                   fis.close();
              catch (FileNotFoundException e)
                   log.warning(filename + " not found");
                   loadOK = false;
         �}
    As you can see if I deployed two instance of this war in JBoss and assume each instance point to its own properties file. The �Static� members are problem.
    Restriction
         I am not allowed change the code or logic of the product. I must be able to get some thing outside or apply a patch to solve this problem.
    Please Help
    Possible option that I have thought
    1 Using multiple JVM - Not an option in this project
    2 Using multiple JBoss � Not the requirement (need to run only on single Instance of JBoss)
    3 Use own class loader for war/ear � don�t know how in JBoss need help.
    I am using JBoss 3.2.3
    Thanks,
    Kumaran

    Static members belong to the class. So, you needto
    think of multiple JVMs for your problem.Thanks for reply.
    don�t know how in JBoss need helpJust guessing... clustered environment MAYBE
    RichThanks Rich,
    I don�t know how Cluster environment solve my problem. I need more information on your thought. Cloud you explain it.
    Kumaran

  • XSLT Transformer xmlns namespace problem

    Hi,
    I have the following xml document
    <PIPEDocument Version="2.0" DocumentReferenceNumber="2001" CreationDate="2002070401251212245"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://www.oeb.gov.on.ca/">
         <MarketParticipantDirectory>
    </MarketParticipantDirectory>
    </PIPEDocument>
    and the following xsl stylesheet
    <xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform"
              xmlns ="http://www.oeb.gov.on.ca/"
              version = "1.0">
    <xsl:output method = "xml" indent = "yes" />
    <xsl:template match = "/" >
    <PIPEFunctionalAcknowledgement>
              <xsl:apply-templates select="//MarketParticipantDirectory"/>
    </PIPEFunctionalAcknowledgement>
    </xsl:template>
    <xsl:template match = "MarketParticipantDirectory" >
    </xsl:template>
    </xsl:stylesheet>           
    My problem is, using JAXP1.2.0-EA2 (from JWSDP1-0-ea2), javax.xml.transform.Transformer will not find a match on the element name within the template unless I put a prefix on the target namespace i.e.
    if my xml is changed to include a prefix (:xyz in example below)
    <PIPEDocument Version="2.0" DocumentReferenceNumber="2001" CreationDate="2002070401251212245"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:xyz="http://www.oeb.gov.on.ca/">
         <MarketParticipantDirectory>
    </MarketParticipantDirectory>
    </PIPEDocument>
    and my stylesheet is changed also to include the prefix
    <xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform"
              xmlns:xyz ="http://www.oeb.gov.on.ca/"
              version = "1.0">
    </xsl:stylesheet>
    then the transfomer works correctly and find a match on the element name "MarketParticipantDirectory" within the template (even though the element doesn't have the prefix xyz:MarketParticipantDirectory).
    Could anyone tell me why this is the case?
    I would have expected XSLT to match the elements from the namespace xmlns ="http://www.oeb.gov.on.ca/" without the prefix.
    Any comments would be much appreciated.
    Thanks
    Sinead Casey

    Matching an element on a Default Namespace requires Explicit Prefix.
    http://www.w3.org/TR/xslt20req

  • Namespace problem with bpelx:rename typeCastTo

    Hi!
    I have j2ee web service which accepts types derived from one base type. Therefore i need to pass argument like request xsi:type="derivedType", where request is super type.
    After long searching i found out this can be done via bpelx:rename typeCastTo ... my problem is that if i use this action:
    <bpelx:rename typeCastTo="ns3:UserOutgoingCallingPlanOriginatingModifyRequest">
    <bpelx:target variable="Invoke_1_transaction_InputVariable" part="parameters" query="/ns2:transactionElement/ns2:_req"/>
    </bpelx:rename>
    in audit console after running he process i see
    <_req xmlns="http://bwproxy.unient.com/types/" xsi:type="ns3:UserOutgoingCallingPlanOriginatingModifyRequest" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    but namespace prefix ns3 is nowhere defined in the message. It is defined only in source ov bpel process, but it is not propagated to the soap message, therefore web service throws a exception:
    Caught exception while handling request: unexpected element type: expected=, actual=UserOutgoingCallingPlanOriginatingModifyRequest
    Is this bug, or am i doing something wrong?
    thanks
    Tomas

    Hi,
    You could try to use HttpClient to consume wcf in windows phone 8.
    Here is an exsample you could refer:
    http://stackoverflow.com/questions/21536825/windows-phone-8-call-wcf-web-service
    Besides, you could refer to :
    http://www.codeproject.com/Questions/691619/Consuming-WCF-Service-from-Windows-Phone
    Since this issue is more related to Windows Phone, If my reply no help, please move to Windows Phone forum for a better support, It is appropriate and more experts will assist you.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Namespace problem with added header

    I have a client request handler which needs to add an authentication header of the form:
    <Security>
       <UsernameToken>
          <Username>username</Username>
          <Password>password</Password>
       </UsernameToken>
    </Security>     The key code which does this in the request handler is:
    SOAPHeaderElement she = shd.addHeaderElement(senv.createName(SIGN_HEADER_NAME));
    she.setMustUnderstand(true);
    she.addNamespaceDeclaration("", SIGN_HEADER_URI);
    SOAPElement selToken = she.addChildElement(SIGN_HEADER_TOKEN);
    SOAPElement selUser = selToken.addChildElement(SIGN_HEADER_USERNAME);
    selUser.addTextNode(username);
    selUser = selToken.addChildElement(SIGN_HEADER_PASSWORD);
    selUser.addTextNode(password);But what I end up with is:
    <Security soapenv:mustUnderstand="1" xmlns:soapenv=...
           xmlns="http://demo">
       <UsernameToken  xmlns="">
          <Username>username</Username>
          <Password>password</Password>
       </UsernameToken>
    </Security>     The attributes on the Security element are correct, but the xmlns="" attribute on the UsernameToken element is the problem. The SOAP classes/methods are clearly namespace aware and are essentially saying with xmlns="" that it doesn't know the namespace of UsernameToken and the following elements.
    I tried dropping some wsdl for the security elements in the wsdl directory of the client, but it seems to need some programmatic hookup.
    I have defined the handler in the webservicesclient.xml as:
             <handler id="Handler_1128108948956">
                <description>Adds an authentication header with username & password</description>
                <handler-name>utils.SOAP_Auth_Handler</handler-name>
                <handler-class>utils.SOAP_Auth_Handler</handler-class>
                <soap-header id="SOAPHeader_1128460509232">
                   <namespaceURI>http://demo</namespaceURI>
                   <localpart>Security</localpart>
                </soap-header>
             </handler>How do I keep the soap methods from adding on the xmlns="" to the UsernameToken element?
    I'm running WebSphere App Developer 5.0.2.9.
    Thanks,
    -- Frank

    Can't you use the removeNamespaceDeclaration method?
    public boolean removeNamespaceDeclaration(String prefix)Removes the namespace declaration corresponding to the given prefix.
    Parameters:
    prefix - a String giving the prefix for which to search
    Returns:
    true if the namespace declaration was removed successfully; false if it was not
    Gabsaga

  • A namespace problem when doing Create InfoArea in bw system

    Dear all,
    we met a problem when excute a process in our bw system:
    our process as follow:
    rsa1(Data Warehousing Workbench:Modeling) --> InfoProvider --> Create InfoArea
    then a error message window came out as below.
    error in object editing
    No valid change license available for n
    /BPR3R/
    Choose 'Display object' or 'Cancel'.
    its detail message is as follow:
    Message no. TO127
    Diagnosis
    You cannot edit the object AREA 0INDUSTRIES. This may be due to the following reasons:
    The corresponding namespace /BPR3R/ is not entered in the namespace table with a valid change license.
    In the namespace table there is no entry with a valid change license that matches the template /BPR3R/.
    System Response
    The function terminates.
    Procedure
    Check the name of the object AREA 0INDUSTRIES. If necessary, choose another object name.
    Otherwise, let the system administrator check the change licenses of the namespaces in your SAP system.
    Maintain the namespaces in the Tools of the Transport Organizer under Administration -> Display/Change Namespaces.
    You need to check and correct the entries that match the template /BPR3R/.
    You need to distinguish between the following cases:
    The namespace is /0SAP/:
    Make sure that the namespace role is C (recipient) and the flags SSCR popup and SAP standard are activated. The license fields remain empty.
    You did not create the namespace yourself. Instead, the namespace owner is SAP or another software vendor.
    Make sure that the namespace role is C (recipient). The field Repair license must either contain the valid license, or the flag SSCR popup must be activated. Contact the namespace owner and ask what you should now do, and what the valid repair license is.
    You are the namespace owner:
    Proceed according to the documentation on applying for and setting up namespaces. If the namespace role is P (producer) then you need a valid development license. For information on this, see the SAP Library under BC - Basis Components -> Change and Transport System -> BC - Namespaces and Naming Conventions -> Reservation of Namespaces).
    Then we did the below action:
    se06 --> system change option
    in this view, we found  /BPR3R/ this Prefix.
    And it is empty in  /BPR3R/ 's namespace/name range volume.
    What is next action we should take to solve this problem?
    Anyone experienced or expert,
    Please kindly give advice.
    Regards,
    Allen

    Hello Allen,
    Cold you please check the following notes which explain about this namespace creation and transport ?
    401778 - Using namespaces to develop individual BW objects
    150451 - Setting up development namespaces
    105132 - Reserving namespaces
    150451 - Setting up development namespaces
    Best regards,
    Rafa

Maybe you are looking for