Java.lang.NullPointerException?



  • I could use some help trying to figure out this one.

    When I run the run.bat file I have started to get the Java.lang.NullPointerException and for the life of me I can't figure out what is going on. I am running the current version of Java 64bit and have even reinstalled Java.



  • @Mobious could you post a screenshot of window with error?



  • Yeah sure. It was hard to get all of it because the window kept closing.

    Screen cap



  • @Mobious i would suggest to try and redownload the wallet from github (or if using AIO to reinstall it). It seems for whatever reasons it cant connect to the database file (thus throwing nullPointer when later trying to query said database).



  • I have Burst Client for Win 0.3.9.7 and BurstAIOWallet 0.1.52-64bit both give the same error.



  • @Mobious did they work previously? If so what has changed in your system?
    Also check db folder to see how big it is and if it got any files (tho in that case it should create em and not throw any errors).

    https://github.com/burst-team/burstcoin/releases/tag/1.2.8 try only the client (db folder should work from any of your AIO wallets)



  • Yeah initially I had a port issue but I changed the properties file and it worked for about a week or so. Then the Burst Client started locking up and crashing.

    The DB folder is 4.34GB.

    The only system change was I installed some software to allow me to map Amazon Cloud drive but that has since been uninstalled



  • @Mobious hmm might also be due to your antivirus software (i just add whole burst folder to exclude list so it doesnt delete files)



  • Yeah I thought so too. Previously my AV would pop up and say the exe was a trojan so I did add the exe and the folder. It doesnt pop up any longer.

    Nothing shows up in the Event Logs and nothing shows up in the nxt.log crazy/./.

    2017-07-17 19:58:03 INFO: nxt.enableStackTraces = "true"
    2017-07-17 19:58:03 INFO: nxt.enableLogTraceback = "false"
    2017-07-17 19:58:03 INFO: logging enabled
    2017-07-17 19:58:03 INFO: nxt.disableGenerateBlocksThread not defined, assuming false
    2017-07-17 19:58:03 INFO: nxt.dbCacheKB = "0"
    2017-07-17 19:58:03 INFO: nxt.maxRollback = "1440"
    2017-07-17 19:58:03 INFO: nxt.isTestnet = "false"
    2017-07-17 19:58:03 INFO: nxt.isOffline = "false"
    2017-07-17 19:58:03 INFO: nxt.dbUrl = "jdbc:h2:./burst_db/burst;DB_CLOSE_ON_EXIT=FALSE"
    2017-07-17 19:58:03 INFO: nxt.maxDbConnections = "30"
    2017-07-17 19:58:03 INFO: nxt.dbLoginTimeout = "70"
    2017-07-17 19:58:03 INFO: nxt.dbDefaultLockTimeout = "60"
    2017-07-17 19:58:04 INFO: Shutting down...
    2017-07-17 19:58:04 INFO: nxt.enableDebugAPI = "false"
    2017-07-17 19:58:04 INFO: nxt.allowedBotHosts = "127.0.0.1; localhost; [0:0:0:0:0:0:0:1];"
    2017-07-17 19:58:04 INFO: nxt.enableAPIServer = "true"
    2017-07-17 19:58:04 INFO: nxt.apiServerPort = "8125"
    2017-07-17 19:58:04 INFO: nxt.apiServerHost = "127.0.0.1"
    2017-07-17 19:58:04 INFO: nxt.apiSSL = "false"
    2017-07-17 19:58:04 INFO: nxt.apiServerIdleTimeout = "30000"
    2017-07-17 19:58:04 INFO: nxt.apiResourceBase = "html/ui"
    2017-07-17 19:58:04 INFO: nxt.javadocResourceBase = "html/doc"
    2017-07-17 19:58:04 INFO: nxt.enableAPIServerGZIPFilter = "false"
    2017-07-17 19:58:04 INFO: nxt.apiServerCORS = "false"
    2017-07-17 19:58:04 INFO: nxt.allowedUserHosts = "127.0.0.1; localhost; [0:0:0:0:0:0:0:1];"
    2017-07-17 19:58:04 INFO: nxt.enableUIServer = "false"
    2017-07-17 19:58:04 INFO: User interface server not enabled
    2017-07-17 19:58:04 INFO: nxt.myPlatform = "AIO"
    2017-07-17 19:58:04 INFO: nxt.myAddress not defined
    2017-07-17 19:58:04 INFO: nxt.peerServerPort = "8126"
    2017-07-17 19:58:04 INFO: nxt.shareMyAddress = "true"
    2017-07-17 19:58:04 INFO: nxt.myHallmark not defined
    2017-07-17 19:58:04 INFO: burst.rebroadcastPeers = "burst.ninja; pool.burstcoin.biz"
    2017-07-17 19:58:04 INFO: nxt.wellKnownPeers = "burstcoin.shmtech.biz:9682; 128.171.156.20:8123; 5.9.44.154; cybaer.dyndns.org;  wallet.burstcoin.tech:8121; 91.235.113.249; a.storj.eu"
    2017-07-17 19:58:04 INFO: burst.connectWellKnownFirst = "2"
    2017-07-17 19:58:04 INFO: nxt.knownBlacklistedPeers not defined
    2017-07-17 19:58:04 INFO: nxt.maxNumberOfConnectedPublicPeers = "20"
    2017-07-17 19:58:04 INFO: nxt.connectTimeout = "4000"
    2017-07-17 19:58:04 INFO: nxt.readTimeout = "8000"
    2017-07-17 19:58:04 INFO: nxt.enableHallmarkProtection = "false"
    2017-07-17 19:58:04 INFO: nxt.pushThreshold = "0"
    2017-07-17 19:58:04 INFO: nxt.pullThreshold = "0"
    2017-07-17 19:58:04 INFO: nxt.blacklistingPeriod = "600000"
    2017-07-17 19:58:04 INFO: nxt.communicationLoggingMask = "0"
    2017-07-17 19:58:04 INFO: nxt.sendToPeersLimit = "10"
    2017-07-17 19:58:04 INFO: nxt.usePeersDb = "true"
    2017-07-17 19:58:04 INFO: nxt.savePeers = "true"
    2017-07-17 19:58:04 INFO: nxt.getMorePeers = "true"
    2017-07-17 19:58:04 INFO: nxt.dumpPeersVersion not defined
    2017-07-17 19:58:04 INFO: burst.blockCacheMB not defined, assuming 0
    2017-07-17 19:58:04 INFO: burst.oclVerify = "false"
    2017-07-17 19:58:04 INFO: burst.oclThreshold not defined, assuming 0
    2017-07-17 19:58:04 INFO: burst.oclWaitThreshold not defined, assuming 0
    2017-07-17 19:58:04 INFO: nxt.trimDerivedTables = "true"
    2017-07-17 19:58:04 INFO: nxt.forceScan = "false"
    2017-07-17 19:58:04 INFO: nxt.forceValidate = "false"
    2017-07-17 19:58:04 INFO: nxt.disableGetMoreBlocksThread not defined, assuming false
    2017-07-17 19:58:04 INFO: nxt.disableImportBlocksThread not defined, assuming false
    2017-07-17 19:58:04 INFO: nxt.disablePeerConnectingThread not defined, assuming false
    2017-07-17 19:58:04 INFO: nxt.disablePeerUnBlacklistingThread not defined, assuming false
    2017-07-17 19:58:04 INFO: nxt.disableGetMorePeersThread not defined, assuming false
    2017-07-17 19:58:04 INFO: nxt.peerServerHost = "0.0.0.0"
    2017-07-17 19:58:04 INFO: nxt.peerServerIdleTimeout = "30000"
    2017-07-17 19:58:04 INFO: nxt.enablePeerServerGZIPFilter = "true"
    2017-07-17 19:58:04 INFO: nxt.enablePeerServerDoSFilter = "true"
    2017-07-17 19:58:04 INFO: nxt.peerServerDoSFilter.maxRequestsPerSec = "30"
    2017-07-17 19:58:04 INFO: nxt.peerServerDoSFilter.delayMs = "1000"
    2017-07-17 19:58:04 INFO: nxt.peerServerDoSFilter.maxRequestMs = "300000"
    
    


  • Strangely enough, my local wallet is working again after I deleted the database.. The run.bat still throws the error though.



  • @Mobious strange o_O



  • @Mobious said in Java.lang.NullPointerException?:

    Strangely enough, my local wallet is working again after I deleted the database.. The run.bat still throws the error though.

    Your DB was corrupted, it does happen once in awhile. Download and extract latest DB and restart wallet.



  • The run.bat file still throws an error. If I close the Burst Client down I have to redownload the DB again. lol at least it still mines.



  • @Mobious dont forget you have to turn off service by ctrl + c and not simply closing window, as it initiates db closing and saving to file.



  • @LithStud HA! You know what.. I thought I had rebooted since this problem started.. Apparently, I haven't.. The local server is currently running. As soon as this plot is done I will reboot and give it a try.

    The simplest things huh? Thanks!