Examples of LogAlert


Examples of org.gudy.azureus2.core3.logging.LogAlert

        }catch( Throwable e ){
       
          Debug.printStackTrace( e );
         
          Logger.log(
            new LogAlert(
              true,
              LogAlert.AT_WARNING,
              "Socks proxy " + sock.getName() + " check failed: " + Debug.getNestedExceptionMessage( e )));
        }
      }
     
      NetworkAdminHTTPProxy http_proxy = getHTTPProxy();
     
      if ( http_proxy != null ){
     
        try{

          http_proxy.getDetails();
         
        }catch( Throwable e ){
         
          Debug.printStackTrace( e );
         
          Logger.log(
            new LogAlert(
              true,
              LogAlert.AT_WARNING,
              "HTTP proxy " + http_proxy.getName() + " check failed: " + Debug.getNestedExceptionMessage( e )));
        }
      }
View Full Code Here

Examples of org.gudy.azureus2.core3.logging.LogAlert

                  Debug.out(new Date() + ": listen port on [" + inet_address + ": " + tcp_listen_port + "] seems CLOSED [" + listenFailCounts[i] + "x]");
                  if (listenFailCounts[i] > 4)
                  {
                    String error = t.getMessage() == null ? "<null>" : t.getMessage();
                    String msg = "Listen server socket on [" + inet_address + ": " + tcp_listen_port + "] does not appear to be accepting inbound connections.\n[" + error + "]\nAuto-repairing listen service....\n";
                    Logger.log(new LogAlert(LogAlert.UNREPEATABLE, LogAlert.AT_WARNING, msg));
                    restart();
                    listenFailCounts[i] = 0;
                  }
                }
              }
View Full Code Here

Examples of org.gudy.azureus2.core3.logging.LogAlert

     
      if (tcp_listen_port < 0 || tcp_listen_port > 65535 || tcp_listen_port == 6880)
      {
        String msg = "Invalid incoming TCP listen port configured, " + tcp_listen_port + ". Port reset to default. Please check your config!";
        Debug.out(msg);
        Logger.log(new LogAlert(LogAlert.UNREPEATABLE, LogAlert.AT_ERROR, msg));
        tcp_listen_port = RandomUtils.generateRandomNetworkListenPort();
        COConfigurationManager.setParameter(port_config_key, tcp_listen_port);
      }
     
      if (COConfigurationManager.getBooleanParameter(port_enable_config_key))
      {
        last_non_local_connection_time = COConfigurationManager.getLongParameter( "network.tcp.port." + tcp_listen_port + ".last.nonlocal.incoming", 0 );
       
        if ( last_non_local_connection_time > SystemTime.getCurrentTime()){
         
          last_non_local_connection_time = SystemTime.getCurrentTime();
        }
       
        if (serverSelectors.length == 0)
        {
          InetSocketAddress address;
          InetAddress[] bindAddresses = getEffectiveBindAddresses();
         
          List tempSelectors = new ArrayList(bindAddresses.length);
         
         
          listenFailCounts = new int[bindAddresses.length];
          for (int i = 0; i < bindAddresses.length; i++)
          {
            InetAddress bindAddress = bindAddresses[i];

            if(!NetworkAdmin.getSingleton().hasIPV6Potential(true) && bindAddress instanceof Inet6Address)
              continue;
           
            if (bindAddress != null)
              address = new InetSocketAddress(bindAddress, tcp_listen_port);
            else
              address = new InetSocketAddress(tcp_listen_port);
           
            VirtualServerChannelSelector serverSelector;
           
            if(bindAddresses.length == 1)
              serverSelector = VirtualServerChannelSelectorFactory.createBlocking(address, so_rcvbuf_size, selectListener);
            else
              serverSelector = VirtualServerChannelSelectorFactory.createNonBlocking(address, so_rcvbuf_size, selectListener);
            serverSelector.start();
           
            tempSelectors.add(serverSelector);
          }
         
          if(tempSelectors.size() == 0)
            Logger.log(new LogAlert(true,LogAlert.AT_WARNING,MessageText.getString("network.bindError")));
         
          serverSelectors = (VirtualServerChannelSelector[])tempSelectors.toArray(new VirtualServerChannelSelector[tempSelectors.size()]);
        }
      } else
      {
View Full Code Here

Examples of org.gudy.azureus2.core3.logging.LogAlert

     
     
      if ( warning != null ){
       
        Logger.logTextResource(
          new LogAlert(true, LogAlert.AT_WARNING,"azinstancehandler.alert.portclash"),
          new String[]{
            warning,
            String.valueOf(RandomUtils.LISTEN_PORT_MIN ),
            String.valueOf(RandomUtils.LISTEN_PORT_MAX)});
      }
View Full Code Here

Examples of org.gudy.azureus2.core3.logging.LogAlert

        "dvdburn_trial"
      });
    } catch (Throwable e) {
      String s = "Creating Trial: " + Debug.getNestedExceptionMessage(e);
      new MessageBoxShell("Trial Error", s).open(null);
      Logger.log(new LogAlert(true, s, e));
    }
  }
View Full Code Here

Examples of org.gudy.azureus2.core3.logging.LogAlert

                  "Licence Addition Error",
                  s );
             
              mb.open();
             
              Logger.log(new LogAlert(true, LogAlert.AT_ERROR, "Adding Licence",
                  e));
            }
          }
        }
      });
View Full Code Here

Examples of org.gudy.azureus2.core3.logging.LogAlert

        if(!ipv6problem)
        {
          //dont pass the exception outwards, so we will continue processing connection without advanced options set
          String msg = "Error while processing advanced socket options.";
          Debug.out( msg, t );
          Logger.log(new LogAlert(LogAlert.UNREPEATABLE, msg, t));
        } else
        {
          // can't support NIO + ipv6 on this system, pass on and don't raise an alert
          throw t;
        }
View Full Code Here

Examples of org.gudy.azureus2.core3.logging.LogAlert

      public void widgetSelected(SelectionEvent e) {
        String text = "This is a  long message with lots of information and "
            + "stuff you really should read.  Are you still reading? Good, because "
            + "reading <a href=\"http://moo.com\">stimulates</a> the mind.\n\nYeah Baby.";

        LogAlert logAlert = new LogAlert(true, LogAlert.AT_INFORMATION, "Simple");
        Logger.log(logAlert);
        logAlert = new LogAlert(true, LogAlert.AT_WARNING, text);
        logAlert.details = "Details: \n\n" + text;
        Logger.log(logAlert);
        logAlert = new LogAlert(true, LogAlert.AT_ERROR, "ShortText");
        logAlert.details = "Details";
        Logger.log(logAlert);
      }
    });
View Full Code Here

Examples of org.gudy.azureus2.core3.logging.LogAlert

            alreadyFailing = false;
          }
        });
       
   
    Logger.log(new LogAlert(true, "Error while installing " + licence_key,
        error));
    box.close(0);
    licence.removeInstallationListener(this);
  }
View Full Code Here

Examples of org.gudy.azureus2.core3.logging.LogAlert

                  public void runSupport() {
                    for (Iterator<Long> iter = mapColors.keySet().iterator(); iter.hasNext();) {
                      Long key = iter.next();
                      Color color = mapColors.get(key);
                      if (color.isDisposed()) {
                        Logger.log(new LogAlert(false, LogAlert.AT_ERROR,
                            "Someone disposed of color "
                                + Long.toHexString(key.longValue())
                                + ". Please report this on the "
                                + "<A HREF=\"http://forum.vuze.com/forum.jspa?forumID=4\">forum</A>"));
                        iter.remove();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.