SaveIntoDatabase: Can’t create handler inside thread that has not called Looper.prepare()

Tengo un porblema a la hora de cargar mi base de datos SQlite con un array en segundo plano, el problema es el siguiente:

 SaveIntoDatabase: Can't create handler inside thread that has not  called Looper.prepare() 

Estuve investigando sobre looper para entender su funcionamiento, intente llamar a Looper.prepare dentro del void run(), pero no hubo diferencia

Aqui el codigo

public class ProductFetcher extends Thread {      private final ProductFetchListener mListener;     private final SQLiteDatabase mDb;      public ProductFetcher(ProductFetchListener listener, SQLiteDatabase db) {         mListener = listener;         mDb = db;     }      @Override     public void run() {          Cursor cursor = mDb.rawQuery(Constants.DATABASE.GET_PRODUCTS_QUERY, null);          final List<Product> productList = new ArrayList<>();          if (cursor.getCount() > 0) {              if (cursor.moveToFirst()) {                 do {                     Product product = new Product();                     product.setFromDatabase(true);                     Aqui cargo los campos del producto                        productList.add(product);                     publishProduct(product);                  } while (cursor.moveToNext());             }         }         Handler handler = new Handler(Looper.getMainLooper());          handler.post(new Runnable() {             @Override             public void run() {                  mListener.onDeliverAllProducts(productList);                 mListener.onHideDialog();             }         });     }      public void publishProduct(final Product product) {         Handler handler = new Handler(Looper.getMainLooper());         handler.post(new Runnable() {             @Override             public void run() {                 mListener.onDeliverProduct(product);             }         });     } } 

Intente tambien colocar el Looper.prepare() dentro de todos los public void run(), y el resultado era que no podia llamar a mas de uno por thread

gdb error for keepassx/keepassxc: “Cannot find user-level thread for LWP” “generic error”

I tried to run gdb on keepassxc, but encountered an unfamiliar error:

$   gdb /usr/bin/keepassxc GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.  Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/bin/keepassxc...Reading symbols from /usr/lib/debug/.build-id/80/9b2f2d5157a8872dcd140977ba01adfca0e7ad.debug...done. done. (gdb) run Starting program: /usr/bin/keepassxc  [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Cannot find user-level thread for LWP 15111: generic error (gdb) quit 

The GDB FAQ gives some common causes for errors like “Cannot find user-level thread for LWP 15111: generic error” (the number after LWP is different each time):

9. GDB reports “Cannot find user-level thread for LWP 23957: generic error”, how do I fix this?

There are several common causes:

  • You have a mismatch between libthread_db.so.1 and libpthread.so.0 (this most often happens when you have multiple installations of glibc, or when you debug a program on remote target, and host and target have different glibc versions).

  • You are using 64-bit debugger to debug 32-bit program, and your kernel has a 32-bit ptrace emulation bug. FIXME: add reference to specific kernel fix.

This has also been known to happen when one of DOSEMU’s signal handlers is invoked from DPMI context, where the $ gs register has a value different from what GDB and/or libthread_db.so.0 expect; SamuelBronson found running the program under gdbserver to alleviate the problem, at least with version 6.8.50.20090620-cvs on i386.

https://sourceware.org/gdb/wiki/FAQ

I am running a 64-bit machine with i386 enabled:

$   getconf LONG_BIT 64 $   dpkg --print-foreign-architectures i386 $   dlocate libthread_db.so.1 libc6-i386: /lib32/libthread_db.so.1 libc6:i386: /lib/i386-linux-gnu/libthread_db.so.1 libc6:amd64: /lib/x86_64-linux-gnu/libthread_db.so.1 $   dlocate libpthread.so.0 libc6-i386: /lib32/libpthread.so.0 libc6:i386: /lib/i386-linux-gnu/libpthread.so.0 libc6:amd64: /lib/x86_64-linux-gnu/libpthread.so.0 

and keepassxc does use libpthread.so.0:

$   ldd /usr/bin/keepassxc | grep thread         libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f889b803000) 

but so does texstudio:

$   ldd /usr/bin/texstudio | grep thread         libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007efd2a09e000) 

and I can load texstudio just fine.

