java.lang.NullPointerException

JFrog JIRA | Raghunathan Semburakkiannan | 7 years ago
  1. 0

    We have limited file system space allocated to use artifactory(artifactory home dir). We have many repository tree defined and uploaded artifacts in it. When ever size reaches the max file system, we deleted the old artifacts. Now the problem is, Even after deleting unwanted artifacts, df -h shows the same size before deleting. So we tried 'Compress internal Database' option. It always fails. We don't know the reason for failing. Here is the artifactory logs: 2010-02-01 14:07:07,386 [http-8080-29] [INFO ] (o.a.s.StorageServiceImpl:87) - -----Storage sizes (in bytes)----- db=185599565 store=1134048417 index=103967381 datastore table=1033735720 ----------------------- 2010-02-01 14:07:07,388 [http-8080-29] [INFO ] (o.a.j.u.DerbyUtils :119) - Compressing workspace... 2010-02-01 14:07:18,768 [http-8080-29] [ERROR] (o.a.j.u.DerbyUtils :192) - Could not compress storage: The exception 'java.sql.SQLException: No current connection.' was thrown while evaluating an expression. 2010-02-01 14:07:18,780 [pool-1-thread-144] [ERROR] (o.a.j.c.p.b.BundleDbPersistenceManager:1209) - failed to read bundle: eae00f11-f63b-4818-b9ed-01adde7deda1: java.sql.SQLException: Java exception: ': java.lang.NullPointerException'. 2010-02-01 14:07:18,781 [pool-1-thread-144] [ERROR] (o.a.j.c.p.b.u.ConnectionRecoveryManager:453) - could not execute statement, reason: No current connection., state/code: 08003/40000 2010-02-01 14:07:18,781 [pool-1-thread-144] [ERROR] (o.a.j.c.p.b.u.ConnectionRecoveryManager:453) - failed to close connection, reason: No current connection., state/code: 08003/40000 2010-02-01 14:07:22,840 [http-8080-29] [INFO ] (o.a.s.StorageServiceImpl:87) - -----Storage sizes (in bytes)----- db=165848027 store=1134048417 index=103967381 datastore table=1033735720 ----------------------- Here is the Derby's Log: Booting Derby version The Apache Software Foundation - Apache Derby - 10.5.3.0 - (802917): instance c99d403a-0126-7d9c-2505-0000024b6a00 on database directory /tech/artifactory/data/db Incomplete log record detected in file /tech/artifactory/data/db/log/log7764.dat clearing log file from position 186,131 to eof at 192,512. Database Class Loader started - derby.database.classpath='' 2010-02-01 19:07:18.766 GMT Thread[pool-1-thread-144,5,main] (XID = 57030201), (SESSIONID = 1), (DATABASE = /tech/artifactory/data/db), (DRDAID = null), Cleanup action starting 2010-02-01 19:07:18.766 GMT Thread[pool-1-thread-144,5,main] (XID = 57030201), (SESSIONID = 1), (DATABASE = /tech/artifactory/data/db), (DRDAID = null), Failed Statement is: CALL SYSCS_UTIL.SYSCS_COMPRESS_TABLE(?, ?, ?) with 3 parameters begin parameter #1: APP :end parameter begin parameter #2: DEFAULT_REFS :end parameter begin parameter #3: 1 :end parameter java.lang.NullPointerException at org.apache.derby.impl.jdbc.EmbedBlob.getBinaryStream(Unknown Source) at org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager.getBytes(BundleDbPersistenceManager.java:1159) at org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1191) at org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1143) at org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager.getBundle(AbstractBundlePersistenceManager.java:705) at org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager.exists(AbstractBundlePersistenceManager.java:499)

    JFrog JIRA | 7 years ago | Raghunathan Semburakkiannan
    java.lang.NullPointerException
  2. 0

    We have limited file system space allocated to use artifactory(artifactory home dir). We have many repository tree defined and uploaded artifacts in it. When ever size reaches the max file system, we deleted the old artifacts. Now the problem is, Even after deleting unwanted artifacts, df -h shows the same size before deleting. So we tried 'Compress internal Database' option. It always fails. We don't know the reason for failing. Here is the artifactory logs: 2010-02-01 14:07:07,386 [http-8080-29] [INFO ] (o.a.s.StorageServiceImpl:87) - -----Storage sizes (in bytes)----- db=185599565 store=1134048417 index=103967381 datastore table=1033735720 ----------------------- 2010-02-01 14:07:07,388 [http-8080-29] [INFO ] (o.a.j.u.DerbyUtils :119) - Compressing workspace... 2010-02-01 14:07:18,768 [http-8080-29] [ERROR] (o.a.j.u.DerbyUtils :192) - Could not compress storage: The exception 'java.sql.SQLException: No current connection.' was thrown while evaluating an expression. 2010-02-01 14:07:18,780 [pool-1-thread-144] [ERROR] (o.a.j.c.p.b.BundleDbPersistenceManager:1209) - failed to read bundle: eae00f11-f63b-4818-b9ed-01adde7deda1: java.sql.SQLException: Java exception: ': java.lang.NullPointerException'. 2010-02-01 14:07:18,781 [pool-1-thread-144] [ERROR] (o.a.j.c.p.b.u.ConnectionRecoveryManager:453) - could not execute statement, reason: No current connection., state/code: 08003/40000 2010-02-01 14:07:18,781 [pool-1-thread-144] [ERROR] (o.a.j.c.p.b.u.ConnectionRecoveryManager:453) - failed to close connection, reason: No current connection., state/code: 08003/40000 2010-02-01 14:07:22,840 [http-8080-29] [INFO ] (o.a.s.StorageServiceImpl:87) - -----Storage sizes (in bytes)----- db=165848027 store=1134048417 index=103967381 datastore table=1033735720 ----------------------- Here is the Derby's Log: Booting Derby version The Apache Software Foundation - Apache Derby - 10.5.3.0 - (802917): instance c99d403a-0126-7d9c-2505-0000024b6a00 on database directory /tech/artifactory/data/db Incomplete log record detected in file /tech/artifactory/data/db/log/log7764.dat clearing log file from position 186,131 to eof at 192,512. Database Class Loader started - derby.database.classpath='' 2010-02-01 19:07:18.766 GMT Thread[pool-1-thread-144,5,main] (XID = 57030201), (SESSIONID = 1), (DATABASE = /tech/artifactory/data/db), (DRDAID = null), Cleanup action starting 2010-02-01 19:07:18.766 GMT Thread[pool-1-thread-144,5,main] (XID = 57030201), (SESSIONID = 1), (DATABASE = /tech/artifactory/data/db), (DRDAID = null), Failed Statement is: CALL SYSCS_UTIL.SYSCS_COMPRESS_TABLE(?, ?, ?) with 3 parameters begin parameter #1: APP :end parameter begin parameter #2: DEFAULT_REFS :end parameter begin parameter #3: 1 :end parameter java.lang.NullPointerException at org.apache.derby.impl.jdbc.EmbedBlob.getBinaryStream(Unknown Source) at org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager.getBytes(BundleDbPersistenceManager.java:1159) at org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1191) at org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1143) at org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager.getBundle(AbstractBundlePersistenceManager.java:705) at org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager.exists(AbstractBundlePersistenceManager.java:499)

    JFrog JIRA | 7 years ago | Raghunathan Semburakkiannan
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.apache.derby.impl.jdbc.EmbedBlob.getBinaryStream()
    2. Derby
      EmbedBlob.getBinaryStream
      1. org.apache.derby.impl.jdbc.EmbedBlob.getBinaryStream(Unknown Source)
      1 frame
    3. Jackrabbit Core
      AbstractBundlePersistenceManager.exists
      1. org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager.getBytes(BundleDbPersistenceManager.java:1159)
      2. org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1191)
      3. org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager.loadBundle(BundleDbPersistenceManager.java:1143)
      4. org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager.getBundle(AbstractBundlePersistenceManager.java:705)
      5. org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager.exists(AbstractBundlePersistenceManager.java:499)
      5 frames