MANPATH: Undefined variable.

I use tcsh and on logging into the box, my tcsh shell displays
MANPATH: Undefined variable.
>
Note the ">" character. My local .tcshrc is not being executed and there is NO /etc/tcshrc. Any ideas ? Has anyone else run into this problem ? My Arch box has been running quietly for over a year.
thanks

Fixed it. I am guessing that KDE is majorly b0rked.
1. in /etc/csh.cshrc
Moved the MANPATH code to the very top BEFORE any of the /etc/profile.d/* files are called
2. in /etc/profile.d/kde.csh - this file is definitely b0rked.
modified
setenv PKG_CONFIG_PATH $KDEDIR/lib/pkgconfig:$PKG_CONFIG_PATH
to
if ( ! $?PKG_CONFIG_PATH ) then
setenv PKG_CONFIG_PATH $KDEDIR/lib/pkgconfig
else
setenv PKG_CONFIG_PATH $KDEDIR/lib/pkgconfig:$PKG_CONFIG_PATH
endif
If you wish to avoid step 1, you can give step2 style protection to the MANPATH variable too in /etc/profile.d/kde.csh
Didn't take too long to track down, but a waste of time nonetheless. Hope this helps somebody else too.

Similar Messages

  • Error when inserting into table - Undefined Variable

    DB = Oracle 10.2.0.1
    WEBSERV = Apache 2.0.55
    LANG = PHP5
    I have created (or more accurately, copied) a php script to insert data into one of my database tables when I press submit. The code is as follows (my connect string works fine and its included in the dbutils.php file):
    <?php
    if($submit == "submit"){
    include "dbutils.php";
      $query = "insert into users values (seq_user_usr_id.NEXTVAL, '$usr_name')";
      $cursor = OCIParse ($db_conn, $query);
      if ($cursor == false){
        echo OCIError($cursor)."<BR>";
        exit;
      $result = OCIExecute ($cursor);
      if ($result == false){
        echo OCIError($cursor)."<BR>";
        exit;
      OCICommit ($db_conn);
      OCILogoff ($db_conn);
    else{
       echo '
        <html><body>
        <form method="post" action="index.php">
    <table width="400" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>Please enter a username:</td>
        <td><input type="text" name="usr_name"></input><br></td>
    </tr>
    <tr>
        <td><input type="submit" name="button" value="Submit"></input></td>
    </tr>
    </table>
        </form>
        </body></html>
    ?></p>I am getting the following error regarding an undefined variable:
    [Fri Jan 20 13:11:22 2006] [error] [client 127.0.0.1] PHP Notice: Undefined variable: submit in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\mywebsite\\test.php on line 3
    Where would I declare this variable? It is just a check to see if the submit button is pressed as far as I can see. Any help would be greatfully appreciated.
    W8

    I have changed the code to this:
    <?php
    if($submit == "submit"){
    include "dbutils.php";
    $usr_name = $_POST['usr_name'];
    $query = "insert into users (column1, column2) values (seq_user_usr_id.NEXTVAL, '$usr_name')";
    $cursor = OCIParse ($db_conn, $query);
    if ($cursor == false){
    echo OCIError($cursor)."
    exit;
    $result = OCIExecute ($cursor);
    if ($result == false){
    echo OCIError($cursor)."
    exit;
    OCICommit ($db_conn);
    OCILogoff ($db_conn);
    else{
    $submit = $_POST['submit'];
    echo '
    <html><body>
    <form method="post" action="index.php">
    <table width="400" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td>Please enter a username:</td>
    <td><input type="text" name="usr_name"></input>
    </td>
    </tr>
    <tr>
    <td><input type="submit" name="submit" value="submit"></input></td>
    </tr>
    </table>
    </form>
    </body></html>
    ?>And now I am getting the following error:
    [Mon Jan 23 13:45:32 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  submit in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\mywebsite\\test2.php on line 24Does anyone have any ideas?
    I am struggling to find an example to work from to get this working. If anyone can point me to any literature that will explain the code so that I can work this out for myself that would also be a great help.

  • All of a sudden getting Undefined variable: attvalue in Squirrelmail

    I'm running squirrelmail 1.4.17, and it's been running fine for about 2 months now. This week all of a sudden, I'm getting the following error when trying to read e-mails:
    Notice: Undefined variable: attvalue in /usr/share/squirrelmail/functions/mime.php on line 1407
    The attvalue variable has to do with stripping out dangerous characters from e-mails. My concern is that my system has been compromised and that someone has disabled this value in order to hack into my server.
    The only non standard plugin I've installed into Squirrelmail is a filter that enables me to have an out of office message, it also helps me to move junk mail automatically. It too has been running fine for about a month.
    If anyone can offer any advice, I'd greatly appreciate it. Like I said, everything was fine until just a couple of days ago. No updates took place, everything else seems fine on the surface.
    Thanks
    Mike

    I did forget to mention one thing. At the same time this started happening, I also had a problem that I had experienced before upgrading to the latest Squirrelmail, and that is that in the sending mail processing, specifically in the file deliver.class.php (line 614), I was getting a Notice: Undefined variable: default_charset in /usr/share/squirrelmail/class/deliver/Deliver.class.php on line 614.
    I brute force fixed this problem by hard coding the default_charset variable in that function. I know that's not an ideal solution, but it at least fixed the problem from the users point of view.
    Again, this wasn't happening until just recently, and I can't figure out what on the server changed to trigger these problems.

  • Undefined VARIABLE in FORM

    Dear All,
    Another post with a classic "undefined <VARIABLE> in
    FORM" error message I'm afraid. I don't think this is the usual
    problem of scoping however or form not submitting the data.
    Basically I've checked and triple checked the file with the
    <cfform> tag in it and it definately contains the relevant
    controls with the names correct. I've also put <cfdump
    var="#Form#"><cfabort> tags at the top of each file to
    ensure the information is getting through. Looking at the Form
    structure I can see the variables that are being posted (all of
    which have the values passed from the file with the form tag).
    However, despite this, when I remove the <cfabort> tag to let
    the website process then the error message returns. I can't think
    of what else might be causing this. Any ideas?
    The actual .cfm files are pretty long but the jist of them is
    as follows:
    <!-- calling.cfm - a file that contains a form -->
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    lang="en">
    <head>
    <title>A title</title>
    </head>
    <body>
    <CFSET avariable=10> <!-- In the actual file
    avariable comes from a database -->
    <CFFORM name="aform" action="beingcalled.cfm">
    <CFINPUT name="aformvar" type="hidden"
    value=#avariable#>
    <CFINPUT name="action" type="submit" value="Press Me">
    </CFFORM>
    </body>
    </html>
    <!-- beingcalled.cfm - a file that has form variables
    added to it -->
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    lang="en">
    <head>
    <title>A title</title>
    </head>
    <body>
    <CFDUMP var="#Form#"> <This shows aformvar as part
    of the form structure>
    <!-- Do something with Form.aformvar here -->
    <CFIF Form.aformvar EQ 10> <!-- THIS DOESN'T
    PROCESS - ERROR IS RETURNED -->
    I should be displayed
    </CFIF>
    </body>
    </html>
    I am using coldfusion 7.
    Many thanks in advance,

    quote:
    The actual .cfm files are pretty long but the jist of them is
    as follows
    I think that the above statement says it all. I
    wish that I had a dollar for every time that I looked at a piece of
    code and could swear that there was nothing in it that could be
    causing "the problem".... yeah, right.
    Even if it is long, you might consider posting it if, for no
    other reason, another pair of eyes may be able to spot the
    "obvious" problem that your eyes may be skipping over (and over and
    over.....).
    <edit> FYI, I once actually had a CF template that
    would fail just because it was a certain size... period. It was a
    few CF versions ago, but if I made the template larger, or smaller,
    no problem, But I made no actual changes other than size to keep it
    from failing... very strange, but heck, you never know sometimes
    </edit>
    Phil

  • Formula node forbid to run VI when undefined variable is used

    On all LabVIEW version, we can use Formula node to evaluate mathematical formulas.
    We can define input and output variable freely and calculate using some variety of formula.
    But when we use undefined variable as output, can execute VIs with no errors.
    We think it is a problem because when programmer makes a typo, they cannot notice the mistake.
    When undefined variable is used as output variable, LabVIEW should forbid to run VI.

    I think you are going to get the same (or similar) answers than to my suggestion(s) to make VI outputs potentially "required" and the same for some functions (built-in VIs):
    http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Allow-required-outputs-in-VIs/idc-p/3157058
    http://forums.ni.com/t5/LabVIEW-Idea-Exchange/quot-Function-terminal-not-connected-quot-detection-plus/idi-p/1858573
    In general, I agree with you, there is a potential for problems. Not really for the reason you are mentioning, because a typo will break the VI (unless you have two output variables with very similar names - unlike in your example - such as y and y0). But it could make for some frustrating debugging session.

  • JAVA_HOME: Undefined variable (..../j2ee/configtool.sh)

    Hello all
    I have installed SAP NetWeaver '04 Testdrive SR1 on Fedora Core 2.
    Now I try to install Adove Document Services, but when I start /usr/sap/NW4/DVEBMGS00/j2ee/configtool.sh I just get this message:
    JAVA_HOME: Undefined variable.
    How can I fix this problem ?
    Best regards
    Thomas Madsen Nielsen

    Hi Thomas
    What You need to do (the actions Ludovic talks about) is to maintain the enviroment variables on Your 04' server.
    Go to My Computer -> right click -> properties -> advanced -> enviroment variables.
    You need to add the path for Your j2ee in the path string under system variables and JAVA_HOME under user variables.
    Hope it helps
    /Mads

  • Undefined variables

    I am new to PHP & MySQL and am having a little difficulty. I am using Dreamweaver CS5.5 for website building. I just recently completed a tutorial by David Powers titled "Setting up a PHP developement environment for Dreamweaver. I downloaded and installed the latest version of XAMPP and found that things have changed a little since he made the tutorial making some of the screen shots and directions obsolete, but I managed to make my way through it with success until I got to the end. Everything was working and I successfully made a connection to my database, but when I clicked on "Live View" in dreamweaver I got error messages instead of the expected list of information stored in the database. Those error messages:
    Notice: Undefined variable: database_connTest in C:\xampp\htdocs\php_test\comments.php on line 34Notice: Undefined variable: connTest in C:\xampp\htdocs\php_test\comments.php on line 34
    Warning: mysql_select_db() expects parameter 2 to be resource, null given in C:\xampp\htdocs\php_test\comments.php on line 34
    Notice: Undefined variable: connTest in C:\xampp\htdocs\php_test\comments.php on line 36
    Warning: mysql_query() expects parameter 2 to be resource, null given in C:\xampp\htdocs\php_test\comments.php on line 36
    Any Idea what is causing this and how to repair it. I desire to continue learning more about building a dinamic website but feel I need to discover and correct my mistakes before I go on. Is it possible that the sample file was created in a PHP or MySQL language that isn't recognized by the newest version of the XAMPP software package?
    Thanks so much for your help.

    Yea I'm just really confused because I tested the server by making the "Time" php page that David had in his tutorial and it worked great. But when I installed the sample files as he instructed I was able to open the comments PHP file in dreamweaver and view it in design view or code view, but when I try viewing it in Live view, or on a browser all I get is the error message I pasted to my first post. Here is the code for the SQL file (I inserted the line numbers in hopes they might help):
    1  -- phpMyAdmin SQL Dump
    2  -- version 3.2.4
    3  -- http://www.phpmyadmin.net
    4  --
    5  -- Host: localhost
    6  -- Generation Time: Feb 05, 2010 at 02:41 PM
    7  -- Server version: 5.1.41
    8  -- PHP Version: 5.3.1
    9
    10 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
    11
    12
    13 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
    14 /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
    15 /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
    16 /*!40101 SET NAMES utf8 */;
    17
    18 --
    19 -- Database: `php_test`
    20 --
    21
    22 -- --------------------------------------------------------
    23
    24 --
    25 -- Table structure for table `comments`
    26 --
    27
    28 DROP TABLE IF EXISTS `comments`;
    29 CREATE TABLE IF NOT EXISTS `comments` (
    30   `comment_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
    31   `first_name` varchar(20) NOT NULL,
    32   `last_name` varchar(30) NOT NULL,
    33   `comment` text NOT NULL,
    34   PRIMARY KEY (`comment_id`)
    35 ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
    36
    37 --
    38 -- Dumping data for table `comments`
    39 --
    40
    41 INSERT INTO `comments` (`comment_id`, `first_name`, `last_name`, `comment`) VALUES
    42 (1, 'Ben', 'Morin', 'I would like more seafood choices on the menu. Thanks.'),
    43 (2, 'Dieter', 'Dietrich', 'Is your London restaurant open on Saturdays?'),
    44 (3, 'Sachiko', 'Matsuda', 'Unbelievably excellent service received at your New Tokyo
    restaurant.'),
    45 (4, 'Letitia', 'Riley', 'Are there any plans to open a restaurant in Anchorage, Alaska?');
    46
    47 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
    48 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
    49 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
    50
    And this is the code for the Comments.php file (I added the Line #s for lines 34 - 39 in case the error message was refering to this code):
    <?php require_once('Connections/connTest.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    Line 34- mysql_select_db($database_connTest, $connTest);
    Line 35- $query_getComments = "SELECT first_name, last_name, `comment` FROM comments ORDER BY comment_id DESC";
    line 36- $getComments = mysql_query($query_getComments, $connTest) or die(mysql_error());
    Line 37- $row_getComments = mysql_fetch_assoc($getComments);
    Line 38- $totalRows_getComments = mysql_num_rows($getComments);
    Line 39- ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Cafe Townsend - Customer Comments</title>
    <link href="assets/styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="wrapper">
      <div id="header"><img src="assets/header.jpg" width="700" height="92" alt="Cafe Townsend" /></div>
      <h1 id="main_header">Cafe Townsend Intranet</h1>
      <div id="main">
        <h2>Customer comments</h2>
        <div id="comments">
          <?php do { ?>
            <p><?php echo $row_getComments['comment']; ?> &#8212; <?php echo $row_getComments['first_name']; ?> <?php echo $row_getComments['last_name']; ?></p>
            <?php } while ($row_getComments = mysql_fetch_assoc($getComments)); ?>
        </div>
      </div>
      <div id="footer"></div>
    </div>
    </body>
    </html>
    <?php
    mysql_free_result($getComments);
    ?>

  • Undefined Variable

    I have a beta version of a task management system that uploads new tasks to a SQL database using post and an HTTP service request. The same PHP page being posted to writes back an XML file that I use to get all of the information in a datagrid. All of the forms upload the all of the task info smoothly and the datagrid updates on the fly. My problem arises with a delete button inside the datagrid that that sends the ID of the selected item to my delete tasks PHP page through a function. I keep getting an error 1065 (undefined variable) when I click the delete button nested in a column of the datagrid. The code for my button is as follows
                                <mx:DataGridColumn headerText="clear task" editable="true">
                                    <mx:itemRenderer>
                                        <mx:Component>
                                            <mx:Button label="Delete" click="deleteInfo();" />
                                        </mx:Component>
                                    </mx:itemRenderer>  
                                </mx:DataGridColumn>
    The function in my CDATA reads
    function deleteInfo()
                      var number = dgtasks.selectedItem.number;
                      del_number = number;
                      deleteTask.send();
                      Alert.show(del_number);
    I have tried writing a number of different functions inside deleteInfo () just to see if it would even be called and I still get that error 1065. If anyone could help me out I would really appreciate. Thanks!

    Here is my entire file. The only thing negated are the URL's for the service requests. Thanks again!
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"  xmlns="*" layout="vertical" creationComplete="send_data();">
    <mx:String id="del_number">-1</mx:String>
    <!--- This is our HTTPService, it will send requests and recieve the latest XML information from the server -->
        <mx:HTTPService id="userRequest" url="myurl" useProxy="false" method="POST" >
        <!--- These are the post variables here, -->
        <!--- <edit_task>{activeId}</edit_task> will send the value of {activeId} to PHP as $_POST['edit_task'] -->
            <mx:request xmlns="">
                <employee>{employee.text}</employee>
                <client>{client.text}</client>
                <title>{title.text}</title>
                <description>{description.text}</description>
                <issued>{issued.text}</issued>
                <due>{due.text}</due>
                <priority>{priority.text}</priority>
                <opened>{opened.text}</opened>
                <adding_value>1</adding_value>
            </mx:request>
        </mx:HTTPService>
        <mx:HTTPService id="updateValue" url="myurl" useProxy="false" method="POST" > 
        <!--- These are the post variables here, --> 
        <!--- <edit_task>{activeId}</edit_task> will send the value of {activeId} to PHP as $_POST['edit_task'] --> 
            <mx:request xmlns=""> 
                <completed>{activeComplete}</completed> 
                <opened>{activeOpened}</opened> 
                <edit_task>{activeId}</edit_task> 
            </mx:request> 
        </mx:HTTPService> 
        <!--This is our HTTPService for removing a task from the table--> 
            <mx:HTTPService id="deleteTask" url="myurl" useProxy="false" method="POST" > 
            <mx:request xmlns=""> 
                <number>{del_number}</number> 
            </mx:request> 
        </mx:HTTPService> 
        <!--- These next 3 lines make String variables that i store the last ID clicked and the 'complete' and 'opened' status of that ID --> 
        <mx:String id="activeId">-1</mx:String> 
        <mx:String id="activeComplete">-1</mx:String> 
        <mx:String id="activeOpened">-1</mx:String> 
                    <mx:Panel width="100%" height="100%" title="Essence Task Manager"> 
                        <mx:DataGrid 
                            id="dgtasks" 
                            dataProvider="{userRequest.lastResult.tasks.task}" width="100%" height="50%" 
                            doubleClickEnabled="true" 
                            itemDoubleClick="alert_descript(event)" 
                            itemClick="clickItem(event);"> 
                            <mx:columns> 
                                <mx:DataGridColumn headerText="Task Number" dataField="number" editable="false"/> 
                                <mx:DataGridColumn headerText="Employee" dataField="employee" editable="false"/> 
                                <mx:DataGridColumn headerText="Client" dataField="client" editable="false"/> 
                                <mx:DataGridColumn headerText="title" dataField="title" editable="false"/> 
                                <mx:DataGridColumn headerText="description" dataField="description" editable="false"/> 
                                <mx:DataGridColumn headerText="issued" dataField="issued" editable="false"/> 
                                <mx:DataGridColumn headerText="due" dataField="due" editable="false"/> 
                                <mx:DataGridColumn headerText="priority" dataField="priority" editable="false"/> 
                                <mx:DataGridColumn headerText="Acknoweledged" dataField="opened" editable="true" rendererIsEditor="true"> 
                                    <mx:itemRenderer> 
                                        <mx:Component> 
                                            <mx:CheckBox selected="{data.opened}" click="data.opened=!data.opened"/> 
                                        </mx:Component> 
                                    </mx:itemRenderer>     
                                </mx:DataGridColumn> 
                                <mx:DataGridColumn headerText="Completed" dataField="completed" editable="true" width="100" rendererIsEditor="true"> 
                                        <mx:itemRenderer> 
                                    <mx:Component> 
                                        <mx:CheckBox selected="{data.completed}" click="data.completed=!data.completed"/> 
                                    </mx:Component> 
                                </mx:itemRenderer> 
                            </mx:DataGridColumn> 
                                <mx:DataGridColumn headerText="clear task" editable="true"> 
                                    <mx:itemRenderer> 
                                        <mx:Component> 
                                            <mx:Button label="Delete" click="deleteInfo();" /> 
                                        </mx:Component> 
                                    </mx:itemRenderer>     
                                </mx:DataGridColumn> 
                            </mx:columns> 
                            </mx:DataGrid> 
                            <mx:Panel title="Add Task" layout="horizontal" width="100%"> 
                                <mx:Form> 
                                    <mx:FormItem label="employee"> 
                                      <mx:TextInput id="employee"/> 
                                    </mx:FormItem>     
                                    <mx:FormItem label="client"> 
                                      <mx:TextInput id="client"/> 
                                    </mx:FormItem>   
                                    <mx:FormItem label="title"> 
                                      <mx:TextInput id="title"/> 
                                    </mx:FormItem> 
                                    <mx:FormItem label="description"> 
                                      <mx:TextInput id="description"/> 
                                    </mx:FormItem> 
                                        <mx:FormItem label="issued"> 
                                      <mx:TextInput id="issued"/> 
                                    </mx:FormItem>   
                                        <mx:FormItem label="due"> 
                                      <mx:TextInput id="due"/> 
                                    </mx:FormItem>   
                                   <mx:FormItem label="priority"> 
                                      <mx:TextInput id="priority"/> 
                                    </mx:FormItem>   
                                    <mx:FormItem label="opened"> 
                                      <mx:TextInput id="opened"/> 
                                    </mx:FormItem>    
                                    <mx:FormItem label="completed"> 
                                      <mx:TextInput id="completed"/> 
                                    </mx:FormItem>   
                                    <mx:FormItem> 
                                  <mx:Button label="Submit" click="send_data()"/> 
                                </mx:FormItem> 
                              </mx:Form> 
                                <mx:TabNavigator width="100%" height="100%"> 
                                <mx:VBox label="description"> 
                                        <mx:Panel title="Task Description" layout="vertical" width="100%" height="100%"> 
                                        <mx:FormItem> 
                                            <mx:Label  text="{dgtasks.selectedItem.description}"/> 
                                        </mx:FormItem> 
                                        </mx:Panel> 
                                    </mx:VBox> 
                                <mx:VBox label="comments"> 
                                <mx:DataGrid width="100%"> 
                                    <mx:columns> 
                                        <mx:DataGridColumn headerText="posted by"/> 
                                        <mx:DataGridColumn headerText="comment"/> 
                                    </mx:columns> 
                                </mx:DataGrid> 
                                </mx:VBox> 
                                </mx:TabNavigator> 
                            </mx:Panel> 
                       </mx:Panel> 
    <mx:Script> 
            <![CDATA[ 
                import mx.events.ListEvent; 
                import flash.events.Event; 
                import mx.controls.Alert; 
                private function send_data() 
                    userRequest.send(); 
                   function alert_descript(event:ListEvent) 
                    var showdescription:String = event.itemRenderer.data.description; 
                    Alert.show(showdescription); 
                function deleteInfo()
                      var number = dgtasks.selectedItem.number; 
                      del_number = number; 
                      deleteTask.send(); 
                      Alert.show(del_number); 
            ]]> 
        </mx:Script> 
        <!--This script is used to import the click event and than passes the variables back out to the mx--> 
        <mx:Script> 
            <![CDATA[ 
                //this is the clickItem function that is called above in the onClick function... 
                function clickItem(event:ListEvent) 
                    var id = event.itemRenderer.data.number; 
                    var comp = event.itemRenderer.data.completed; 
                    var opened = event.itemRenderer.data.opened; 
                    activeId = id; 
                    activeComplete = comp; 
                    activeOpened = opened; 
                    //send_data(); 
                    updateValue.send(); 
            ]]> 
        </mx:Script> 
    </mx:Application>

  • HELP.! complier says one error: "undefined variable: SCROLLBARS_NONE"

    I was compling my source code for a label to display properties. I decided not to have scrollbars in my applet so i put SCROLLBARS_NONE in a line of code. When I complied the source code my complier said one error: "undefined variable: SCROLLBARS_NONE". This is the line of code with the error:
         Double.toString(s.getArea()),3,15,SCROLLBARS_NONE);
    -Can someone please tell me or show me how to define the variable: SCROLLBARS_NONE?-

    java.awt.TextArea has that scrollbar variables. so you would say TextArea.SCROLLBARS_NONE.

  • Undefined Variable (Incoming Argument Error)

    Hello,
    I've created an XSD (Name: XYZ) in my BPM project and then created an instance variable (Name: asset) of type XYZ. I then created incoming argument and outgoing argument of the same type. Now I get an error message as stated below.
    Undefined variable 'assetArg'
    Note: I don't get an error message if i do the same steps and create it based on BPM object. But if i use XSD, I get the below error message. Any idea why?
    Thanks for your help.

    Here's just a suggestion. I'd completely agree with you if you reported it as a bug, but here's how you can get it working.
    Convert the incoming XML into a String before it arrives in the Begin activity of the process. In the logic below, I assumed that you would be willing to do this and you passed in your String as an argument variable called "incomingXmlStringArg" in the Begin activity.
    In the Begin activity, you mapped the String "incomingXmlStringArg" into a variable called incomingXmlString. If this is going to be a big thing, I'd strongly recommend that you make this instance variable's type "Separated".
    The xyz variable shown in the logic below is the instance variable you were wishing all along you could plop the XML directly into. "xyz" is a BPM Object instance variable of the type of the heir you created from your XSD. I'd strongly recommend that you also make this a Separated instance variable if it's going to potentially be huge.
    Put this logic in and Automatic activity that immediately follows your Begin activity.
    xyz = Model.Xyz()
    load xyz
        using xmlText = incomingXmlStringDan

  • Mach_arch undefined variable

    Hi:
    Im trying to install OSB 10.4.0.1.0 express edition.
    I have the next configuration on my server:
    * Ubuntu server 10.10
    * Oracle 10 xe.
    * Obpublisher
    I have installed de sg3-utils pack whose has the scsi drivers.
    The problem is when i run the setup.
    Its returns:
    Welcome to Oracle's setup program for Oracle Secure Backup. This
    program loads Oracle Secure Backup software from the CD-ROM to a
    filesystem directory of your choosing.
    This CD-ROM contains Oracle Secure Backup version 10.4.0.1.0_LINUX32.
    Please wait a moment while I learn about this host...mach_arch: Undefined variable.
    What is the problem????
    Thanks

    Please review the platform compatibility matrix http://www.oracle.com/technetwork/database/secure-backup/learnmore/osb-platforms-nasdevices-520157.pdf
    Ubuntu is not a supported Linux release.
    Thanks
    Rich

  • Undefined variable error

    I defined the two variables upper_limit and lower_limit in my bean but I get an undefined variable message when I try to use them in my jsp page. Can anyone see what the problem is?
    JSP code:
    I'm thinking of a number between <%=lower_limit%> and <%=upper_limit%>.<p>
    error message:
    org.apache.jasper.JasperException: Unable to compile class for JSPC:\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fjsp_0002fnum_0002fnumguess_00031_0002ejspnumguess1_jsp_0.java:157: Undefined variable: lower_limit
    out.print(lower_limit);
    ^
    C:\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fjsp_0002fnum_0002fnumguess_00031_0002ejspnumguess1_jsp_0.java:163: Undefined variable: upper_limit
    out.print(upper_limit);

    I defined the two variables upper_limit and
    lower_limit in my bean but I get an undefined variable
    message when I try to use them in my jsp page. Can
    anyone see what the problem is?If these are defined in your bean this doesn't mean that you can access them directly from your JSP page.
    try the <jsp:getProperty name="beanName" property="lower_limit"/> and <jsp:getProperty name="beanName" property="upper_limit"/>
    >
    >
    JSP code:
    I'm thinking of a number between <%=lower_limit%>
    and <%=upper_limit%>.<p>
    I believe that's what these error codes are suggesting, not that you haven't defined the variable in your Bean, but that you haven't gotten the variable from the Bean.
    >
    error message:
    org.apache.jasper.JasperException: Unable to compile
    class for
    JSPC:\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexampl
    s\_0002fjsp_0002fnum_0002fnumguess_00031_0002ejspnumgue
    s1_jsp_0.java:157: Undefined variable: lower_limit
    out.print(lower_limit);
    ^
    C:\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\
    0002fjsp_0002fnum_0002fnumguess_00031_0002ejspnumguess1
    jsp_0.java:163: Undefined variable: upper_limit
    out.print(upper_limit);
    Hope that helps some,
    Bryan

  • Undefined variable or class name

    I am trying to call a java class to another class but gets the error: "Undefined variable or class name"
    Both my java files are in the same directory and I am able to compile only one of the program. Wondering what am I missing?
    The source code is:
    ServletUtilities.java: (I am able to compile)
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ServletUtilities {
    public static final String DOCTYPE =
         "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 " +
         "Transitional//EN\">";
    public static String headWithTitle(String title) {
         return(DOCTYPE + "\n" +
              "<HTML>\n" +
              "<head><title>" + title + "</title></head>\n");
    HelloWWW3.java (getting error when compile)
    public class HelloWWW3 extends HttpServlet {
    public void doGet(HttpServletRequest request,
                   HttpServletResponse response)
         throws ServletException, IOException
         response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    out.println(ServletUtilities.headWithTitle("Hello WWW") +
              "<body>\n" +
              "<h1>Hello WWW</h1>\n" +
              "</body></html>");

    I tried and I got these errors:
    C:\java servlets\HelloWWW3\src>javac -classpath . HelloWWW3.java
    HelloWWW3.java:4: Package javax.servlet not found in import.
    import javax.servlet.*;
    ^
    HelloWWW3.java:5: Package javax.servlet.http not found in import.
    import javax.servlet.http.*;
    ^
    HelloWWW3.java:7: Superclass coreservlets.HttpServlet of class coreservlets.Hell
    oWWW3 not found.
    public class HelloWWW3 extends HttpServlet
    ^
    3 errors
    Then I moved HelloWWW3.java and ServletUtilities.class file to C:\jakarta-tomcat-3.2.3\lib
    This dir has files
    JAXP JAR
    SERVLET JAR
    ANT JAR
    PARSER JAR
    WEBSER~1 JAR
    JASPER JAR
    and compiled and got this error
    C:\jakarta-tomcat-3.2.3\lib>javac -classpath . HelloWWW3.java
    HelloWWW3.java:4: Package javax.servlet not found in import.
    import javax.servlet.*;
    ^
    HelloWWW3.java:5: Package javax.servlet.http not found in import.
    import javax.servlet.http.*;
    ^
    HelloWWW3.java:7: Superclass coreservlets.HttpServlet of class coreservlets.Hell
    oWWW3 not found.
    public class HelloWWW3 extends HttpServlet
    ^
    3 errors
    Here is what I hava defined for my CLASSPATH
    C:\jakarta-tomcat-3.2.3\lib>echo %CLASSPATH%
    C:\jakarta-tomcat-3.2.3\lib\servlet.jar;C:\jakarta-tomcat-3.2.3\lib\jasper.jar
    ------------------------------------------

  • Undefined variable or classname snpRef (when executing Java within a KM)

    Hi there,
    I'm looking into ODI, specifically customizing scripts using java functions and have hit a bit of a problem.
    Does the following error ring any bells?
    Attempt to resolve method: getobjectname() on undefined variable or class name: snpref
    I find it quite weird and strange that it cannot find snpref?
    The script is below - as you can see, I'm just having a play around
    drop table <%=odiRef.getTable("L", "COLL_NAME", "A")%>
    +<%String sTestString = odiRef.getFrom(); %>+
    +<%sTestString = sTestString.toLowerCase();%>+
    +<%out.print("/*"+sTestString+"*/");%>+
    As you can see, I have no clue where snpref is being called from. It may be an internal translation of odiRef but I thought snpRef has been deprecated!? What's also weird is that without the last or penultimate line, everything works fine?
    For example, this works:
    drop table <%=odiRef.getTable("L", "COLL_NAME", "A")%>
    +<%String sTestString = odiRef.getFrom(); %>+
    +<%out.print("/*"+sTestString+"*/");%>+
    it gives:
    drop table ODI_TESTING."C$_0SmalldatetimeTable"
    +/*Testing.dbo.SmalldatetimeTable as SMALLDATETIMETABLE*/+
    Also this works:
    drop table <%=odiRef.getTable("L", "COLL_NAME", "A")%>
    +<%String sTestString = "TeSt"; %>+
    +<%sTestString = sTestString.toLowerCase(); %>+
    +<%out.print("/*"+sTestString+"*/");%>+
    outputting (as totally expected):
    drop table ODI_TESTING."C$_0SmalldatetimeTable"
    +/*test*/+
    What gives? I know this is a bit theoretical but I'd really love to know what's causing it to break so spectacularly? Could it be some sort of misconfiguration?
    Here's the stack trace:
    com.sunopsis.tools.core.exception.SnpsSimpleMessageException: ODI-17517: Error during task interpretation.
    Task: 4
    java.lang.Exception: BeanShell script error: Sourced file: inline evaluation of: ``out.print("drop table ") ; out.print(snpRef.getObjectName("L", "%COL_PRF0Smallda . . . '' : Attempt to resolve method: getobjectname() on undefined variable or class name: snpref : at Line: 4 : in file: inline evaluation of: ``out.print("drop table ") ; out.print(snpRef.getObjectName("L", "%COL_PRF0Smallda . . . '' : snpref .getobjectname ( "l" , "smalldatetimetable" , "testing" , "" , "d" )
    BSF info: Drop work table at line: 0 column: columnNo
    +     at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:485)+
    +     at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:711)+
    +     at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:461)+
    +     at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)+
    +     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)+
    +     at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)+
    +     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)+
    +     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)+
    +     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)+
    +     at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)+
    +     at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)+
    +     at java.lang.Thread.run(Thread.java:662)+
    Caused by: org.apache.bsf.BSFException: BeanShell script error: Sourced file: inline evaluation of: ``out.print("drop table ") ; out.print(snpRef.getObjectName("L", "%COL_PRF0Smallda . . . '' : Attempt to resolve method: getobjectname() on undefined variable or class name: snpref : at Line: 4 : in file: inline evaluation of: ``out.print("drop table ") ; out.print(snpRef.getObjectName("L", "%COL_PRF0Smallda . . . '' : snpref .getobjectname ( "l" , "smalldatetimetable" , "testing" , "" , "d" )
    BSF info: Drop work table at line: 0 column: columnNo
    +     at bsh.util.BeanShellBSFEngine.eval(Unknown Source)+
    +     at bsh.util.BeanShellBSFEngine.exec(Unknown Source)+
    +     at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:471)+
    +     ... 11 more+
    Text: drop table <?=snpRef.getObjectName("L", "%COL_PRF0SmalldatetimeTable", "W") ?>
    +/*<?=snpref.getobjectname("l", "smalldatetimetable", "testing", "", "d")?> as smalldatetimetable*/.+
    +     at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:738)+
    +     at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:461)+
    +     at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)+
    +     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)+
    +     at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)+
    +     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)+
    +     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)+
    +     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)+
    +     at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)+
    +     at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)+
    +     at java.lang.Thread.run(Thread.java:662)+
    Thanks!
    Matt
    Edited by: 979675 on Jan 9, 2013 1:04 AM

    Okay here is the solution.
    I tried 100s of ways but it didnt work. So the alternative is create one more step in your KM with jython technology. Below code will print it in lowercase.
    sTestString= '<%=sTestString%>'
    raise (sTestString.lower())
    Note: Click on ignore error. So that the flow will move on.
    Bhabani

  • PHP returning "undefined" variable to flash

    Hello Everyone, I am working on a touch screen POS login interface that takes in a four digit user pin and searches a database. It uses Flash, PHP and MYSQL. I need PHP to return the user name and access level. The AS3 code below is what I have so far, but it doesn't work correctly.
    "IntLogin" is the 4 digit pin that is sent to PHP when the user touches login on the GUI.
    function onLoginClick(e:MouseEvent):void
              keyLogin.gotoAndStop("KeyDn");
              var loader:URLLoader = new URLLoader();
              var request:URLRequest = new URLRequest("Login.php");
              var variables:URLVariables = new URLVariables();
              loader.dataFormat = URLLoaderDataFormat.VARIABLES;
              request.method = URLRequestMethod.POST;
              variables.login = intLogin;
              request.data = variables;
              trace(request.data = variables);
              loader.addEventListener(Event.COMPLETE, onComplete);
              loader.load(request);
               function onComplete(event:Event):void{
                        var loader:URLLoader = URLLoader(event.target);
                        var variables:URLVariables = new URLVariables(loader.data);
                        txtUser.text = variables.username;
    Next is the PHP code which works great in the browser when I implictly give $select a value, returning "username=Walker&access=1"
    However, when I run the program from Flash it returns an undefined variable and the end of the PHP file.
    <?php # Login.php
    require_once ('mysqli_connect.php');
    //Connect to the db
    if (!empty($_POST['login'])){
              $select = $_POST['login'];
              $sql = "SELECT Last_Name AS name, Access_Level AS level FROM Users WHERE User_ID = '$select'";
              $q = mysqli_query($dbc, $sql);
              if($q){
                        $row = mysqli_fetch_array($q, MYSQLI_ASSOC);
                        $name = $row['name'];
                        $access = $row['level'];
                        echo "username=$name";
      echo "&access=access";
    ?>
    I have have tried debugging the both the PHP and the AS code, but I am stuck. When I trace in AS3 I get the following:
    1445
    login=1445
    undefined
    $access";
    ?>
    Please if you anyone can help with this it would be greatly appreciated. I am on a strict timeline and I don't know what to do here.
    Thanks:)
    Jusmark

    You have to send it as a flash var
    Take a look at the code on my php webpage:
    http://www.spectacularstuff.com/php-test/inprogress/scrfix/home.php
    That is how I sent it to flash. Now, we want to receive it in
    flash. You need the following actionscript in AS3.
    // Display FlashVar onto webpage to ensure we are
    // receiving it
    var tf:TextField = new TextField();
    tf.autoSize = TextFieldAutoSize.LEFT;
    tf.border = false;
    tf.x = 50;
    tf.y = 10;
    addChild(tf);
    // Detect the FlashVar from the webpage
    try {
    var keyStr:String;
    var valueStr:String;
    var paramObj:Object =
    LoaderInfo(this.root.loaderInfo).parameters;
    for (keyStr in paramObj) {
    valueStr = String(paramObj[keyStr]);
    if (keyStr.indexOf(".") != -1){
    keyStr = keyStr.substring(0, keyStr.indexOf(".")); //now
    it's "home"
    // tf.appendText(keyStr);
    } catch (error:Error) {
    // tf.appendText(error);

Maybe you are looking for

  • GROUP BY on a table with geometry

    Good evening This is an overview of my table Geometry_|_ID_GEO_|_Year_|_Value Polygon1_|__1______|_1999_|__5 Polygon1_|__1______|_1999_|__7 Polygon2_|__2______|_1999_|__4 Polygon2_|__2______|_1999_|__12 I would like to group this table by geometry an

  • Problem with utl_file package

    Hi guys. I was trying I/O in oracle using utl_file packege the codes written my me was: DECLARE Temp UTL_FILE.File_Type; BEGIN Temp:=UTL_FILE.Fopen('/DOGS','TEST.txt','w'); UTL_FILE.Put(Temp,'Hell'); UTL_FILE.FFLUSH(Temp); UTL_FILE.Fclose(Temp); EXCE

  • Mini DisplayPort No Audio!

    I just purchased this » http://www.amazon.com/Premium-High-Speed-inch-DisplayPort-Cable/dp/B005J5ZBJG. I just hooked it up and have no audio, i wanted to see if anyone could help me out on whether or not it is capable of outputing audio. Thnx!

  • Copy Planning Function in IP

    Hi, In BPS, for Copy planning function we have an option of : 1)Overwrite existing values 2)Add to Exisiting values. I couldn't fine the same in IP. even in the to parameters section. What is the standard behaviour of Copy planning function in IP. Rg

  • Metadata in QM 8.5 with IPPA

    Hi I would like know how to add metadata in IPPA  with CM 8.5 , UCCX 8.5 standard  and QM 8.5 thanks