$   gdb /usr/bin/texstudio  GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.  Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/bin/texstudio...Reading symbols from /usr/lib/debug/.build-id/8c/49a9b8c208b2b75fbd3dc0ad9d9bf009886a47.debug...done. done. (gdb) run Starting program: /usr/bin/texstudio  [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffe915a700 (LWP 20816)] [New Thread 0x7fffda55f700 (LWP 20822)] [New Thread 0x7fffcb7e9700 (LWP 20823)] [New Thread 0x7fffca2fe700 (LWP 20824)] [New Thread 0x7fffc96d9700 (LWP 20825)] [New Thread 0x7fffc0937700 (LWP 20826)] [Thread 0x7fffc0937700 (LWP 20826) exited] [Thread 0x7fffc96d9700 (LWP 20825) exited] [Thread 0x7fffca2fe700 (LWP 20824) exited] [Thread 0x7fffe915a700 (LWP 20816) exited] [Thread 0x7fffcb7e9700 (LWP 20823) exited] [Thread 0x7fffda55f700 (LWP 20822) exited] [Inferior 1 (process 20796) exited normally] (gdb) quit 

Furthermore, keepassxc is a 64-bit executable:

$   file /usr/bin/keepassxc /usr/bin/keepassxc: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/l, for GNU/Linux 3.2.0, BuildID[sha1]=809b2f2d5157a8872dcd140977ba01adfca0e7ad, stripped 

The closest thing to any existing information I could find was this bug that the owner could not reproduce after a reboot (for what it’s worth, I can reproduce after a reboot):

Segfault: new in version 2.0.2, Ubuntu MATE 16.04

Application segfaults/exits with a bus error, sometimes on launch, sometimes later.

This is a new development after updating to version 2.0.2.

Trying to launch with GDB produces:

