Thread 1: EXC_BAD_ACCESS (code=1, address=0x58)

estoy tratando de reproducir algunos archivos de sonido con botones pero al pulsar el boton me arroja este error Thread 1: EXC_BAD_ACCESS (code=1, address=0x58) en la linea

audioPlayer.play() 

eh buscado posibles soluciones y no encuentro nada relacionado con ese error, la funcion de mi codigo se ejecuta bien hasta el print, este es mi codigo completo.

import UIKit import AVFoundation  class ViewController: UIViewController {      var track: String? = nil     var audioPlayer = AVAudioPlayer()      override func viewDidLoad() {         super.viewDidLoad()         // Do any additional setup after loading the view.     }      @IBAction func heavyButton(_ sender: Any) {         track = "H"         print("heavy machine gun \(track!)")         reproducirAudio(audio: track!)         audioPlayer.play()     }  func reproducirAudio(audio: String) {         do {             print("entro a la funcion de reproducir")             audioPlayer = try AVAudioPlayer(contentsOf: URL.init(fileURLWithPath: Bundle.main.path(forResource: audio, ofType: "mp3")!))             audioPlayer.prepareToPlay()         } catch {             print(error)         }     } 

Error en NetBeans con conexión a SQL SERVER: Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException

Buen día,

Al tratar de ejecutar un código que llama a la conexión con la BD me arroja error: Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException. El error se presenta al ejecutar el metodo activado por le botón

Comparto el códido donde se configura el error y el códido de la conexión de con la BD, además del error completo

import java.awt.Image; import java.awt.Toolkit; import java.sql.Connection; import java.util.Date; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.text.SimpleDateFormat; import java.util.Vector; import javax.swing.DefaultComboBoxModel; import javax.swing.JComboBox; import javax.swing.JOptionPane; import javax.swing.JTextField; import javax.swing.table.DefaultTableModel; import tveterinaria.conexion;   /**  *  * @author wolfc  */ public class citas extends javax.swing.JFrame {      /**      * Creates new form citas      */     public ResultSet res;     public citas() {       initComponents();        this.setLocationRelativeTo(null);       Image imagen = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource("icon/incono.png"));       this.setIconImage(imagen);       cargarcomboboxdueno(jcdueno);       cargarprofe(jcprofesional);       //cargarmascota(jcmascota);       }      public void consultar() {       DefaultTableModel modelo = (DefaultTableModel) jtcitas.getModel();       modelo.setRowCount(0);       res = tveterinaria.conexion.Consulta("Select * from citas");        try {         while (res.next()) {           Vector v = new Vector();           v.add(res.getInt(1));           v.add(res.getDate(2));           v.add(res.getString(3));           v.add(res.getInt(4));           v.add(res.getInt(5));           v.add(res.getInt(6));           v.add(res.getString(7));           modelo.addRow(v);           jtcitas.setModel(modelo);          }        } catch (SQLException e) {         JOptionPane.showMessageDialog(null, e);       }     }      public void consultacitaiddueno() {       DefaultTableModel modelo = (DefaultTableModel) jtcitas.getModel();       modelo.setRowCount(0);       res = tveterinaria.conexion.Consulta("Select * from citas where iddueno =" + jcdueno.getSelectedItem() + "");       try {         while (res.next()) {           Vector v = new Vector();           v.add(res.getInt(1));           v.add(res.getDate(2));           v.add(res.getString(3));           v.add(res.getInt(4));           v.add(res.getInt(5));           v.add(res.getInt(6));           v.add(res.getString(7));           modelo.addRow(v);           jtcitas.setModel(modelo);          }        } catch (SQLException e) {         JOptionPane.showMessageDialog(null, e);       }     }      public void consultacitaidmascota() {       DefaultTableModel modelo = (DefaultTableModel) jtcitas.getModel();       modelo.setRowCount(0);       res = tveterinaria.conexion.Consulta("Select * from citas where idmascota =" + jcmascota.getSelectedItem() + "");       try {         while (res.next()) {           Vector v = new Vector();           v.add(res.getInt(1));           v.add(res.getDate(2));           v.add(res.getString(3));           v.add(res.getInt(4));           v.add(res.getInt(5));           v.add(res.getInt(6));           v.add(res.getString(7));           modelo.addRow(v);           jtcitas.setModel(modelo);            txtidcita.setText(res.getString(1));           txtidcita.setText(res.getString(2));           txtidcita.setText(res.getString(3));           txtidcita.setText(res.getString(4));           txtidcita.setText(res.getString(5));           txtidcita.setText(res.getString(6));           txtidcita.setText(res.getString(7));          }        } catch (SQLException e) {         JOptionPane.showMessageDialog(null, e);       }     }     DefaultComboBoxModel com;     public void consultacitaidprofe() {       DefaultTableModel modelo = (DefaultTableModel) jtcitas.getModel();       modelo.setRowCount(0);       res = tveterinaria.conexion.Consulta("Select * from citas where idprofesional =" + jcprofesional.getSelectedItem() + "");       try {         while (res.next()) {           Vector v = new Vector();           v.add(res.getInt(1));           v.add(res.getDate(2));           v.add(res.getString(3));           v.add(res.getInt(4));           v.add(res.getInt(5));           v.add(res.getInt(6));           v.add(res.getString(7));           modelo.addRow(v);           jtcitas.setModel(modelo);          }        } catch (SQLException e) {         JOptionPane.showMessageDialog(null, e);       }     }       public void cargarcomboboxdueno(JComboBox jcdueno) {       conexion con = new conexion();       String sql = " SELECT iddueno from citas group by iddueno ";       try {         Connection cn = con.getConexion();         PreparedStatement entrada = cn.prepareStatement(sql);         ResultSet rs = entrada.executeQuery();         jcdueno.addItem("Seleccione la cédula del dueño");         while (rs.next()) {           jcdueno.addItem(rs.getInt(1));         }       } catch (Exception e) {         JOptionPane.showMessageDialog(null, "Error: " + e);       }     }     public void cargarprofe(JComboBox jcprofesional) {       {         conexion con = new conexion();         String sql = " SELECT idprofesional from citas group by idprofesional ";          try {           Connection cn = con.getConexion();           PreparedStatement entrada = cn.prepareStatement(sql);           ResultSet rs = entrada.executeQuery();           jcprofesional.addItem("Seleccione la cédula del profesional");            while (rs.next()) {             jcprofesional.addItem(rs.getInt(1));           }         } catch (Exception e) {           JOptionPane.showMessageDialog(null, "Error: " + e);         }       }     }     public void cargarmascota(JComboBox jcmascota) {        conexion con = new conexion();        if (jcdueno.getSelectedItem().toString().equals("Seleccione la cédula del dueño")) {         String sql = " SELECT idmascota from citas group by idmascota";         try {           Connection cn = con.getConexion();           PreparedStatement entrada = cn.prepareStatement(sql);           ResultSet rs = entrada.executeQuery();           jcmascota.addItem("Seleccione el ID de la mascota");            while (rs.next()) {             jcmascota.addItem(rs.getInt(1));           }         } catch (Exception e) {           JOptionPane.showMessageDialog(null, "Error: " + e);         }        } else {         com = new DefaultComboBoxModel();         jcmascota.setModel(com);         String sql = " SELECT idmascota from citas where iddueno=" +           jcdueno.getSelectedItem() + "group by idmascota";         try {           Connection cn = con.getConexion();           PreparedStatement entrada = cn.prepareStatement(sql);           ResultSet rs = entrada.executeQuery();           jcmascota.addItem("Seleccione el ID de la mascota");            while (rs.next()) {             jcmascota.addItem(rs.getInt(1));           }         } catch (Exception e) {           JOptionPane.showMessageDialog(null, "Error: " + e);         }       }     }       private void btnconsultarActionPerformed(java.awt.event.ActionEvent evt) {       // TODO add your handling code here       if (jcprofesional.getSelectedItem().toString().equals("Seleccione la cédula del profesional") &&         jcdueno.getSelectedItem().toString().equals("Seleccione la cédula del dueño")) {         consultacitaidmascota();       } else {         if (jcmascota.getSelectedItem().equals("Seleccione el ID de la mascota") &&           jcdueno.getSelectedItem().equals("Seleccione la cédula del dueño")) {           consultacitaidprofe();         } else {           if (jcmascota.getSelectedItem().equals("Seleccione el ID de la mascota") &&             jcprofesional.getSelectedItem().equals("Seleccione la cédula del profesional")) {             consultacitaiddueno();           } else {             if (jcmascota.getSelectedItem().equals("Seleccione el ID de la mascota") &&               jcdueno.getSelectedItem().equals("Seleccione la cédula del dueño") &&               jcprofesional.getSelectedItem().equals("Seleccione la cédula del profesional")) {               consultar();             } else {               JOptionPane.showMessageDialog(null, "Coma mierda");             }           }         }       }     }

Adicionalmente comparto el metodo de la conexión a la BD el cual arroja el error

public static ResultSet Consulta(String consulta) {   Connection con = getConexion();   Statement declarar;   try {     declarar = con.createStatement();     ResultSet respuesta = declarar.executeQuery(consulta);     return respuesta;   } catch (SQLException e) {     JOptionPane.showMessageDialog(null, "Error en consultas" + e.getMessage(),       "Error de Conexion consulta", JOptionPane.ERROR_MESSAGE);   }   return null; }

Si bien es cierto que el metodo devuelve un valor null, es código reciclado tal al pie de la letra y nunca antes había arrojado un error similar. Incluso en otras partes del proyecto se usa de la misma manera el metodo y no se ve afectado por el error.

Official Google Update Thread – October 2019

Sorry, forgot to start this new thread.


Copyright © 2013 Cricket Walker

Past Threads

Jan 12 | Feb 12 | Mar 12 | Apr 12 | May 12 | June 12 | July 12 | Aug 12 | Sept 12 | Oct 12 | Nov 12 | Dec 12

Jan 13 | Feb 13 | Mar 13 | Apr 13 | May 13 | June & July 13 | Aug 13 | Sep 13 | Oct 13 | Nov 13 | Dec 13

Jan 14 | Feb 14 | Mar 14 | Apr 14 | May 14 | June 14 | July 14 | Aug 14 | Sept 14 | Oct 14 | Nov 14 | Dec 14

Jan 15 | Feb 15 | Mar 15 | Apr 15 | May 15 | June 15 | July 15 | Aug 15 | Sept 15 | Oct 15 | Nov 15 | Dec 15

Jan 16 | Feb 16 | Mar 16 | Apr 16 | May 16 | June 16 | July 2016 | Aug 2016 | Sept 2016 | Oct 2016 | Nov 2016 | Dec 2016

Jan 17 | Feb 17 | Mar 17 | Apr 17 | May 17 | Jun 17 | Jul 17 | Aug 17 | Sept 17 | Oct 17 | Nov 17 | Dec 17

Jan 18 | Feb 18 | Mar 18 | Apr 18 | May 18 | Jun 18 | Jul 18 | Aug 18 | Sept 18 | Oct 18 | Nov 18 | Dec 18

Jan 19 | Feb 19 | Mar 19 | Apr 19 | May 19 | Jun 19 | Jul 19 | Aug 19 | Sept 19

Do you have a speculation about when Google will update?

  • Do you think there has been a backlinks update?
  • Do you think there has been a PR update?
  • Are you seeing Google fluctuations?
  • Do you think there has been an algorithm update?

http://www.youtube.com/watch?v=h3Jup5R1MGY

You may want to start with a basic understanding about Google updates before posting in this thread.
http://www.mattcutts.com/blog/whats-an-update/

ADMIN NOTE: Please keep in mind that this is a DISCUSSION thread. It is NOT a debate thread. 🙂

What are some of the benign use cases of injecting bytes into another process and creating remote thread?

So lets say you are developing an AV, and marked any type of injecting into another process (for example openning it and writing to it) malicious

if so, what will be some of the false positives? will a normal user who just wants to install normal apps and browse the web be effected?

i just don’t understand why would an benign app need to do this? and how common is it? for example if its only 1 in a billion benign app that does this, then why allow it at all?

Thread titles disappear from “New Posts” after visiting them

When I go to New Posts and click on a thread title, that thread title will not be there if I click on the New Posts button again.

I've also noticed that it only happens to one page threads. Threads that have more than one page do not disappear UNLESS you click on the last page instead of the thread title. Then if you click on the New Posts button again it will be gone from the list.

Is it a feature or a bug?

PS I believe thread titles should just stay in the list after a user visits them.

Loading thread from SharePoint Discussion Board into Smart Alert

We have set up Infowise Smart Alert on our SP 2016 site to alert users when new discussion items or replies are added to a discussion board. Right now, Infowise Smart Alert currently only sends the text of a new discussion reply. However, we want these alerts to also contain the rest of the thread that is part of that discussion.

The best approach we have come up with is to dynamically load that thread data into the post/reply, so that when Smart Alert Pro pulls the post/object object into that alert, the rest of the thread is also included.

How can we pull this data and add it to each discussion reply? I see several SP.Utilities.Utility methods for creating new discussion items or replies (createNewDiscussion and createNewDicussionReply), but none of getting that data.