Previous DB Record Returned When Last Search Not Found

I have a problem that nobody seems to know about or perhaps I'm just not seeing. Anyway, I put together a simple SQL manager javabean and other than my current issue, it's worked great. Here is my problem:
SELECT * FROM site_mimetypes WHERE extension = 'PROPERTIES'
SELECT * FROM site_mimetypes WHERE extension = 'DOC'
SELECT * FROM site_mimetypes WHERE extension = 'NODICE'These queries run as they should at the db command-line:
- first query returns empty
- second query returns a record that matchs
- third query returns empty
Now, if I run this through the sql javabean, the third query returns the results of the second query. I've also tried using the sql "LIKE" command to no avail. This happens very consistantly. Whats funny though is if for example the extension I'm looking for doesn't exist at all in any form, meaning say I'm searching for the string "EXE", it will return properly as empty because there aren't any records that start with the letter "E". Now as I understood it, isn't the "=" operator supposed to find an exact match. It certainly works a 100 percent of the time during the first query and always when done from the db command-line. I'm using MySQL, Tomcat 5.0, JDK 1.5, Connector/J 3.0.... Below I'll post my sql javabean and below that, I'll post my simple JSP file that calls that javabean:
JAVABEAN:
package sql;
import java.sql.*;
import java.util.*;
import java.io.*;
public class SQLManager {
     private String SQL_URL = new String();
     private String SQL_USER = new String();
     private String SQL_PASS = new String();
     private static String SQL_DRIVER = new String();
     private String SQL_RESULT = new String();
     private String PROP_PATH = "C:\\Program Files\\Apache Software Foundation\\Tomcat 5.0\\webapps\\dam\\WEB-INF\\classes\\sql\\";
     private String PROP_FILE = "database.properties";
     public SQLManager() { }
     public String getResult() { return this.SQL_RESULT; }
     public void executeQuery(String statement, int column) throws SQLException {
          try {
                    retrieveProperties(PROP_PATH + PROP_FILE);
                  Class.forName(SQL_DRIVER);
                      Connection conn = DriverManager.getConnection(SQL_URL, SQL_USER, SQL_PASS);
                    Statement stat = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
                    ResultSet rs = stat.executeQuery(statement);
                    while(rs.next()) {
                         this.SQL_RESULT = rs.getString(column);
                    rs.close();
                    stat.close();
                    conn.close();          
          } catch(ClassNotFoundException ce) { }
            catch(SQLException se) { }
            catch(IOException ie) { }
     public void retrieveProperties(String filename) throws IOException {
          Properties props = new Properties();
          FileInputStream in = new FileInputStream(filename);
          props.load(in);
          in.close();
          this.SQL_DRIVER = props.getProperty("jdbc.drivers");
          this.SQL_URL = props.getProperty("jdbc.url");
          this.SQL_USER = props.getProperty("jdbc.username");
          this.SQL_PASS = props.getProperty("jdbc.password");
}JSP
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>JSP Test</title>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
</head>
<jsp:useBean class="sql.SQLManager" id="sql" scope="page">
</jsp:useBean>
<body>
<%
sql.executeQuery("SELECT * FROM site_mimetypes WHERE extension = 'VOODOO';", 2);
sql.executeQuery("SELECT * FROM site_mimetypes WHERE extension = 'DOC';", 2);
sql.executeQuery("SELECT * FROM site_mimetypes WHERE extension = 'FILE';", 2);
%>
<%= sql.getResult() %>
</body>
</html>

My guess is that the third query is throwing an exception and the previous result set does not get cleared. To test this theory simply change the execution order of the queries. Also I'd rewrite the executeQuery() method as follows as it guarantees resource cleanup in the event of an exception and will display the exception to the console if one does get triggered:
public void executeQuery(String statement, int column) throws SQLException
  try
    retrieveProperties(PROP_PATH + PROP_FILE);
    Class.forName(SQL_DRIVER);
    Connection conn = DriverManager.getConnection(SQL_URL, SQL_USER, SQL_PASS);
    Statement stat = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    ResultSet rs = stat.executeQuery(statement);
    while(rs.next())
      this.SQL_RESULT = rs.getString(column);
  catch(Throwable th)
    th.printStackTrace();
  finally
    try
      if (rs != null)
       rs.close();
    catch(SQLException sqe)
    try
      if (stat != null)
       stat.close();
    catch(SQLException sqe)
    try
      if (conn != null)
       conn.close();
    catch(SQLException sqe)
}

Similar Messages

  • While running dcdiag /test:dns getting Warning: The AAAA record for this DC was not found

    DCDIAG /test:dns result is pested here.
    C:\Users\administrator.SUD>dcdiag /test:dns
    Directory Server Diagnosis
    Performing initial setup:
       Trying to find home server...
       Home Server = MUM-ADS-01
       * Identified AD Forest.
       Done gathering initial info.
    Doing initial required tests
       Testing server: Default-First-Site-Name\MUM-ADS-01
          Starting test: Connectivity
             ......................... MUM-ADS-01 passed test Connectivity
    Doing primary tests
       Testing server: Default-First-Site-Name\MUM-ADS-01
          Starting test: DNS
             DNS Tests are running and not hung. Please wait a few minutes...
             ......................... MUM-ADS-01 passed test DNS
       Running partition tests on : ForestDnsZones
       Running partition tests on : DomainDnsZones
       Running partition tests on : Schema
       Running partition tests on : Configuration
       Running partition tests on : sud
       Running enterprise tests on : sud.in
          Starting test: DNS
             Test results for domain controllers:
                DC: MUM-ADS-01.sud.in
                Domain: sud.in
                   TEST: Basic (Basc)
                      Warning: The AAAA record for this DC was not found
                   TEST: Forwarders/Root hints (Forw)
                      Error: Root hints list has invalid root hint server:
                      a.root-servers.net. (198.41.0.4)
                      Error: Root hints list has invalid root hint server:
                      b.root-servers.net. (128.9.0.107)
                      Error: Root hints list has invalid root hint server:
                      c.root-servers.net. (192.33.4.12)
                      Error: Root hints list has invalid root hint server:
                      d.root-servers.net. (128.8.10.90)
                      Error: Root hints list has invalid root hint server:
                      e.root-servers.net. (192.203.230.10)
                      Error: Root hints list has invalid root hint server:
                      f.root-servers.net. (192.5.5.241)
                      Error: Root hints list has invalid root hint server:
                      g.root-servers.net. (192.112.36.4)
                      Error: Root hints list has invalid root hint server:
                      h.root-servers.net. (128.63.2.53)
                      Error: Root hints list has invalid root hint server:
                      i.root-servers.net. (192.36.148.17)
                      Error: Root hints list has invalid root hint server:
                      j.root-servers.net. (192.58.128.30)
                      Error: Root hints list has invalid root hint server:
                      k.root-servers.net. (193.0.14.129)
                      Error: Root hints list has invalid root hint server:
                      l.root-servers.net. (198.32.64.12)
                      Error: Root hints list has invalid root hint server:
                      m.root-servers.net. (202.12.27.33)
                   TEST: Delegations (Del)
                      Error: DNS server: sud-ad.sud.in. IP:<Unavailable>
                      [Missing glue A record]
                   TEST: Records registration (RReg)
                      Network Adapter
                      [00000006] Intel(R) PRO/1000 MT Network Connection:
                         Warning:
                         Missing AAAA record at DNS server 10.1.6.132:
                         MUM-ADS-01.sud.in
                         Warning:
                         Missing AAAA record at DNS server 10.1.6.132:
                         gc._msdcs.sud.in
                         Warning:
                         Missing AAAA record at DNS server 10.1.6.133:
                         MUM-ADS-01.sud.in
                         Warning:
                         Missing AAAA record at DNS server 10.1.6.133:
                         gc._msdcs.sud.in
                   Warning: Record Registrations not found in some network adapters
             Summary of test results for DNS servers used by the above domain
             controllers:
                DNS server: 128.63.2.53 (h.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
    S server 128.63.2.53
                DNS server: 128.8.10.90 (d.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
    S server 128.8.10.90
                DNS server: 128.9.0.107 (b.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
    S server 128.9.0.107
                DNS server: 192.112.36.4 (g.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
    S server 192.112.36.4
                DNS server: 192.203.230.10 (e.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
    S server 192.203.230.10
                DNS server: 192.33.4.12 (c.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
    S server 192.33.4.12
                DNS server: 192.36.148.17 (i.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
    S server 192.36.148.17
                DNS server: 192.5.5.241 (f.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
    S server 192.5.5.241
                DNS server: 192.58.128.30 (j.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
    S server 192.58.128.30
                DNS server: 193.0.14.129 (k.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
    S server 193.0.14.129
                DNS server: 198.32.64.12 (l.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
    S server 198.32.64.12
                DNS server: 198.41.0.4 (a.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
    S server 198.41.0.4
                DNS server: 202.12.27.33 (m.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DN
    S server 202.12.27.33
             Summary of DNS test results:
    Auth Basc Forw Del  Dyn  RReg Ext
                Domain: sud.in
                   MUM-ADS-01                   PASS WARN FAIL FAIL PASS WARN n/a
             ......................... sud.in failed test DNS

    Hi Meinolf,
    Please find the IP Details as well as DNS test results.
    C:\Users\Administrator.SCI>dcdiag /test:dns
    Directory Server Diagnosis
    Performing initial setup:
       Trying to find home server...
       Home Server = MDCDCDNS
       * Identified AD Forest.
       Done gathering initial info.
    Doing initial required tests
       Testing server: MDC-Powai\MDCDCDNS
          Starting test: Connectivity
             ......................... MDCDCDNS passed test Connectivity
    Doing primary tests
       Testing server: MDC-Powai\MDCDCDNS
          Starting test: DNS
             DNS Tests are running and not hung. Please wait a few minutes...
     ERROR: NO DNS servers for IPV6 stack was found
             ......................... MDCDCDNS passed test DNS
       Running partition tests on : ForestDnsZones
       Running partition tests on : DomainDnsZones
       Running partition tests on : Schema
       Running partition tests on : Configuration
       Running partition tests on : sci
       Running enterprise tests on : sci.com
          Starting test: DNS
             Test results for domain controllers:
                DC: MDCDCDNS.sci.com
                Domain: sci.com
                   TEST: Basic (Basc)
                      Warning: The AAAA record for this DC was not found
                   TEST: Records registration (RReg)
                      Network Adapter
                      [00000009] Microsoft Virtual Network Switch Adapter:
                         Warning:
                         Missing AAAA record at DNS server 10.64.7.32:
                         MDCDCDNS.sci.com
                         Warning:
                         Missing AAAA record at DNS server 10.64.7.32:
                         gc._msdcs.sci.com
                         Warning:
                         Missing AAAA record at DNS server 10.64.7.35:
                         MDCDCDNS.sci.com
                         Warning:
                         Missing AAAA record at DNS server 10.64.7.35:
                         gc._msdcs.sci.com
                         Warning:
                         Missing AAAA record at DNS server 10.20.33.72:
                         MDCDCDNS.sci.com
                         Warning:
                         Missing AAAA record at DNS server 10.20.33.72:
                         gc._msdcs.sci.com
                         Warning:
                         Missing AAAA record at DNS server 10.20.33.71:
                         MDCDCDNS.sci.com
                         Warning:
                         Missing AAAA record at DNS server 10.20.33.71:
                         gc._msdcs.sci.com
                   Warning: Record Registrations not found in some network adapters
                   MDCDCDNS                     PASS WARN PASS PASS PASS WARN n/a
             ......................... sci.com passed test DNS
    C:\Users\Administrator.SCI>ipconfig /all
    Windows IP Configuration
       Host Name . . . . . . . . . . . . : MDCDCDNS
       Primary Dns Suffix  . . . . . . . : sci.com
       Node Type . . . . . . . . . . . . : Hybrid
       IP Routing Enabled. . . . . . . . : No
       WINS Proxy Enabled. . . . . . . . : No
       DNS Suffix Search List. . . . . . : sci.com
    Ethernet adapter Local Area Connection 7:
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : External Internal Virtual Network
       Physical Address. . . . . . . . . : 00-14-4F-CA-83-AC
       DHCP Enabled. . . . . . . . . . . : No
       Autoconfiguration Enabled . . . . : Yes
       IPv4 Address. . . . . . . . . . . : 10.64.7.32(Preferred)
       Subnet Mask . . . . . . . . . . . : 255.255.255.0
       Default Gateway . . . . . . . . . : 10.64.7.1
       DNS Servers . . . . . . . . . . . : 10.64.7.32
                                           10.64.7.35
                                           10.20.33.72
                                           10.20.33.71
       NetBIOS over Tcpip. . . . . . . . : Disabled
    Ethernet adapter Local Area Connection 6:
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : TEAM : Team #1
       Physical Address. . . . . . . . . : 00-14-4F-CA-83-AC
       DHCP Enabled. . . . . . . . . . . : Yes
       Autoconfiguration Enabled . . . . : Yes
       Autoconfiguration IPv4 Address. . : 169.254.105.163(Preferred)
       Subnet Mask . . . . . . . . . . . : 255.255.0.0
       Default Gateway . . . . . . . . . :
       NetBIOS over Tcpip. . . . . . . . : Enabled
    Tunnel adapter Local Area Connection* 8:
       Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : isatap.{2D5A4A27-298F-48E5-A376-EA886EF1E
    42A}
       Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
       DHCP Enabled. . . . . . . . . . . : No
       Autoconfiguration Enabled . . . . : Yes
    Tunnel adapter Local Area Connection* 9:
       Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : isatap.{14FA7CD4-8B69-4C86-A58B-056793B7D
    901}
       Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
       DHCP Enabled. . . . . . . . . . . : No
       Autoconfiguration Enabled . . . . : Yes
    Please check and revert back for any queries..
    Thanks...
    Deva Self-trust is the first secret of success.

  • The Remote server returned an error (404) not found in SharePoint Client Context code

    Hi All,
    I am getting an error with below line.
    "The Remote server returned an error (404) not found"
    It occurs when I am trying to fetch some data from SharePoint 2010 List.
    For eg. I have a webpart in which i am showing some content on page load and that content is coming from a List.
    But I am getting error.
    Screen shot for your reference.

     Here is my code:
       ClientContext context1 = new ClientContext("site url");
                context1.AuthenticationMode = ClientAuthenticationMode.Anonymous;
                List list1 = context1.Web.Lists.GetByTitle("List1");
                CamlQuery query1 = new CamlQuery();
                query1.ViewXml = @"<Query><Query><OrderBy><FieldRef Name='Title' Ascending='True' /></OrderBy>      
       </Query></Query>";
                Microsoft.SharePoint.Client.ListItemCollection listCollection1 = list1.GetItems(query1);
                context1.Load(listCollection1);
                context1.ExecuteQuery();  
               Even i removed the line no. 2 from above code and placed below but still same issue.
               context1.Credentials = new NetworkCredential("user", "password", "domain");
    Hope someone will solve my issue here.

  • Application returns a "404 Page not found" error

    Application returns a "404 Page not found" error when attempting to use any of the Download links. What is the exact problem?
    Can anybody tell me how to resolve this problem?
    David

    http://nnnnnn.nnn.nnnnn:99/pls/apex/f?p=88:52:2181500142828824:FLOW_EXCEL_OUTPUT_R35183980327530985_en-us
    It looks like this.
    Thank you.
    David
    Edited by: user628655 on Sep 30, 2009 6:37 PM

  • AD DS Config problem (The AAAA record for this DC was not found) Cannot connect to ADUC

    I am trying to figure out what is wrong with my AD DS Config. I ran dcdiag. The results were:
    C:\Users\Administrator>dcdiag /test:dns
    Directory Server Diagnosis
    Performing initial setup:
       Trying to find home server...
       Home Server = R210_1_2K12
       * Identified AD Forest.
       Done gathering initial info.
    Doing initial required tests
       Testing server: Default-First-Site-Name\R210_1_2K12
          Starting test: Connectivity
             ......................... R210_1_2K12 passed test Connectivity
    Doing primary tests
       Testing server: Default-First-Site-Name\R210_1_2K12
          Starting test: DNS
             DNS Tests are running and not hung. Please wait a few minutes...
             ......................... R210_1_2K12 passed test DNS
       Running partition tests on : Schema
       Running partition tests on : Configuration
       Running partition tests on : bcas-tbf
       Running enterprise tests on : bcas-tbf.local
          Starting test: DNS
             Test results for domain controllers:
                DC: R210_1_2K12.bcas-tbf.local
                Domain: bcas-tbf.local
                   TEST: Basic (Basc)
                      Warning: The AAAA record for this DC was not found
                   TEST: Records registration (RReg)
                      Network Adapter [00000017] Hyper-V Virtual Ethernet Adapter:
                         Warning:
                         Missing AAAA record at DNS server 172.16.0.202:
                         R210_1_2K12.bcas-tbf.local
                         Warning:
                         Missing AAAA record at DNS server 172.16.0.202:
                         gc._msdcs.bcas-tbf.local
                         Warning:
                         Missing AAAA record at DNS server ::1:
                         R210_1_2K12.bcas-tbf.local
                         Warning:
                         Missing AAAA record at DNS server ::1:
                         gc._msdcs.bcas-tbf.local
                   Warning: Record Registrations not found in some network adapters
                   R210_1_2K12                  PASS WARN PASS PASS PASS WARN n/a
             ......................... bcas-tbf.local passed test DNS
    IPCONFIG info:
    C:\Users\Administrator>ipconfig /all
    Windows IP Configuration
       Host Name . . . . . . . . . . . . : R210_1_2K12
       Primary Dns Suffix  . . . . . . . : bcas-tbf.local
       Node Type . . . . . . . . . . . . : Hybrid
       IP Routing Enabled. . . . . . . . : No
       WINS Proxy Enabled. . . . . . . . : No
       DNS Suffix Search List. . . . . . : bcas-tbf.local
    Ethernet adapter vEthernet (Broadcom BCM5716C NetXtreme II GigE (NDIS VBD Client
    ) #36 - Virtual Switch):
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : Hyper-V Virtual Ethernet Adapter #2
       Physical Address. . . . . . . . . : 00-26-B9-7E-81-74
       DHCP Enabled. . . . . . . . . . . : No
       Autoconfiguration Enabled . . . . : Yes
       Link-local IPv6 Address . . . . . : fe80::bda9:1a28:974a:5fc3%19(Preferred)
       IPv4 Address. . . . . . . . . . . : 172.16.0.202(Preferred)
       Subnet Mask . . . . . . . . . . . : 255.255.255.0
       Default Gateway . . . . . . . . . : 172.16.0.1
       DHCPv6 IAID . . . . . . . . . . . : 335554233
       DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1A-0A-52-45-00-26-B9-7E-81-75
       DNS Servers . . . . . . . . . . . : ::1
                                           172.16.0.202
       NetBIOS over Tcpip. . . . . . . . : Enabled
    Tunnel adapter isatap.{AE70C63E-0A8A-4461-A789-8E4CD99CEA46}:
       Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : Microsoft ISATAP Adapter
       Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
       DHCP Enabled. . . . . . . . . . . : No
       Autoconfiguration Enabled . . . . : Yes
    Tunnel adapter Local Area Connection* 11:
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
       Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
       DHCP Enabled. . . . . . . . . . . : No
       Autoconfiguration Enabled . . . . : Yes
       IPv6 Address. . . . . . . . . . . : 2001:0:9d38:90d7:1cf5:1d4f:53ef:ff35(Pref
    erred)
       Link-local IPv6 Address . . . . . : fe80::1cf5:1d4f:53ef:ff35%15(Preferred)
       Default Gateway . . . . . . . . . : ::
       NetBIOS over Tcpip. . . . . . . . : Disabled
    I'm unsure of what the problem is or what to do next.  Thank You.

    Disable IPv6 according to Pauls blog:
    Disabling
    IPv6 on Windows 2008
    After disabling run:
    ipconfig /flushdns
    ipconfig /registerdns
    restart the netlogon service or reboot.
    For co-existence from IPv4 and IPv6 see: 
    Configuring DNS for IPv6/IPv4
    Coexistence
    IPv6
    for the Windows Administrator: How Name Resolution Works in a Dual IPv4/IPv6 Scenario
    IPv6 for the Windows Administrator: IPv6 Fundamentals
    Hopefully, that fixes your issue.  Added some links to read in cause you want to.
    If it answered your question, remember to “Mark as Answer”.
    If you found this post helpful, please “Vote as Helpful”.
    Postings are provided “AS IS” with no warranties, and confers no rights.
    Active Directory: Ultimate Reading Collection

  • Record/drive partition "jt machine" not found

    When I click the record button, I get the following error message: record/drive partition "jt machine" not found
    MacBook Pro, Powermac G4 dual   Mac OS X (10.4.7)  

    Hi,
    When I click the record button, I get the following error message: record/drive partition "jt machine" not found
    Is "jt machine" one of your drives/partitions?
    WH

  • The remote server returned an error: (404) Not Found.

    Hi All
    Now I try to deploy my SAP Portal Project it gives following error message "The remote server returned an error: (404) Not Found.". What is missing?
    Regards

    Hi,
    In order to check if those seetings are ok, do following:
    Open internet explorer (or another) browser and go to
    http://localhost:50000/irj
    You should get the Portal homepage with login screen.
    If you don't - then you have a problem with your local portal ( may be it is not running ).
    If you do - Login with username: administrator and
    password: abcd1234
    If you don't succeed to login, then you have a problem with your user( may be it does not exist ).
    Regards,
    Rima.

  • What should I do when a 404 Not Found nginx blocks me from search engines such as Google, Bing, Yahoo, etc.?

    Before I started using Firefox, my default browser was Internet Explorer. That was the start of my problems with "404 Not Found nginx". I can no longer access Google. That was when I converted to using Firefox, in hopes that this problem would go away. It didn't. Again if I typed in "www.google.com" in the URL box, the nearly blank page with "404 Not Found nginx" would show up. I decided to just stick with Firefox but just use "Bing" as my default search engine. Only about a week later the same problem occurred with Bing. I then tried Yahoo, but there was no luck with that either. I currently do not have a search engine to use. Please help.

    This helps http://en.kioskea.net/faq/15289-google-nginx-404-error
    I had the same problem for 1 month. Finally I found the solution.

  • Zero records returned in doc search using  ctxsys.context with datastore COMMON_DIR

    I do this and get 0 records returned - help:
    begin
    ctx_ddl.create_preference('COMMON_DIR','FILE_DATASTORE');
    ctx_ddl.set_attribute('COMMON_DIR','PATH','/mydocs');
    end;
    create table mytable(id number primary key,
    docs varchar2(2000))TABLESPACE USERS;
    insert into mytable values(111555,'first.txt');
    commit;
    -- check that the document "first" exist
    -- and it has the word "design"
    ed \mydocs\first.txt
    create index myindex on mytable(docs)
    indextype is ctxsys.context
    parameters ('datastore COMMON_DIR');
    select id from mytable where contains(docs,'design')>0;

    Sorry use this:
    select * from CTX_USER_INDEX_ERRORS;
    Am I replying in the right place??
    This is my first time using this thing... Yes, but there is also a special Oracle Text forum, please use
    this the next time.
    Thomas

  • Any way to display a message when Flash is not found on the iPad?

    Apple is obviously rejecting Flash to protect it's 'App' revenue.  I've  been on Android phones that run Flash and display all my content  perfectly smooth.  It can be quite frustrating how they are trying to  bury it when I still have yet to see HTML5 replicate the type of  interactive content Flash is capable of producing. 
    Is there any way to display a message on the iPad when the Flash player is not found?
    I'd like it to says something along the lines of:
    "Unfortunately the Apple iPad does not support the Flash player  because their business interests do not want it taking away from their  App revenue.
    Did you know that the Dell Streak, HTC Flyer, Blackberry Playbook,  Motorola Xoom, Samsung Galaxy Tab, Toshiba Thrive, and HP Touchpad all  support the Flash player?"
    My HTML code looks something like this...
    <html>
    <head>
    <title>My Page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body bgcolor="#ECECEC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <body onresize="setFlashSize()">
    <div id="flashid" style="width:100%; height:100%;">
    <script type="text/javascript" language="JavaScript">
    function setFlashSize(){
    var viewportheight = document.body.clientHeight;
    var viewportwidth = document.body.clientWidth;
    var mydiv = document.getElementById("flashid");
    var styleheight = parseInt(mydiv.style.height);
    var stylewidth = parseInt(mydiv.style.width);
    if (viewportwidth<880){
    document.getElementById("flashid").style.width = 880+"px"; }
    else {
    document.getElementById("flashid").style.width = 100+"%";}
    if (viewportheight<760){
    document.getElementById("flashid").style.height = 760+"px"; }
    else {
    document.getElementById("flashid").style.height = 100+"%";}
    setFlashSize();
    document.write('<object data="index1.swf" width="100%" height="100%" type="application/x-shockwave-flash">');
    document.write('<param name="movie" value="index1.swf" />');                      
    document.write('<param name="allowScriptAccess" value="always" />');       
    document.write('</object>');
    </script>
    <noscript>Javascript must be enabled to view Flash movie</noscript>
    </div>
    </body>
    </html>

    Use swfobject for Flash detection and you can provide all kinds of alternate content... simple text, images, links, .js slideshow, a mov or mp4 video just for the iPhone... ANYTHING this is regular HTML. Your imagination is the only limit.
    And YES, HTML5 is a far cry from replicating Flash... so give them the best of both worlds.
    http://code.google.com/p/swfobject/
    Review this article which deals with Flash and SEO for more ideas:
    If you think that Flash is somehow bad for SEO, it's time to dispell that MYTH!
    If fact, in some circumstances I'll use Flash INSTEAD of just HTML because then I'll have better SEO than with just HTML alone.
    http://www.worldbarefootcenter.com/
    The link to World Barefoot Center in the above post is just one example. View the source code and you see a couple paragraphs of text along with regular HTML links.... but what displays is the Flash version of the image and Flash links.
    The client provided the artwork for the page... and that's what they wanted to use a .jpg image. Well yes, that could be done in HTML but it would be virtually invisible to Google. So Instead I converted the image into a Flash .swf and used swfobject to display the Flash. swfobject allows you to create alternate content inside the <div> which also holds the Flash .swf, then when the page is loaded it detects if the browser has the Flash pluggin. If it does, it displays just the Flash content, if not, it displays the alternate content. Since almost everyone has the Flash pluggin, for most people the Flash version of the <div> will display.
    The alternate content for that <div> can be any regular HTML text, images, media player, links, etc., anything that you would use if you were not using the Flash. Now the best part is that the alternate content can be "over the top" as far as optimizing for SEO, since it will not be seen by most viewers.
    Here's another example of SEO with Flash.. again, the page is just a single image provided by the client:
    http://www.ksowetsuits.com/
    View the source code. The alt content is paragraph after paragraph of information about the site, including lists and links. If it was just the HTML, it might be kind of a boring Home page. But for SEO I can go "over the top" in promoting the site, since most viewers will never see that part... but it's all indexed by search engines. The end result is BETTER SEO using Flash than just HTML.
    On another Web site, a Flash video is displayed, the alt content is the complete text narration of the video. Now how many people would take the time to read that if they could just watch the video instead?? again, better SEO with Flash than without. In fact in one case we had first page search result from that video narration within 4 hours of posting the page.
    On still another site with a Flash video, the alt content is another video, but a .mov version, which will, in effect play Flash video on the iPhone (not possible you say??). Well since the iPhone does not have Flash pluggin, it simply displays the .mov version of the video, while everyione else sees the Flash version.
    So anyway, if Flash is a part of your Web development, you should look into using swfobject and alternate content.
    http://code.google.com/p/swfobject/
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com
    Adninjastrator

  • Error Handling when File/URL not found

    I am paging through a list of items in a datagrid and calling
    a URL (actually a local file) based upon which item in the grid was
    clicked. I'd like to throw an error if the file does not exist, but
    I can't figure out how. Can some one give me a clue? The docs on
    this subject are confusing to me. Here is the code:
    //add the search function for when the button is pressed
    import fl.controls.DataGrid;
    import fl.data.DataProvider;
    import fl.events.ListEvent;
    import flash.display.Sprite;
    getAcrobat.addEventListener(MouseEvent.CLICK,acroReader);
    backButton.addEventListener(MouseEvent.CLICK,goBack);
    litGrid.addEventListener(ListEvent.ITEM_CLICK,showPDF);
    function acroReader(e:MouseEvent) {
    var urlAcro:String = "
    http://www.adobe.com/products/acrobat/readstep2.html";
    var request:URLRequest = new URLRequest(urlAcro);
    try {
    navigateToURL(request, '_blank');// second argument is
    target
    } catch (e:Error) {
    trace("Page was not found!");
    function goBack(e:MouseEvent) {
    gotoAndPlay(1,"Scene 1");
    var XMLLiterature:XML = new XML();
    var XMLLit:URLRequest = new URLRequest("literature.xml");
    var XMLLoad:URLLoader = new URLLoader(XMLLit);
    var urlArray:Array = new Array();
    var theSelection:int = 0;
    XMLLoad.addEventListener(Event.COMPLETE,loadLit);
    function loadLit(e:Event):void {
    XMLLiterature = new XML(e.target.data);
    for each (var item in XMLLiterature.lit) {
    var litTitle = item.litTitle;
    var url = item.fileName;
    //var fileName = item.fileName;
    litGrid.addItem({AvailableLiterature:litTitle});
    //urlArray.push({Title:litTitle,url:url});
    function showPDF(e:ListEvent):void {
    var theSelection = e.rowIndex;
    var theRequest =
    "pdf/"+XMLLiterature.lit.fileName[theSelection];
    var theLitRequest:URLRequest = new URLRequest(theRequest);
    try {
    navigateToURL(theLitRequest, '_blank');// second argument is
    target
    } catch (err:Error) {
    trace("Page was not found!");
    stop();

    When you setup your URLLoader, also listen for an
    IOErrorEvent, which will fire if the file does not exist. Here is
    an example:
    package {
    import flash.display.Sprite;
    import flash.events.IOErrorEvent;
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    public class IOErrorEventExample extends Sprite {
    public function IOErrorEventExample() {
    var loader:URLLoader = new URLLoader();
    loader.addEventListener(IOErrorEvent.IO_ERROR,
    ioErrorHandler);
    var request:URLRequest = new URLRequest("MissingFile.xml");
    loader.load(request);
    private function ioErrorHandler(event:IOErrorEvent):void {
    trace("ioErrorHandler: " + event);
    }

  • Preverify doesn't work. Always return error 2 "File not found"

    Hello,
    I have this configuration:
    - Latest JDK and JRE
    - Ubuntu Linux 7.10 64 bits
    - NetBeans 6RC2 Mobility Pack
    When I try to build a project, NetBeans returns:
    Preverifying 6 file(s) into /home/alfredbaudisch/NetBeansProjects/GameBuilderDemo2/build/preverified directory. 
    java.io.IOException: Cannot run program "/home/alfredbaudisch/Desenvolvimento/Utils/WTK2.5.2/bin/preverify": java.io.IOException: error=2, File not found
    Then I downloaded WTK 2.5.2 by myself and tried to build it using the toolbar:
    Creating project "GameBuilderDemo2" 
    Place Java source files in "/home/alfredbaudisch/j2mewtk/2.5.2/apps/GameBuilderDemo2/src" 
    Place application resource files in "/home/alfredbaudisch/j2mewtk/2.5.2/apps/GameBuilderDemo2/res" 
    Place application library files in "/home/alfredbaudisch/j2mewtk/2.5.2/apps/GameBuilderDemo2/lib" 
    Settings updated 
    Project settings saved 
    Building "GameBuilderDemo2" 
    java.io.IOException: Cannot run program "/home/alfredbaudisch/Desenvolvimento/Utils/WTK2.5.2/bin/preverify": java.io.IOException: error=2, File not found 
    Build failed  Any suggestion?
    Thanks.
    Edited by: AlfredBaudisch on Nov 25, 2007 1:36 PM

    The problem was that WTK was not accepting JRE 64-bits, then I installed JRE 32-bits and set up WTK to look for it.
    I wrote an article about the platform Ubuntu + NetBeans 6:
    http://mobiledeveloper.auriummobile.com/index.php/2007/11/25/perfect-java-development-platform-with-ubuntu-710-and-netbeans-6/
    Edited by: AlfredBaudisch on Nov 25, 2007 6:47 PM

  • Message when price is not found

    Hi guys,
    I am a SD student, when creating an invoice if there is not a pricing procedure in place I got a warning message, but if a pricing procedure is in place but there is not a price for the material, the system doesnu2019t display any warning, the value of the invoice is zero and still let me save the invoice, what I want is to display the message u201C Price for material XXXX not found, invoice canu2019t be saved u201C and not let the user save the invoice.
    I would really appreciated any help
    Thanks

    Before posting message in the forum, please search the forum first. If you don't find details, then you can post. For example, for your query refer the link Pricing warning message The other method is make the condition type as mandatory in the pricing procedure in t.code V/08.
    Regards,

  • Can I display a message when Flash is not found on the iPad?

    Apple is obviously rejecting Flash to protect it's 'App' revenue.  I've  been on Android phones that run Flash and display all my content  perfectly smooth.  It can be quite frustrating how they are trying to  bury it when I still have yet to see HTML5 replicate the type of  interactive content Flash is capable of producing. 
    Is there any way to display a message on the iPad when the Flash player is not found?
    I'd like it to says something along the lines of:
    "Unfortunately the Apple iPad does not support the Flash player  because their business interests do not want it taking away from their  App revenue.
    Did you know that the Dell Streak, HTC Flyer, Blackberry Playbook,  Motorola Xoom, Samsung Galaxy Tab, Toshiba Thrive, and HP Touchpad all  support the Flash player?"
    My HTML code looks something like this...
    <html>
    <head>
    <title>My Page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body bgcolor="#ECECEC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <body onresize="setFlashSize()">
    <div id="flashid" style="width:100%; height:100%;">
    <script type="text/javascript" language="JavaScript">
    function setFlashSize(){
    var viewportheight = document.body.clientHeight;
    var viewportwidth = document.body.clientWidth;
    var mydiv = document.getElementById("flashid");
    var styleheight = parseInt(mydiv.style.height);
    var stylewidth = parseInt(mydiv.style.width);
    if (viewportwidth<880){
    document.getElementById("flashid").style.width = 880+"px"; }
    else {
    document.getElementById("flashid").style.width = 100+"%";}
    if (viewportheight<760){
    document.getElementById("flashid").style.height = 760+"px"; }
    else {
    document.getElementById("flashid").style.height = 100+"%";}
    setFlashSize();
    document.write('<object data="index1.swf" width="100%" height="100%" type="application/x-shockwave-flash">');
    document.write('<param name="movie" value="index1.swf" />');                      
    document.write('<param name="allowScriptAccess" value="always" />');       
    document.write('</object>');
    </script>
    <noscript>Javascript must be enabled to view Flash movie</noscript>
    </div>
    </body>
    </html>

    You can parse out the userAgent property of browser. Here's an article that will point you in the right direction: http://www.askdavetaylor.com/detect_apple_iphone_user_web_site_server.html

  • Error message when hyperlink page not found

    I have setup hyperlink for one of the field. I would like to display error message when hyperlink page is not exists. Currently it displays standard page not found error.
    Message was edited by:
    user448086

    This sometimes is the result of firewall software protecting you from changed applications. Or it might be something else. Can you review this article and see whether it helps: [[Firefox can't load websites but other browsers can]].

Maybe you are looking for

  • Print version System Failure: Bean SALV_WD_EXPORT_PDF not found on host

    Hi, I have created a ALV report in ABAP Webdynpro. When i try to print the ALV Report it gives Communication failure : Print version System Failure: Bean SALV_WD_EXPORT_PDF not found on host. I belive i need to install Usage Type BI Java. Can someone

  • ITunes match wont locate my music?

    Ive had iTunes match for a while now. today i decided to tidy up my macbook and delete all my music (as its in the cloud). so when i done this i went into itunes and most of my music has a little locate icon next to it i tried to play it and i asked

  • I Tunes Store wont open as it tells me Safari needs updating....?

    Hey guys Im running an i Mac - Version 10.6 and have just installed itunes version 9 Looks good as apple stuff always does! However, when i try to open the itunes music store - i get a message saying that i need Safari version 4.0.3 to be installed a

  • Alias Field in Lync 2013

    Hello In Lync 2010, there used to be a field called Alias (which is visible on the Outlook Contact Card as well). We were able to store the Standard ID (SID) which is kind of a Unique number for every employee in the org. Is there a way for us to mak

  • Common lookup for datasource name in ejb-jar.xml for all EJB's??

    I used <env-entry>...</env-entry> in ejb-jar.xml ...but that does not allow me to look the same entry in another EJB ...what is the right place to keep and look for such a information ? EJBing recently !! Thanks Ajay