Starting program: /usr/bin/keepassx [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Cannot find user-level thread for LWP 5299: generic error 

https://bugs.launchpad.net/ubuntu/+source/keepassx/+bug/1752353

That’s actually a bug in keepassx, not keepassxc, but I get the same behavior in both.

$   gdb /usr/bin/keepassx GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.  Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/bin/keepassx...(no debugging symbols found)...done. (gdb) run Starting program: /usr/bin/keepassx  [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Cannot find user-level thread for LWP 14893: generic error 

One debugging strategy I’ve found is to use set verbose on before running the executable. Here is the output in case that is of use:

Starting program: /usr/bin/keepassxc  Using PIE (Position Independent Executable) displacement 0x555555554000 for "/usr/bin/keepassxc". Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/ld-2.27.so...done. done. Reading symbols from system-supplied DSO at 0x7ffff7ffa000...(no debugging symbols found)...done. Reading in symbols for rtld.c...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libsodium.so.23...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libQt5Network.so.5...Reading symbols from /usr/lib/debug/.build-id/46/2cebeefa58e5ccff5415b007f6a24425f29ada.debug...done. done. Reading symbols from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5...Reading symbols from /usr/lib/debug/.build-id/f2/5f1c8a72b396ac28a985f7297d3ba0ed6cd567.debug...done. done. Reading symbols from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5...Reading symbols from /usr/lib/debug/.build-id/d2/9dfc2cdd3a3ae0e1110f0c87c2778c8998efbe.debug...done. done. Reading symbols from /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libykpers-1.so.1...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libzxcvbn.so.0...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libargon2.so.0...(no debugging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libgcrypt.so.20...(no debugging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libz.so.1...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5...Reading symbols from /usr/lib/debug/.build-id/06/31cf3ce1c914e12696428ca4ed84951f588f6e.debug...done. done. Reading symbols from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5...Reading symbols from /usr/lib/debug/.build-id/fb/710113d79e6ddae5d5495d0721dfe1b70d5e82.debug...done. done. Reading symbols from /usr/lib/x86_64-linux-gnu/libstdc++.so.6...Reading symbols from /usr/lib/debug/.build-id/57/0bf32e8698fce3bfacc4a8b010827f842d1dd6.debug...done. done. Registering libstdc++-v6 pretty-printer for /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ... Registering xmethod matcher '%s' with %s' ... Registering xmethod matcher '%s' with %s' ... Registering xmethod matcher '%s' with %s' ... Registering xmethod matcher '%s' with %s' ... Registering xmethod matcher '%s' with %s' ... Registering xmethod matcher '%s' with %s' ... Registering xmethod matcher '%s' with %s' ... Registering xmethod matcher '%s' with %s' ... Registering xmethod matcher '%s' with %s' ... Registering xmethod matcher '%s' with %s' ... Registering xmethod matcher '%s' with %s' ... Registering xmethod matcher '%s' with %s' ... Registering xmethod matcher '%s' with %s' ... Registering xmethod matcher '%s' with %s' ... Registering xmethod matcher '%s' with %s' ... Reading symbols from /lib/x86_64-linux-gnu/libm.so.6...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libm-2.27.so...done. done. Reading symbols from /lib/x86_64-linux-gnu/libc.so.6...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libc-2.27.so...done. done. Reading symbols from /lib/x86_64-linux-gnu/libpthread.so.0...Reading symbols from /usr/lib/debug/.build-id/28/c6aade70b2d40d1f0f3d0a1a0cad1ab816448f.debug...done. done. Registering glibc-pthread-locks pretty-printer for /lib/x86_64-linux-gnu/libpthread.so.0 ... [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Reading symbols from /usr/lib/x86_64-linux-gnu/libGL.so.1...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libpng16.so.16...Reading symbols from /usr/lib/debug/.build-id/d5/32f2230c3c84289a0833fc0c1352aaac5892c6.debug...done. done. Reading symbols from /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0...(no debugging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libgcc_s.so.1...Reading symbols from /usr/lib/debug/.build-id/41/bdc55c07d5e5b1d8ab38e2c19b1f535855e084.debug...done. done. Reading symbols from /usr/lib/x86_64-linux-gnu/libnghttp2.so.14...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libidn2.so.0...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/librtmp.so.1...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libpsl.so.5...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libnettle.so.6...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libgnutls.so.30...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libyubikey.so.0...(no debugging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libusb-1.0.so.0...(no debugging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libjson-c.so.3...(no debugging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libgpg-error.so.0...(no debugging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libdbus-1.so.3...Reading symbols from /usr/lib/debug/.build-id/c1/63c9bb03410c4c05458a989a804ff527d4f63f.debug...done. done. Reading symbols from /usr/lib/x86_64-linux-gnu/libicui18n.so.60...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libicuuc.so.60...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libdouble-conversion.so.1...(no debugging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libdl.so.2...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libdl-2.27.so...done. done. Reading symbols from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0...Reading symbols from /usr/lib/debug/.build-id/75/81e089260b8198caa28c2e16bd2353e7a62225.debug...done. done. Reading symbols from /usr/lib/x86_64-linux-gnu/libGLX.so.0...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libfreetype.so.6...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libgraphite2.so.3...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libunistring.so.2...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libhogweed.so.4...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libgmp.so.10...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libp11-kit.so.0...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libtasn1.so.6...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libkrb5.so.3...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libk5crypto.so.3...(no debugging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libcom_err.so.2...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libkrb5support.so.0...(no debugging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libresolv.so.2...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libresolv-2.27.so...done. done. Reading symbols from /usr/lib/x86_64-linux-gnu/libsasl2.so.2...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libgssapi.so.3...(no debugging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libudev.so.1...(no debugging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libsystemd.so.0...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libicudata.so.60...(no debugging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libpcre.so.3...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libX11.so.6...Reading symbols from /usr/lib/debug/.build-id/44/1896d78103c8cf264ba06687cd49c700a2c5b5.debug...done. done. Reading symbols from /usr/lib/x86_64-linux-gnu/libffi.so.6...Reading symbols from /usr/lib/debug/.build-id/35/55b5f599c9787dfddbf9e8df6f706b9044d985.debug...done. done. Reading symbols from /lib/x86_64-linux-gnu/libkeyutils.so.1...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libheimntlm.so.0...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libkrb5.so.26...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libasn1.so.8...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libhcrypto.so.4...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libroken.so.18...(no debugging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/librt.so.1...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/librt-2.27.so...done. done. Reading symbols from /lib/x86_64-linux-gnu/liblzma.so.5...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/liblz4.so.1...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libxcb.so.1...Reading symbols from /usr/lib/debug/.build-id/3d/49ac024ca8f7e36f5296a7d0d7f083ab1c8a62.debug...done. done. Reading symbols from /usr/lib/x86_64-linux-gnu/libwind.so.0...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libheimbase.so.1...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libhx509.so.5...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0...(no debugging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libcrypt.so.1...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libcrypt-2.27.so...done. done. Reading symbols from /usr/lib/x86_64-linux-gnu/libXau.so.6...(no debugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libXdmcp.so.6...(no debugging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libbsd.so.0...(no debugging symbols found)...done. Cannot find user-level thread for LWP 17450: generic error Current language:  auto The current source language is "auto; currently c". 

Version information:

$   apt-cache policy keepassx keepassxc gdb keepassx:   Installed: 2.0.3-1   Candidate: 2.0.3-1   Version table:  *** 2.0.3-1 500         500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages         100 /var/lib/dpkg/status keepassxc:   Installed: 2.3.1+dfsg.1-1   Candidate: 2.3.1+dfsg.1-1   Version table:  *** 2.3.1+dfsg.1-1 500         500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages         100 /var/lib/dpkg/status gdb:   Installed: 8.1-0ubuntu3   Candidate: 8.1-0ubuntu3   Version table:  *** 8.1-0ubuntu3 500         500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages         100 /var/lib/dpkg/status 

My questions are:

  • Is this reproducible on other machines and versions of Ubuntu?

  • If so, is this a bug in gdb, a bug in both keepassx and keepassxc, a bug in libc-dbg, or somewhere else?

Adsbizarre PPC Adnetwork [Official Thread]

Adsbizarre company can buy and sell traffic on CPC (PPC) basis. We deliver best clicks! Traffic types: POP, Push, PVTOS. Integration Methods: XML Feeds, Direct links (Smartlinks).
Why choosing us?
For Advertisers:

– NO PREPAYMENT. We understand that you should try our traffic before making any payments.
– All verticals (Mainstream, Adult)
– We have our own anti-fraud system + our traffic can pass all the filters that you require.
– Good Price. I'm sure, we'll find a common…

Adsbizarre PPC Adnetwork [Official Thread]

Official Google Update Thread – August 2019


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

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. 🙂

AdSpyglass – Ad Networks Mediation System [Official Thread]

[​IMG]

AdSpyglass is an Ad Networks Mediation Service for publishers. We make the monetization of your site easier than ever!

You might have already tried working with separate ad networks but with AdSpyglass you have a chance to increase your current income up to 100%. The main idea is that it will automatically select the most beneficial offers from the ad networks you are…

AdSpyglass – Ad Networks Mediation System [Official Thread]

Exception in thread “main” java.awt.IllegalComponentStateException: The frame is decorated

galera voltei, comecei a estudar AWT fiz um programinha simples que apenas abria uma janela com um fundo verde, mas eu tento criar um evento pra janela do programa fechar e fica dando o erro do tĂ­tulo

nome completo do erro:
Exception in thread “main” java.awt.IllegalComponentStateException: The frame is decorated at java.desktop/java.awt.Frame.setOpacity(Frame.java:963) at Ventana.main(Ventana.java:19)

codigo que estou usando:

import java.awt.Frame; import java.awt.event.ActionEvent; import java.awt.Color; import java.awt.event.WindowEvent; import java.awt.event.WindowAdapter;  public class Ventana {      public static void exitForm(WindowEvent evt){         System.exit(0);      }      public static void main(String[] args){         Frame frame = new Frame("Novo video!");         frame.setUndecorated(false);         frame.setSize(600,600);         frame.setLocation(520,250);         frame.setOpacity((float)0.50);         frame.setBackground(new Color(161, 203, 70));         frame.addWindowListener(new WindowAdapter() {             public void windowClosing(WindowEvent evt){                 exitForm(evt);             }          });         frame.show();       }  } 

sou bem novato, desculpa se estou fazendo um erro bem “noob”, mas jĂĄ agradeço pela atenção <3

Exception in thread “main” java.lang.ClassCastException

Alguém poderia me ajudar com esse error no meu DAO Generico hibernate?

meu dao generico:

import org.hibernate.Session; import org.hibernate.criterion.MatchMode;  import util.HibernateUtil;  public abstract class AbstractDAO<T> {     private Class classe;     private Session session;      public AbstractDAO(){         this.classe = (Class<T>) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0];     }      protected Session getSession(){         if(this.session == null || !this.session.isOpen()){             this.session = HibernateUtil.getSessionFactory().openSession();         }         return this.session;     }      public void save(T t){         getSession().beginTransaction();         getSession().save(t);         getSession().close();     }      public void delete(T t){         getSession().beginTransaction();         getSession().delete(t);         getSession().close();     }      public void alter(T t){         getSession().beginTransaction();         getSession().update(t);         getSession().close();     }      public List<T> findAll(T t){         return getSession().createCriteria(this.classe).list();     }           /**      * Metodo responsavel por recuperar todos os objetos de uma tabela da base de dados de acordo      * com o exemplo passado.      *      * @param filtro      * @param matchMode      * @param ignoreCase      * @return lista      */     public List<T> findByExample(T filtro, MatchMode matchMode, boolean ignoreCase){         org.hibernate.criterion.Example example = org.hibernate.criterion.Example.create(filtro);          if(matchMode != null){             example = example.enableLike(matchMode);         }          if(ignoreCase){             example = example.ignoreCase();         }          return getSession().createCriteria(this.classe).add(example).list();     } 

meu hibarnate util

public class HibernateUtil {

private static final SessionFactory sessionFactory;    static {       try {           // Create the SessionFactory from hibernate.cfg.xml           sessionFactory = new Configuration().configure().buildSessionFactory();       } catch (Throwable ex) {           // Make sure you log the exception, as it might be swallowed           System.err.println("Initial SessionFactory creation failed." + ex);           throw new ExceptionInInitializerError(ex);       }   }    public static SessionFactory getSessionFactory() {       return sessionFactory;   }   

}
meu main:

public static void main(String[] args) {     Departamento depart = new Departamento();     AbstractDAO<Departamento> padrao = new DepartamentoDAO();     padrao.findAll(depart);     System.out.println(padrao); } 

meu error:

Exception in thread "main" java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType at dao.AbstractDAO.(AbstractDAO.java:16) at dao.DepartamentoDAO.(DepartamentoDAO.java:17) at view.eeee.main(eeee.java:12) 

Thread 15: Fatal error: Unexpectedly found nil while unwrapping an Optional value

Mi app de Buscador cuando intento poner espacio entre palabras me da este error Que debo rectificar ????????

let urlCompleto = “https://es.wikipedia.org/w/api.php?action=query&prop=extracts&format=json&exintro=&titles=(palabra!.replacingOccurrences(of:” “, with:”%20″))”

Erro: Exception in thread “main” java.lang.NullPointerException ao selecionar coluna especĂ­fica

Estou a tentar ler o arquivo .txt, selecionar a coluna “costumerid” e contar quantos tipos diferentes existem, porĂ©m o programa apresenta-me este erro: ” Exception in thread “main” java.lang.NullPointerException at com.nayana.exercicio1.methods.Methods.customerId(Methods.java:95) at com.nayana.exercicio1.Exercicio1.main(Exercicio1.java:18) ” AlguĂ©m consegue me ajudar?

CĂłdigo Methods:

package com.nayana.exercicio1.methods;  import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.IOException; import java.util.Date; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.HashSet;   public class Methods {      private BufferedReader file;     private HashSet<String> customer;     private int lines;     private String[] columns;     public String line;     private String string;        //INPUT PARA O ARQUIVOO A SER LIDO      public BufferedReader getFile() {         return file;     }       public void setFile(BufferedReader file) throws FileNotFoundException {         this.file = file;     }      //CONTAR NÚMERO DE LINHAS EXISTENTES     public int getLines() {         return lines;     }      public String getLine() {         return line;     }     public void setLines(int lines) throws IOException {         this.lines = lines;         }      public String[] getColumns() {         return columns;     }      public void setColumns(String[] columns) {         this.columns = columns;         columns = ((String)line).split(";");     }     public void setLine(String line) throws IOException {         this.line = file.readLine();     }       public void contarLinhas() throws Exception {         while((line = file.readLine()) !=null) {             setColumns(columns);             lines++;}     }      //CONTAR QUANTOS COSTUMERID DIFERENTES EXISTEM      public HashSet<String> getCustomer() {         return customer;     }      public void setCustomer(HashSet<String> customer) throws IOException {         this.customer = customer;         customer = new HashSet<String>();        }        public void customerId() throws Exception {          while((line = file.readLine()) !=null) {             setColumns(columns);             HashSet<String> customer = new HashSet<String>();             customer.add(columns[4]);             customer.size();              }     }        //MOSTRAR NA TELA       public void status(){     System.out.println("\nO nĂșmero total de linhas Ă©: " + getLines());     System.out.println("\nO nĂșmero total de CustomerId Ă©: " + getCustomer());     }  }   

CĂłdigo Main:

package com.nayana.exercicio1;   import java.io.BufferedReader; import java.io.FileReader; import com.nayana.exercicio1.methods.Methods;    public class Exercicio1 {      public static void main(String[] args) throws Exception {          Methods exercicio = new Methods();          exercicio.setFile(new BufferedReader(new FileReader("C:\Users\nayan\Downloads\orders_04_20_07.txt")));         //exercicio.contarLinhas();         exercicio.customerId();         exercicio.status();     }  }