Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [geogig-dev] geogig import error

Hello,

thanks for reaching up to us.

I looked at the Berkeley DB Java Edition source code and the error message you're getting is definitely caused by a bug in the database (*). That said, my understanding is it should be harmless for the geogig import process.

So, question is, besides getting that stack trace in the console, did the import finish or not?
And what geogig version are you using? (output of geogig --version?)

Best regards,
Gabriel

(*) 
They're calling the following  method with all null arguments but the first two, and it fails with an NPE at the line that reads as sb.append(" key=").append(key.dumpData());

void trace(final Level level,
               final String methodName,
               final Transaction txn,
               final DatabaseEntry key,
               final DatabaseEntry data,
               final LockMode lockMode)
        throws DatabaseException {

        if (logger.isLoggable(level)) {
            StringBuilder sb = new StringBuilder();
            sb.append(methodName);
            if (txn != null) {
                sb.append(" txnId=").append(txn.getId());
            }
            sb.append(" key=").append(key.dumpData());
            if (data != null) {
                sb.append(" data="">
            }
            if (lockMode != null) {
                sb.append(" lockMode=").append(lockMode);
            }
            LoggerUtils.logMsg(
                logger, envHandle.getEnvironmentImpl(), level, sb.toString());
        }
    }



On Tue, Jun 21, 2016 at 4:00 AM, admire <admire@xxxxxxxxxxx> wrote:
Hi

I am trying to import a large postgis table into geogig. the table has about six million records.

Exception in thread "BDBJE-index-SYNC-THREAD-1" java.lang.NullPointerException
    at com.sleepycat.je.Database.trace(Database.java:2198)
    at com.sleepycat.je.Database.sync(Database.java:684)
    at org.locationtech.geogig.storage.bdbje.JEObjectDatabase$FlushLogTask$1.run(JEObjectDatabase.java:586)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)


Regards
_______________________________________________
geogig-dev mailing list
geogig-dev@xxxxxxxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
http://www.locationtech.org/mailman/listinfo/geogig-dev



--

Gabriel Roldán
Software Developer | Boundless
groldan@xxxxxxxxxxxxxxxx
@boundlessgeo



Back to the top