String check problem

I have a doozy of a problem on my hands. My company has introduced a password policy that every user must me now. Some of my criteria is that a password must contain at least one symbol and at least one number. In 10g I can use REGEXP_LIKE function, but I am running 9i. I have tried to use translate, OWA_PATTERN function, everthing. How can I take a string variable, and test to see if there is a symbol in the text or a number. I want to be able to return a true/false value?
Please advise?

Like Kamal says, use built-in functionality FIRST.
Failing that, presumably you would write something like this (I forget the exact naming standard for the password verify function).
CREATE FUNCTION valid_password (
   p_password IN VARCHAR2)
   RETURN BOOLEAN
IS
   FUNCTION contains_at_least_one (
      p_string IN VARCHAR2,
      p_characters IN VARCHAR2)
      RETURN BOOLEAN
   IS
   BEGIN
      RETURN LENGTH (TRANSLATE (p_string, 'X' ||
        p_characters, 'X')) < LENGTH (p_string);
   END;
BEGIN
   RETURN contains_at_least_one (p_password, '0123456789')
      AND contains_at_least_one (p_password, '!£$%^&*(){}~@??|<>');
END;

Similar Messages

  • Capacity check problem in Project system

    hi,
    i have some questions for the Capacity check problems in Project System.
    1. if one Person is assigned to diffierent Work Centers, for example,  person A is assigned to Work Center 01 under Plant 01, and Work Center 02 under Plant 02, how can i do the Capacity check?
       if i want to use A of Work Center 01 in the Project, the System will only check the Capacity of  01, or both of 01 and 02?
    2.  What is the Pooled Capacity?
    Rgds,
    Liang

    hi,
    1.Capacity check takes place at plant level itself..
    2.Pooled capacity:- This is created separately in [u wil find in PP] and this capacity can be used by different work centers.
    regards
    pushpa

  • Syntax Check Problem?

    Hi there!
    I have an ActionScript Project and have many AS Classes on my
    source directory, but have only one Application (Main.as).
    The question is that I can write anything on the AS Classes
    and the Flex doesn't point any errors. Flex only parse the classes
    that are used by my Main Application. This is not a good thing,
    because not all the classes are laoded by the Main Application
    directly, but I still need a instant syntax checking...
    So, could some one say me if this is a Syntax Check Problem?
    Thank you,
    CaioToOn!

    Hi,
    Indeed, it can be frustrating that your class gets compiled
    only when it gets used. I'm guessing the compiler behaves that way
    for performance reasons.
    But I don't understand the bit about classes not being loaded
    by the main application directly? You mean those classes are
    compiled into modules / rsls?
    As long as the classes are referenced in some class which is
    being used by the application, it *should* get compiled. It would
    be interesting to know the dependency of your actionscript
    classes.

  • Capacity check problems

    hi,
    i have some questions for the Capacity check problems in Project System.
    1. if one Person is assigned to diffierent Work Centers, for example, person A is assigned to Work Center 01 under Plant 01, and Work Center 02 under Plant 02, how can i do the Capacity check for this person?
    if i want to use A of Work Center 01 in the Project, the System will only check the Capacity of 01, or both 01 and 02?
    2. How to config Capacity check in PS?
    Rgds,
    Liang

    hi,
    1.Capacity check takes place at plant level itself..
    2.Pooled capacity:- This is created separately in [u wil find in PP] and this capacity can be used by different work centers.
    regards
    pushpa

  • HT201303 MGwFL7jgk9 Please check problem my account  I want refund all item because i gift again all item medthod vie print gift my self and all item

    I gift app for friend Order mgwl7jgk9 my friends can' t receive email gift app. Please check problem my account.
    I want refund all item because i gift again all item method vie print gift my self and all item

    You are NOT addressing Apple here at all.
    AGAIN:
    We are all itunes users just like you.
    We can check nothing.
    You need to contact itunes support.
    http://www.apple.com/support/contact/"

  • SOAP scenario "Do not use SOAP Envelope" check problems

    Hi Gurus!
    I'm again here.
    I've an scenario with SOAP Receiver, the WS do I need consume, looks like:
    POST /SumTotalws1/services/Authentication.asmx HTTP/1.1
    Host: xxx.xxx.xxx.xxx
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    SOAPAction: "http://www.sumtotalsystems.com/sumtotal7/sumtotalws/Authentication/Login"
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body>
        <Login xmlns="http://www.sumtotalsystems.com/sumtotal7/sumtotalws/Authentication/">
          <credentials>
            <Username>string</Username>
            <Passcode>string</Passcode>
            <AuthenticationType>NotSpecified or Anonymous or NTAuthentication or Passport or LDAP</AuthenticationType>
            <AccountType>NotSpecified or WebService or WebUI</AccountType>
          </credentials>
        </Login>
      </soap:Body>
    </soap:Envelope>
    but the response looks like:
    HTTP/1.1 200 OK
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Header>
        <UserToken xmlns="http://www.sumtotalsystems.com/sumtotal7/sumtotalws/">
          <Value>string</Value>
        </UserToken>
      </soap:Header>
      <soap:Body>
        <LoginResponse xmlns="http://www.sumtotalsystems.com/sumtotal7/sumtotalws/Authentication/" />
      </soap:Body>
    </soap:Envelope>
    when I create my communication channel with "Do not Use SOAP Envelope" uncheck it, all run ok, but I only get in response message "<LoginResponse>" and I need <UserToken>
    When I check it "Do not use SOAP Envelope" and I use XSLT mapping to add SOAP Env to request message,  I get response message empty.
    I tried the web Service with the message that I obtained from de XSLT mapping in the program SOAPUI. I get ok response with the <UserToken> value.
    some idea to solve this problem??
    Thanks in advance.
    Edited by: KrlosRios on Sep 30, 2011 8:07 PM

    Hi, thanks for your answer.
    Can I use AXIS to execute any WS?
    The WS that I tried execute looks like this:
    POST /xxxx/services/Authentication.asmx HTTP/1.1
    Host: xxx.240.106.39
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    SOAPAction: "http://xxx/Authentication/Login"
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body>
        <Login xmlns="http://xxxxAuthentication/">
          <credentials>
            <Username>string</Username>
            <Passcode>string</Passcode>
            <AuthenticationType>NotSpecified or Anonymous or NTAuthentication or Passport or LDAP</AuthenticationType>
            <AccountType>NotSpecified or WebService or WebUI</AccountType>
          </credentials>
        </Login>
      </soap:Body>
    </soap:Envelope>
    and for the response:
    HTTP/1.1 200 OK
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Header>
        <UserToken xmlns="http://www.sumtotalsystems.com/sumtotal7/sumtotalws/">
          <Value>string</Value>
        </UserToken>
      </soap:Header>
      <soap:Body>
        <LoginResponse xmlns="http://www.sumtotalsystems.com/sumtotal7/sumtotalws/Authentication/"></LoginResponse>
      </soap:Body>
    </soap:Envelope>
    also I found in Trace node in SXI_MONITOR, jus before execute response mapping :
    <Trace level="1" type="B" name="PLSRV_MAPPING_RESPONSE"></Trace><!-- ************************************ -->
    <Trace level="1" type="Timestamp">2011-11-01T19:33:34Z UTC-6 Start of pipeline service processing PLSRVID= PLSRV_MAPPING_RESPONSE</Trace>
    <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
    <Trace level="3" type="T">Calling pipeline service: PLSRV_MAPPING_RESPONSE</Trace>
    <Trace level="3" type="T">Reading Pipeline-Service specification... </Trace>
    <Trace level="3" type="T">PLSRVTYPE  = </Trace>
    <Trace level="3" type="T">ADRESSMOD  = LOCAL</Trace>
    <Trace level="3" type="T">P_CLASS    = CL_MAPPING_XMS_PLSRV3</Trace>
    <Trace level="3" type="T">P_IFNAME   = IF_XMS_PLSRV</Trace>
    <Trace level="3" type="T">P_METHOD   = ENTER_PLSRV</Trace>
    <Trace level="3" type="T"> </Trace>
    <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL"></Trace><!-- ************************************ -->
    <Trace level="1" type="B" name="CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV"></Trace><!-- ************************************ -->
    <Trace level="2" type="T">......attachment XI_Context not found </Trace>
    <Trace level="3" type="T">Das Mapping wurde bereits in der Interface-Ermittlung bestimmt. </Trace>
    <Trace level="3" type="T">Objekt-Id des Interface-Mappings 8594D8C2E6DA3C008F45B112FFCC86B8 </Trace>
    <Trace level="3" type="T">Versions-Id des Interface-Mappings C3BB8FB0A1D511E0A688E9FCB9F06E16 </Trace>
    <Trace level="1" type="T">Interface-Mapping http://xxxxx.net/pi/lms/Authentication OM_LMS_Authentication </Trace>
    <Trace level="3" type="T">Mapping-Schritte 1  XSLT Response_LMS_Auth5 </Trace>
    <Trace level="3" type="T">MTOM-Attachments werden nicht in die Payload überführt. </Trace>
    <Trace level="1" type="T">Payload is empty. </Trace>
    <Trace level="3" type="T">Dynamische Konfiguration ist leer. </Trace>
    <Trace level="2" type="T">Modus 0  </Trace>
    <Trace level="2" type="T">Call XSLT processor with stylsheet Response_LMS_Auth5.xsl. </Trace>
    <Trace level="3" type="T">Method fatalError called, terminate transformation, because of
    Thrown:
    javax.xml.transform.TransformerException: java.io.IOException: Parsing an empty source. Root element expected!
         at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:250)
    Say Payload is empty.
    and in left directory tree, not exist "payload" node, only existe SOAP Body and in "Manifest" node looks like this:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <!-- XML Validation Outbound Channel Response -->
    <SAP:Manifest wsu:Id="wsuid-manifest-5CABE13F5C59AB7FE10000000A1551F7" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:wsu="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <SAP:Payload xlink:href="cid:att-60c3078b066911e1bc1500000093b25a @sap.com">
    <SAP:Name>MainAttachment</SAP:Name><
    SAP:Description>Main document</SAP:Description>
    <SAP:Type>Application</SAP:Type></SAP:Payload>
    </SAP:Manifest>
    Thanks for your help.

  • Username and password check problem

    I have learned Java for 3 months and I am going to finish a project for the school. I have had some problems on username & password check and authorization from SQL database using ODBC. Any source code I can learn from?
    Thanks in advance.

    I'm not too clear on what you exactly want, but here's an example from my book using "username", "password", and a "database". I can send you the db file if you need to see it. I hope this helps.
    // Fig. 18.24: TableDisplay.java
    // This program displays the contents of the Authors table
    // in the Books database.
    import java.sql.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class TableDisplay extends JFrame {
    private Connection connection;
    private JTable table;
    public TableDisplay()
    // The URL specifying the Books database to which
    // this program connects using JDBC to connect to a
    // Microsoft ODBC database.
    String url = "jdbc:odbc:Books";
    String username = "anonymous";
    String password = "guest";
    // Load the driver to allow connection to the database
    try {
    Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
    connection = DriverManager.getConnection(
    url, username, password );
    catch ( ClassNotFoundException cnfex ) {
    System.err.println(
    "Failed to load JDBC/ODBC driver." );
    cnfex.printStackTrace();
    System.exit( 1 ); // terminate program
    catch ( SQLException sqlex ) {
    System.err.println( "Unable to connect" );
    sqlex.printStackTrace();
    getTable();
    setSize( 450, 150 );
    show();
    private void getTable()
    Statement statement;
    ResultSet resultSet;
    try {
    String query = "SELECT * FROM Authors";
    statement = connection.createStatement();
    resultSet = statement.executeQuery( query );
    displayResultSet( resultSet );
    statement.close();
    catch ( SQLException sqlex ) {
    sqlex.printStackTrace();
    private void displayResultSet( ResultSet rs )
    throws SQLException
    // position to first record
    boolean moreRecords = rs.next();
    // If there are no records, display a message
    if ( ! moreRecords ) {
    JOptionPane.showMessageDialog( this,
    "ResultSet contained no records" );
    setTitle( "No records to display" );
    return;
    setTitle( "Authors table from Books" );
    Vector columnHeads = new Vector();
    Vector rows = new Vector();
    try {
    // get column heads
    ResultSetMetaData rsmd = rs.getMetaData();
    for ( int i = 1; i <= rsmd.getColumnCount(); ++i )
    columnHeads.addElement( rsmd.getColumnName( i ) );
    // get row data
    do {
    rows.addElement( getNextRow( rs, rsmd ) );
    } while ( rs.next() );
    // display table with ResultSet contents
    table = new JTable( rows, columnHeads );
    JScrollPane scroller = new JScrollPane( table );
    getContentPane().add(
    scroller, BorderLayout.CENTER );
    validate();
    catch ( SQLException sqlex ) {
    sqlex.printStackTrace();
    private Vector getNextRow( ResultSet rs,
    ResultSetMetaData rsmd )
    throws SQLException
    Vector currentRow = new Vector();
    for ( int i = 1; i <= rsmd.getColumnCount(); ++i )
    switch( rsmd.getColumnType( i ) ) {
    case Types.VARCHAR:
    currentRow.addElement( rs.getString( i ) );
    break;
    case Types.INTEGER:
    currentRow.addElement(
    new Long( rs.getLong( i ) ) );
    break;
    default:
    System.out.println( "Type was: " +
    rsmd.getColumnTypeName( i ) );
    return currentRow;
    public void shutDown()
    try {
    connection.close();
    catch ( SQLException sqlex ) {
    System.err.println( "Unable to disconnect" );
    sqlex.printStackTrace();
    public static void main( String args[] )
    final TableDisplay app = new TableDisplay();
    app.addWindowListener(
    new WindowAdapter() {
    public void windowClosing( WindowEvent e )
    app.shutDown();
    System.exit( 0 );

  • String offset problem

    Hi,
    I'm using 1.4.2 at the moment.
    I got the problem below and have no idea how to solve it. The program portion is:
    String x = node.getText();
    The node.getText() should contain value = "\n\r"
    However, it always return me "\r" only.
    I checked with the debugger and found that when I change the offset value of x to 0, it can return me "\n". However, the original offset value is always kept as 1. That's the reason why it always return me "\r".
    Can anyone help and tell me how to get the value "\n" in this case, i.e. any String method which I can check and get the offset value 0 from the string x.
    Thanks million in advance.
    Regards,
    Eric

    Can anyone help and tell me how to get the value "\n"
    in this case, i.e. any String method which I can
    check and get the offset value 0 from the string x.
    x.charAt(0);is probably what you mean.

  • String item problem

    I use mobility pack visual designer.
    When I create a string item in visual screen designer it looks like that:
    Title
    <text>
    but after i run my app it looks different
    Title <text>
    Why there's no line break?
    When I try to add the line break manually it doesn�t work because screen designer property editor adds to the code \\n when I put \n
    so generated code looks like that
    stringItem1 = new StringItem("stringItem1\\n", "<Enter Text>");  and I cannot edit it manually because generated code is blocked by net beans
    I can initialize my stringItem object one again
    stringItem2 = new StringItem("stringItem2\n", "<Enter Text>");  but I thing that�s very stupid to reinitialize an object twice
    And the line break after title doesn't solve my problem because if the title is too long the device will automatically brake the line and I�ll get this
    A long long title........
    <text>
    one empty line because of that break
    Any ideas?
    I don�t want to use textField because when you set it to uneditable its color becomes gray.

    Check the actual URL up in the location bar. Your comma may actually be dropping out there, because it isn't encoded such that in value commas can be differentiated from delimiters, so the fields aren't lining up in the URL properly.
    When you go to a page that takes in parameters for assignment in the link, it has 2 fields. The first is the comma separated list of the item names on the page to assign, which wouldn't contain commas in their names. The other field in the URL is a comma separated list of values to be assigned to the previous list. Since these values aren't encoded, the comma in the value is picked up as delimiter and not a part of the value. I have an example I can load up to apex.oracle.com if you need.
    -Richard
    Edited by: rwendel on Aug 13, 2009 11:51 AM

  • String compare problem

    I try to compare 2 strings with compareTo/equalTo, but it's not working, those 2 funcs always return ture.
    public boolean chMark(String name, String test, String newMark)
              boolean flag = false;
              for(int i = 0; i < course.getNumOfStd(); i++)
                   if(course.getStd().getName().compareTo(name)==0)//here is problem;
                        Student tempStd = course.getStd()[i];
                        for(int j = 0; j < tempStd.getMark().getNumOfTests(); j++)
                        if(tempStd.getMark().getTestArray()[j].getTitle().compareTo(test)==0);//here is problem;
                             int mark = Integer.parseInt(newMark);                    }
              return flag;
    Can anybody tell me why?
    REGARDS,
    Elton

    equals() would read more naturally than compareTo()==0. But, in
    either case, use System.out.println() to write the two strings before
    you compare them. This is to check that you are comparing what
    you think you're comparing.System.out.println("name from course is " + course.getStd().getName());
    System.out.println("name is " + name);
    if(course.getStd()[i].getName().compareTo(name)==0)//here is problem;
    System.out.println("name from couse and name compared equal");
    // etc

  • Javabean string invoking problem

    I have two JSPs, one takes a request and the other displays the result and I am having problem with the javabean to connect the two
    here are my codes
    takes request
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <table border="1" align="center">
    <tr>
    <td colspan="3" bgcolor="black" align="center"><font color="orange" size="3">
    Computer Voting Poll</font></td></tr>
    <tr>
    <td colspan="3" bgcolor="black" align="center"><font color="orange" size="3">
    What is your favorite computer game?
    </font></td></tr>
    <tr><td width="20%" bgcolor="black"></td>
    <td width="30%" bgcolor="black" align="left">
    <FORM ACTION="PollResult.jsp">
    <input type="radio" name="firstChoice" value="Oblivion" checked><font color="orange" size="2"> Oblivion </font><br>
    <input type="radio" name="secondChoice" value="starwars"><font color="orange" size="2"> Star Wars: Empire at War </font><br>
    <input type="radio" name="thirdChoice" value="finalfantasy"><font color="orange" size="2"> Final Fantasy XI: Online </font><br>
    <input type="submit" value="vote button" name="Vote">
    </td>
    <td bgcolor="black" width="20%"></td>
    </tr>
    <tr><td bgcolor="black" colspan="3" align="center"><font color="orange" size="3">
    </font><font color="white" size="3">Total Votes</font></td></tr>
    <tr><td height="15" bgcolor="orange" colspan="3"></td></tr>
    <tr><td align="left" bgcolor="black"><font color="white" size="3">0</font></td>
    <td align="left" bgcolor="black"><font color="white" size="3">Oblivion</font></td>
    <td align="center" bgcolor="black"><font color="white" size="3">0.00%</font></td>
    </tr>
    <tr><td align="left" bgcolor="black"><font color="white" size="3">0</font></td>
    <td align="left" bgcolor="black"><font color="white" size="3">Star Wars: Empire at War</font></td>
    <td align="center" bgcolor="black"><font color="white" size="3">0.00%</font></td>
    </tr>
    <tr><td align="left" bgcolor="black"><font color="white" size="3">0</font></td>
    <td align="left" bgcolor="black"><font color="white" size="3">Final Fantasy XI: Online</font></td>
    <td align="center" bgcolor="black"><font color="white" size="3">0.00%</font></td>
    </tr>
    <tr><td height="15" bgcolor="orange" colspan="3"></td></tr>
    </table>
    </body>
    </html>displays
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <table border="1" align="center">
    <tr>
    <td colspan="3" bgcolor="black" align="center"><font color="orange" size="3">
    Computer Voting Poll</font></td></tr>
    <tr>
    <td colspan="3" bgcolor="black" align="center"><font color="orange" size="3">
    What is your favorite computer game?
    </font></td></tr>
    <tr><td width="20%" bgcolor="black"></td>
    <td width="30%" bgcolor="black" align="left">
    <input type="radio" name="firstChoice" value="Oblivion" checked><font color="orange" size="2"> Oblivion </font><br>
    <input type="radio" name="secondChoice" value="starwars"><font color="orange" size="2"> Star Wars: Empire at War </font><br>
    <input type="radio" name="thirdChoice" value="finalfantasy"><font color="orange" size="2"> Final Fantasy XI: Online </font><br>
    <input type="submit" value="vote button" name="Vote">
    </td>
    <td bgcolor="black" width="20%"></td>
    </tr>
      <TR><TH>
          Using jsp:setProperty</TABLE>
    <jsp:useBean id="entry" class="core.BeanPoll" />
    <jsp:setProperty
        name="entry"
        property="firstChoice"
        param="firstChoice" />
    <jsp:setProperty
        name="entry"
        property="secondChoice"
        param="secondChoice" />
    <jsp:setProperty
        name="entry"
        property="thirdChoice"
        param="thirdChoice" />
    <BR>
    <tr><td bgcolor="black" colspan="3" align="center"><font color="orange" size="3">
    </font><font color="white" size="3">Total Votes</font></td></tr>
    <tr><td height="15" bgcolor="orange" colspan="3"></td></tr>
    <tr><td align="left" bgcolor="black"><font color="white" size="3">0</font></td>
    <td align="left" bgcolor="black"><font color="white" size="3">Oblivion</font></td>
    <td align="center" bgcolor="black"><font color="white" size="3"><jsp:getProperty name="entry" property="firstChoice" />%</font></td>
    </tr>
    <tr><td align="left" bgcolor="black"><font color="white" size="3">0</font></td>
    <td align="left" bgcolor="black"><font color="white" size="3">Star Wars: Empire at War</font></td>
    <td align="center" bgcolor="black"><font color="white" size="3"><jsp:getProperty name="entry" property="secondChoice" />0.00%</font></td>
    </tr>
    <tr><td align="left" bgcolor="black"><font color="white" size="3">0</font></td>
    <td align="left" bgcolor="black"><font color="white" size="3"><jsp:getProperty name="entry" property="thirdChoice" />Final Fantasy XI: Online</font></td>
    <td align="center" bgcolor="black"><font color="white" size="3">0.00%</font></td>
    </tr>
    <tr><td height="15" bgcolor="orange" colspan="3"></td></tr>
    </table>
    </body>
    </html>javabean
    * BeanPoll.java
    * Created on October 29, 2007, 11:18 PM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package core;
    /** Simple bean to illustrate the various forms
    *  of jsp:setProperty.
    *  <P>
    *  Taken from Core Servlets and JavaServer Pages 2nd Edition
    *  from Prentice Hall and Sun Microsystems Press,
    *  http://www.coreservlets.com/.
    *  &copy; 2003 Marty Hall; may be freely used or adapted.
    public class BeanPoll {
      private String firstChoice = "unknown";
      private String secondChoice = "unknown";
      private String thirdChoice = "unknown";
      public String getfirstChoice() {
        return(firstChoice);
      public void setfirstChoice(String firstChoice) {
        if (firstChoice != null) {
          this.firstChoice = firstChoice;
        } else {
          this.firstChoice = "unknown";
      public String getsecondChoice() {
        return(secondChoice);
      public void setsecondChoice(String secondChoice) {
        if (secondChoice !=null) {
            this.secondChoice = secondChoice;
        } else {
            this.secondChoice = "unknown";
      public String setthirdChoice() {
        return(thirdChoice);
      public void setthirdChoice(String thirdChoice) {
        if (thirdChoice !=null) {
            this.thirdChoice = thirdChoice;
        } else {
            this.thirdChoice = "unknown";
      // In real life, replace this with database lookup.
      // See Chapters 17 and 18 for info on accessing databases
      // from servlets and JSP pages.
      public double getPollResult() {
        double result;
      public double getTotalCost() {
        return(getItemCost() * getNumItems());
    }thanks for your time

    You have a getter method whose name starts with "set".
    You're not following the beans naming conventions correctly. If a property is called "foo", then the getters & setters are named "getFoo" and "setFoo".

  • Struts String Array problem:

    Hello All,
    I'm working on a DynaValidatorForm in struts and I'm not able to define my string arrays without compile errors in WSAD 5.0 and it doesn't work right with the validator for those two items. WSAD 5.0 uses a 1.3 beta version of struts and that may be the problem or it may be a bug in the validator. Not sure which. This is what I have in the struts-config.xml file for the form-bean:
    <form-beans>
    <form-bean name="submitDynaValidateForm"
    type="org.apache.struts.validator.DynaValidatorForm">
    <form-property name="lastName"     type="java.lang.String"/>
    <form-property name="address"      type="java.lang.String"/>
    <form-property name="sex"      type="java.lang.String"/>
    <form-property name="married"      type="java.lang.String"/>
    <form-property name="children"      type="java.lang.String[]"/>
    <form-property name="age"      type="java.lang.String"/>
    <form-property name="interests" type="java.lang.String[]"/>
    </form-bean>
    </form-beans>
    Anyone come across this problem before and do you know how to solve it other than doing the validation for the String Arrays in the Action class?
    Thanks,
    James

    I don't know how to solve it, but I'd wonder about the need to validate the array of Strings. I think that should just be a String type.
    If you have String arrays to populate a drop-down list, I think the assumption has to be that the drop-down has been populated properly. There's no need to re-check it every time. Even if the list is changing, because its contents are driven by another selection, the responsibility for getting those values correct lie outside the validator's domain.
    And since the single selection that's actually sent as input comes from an array of valid values, there's no opportunity for the user to send an invalid value.
    I think the validation framework is for checking manual, typed user input to make sure they're the correct types, no typo errors, etc.
    Business validity is another matter that the Struts validation framework shouldn't address. Those business rules belong on the middle tier, IMO.

  • Help:String arg[ ] problems

    Hi:
    I am having problems with my encryption program and I want to check that the contents at the command line a being read properly.
    ex: java Monoalphabet -k feather in.txt out.txt
    -k(indicates encryption)
    feather(keyword)
    How do I check to make sure that the input in being read into String args[]properly?
    Thanks.

    Print the args out using System.out.println() in a loop at the beginning of your main method.

  • Virus Checking Problems

    I had ran the 10.5.5 server update last night and everything seemed to be fine. I log on the server admin this morning and check the server and that Mail server says Virus Scanning Unknown. So I go and check the Queue next and there are tons of e-mails in Queue all with the same error of:
    host 127.0.0.1[127.0.0.1] said: 451-4.5.0 Error in processing, id=14182-01, virus_scan FAILED: virus_scan: ALL VIRUS SCANNERS FAILED: ClamAV-clamd av-scanner FAILED: CODE(0x800e94
    So I check the logs next and the amavis.log is churning out the same thing over and over again all these errors below. Anyone have any idea how to fix this?
    14182-02-17) (!!)WARN: all primary virus scanners failed, considering backups
    Sep 16 10:02:47 xpmedia1.xpmedia.com /usr/bin/amavisd[14182]: (14182-02-17) (!!)run_av (ClamAV-clamscan) FAILED - unexpected exit 50, output="LibClamAV Error: cli_loaddb(): No supported database files found in /private/var/clamav\nERROR: Not supported data format"
    Sep 16 10:02:47 xpmedia1.xpmedia.com /usr/bin/amavisd[14182]: (14182-02-17) (!!)ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 50, output="LibClamAV Error: cli_loaddb(): No supported database files found in /private/var/clamav\nERROR: Not supported data format" at (eval 44) line 511.
    Sep 16 10:02:47 xpmedia1.xpmedia.com /usr/bin/amavisd[14182]: (14182-02-17) (!!)TROUBLE in check_mail: virus_scan FAILED: virus_scan: ALL VIRUS SCANNERS FAILED: ClamAV-clamd av-scanner FAILED: CODE(0x800e94) Too many retries to talk to /var/amavis/clamd (Can't connect to UNIX socket /var/amavis/clamd: No such file or directory) at (eval 44) line 310. at (eval 44) line 511.; ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 50, output="LibClamAV Error: cli_loaddb(): No supported database files found in /private/var/clamav\nERROR: Not supported data format" at (eval 44) line 511.
    Sep 16 10:02:47 xpmedia1.xpmedia.com /usr/bin/amavisd[14182]: (14182-02-17) (!)PRESERVING EVIDENCE in /var/amavis/tmp/amavis-20080916T100240-14182
    Sep 16 10:02:47 xpmedia1.xpmedia.com /usr/bin/amavisd[13285]: (13285-19-17) (!)run_av (ClamAV-clamd, built-in i/f): Too many retries to talk to /var/amavis/clamd (Can't connect to UNIX socket /var/amavis/clamd: No such file or directory) at (eval 44) line 310.
    Sep 16 10:02:47 xpmedia1.xpmedia.com /usr/bin/amavisd[13285]: (13285-19-17) (!!)ClamAV-clamd av-scanner FAILED: CODE(0x800e94) Too many retries to talk to /var/amavis/clamd (Can't connect to UNIX socket /var/amavis/clamd: No such file or directory) at (eval 44) line 310. at (eval 44) line 511.
    Sep 16 10:02:47 xpmedia1.xpmedia.com /usr/bin/amavisd[13285]: (13285-19-17) (!!)WARN: all primary virus scanners failed, considering backups
    Sep 16 10:02:47 xpmedia1.xpmedia.com /usr/bin/amavisd[13285]: (13285-19-17) (!!)run_av (ClamAV-clamscan) FAILED - unexpected exit 50, output="LibClamAV Error: cli_loaddb(): No supported database files found in /private/var/clamav\nERROR: Not supported data format"
    Sep 16 10:02:47 xpmedia1.xpmedia.com /usr/bin/amavisd[13285]: (13285-19-17) (!!)ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 50, output="LibClamAV Error: cli_loaddb(): No supported database files found in /private/var/clamav\nERROR: Not supported data format" at (eval 44) line 511.
    Sep 16 10:02:47 xpmedia1.xpmedia.com /usr/bin/amavisd[13285]: (13285-19-17) (!!)TROUBLE in check_mail: virus_scan FAILED: virus_scan: ALL VIRUS SCANNERS FAILED: ClamAV-clamd av-scanner FAILED: CODE(0x800e94) Too many retries to talk to /var/amavis/clamd (Can't connect to UNIX socket /var/amavis/clamd: No such file or directory) at (eval 44) line 310. at (eval 44) line 511.; ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 50, output="LibClamAV Error: cli_loaddb(): No supported database files found in /private/var/clamav\nERROR: Not supported data format" at (eval 44) line 511.
    Sep 16 10:02:47 xpmedia1.xpmedia.com /usr/bin/amavisd[13285]: (13285-19-17) (!)PRESERVING EVIDENCE in /var/amavis/tmp/amavis-20080916T100240-13285
    Sep 16 10:02:48 xpmedia1.xpmedia.com /usr/bin/amavisd[14182]: (14182-02-18) (!)ClamAV-clamd: Can't connect to UNIX socket /var/amavis/clamd: No such file or directory, retrying (2)
    Sep 16 10:02:48 xpmedia1.xpmedia.com /usr/bin/amavisd[13285]: (13285-19-18) (!)ClamAV-clamd: Can't connect to UNIX socket /var/amavis/clamd: No such file or directory, retrying (2)
    Sep 16 10:02:54 xpmedia1.xpmedia.com /usr/bin/amavisd[14182]: (14182-02-18) (!)run_av (ClamAV-clamd, built-in i/f): Too many retries to talk to /var/amavis/clamd (Can't connect to UNIX socket /var/amavis/clamd: No such file or directory) at (eval 44) line 310.
    Sep 16 10:02:54 xpmedia1.xpmedia.com /usr/bin/amavisd[14182]: (14182-02-18) (!!)ClamAV-clamd av-scanner FAILED: CODE(0x800e94) Too many retries to talk to /var/amavis/clamd (Can't connect to UNIX socket /var/amavis/clamd: No such file or directory) at (eval 44) line 310. at (eval 44) line 511.
    Sep 16 10:02:54 xpmedia1.xpmedia.com /usr/bin/amavisd[14182]: (14182-02-18) (!!)WARN: all primary virus scanners failed, considering backups
    Sep 16 10:02:54 xpmedia1.xpmedia.com /usr/bin/amavisd[14182]: (14182-02-18) (!!)run_av (ClamAV-clamscan) FAILED - unexpected exit 50, output="LibClamAV Error: cli_loaddb(): No supported database files found in /private/var/clamav\nERROR: Not supported data format"
    Sep 16 10:02:54 xpmedia1.xpmedia.com /usr/bin/amavisd[14182]: (14182-02-18) (!!)ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 50, output="LibClamAV Error: cli_loaddb(): No supported database files found in /private/var/clamav\nERROR: Not supported data format" at (eval 44) line 511.
    Sep 16 10:02:54 xpmedia1.xpmedia.com /usr/bin/amavisd[14182]: (14182-02-18) (!!)TROUBLE in check_mail: virus_scan FAILED: virus_scan: ALL VIRUS SCANNERS FAILED: ClamAV-clamd av-scanner FAILED: CODE(0x800e94) Too many retries to talk to /var/amavis/clamd (Can't connect to UNIX socket /var/amavis/clamd: No such file or directory) at (eval 44) line 310. at (eval 44) line 511.; ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 50, output="LibClamAV Error: cli_loaddb(): No supported database files found in /private/var/clamav\nERROR: Not supported data format" at (eval 44) line 511.
    Sep 16 10:02:54 xpmedia1.xpmedia.com /usr/bin/amavisd[14182]: (14182-02-18) (!)PRESERVING EVIDENCE in /var/amavis/tmp/amavis-20080916T100247-14182
    Sep 16 10:02:54 xpmedia1.xpmedia.com /usr/bin/amavisd[13285]: (13285-19-18) (!)run_av (ClamAV-clamd, built-in i/f): Too many retries to talk to /var/amavis/clamd (Can't connect to UNIX socket /var/amavis/clamd: No such file or directory) at (eval 44) line 310.
    Sep 16 10:02:54 xpmedia1.xpmedia.com /usr/bin/amavisd[13285]: (13285-19-18) (!!)ClamAV-clamd av-scanner FAILED: CODE(0x800e94) Too many retries to talk to /var/amavis/clamd (Can't connect to UNIX socket /var/amavis/clamd: No such file or directory) at (eval 44) line 310. at (eval 44) line 511.
    Sep 16 10:02:54 xpmedia1.xpmedia.com /usr/bin/amavisd[13285]: (13285-19-18) (!!)WARN: all primary virus scanners failed, considering backups
    Sep 16 10:02:54 xpmedia1.xpmedia.com /usr/bin/amavisd[13285]: (13285-19-18) (!!)run_av (ClamAV-clamscan) FAILED - unexpected exit 50, output="LibClamAV Error: cli_loaddb(): No supported database files found in /private/var/clamav\nERROR: Not supported data format"
    Sep 16 10:02:54 xpmedia1.xpmedia.com /usr/bin/amavisd[13285]: (13285-19-18) (!!)ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 50, output="LibClamAV Error: cli_loaddb(): No supported database files found in /private/var/clamav\nERROR: Not supported data format" at (eval 44) line 511.
    Sep 16 10:02:54 xpmedia1.xpmedia.com /usr/bin/amavisd[13285]: (13285-19-18) (!!)TROUBLE in check_mail: virus_scan FAILED: virus_scan: ALL VIRUS SCANNERS FAILED: ClamAV-clamd av-scanner FAILED: CODE(0x800e94) Too many retries to talk to /var/amavis/clamd (Can't connect to UNIX socket /var/amavis/clamd: No such file or directory) at (eval 44) line 310. at (eval 44) line 511.; ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 50, output="LibClamAV Error: cli_loaddb(): No supported database files found in /private/var/clamav\nERROR: Not supported data format" at (eval 44) line 511.
    Sep 16 10:02:54 xpmedia1.xpmedia.com /usr/bin/amavisd[13285]: (13285-19-18) (!)PRESERVING EVIDENCE in /var/amavis/tmp/amavis-20080916T100247-13285
    Sep 16 10:03:08 xpmedia1.xpmedia.com /usr/bin/amavisd[14182]: (14182-03) (!)ClamAV-clamd: Can't connect to UNIX socket /var/amavis/clamd: No such file or directory, retrying (2)
    Sep 16 10:03:14 xpmedia1.xpmedia.com /usr/bin/amavisd[14182]: (14182-03) (!)run_av (ClamAV-clamd, built-in i/f): Too many retries to talk to /var/amavis/clamd (Can't connect to UNIX socket /var/amavis/clamd: No such file or directory) at (eval 44) line 310.
    Sep 16 10:03:14 xpmedia1.xpmedia.com /usr/bin/amavisd[14182]: (14182-03) (!!)ClamAV-clamd av-scanner FAILED: CODE(0x800e94) Too many retries to talk to /var/amavis/clamd (Can't connect to UNIX socket /var/amavis/clamd: No such file or directory) at (eval 44) line 310. at (eval 44) line 511.
    Sep 16 10:03:14 xpmedia1.xpmedia.com /usr/bin/amavisd[14182]: (14182-03) (!!)WARN: all primary virus scanners failed, considering backups
    Sep 16 10:03:14 xpmedia1.xpmedia.com /usr/bin/amavisd[14182]: (14182-03) (!!)run_av (ClamAV-clamscan) FAILED - unexpected exit 50, output="LibClamAV Error: cli_loaddb(): No supported database files found in /private/var/clamav\nERROR: Not supported data format"
    Sep 16 10:03:14 xpmedia1.xpmedia.com /usr/bin/amavisd[14182]: (14182-03) (!!)ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 50, output="LibClamAV Error: cli_loaddb(): No supported database files found in /private/var/clamav\nERROR: Not supported data format" at (eval 44) line 511.
    Sep 16 10:03:14 xpmedia1.xpmedia.com /usr/bin/amavisd[14182]: (14182-03) (!!)TROUBLE in check_mail: virus_scan FAILED: virus_scan: ALL VIRUS SCANNERS FAILED: ClamAV-clamd av-scanner FAILED: CODE(0x800e94) Too many retries to talk to /var/amavis/clamd (Can't connect to UNIX socket /var/amavis/clamd: No such file or directory) at (eval 44) line 310. at (eval 44) line 511.; ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 50, output="LibClamAV Error: cli_loaddb(): No supported

    When I run the command like you said, I get a list of mirror servers. I also went to the servers in the freshclam.log that it says it can't reach and I can get to them through the web browser now problem. So I don't understand why it can't just download these definition files automatically and giving all these errors. But here is what I got when I ran dig:
    ; <<>> DiG 9.4.2-P2 <<>> database.clamav.net
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53599
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 7, AUTHORITY: 7, ADDITIONAL: 0
    ;; QUESTION SECTION:
    ;database.clamav.net. IN A
    ;; ANSWER SECTION:
    database.clamav.net. 60 IN CNAME db.local.clamav.net.
    db.local.clamav.net. 3055 IN CNAME db.us.rr.clamav.net.
    db.us.rr.clamav.net. 900 IN A 64.142.100.50
    db.us.rr.clamav.net. 900 IN A 65.120.238.5
    db.us.rr.clamav.net. 900 IN A 155.98.64.86
    db.us.rr.clamav.net. 900 IN A 199.184.215.2
    db.us.rr.clamav.net. 900 IN A 208.72.56.53
    ;; AUTHORITY SECTION:
    rr.clamav.net. 3057 IN NS ns2.clamav.net.
    rr.clamav.net. 3057 IN NS ns3.clamav.net.
    rr.clamav.net. 3057 IN NS ns4.clamav.net.
    rr.clamav.net. 3057 IN NS ns5.clamav.net.
    rr.clamav.net. 3057 IN NS ns6.clamav.net.
    rr.clamav.net. 3057 IN NS ns7.clamav.net.
    rr.clamav.net. 3057 IN NS ns1.clamav.net.
    ;; Query time: 264 msec
    ;; SERVER: 98.173.129.4#53(98.173.129.4)
    ;; WHEN: Tue Sep 16 13:25:26 2008
    ;; MSG SIZE rcvd: 289
    Also I downloaded the definition files manually and that didn't seem to fix it either. This is what I got in the freshclam.log file after I rebooted the server:
    Sep 16 13:19:20 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: starting. /usr/bin/amavisd at xpmedia1.xpmedia.com amavisd-new-2.5.1 (20070531), Unicode aware
    Sep 16 13:19:20 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Perl version 5.008008
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Net::Server: Group Not Defined. Defaulting to EGID '83 83'
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Net::Server: User Not Defined. Defaulting to EUID '83'
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Module Amavis::Conf 2.089
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Module Archive::Zip 1.16
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Module BerkeleyDB 0.29
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Module Compress::Zlib 1.42
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Module Convert::TNEF 0.17
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Module Convert::UUlib 1.06
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Module DBI 1.52
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Module DB_File 1.814
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Module Digest::MD5 2.36
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Module IO::Socket::INET6 2.51
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Module MIME::Entity 5.420
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Module MIME::Parser 5.420
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Module MIME::Tools 5.420
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Module Mail::Header 1.74
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Module Mail::Internet 1.74
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Module Mail::SPF::Query 1.999001
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Module Mail::SpamAssassin 3.002001
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Module Net::DNS 0.60
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Module Net::Server 0.87
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Module Time::HiRes 1.86
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Module URI 1.35
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Module Unix::Syslog 0.99
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Amavis::DB code loaded
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Amavis::Cache code loaded
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: SQL base code NOT loaded
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: SQL::Log code NOT loaded
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: SQL::Quarantine NOT loaded
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Lookup::SQL code NOT loaded
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Lookup::LDAP code NOT loaded
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: AM.PDP-in proto code loaded
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: SMTP-in proto code loaded
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Courier proto code NOT loaded
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: SMTP-out proto code loaded
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Pipe-out proto code NOT loaded
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: BSMTP-out proto code NOT loaded
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Local-out proto code loaded
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: OS_Fingerprint code NOT loaded
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: ANTI-VIRUS code loaded
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: ANTI-SPAM code loaded
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: ANTI-SPAM-SA code loaded
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Unpackers code loaded
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Found $file at /usr/bin/file
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: No $dspam, not using it
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: No $altermime, not using it
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Internal decoder for .mail
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Internal decoder for .asc
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Internal decoder for .uue
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Internal decoder for .hqx
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Internal decoder for .ync
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: No decoder for .F tried: unfreeze, freeze -d, melt, fcat
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Found decoder for .Z at /usr/bin/uncompress
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Found decoder for .gz at /usr/bin/gzip -d
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Found decoder for .bz2 at /usr/bin/bzip2 -d
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: No decoder for .lzo tried: lzop -d
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: No decoder for .rpm tried: rpm2cpio.pl, rpm2cpio
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Found decoder for .cpio at /bin/pax
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Found decoder for .tar at /bin/pax
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Found decoder for .deb at /usr/bin/ar
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Internal decoder for .zip
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: No decoder for .7z tried: 7zr, 7za, 7z
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: No decoder for .rar tried: rar, unrar
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: No decoder for .arj tried: arj, unarj
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: No decoder for .arc tried: nomarch, arc
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: No decoder for .zoo tried: zoo, unzoo
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: No decoder for .lha tried: lha
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: No decoder for .cab tried: cabextract
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: No decoder for .tnef tried: tnef
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Internal decoder for .tnef
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: No decoder for .exe tried: rar, unrar; lha; arj, unarj
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Using primary internal av scanner code for ClamAV-clamd
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
    Sep 16 13:19:21 xpmedia1.xpmedia.com /usr/bin/amavisd[94]: Creating db in /var/amavis/db/; BerkeleyDB 0.29, libdb 4.2
    Sep 16 13:20:52 xpmedia1.xpmedia.com /usr/bin/amavisd[250]: (00250-01) (!)ClamAV-clamd: Can't connect to UNIX socket /var/amavis/clamd: No such file or directory, retrying (2)
    Sep 16 13:20:58 xpmedia1.xpmedia.com /usr/bin/amavisd[250]: (00250-01) (!)run_av (ClamAV-clamd, built-in i/f): Too many retries to talk to /var/amavis/clamd (Can't connect to UNIX socket /var/amavis/clamd: No such file or directory) at (eval 44) line 310.
    Sep 16 13:20:58 xpmedia1.xpmedia.com /usr/bin/amavisd[250]: (00250-01) (!!)ClamAV-clamd av-scanner FAILED: CODE(0x800e94) Too many retries to talk to /var/amavis/clamd (Can't connect to UNIX socket /var/amavis/clamd: No such file or directory) at (eval 44) line 310. at (eval 44) line 511.
    Sep 16 13:20:58 xpmedia1.xpmedia.com /usr/bin/amavisd[250]: (00250-01) (!!)WARN: all primary virus scanners failed, considering backups
    Sep 16 13:21:04 xpmedia1.xpmedia.com /usr/bin/amavisd[250]: (00250-01) Passed CLEAN, [68.230.241.39] [72.201.252.36] <[email protected]> -> <[email protected]>, Message-ID: <48D01522.000001.00572@STRINGER>, mail_id: LsP5obq0mTkY, Hits: -1.167, size: 126192, queued_as: 206C24DA5FB, 13071 ms
    Sep 16 13:23:00 xpmedia1.xpmedia.com /usr/bin/amavisd[251]: (00251-01) (!)ClamAV-clamd: Can't connect to UNIX socket /var/amavis/clamd: No such file or directory, retrying (2)

  • Setting input fields to an empty string BIG PROBLEM

    Hi Rob, thanks for your rerply, It makes sense alright, but I am using 2 seperate input fields. I have discovered what is causing the problem .
    After the user types into the inputfield and moves on to a different frame, I have set the input field to an empty string and this is what is causing the problem.
    I have tried setting the input field to an empty string in a movie script and on individual sprites and the first right answer is not excepted.I have to type in the right answer twice to get get a right response. I am actually using three seperate input fields in total, each with a different name and behavior. Even If I use one input field I still have the same problem. Its driving me crazey. Any Ideas.
    Anne

    I believe that the FIM Service always does trims on string, so you may be out of luck.
    What is your scenario / what are you trying to accomplish by setting a space in an attribute? A space is not an empty string in my definition.
    Regards, Soren Granfeldt
    blog is at http://blog.goverco.com | facebook https://www.facebook.com/TheIdentityManagementExplorer | twitter at https://twitter.com/#!/MrGranfeldt

Maybe you are looking for

  • Brand new New IPad freezes all the time, on everything

    I bought a New IPad a little over a month ago, to replace an aged laptop for my wife. Unfortunately the New IPad freezes all the time, about every five minutes, sometimes sooner, sometimes later. It freezes on pretty much everything, Safari, Chrome,

  • HT1420 I can't find the "store menu" to authorize a computer

    I am trying ot authorize a computer.  Apple support states: Authorizing and deauthorizing a computer allows you to manage which computers can sync or use apps, audiobooks, books, music, movies, or other content you've purchased from the iTunes Store.

  • Finding the images used in my Forest Screensaver to use as a Desktop

    I guess the question is fairly self explanatory from the subject. Is it possibe for someone to tell me the location of the images used in the Forest Screensaver that comes with OSX so that I can use the images a desktop images, because I like them. I

  • How to use photo in iOS 7

    iOS 7 is so different that I am regretting upgrading my iPad. I lost all my videos. Album/photo/activity/shared work differently from the earlier version. And there is no help button. Frustrating! Please advise!

  • HUM 1.2 and Windows 2008 - Server

    Hello, it is possible to run HUM with Windows 2008-Server? Problem is: It runns always CWLMS 3.2 and the customer wantes to add HUM. The hardware is not the problem.