java.lang.NullPointerException: null

Sonatype JIRA | eXo SWF Team | 1 year ago
  1. 0

    Hi, I have a problem with a Group Repository which has no more indexes and Admin tasks are not able to regenerate those indexes files. A) Problem: ---- * Nexus version 2.9.0-04 * The repository is a *Maven2 Group repository* named "[G] Public Repository" with ID *public* and it contains 2 repositories * When you want to browse index via the UI, there is a message "Index not available" * If I inspect files on the server: ** the folder named *.index* at */home/nexus/sonatype-work/nexus/storage/public/.nexus/attributes/* is missing ** the folder named *public-ctx* at */home/nexus/data/indexer/* is missing B) Scenarii ---- # I tried to Repair and Update index with the related admin tasks without success. # I upgraded Nexus from version 2.9.0-04 to version 2.11.2-06 ## when Nexus was restarted in version 2.11.2-06, the problem was the same as described on A) # After this upgrade, the following steps was done: ## I have executed the Nexus Admin Tasks to generate index and reindex the Public repository => *Still no index available* for "[G] Public Repository" ## I have created a new Repository named "swf-3337" with the same configuration like "[G] Public Repository" ### as far as this repository was created, a folder named */home/nexus/data/indexer/swf-3337-ctx* was created and the index was available for this repository via Nexus UI ## I have made a backup of "[G] Public Repository" then delete it and recreate it: ### as far as the repository was recreated, Nexus tried to initialize index but it failed with this log message *org.sonatype.nexus.index.DefaultIndexerManager - Could not acquire exclusive lock on repository public in 60 seconds* and the folder */home/nexus/data/indexer/public-ctx was not created* so *still no index available *for this repository {code} jvm 1 | at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) [jetty-util-8.1.11.v20130520.jar:8.1.11.v20130520] jvm 1 | at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] jvm 1 | 2015-07-09 17:49:25 INFO [qtp14037815-246] - org.sonatype.nexus.proxy.registry.DefaultRepositoryRegistry - Removed repository "[G] Public repositories" [id=public][contentClass=Maven2][mainFacet=org.sonatype.nexus.proxy.repository.GroupRepository] jvm 1 | 2015-07-09 17:49:25 INFO [qtp14037815-246] - org.sonatype.nexus.configuration.application.DefaultNexusConfiguration - Applying Nexus Configuration due to changes in [Repository Grouping Configuration] made by mgreau... jvm 1 | 2015-07-09 17:52:46 INFO [qtp14037815-234] - org.sonatype.nexus.proxy.maven.routing.internal.ManagerImpl - Initializing non-existing prefix file of newly added "[G] Public repositories" [id=public] jvm 1 | 2015-07-09 17:52:46 INFO [ar-4-thread-2 ] - org.sonatype.nexus.proxy.maven.routing.internal.ManagerImpl - Updated and published prefix file of "[G] Public repositories" [id=public] jvm 1 | 2015-07-09 17:53:46 WARN [qtp14037815-234] - org.sonatype.nexus.index.DefaultIndexerManager - Could not acquire exclusive lock on repository public in 60 seconds. Consider increasing value of ''nexus.indexer.locktimeout'' parameter. Enable debug log to recieve more information. jvm 1 | 2015-07-09 17:53:46 INFO [qtp14037815-234] - org.sonatype.nexus.proxy.registry.DefaultRepositoryRegistry - Added repository "[G] Public repositories" [id=public][contentClass=Maven2][mainFacet=org.sonatype.nexus.proxy.repository.GroupRepository] jvm 1 | 2015-07-09 17:53:46 INFO [qtp14037815-234] - org.sonatype.nexus.configuration.application.DefaultNexusConfiguration - Applying Nexus Configuration made by mgreau... jvm 1 | 2015-07-09 17:53:46 INFO [qtp14037815-234] - org.sonatype.nexus.configuration.application.DefaultNexusConfiguration - Applying Nexus Configuration due to changes in [[G] Public repositories] made by mgreau... jvm 1 | 2015-07-09 17:54:46 WARN [qtp14037815-234] - org.sonatype.nexus.index.DefaultIndexerManager - Could not acquire exclusive lock on repository public in 60 seconds. Consider increasing value of ''nexus.indexer.locktimeout'' parameter. Enable debug log to recieve more information. jvm 1 | 2015-07-09 17:54:46 INFO [ar-4-thread-5 ] - org.sonatype.nexus.proxy.maven.routing.internal.ManagerImpl - Unpublished prefix file of "[G] Public repositories" [id=public] (and is marked for noscrape) jvm 1 | 2015-07-09 17:56:26 ERROR [qtp14037815-262] - org.sonatype.nexus.rest.NexusRestletResource - java.lang.NullPointerException jvm 1 | java.lang.NullPointerException: null jvm 1 | at org.sonatype.nexus.index.LockingIndexingContext.getRepositoryId(LockingIndexingContext.java:65) ~[na:na] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.shared(DefaultIndexerManager.java:2253) ~[na:na] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.listNodes(DefaultIndexerManager.java:2181) ~[na:na] jvm 1 | at org.sonatype.nexus.rest.indextreeview.AbstractIndexContentPlexusResource.get(AbstractIndexContentPlexusResource.java:125) ~[na:na] jvm 1 | at org.sonatype.nexus.rest.index.groups.GroupIndexContentPlexusResource.get(GroupIndexContentPlexusResource.java:82) ~[na:na] jvm 1 | at org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:233) ~[nexus-restlet1x-plugin-2.11.2-06/:na] jvm 1 | at org.sonatype.nexus.rest.NexusRestletReso {code} # I started a task "Update Repositories index" on "[G] Public repositories" with the following configuration: ## LOGGER "org.sonatype.nexus.index.DefaultIndexerManager" LEVEL DEBUG ## LOGGER "org.sonatype.nexus.index" LEVEL INFO ## LOGGER "org.sonatype.nexus.tasks" LEVEL DEBUG This task failed with the following message: {code} ********************************** * SWF-3327: DEBUG for index+task * ********************************** 2015-07-09 19:58:56 INFO [qtp14037815-364] - org.sonatype.nexus.configuration.application.DefaultNexusConfiguration - Applying Nexus Configuration due to changes in [Scheduled Tasks] made by mgreau... 2015-07-09 19:59:02 INFO [pool-1-thread-8] - org.sonatype.nexus.index.tasks.UpdateIndexTask - Scheduled task (SWF-3327-UpdateIndex) started :: Updating repository index "[G] Public repositories" from path / and below. 2015-07-09 19:59:02 DEBUG [pool-1-thread-8] - org.sonatype.nexus.index.DefaultIndexerManager - Reindexing repository exo-central-releases fromPath=/ fullReindex=false 2015-07-09 19:59:02 INFO [pool-1-thread-8] - org.sonatype.nexus.index.DefaultIndexerManager - Trying to get remote index for repository "[PX][R] eXo Central Releases" [id=exo-central-releases] 2015-07-09 19:59:04 INFO [pool-1-thread-8] - org.sonatype.nexus.index.DefaultIndexerManager - Remote indexes updated successfully for repository "[PX][R] eXo Central Releases" [id=exo-central-releases] 2015-07-09 19:59:04 INFO [pool-1-thread-8] - org.sonatype.nexus.index.NexusScanningListener - Scanning of repositoryID="exo-central-releases" started. ... 2015-07-09 20:02:54 DEBUG [pool-1-thread-8] - org.sonatype.nexus.index.mindexer.NexusArtifactContextProducer - ArtifactContext of //com/google/guava/guava/r09/guava-r09.jar enhanced with sha1=9c8991d491d714053d300de0f8657d95780ff923 2015-07-09 20:06:39 INFO [pool-1-thread-8] - org.sonatype.nexus.index.NexusScanningListener - Scanning of repositoryID="exo-central-releases" finished: scanned=14224, added=3106, updated=0, removed=0, scanningDuration=0:07:35.003 2015-07-09 20:06:39 DEBUG [pool-1-thread-8] - org.sonatype.nexus.index.DefaultIndexerManager - Reindexed repository exo-central-releases 2015-07-09 20:06:39 DEBUG [pool-1-thread-8] - org.sonatype.nexus.index.DefaultIndexerManager - Publishing index for repository exo-central-releases 2015-07-09 20:06:39 INFO [pool-1-thread-8] - org.sonatype.nexus.index.DefaultIndexerManager - Publishing index for repository exo-central-releases 2015-07-09 20:09:44 DEBUG [pool-1-thread-8] - org.sonatype.nexus.index.DefaultIndexerManager - Published index for repository exo-central-releases 2015-07-09 20:09:44 DEBUG [pool-1-thread-8] - org.sonatype.nexus.index.DefaultIndexerManager - Cleanup of temp files... 2015-07-09 20:09:44 DEBUG [pool-1-thread-8] - org.sonatype.nexus.index.DefaultIndexerManager - Reindexing repository exo-central-snapshots fromPath=/ fullReindex=false 2015-07-09 20:09:44 INFO [pool-1-thread-8] - org.sonatype.nexus.index.DefaultIndexerManager - Trying to get remote index for repository "[PX][S] eXo Central Snapshots" [id=exo-central-snapshots] 2015-07-09 20:09:45 INFO [pool-1-thread-8] - org.sonatype.nexus.index.DefaultIndexerManager - Remote indexes updated successfully for repository "[PX][S] eXo Central Snapshots" [id=exo-central-snapshots] 2015-07-09 20:09:45 INFO [pool-1-thread-8] - org.sonatype.nexus.index.NexusScanningListener - Scanning of repositoryID="exo-central-snapshots" started. 2015-07-09 20:36:55 INFO [Thread-32 ] - org.apache.shiro.session.mgt.AbstractValidatingSessionManager - Validating all active sessions... 2015-07-09 20:36:55 INFO [Thread-32 ] - org.apache.shiro.session.mgt.AbstractValidatingSessionManager - Finished session validation. No sessions were stopped. 2015-07-09 20:45:07 INFO [pool-1-thread-8] - org.sonatype.nexus.index.NexusScanningListener - Scanning of repositoryID="exo-central-snapshots" finished: scanned=4346, added=17, updated=0, removed=0, scanningDuration=0:35:21.697 2015-07-09 20:45:07 DEBUG [pool-1-thread-8] - org.sonatype.nexus.index.DefaultIndexerManager - Reindexed repository exo-central-snapshots 2015-07-09 20:45:07 DEBUG [pool-1-thread-8] - org.sonatype.nexus.index.DefaultIndexerManager - Publishing index for repository exo-central-snapshots 2015-07-09 20:45:07 INFO [pool-1-thread-8] - org.sonatype.nexus.index.DefaultIndexerManager - Publishing index for repository exo-central-snapshots 2015-07-09 20:45:56 DEBUG [pool-1-thread-8] - org.sonatype.nexus.index.DefaultIndexerManager - Published index for repository exo-central-snapshots 2015-07-09 20:45:56 DEBUG [pool-1-thread-8] - org.sonatype.nexus.index.DefaultIndexerManager - Cleanup of temp files... 2015-07-09 20:45:56 WARN [pool-1-thread-8] - org.sonatype.nexus.index.tasks.UpdateIndexTask - Scheduled task (SWF-3327-UpdateIndex) failed :: Updating repository index "[G] Public repositories" from path / and below. (started 2015-07-09T19:59:02+07:00, runtime 0:46:54.132) java.lang.NullPointerException: null at org.sonatype.nexus.index.LockingIndexingContext.getRepositoryId(LockingIndexingContext.java:65) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.shared(DefaultIndexerManager.java:2253) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.publishRepositoryIndex(DefaultIndexerManager.java:1441) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:964) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:938) ~[na:na] at org.sonatype.nexus.index.tasks.ReindexTaskHandlerLegacy.reindexRepository(ReindexTaskHandlerLegacy.java:61) ~[na:na] at org.sonatype.nexus.index.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:68) ~[na:na] at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:151) ~[nexus-core-2.11.2-06.jar:2.11.2-06] at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:418) [nexus-scheduler-2.11.2-06.jar:2.11.2-06] at org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:44) [nexus-core-2.11.2-06.jar:2.11.2-06] at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) [shiro-core-1.2.3.jar:1.2.3] at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) [shiro-core-1.2.3.jar:1.2.3] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] 2015-07-09 20:45:57 WARN [pool-1-thread-8] - org.sonatype.scheduling.DefaultScheduledTask - Exception in call method of scheduled task SWF-3327-UpdateIndex java.lang.NullPointerException: null at org.sonatype.nexus.index.LockingIndexingContext.getRepositoryId(LockingIndexingContext.java:65) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.shared(DefaultIndexerManager.java:2253) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.publishRepositoryIndex(DefaultIndexerManager.java:1441) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:964) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:938) ~[na:na] at org.sonatype.nexus.index.tasks.ReindexTaskHandlerLegacy.reindexRepository(ReindexTaskHandlerLegacy.java:61) ~[na:na] at org.sonatype.nexus.index.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:68) ~[na:na] at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:151) ~[nexus-core-2.11.2-06.jar:2.11.2-06] at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:418) ~[nexus-scheduler-2.11.2-06.jar:2.11.2-06] at org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:44) [nexus-core-2.11.2-06.jar:2.11.2-06] at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) [shiro-core-1.2.3.jar:1.2.3] at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) [shiro-core-1.2.3.jar:1.2.3] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] 2015-07-09 20:45:57 INFO [sh-1-thread-202] - org.sonatype.micromailer.imp.DefaultEMailer - Handling mail request NX1436449557343 2015-07-09 20:45:57 INFO [pool-2-thread-1] - javax.mail - JavaMail version 1.4.7 2015-07-09 20:45:57 INFO [pool-2-thread-1] - javax.mail - successfully loaded resource: /META-INF/javamail.default.providers 2015-07-09 20:45:57 INFO [pool-2-thread-1] - javax.mail - Tables of loaded providers 2015-07-09 20:45:57 INFO [pool-2-thread-1] - javax.mail - Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle]} 2015-07-09 20:45:57 INFO [pool-2-thread-1] - javax.mail - Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]} 2015-07-09 20:45:57 INFO [pool-2-thread-1] - javax.mail - successfully loaded resource: /META-INF/javamail.default.address.map {code}

    Sonatype JIRA | 1 year ago | eXo SWF Team
    java.lang.NullPointerException: null
  2. 0

    Problem on reindex a repository with schedule task The result of the task is broken. This the log file 2009-04-29 10:48:20 INFO [pool-1-thread-3] - o.s.n.f.FeedRecorder:default - Reindexing repository other_geds_releases from path null and below. : Process started on Wed Apr 29 10:48:20 CEST 2009, finished on Wed Apr 29 10:48:20 CEST 2009 with error. Error message is: java.lang.NullPointerException Strack trace: java.lang.NullPointerException at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:467) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:429) at org.sonatype.nexus.DefaultNexus.reindexRepository(DefaultNexus.java:1324) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:40) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) java.lang.NullPointerException at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:467) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:429) at org.sonatype.nexus.DefaultNexus.reindexRepository(DefaultNexus.java:1324) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:40) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619)

    Sonatype JIRA | 8 years ago | Alexandre Navarro
    java.lang.NullPointerException
  3. 0

    Since at least release 1.7.2, an existing repository can not be indexed. As regarding some informations into exiting case or mailing, we tried to put repository out of service, shutdown nexus, removing .index directory, restart nexus .... but the error already exist. It's blocking for us because it concern our release repository. So when we search artifact into nexus webapp, no result is showing for this repository. find below the exception when we try to re-index:. 2010-11-24 12:06:12 INFO [ool-1-thread-11] - o.s.n.f.DefaultFeed~ - Reindexing repository zzzzz_releases from path null and below. : Process started on Wed Nov 24 12:06:12 CET 2010, not yet finished. 2010-11-24 12:06:12 INFO [ool-1-thread-11] - o.s.n.f.DefaultFeed~ - Reindexing repository zzzzz_releases from path null and below. : Process started on Wed Nov 24 12:06:12 CET 2010, finished on Wed Nov 24 12:06:12 CET 2010 with error. Error message is: java.lang.NullPointerException Strack trace: java.lang.NullPointerException at org.sonatype.nexus.index.DefaultIndexerManager.purgeCurrentIndex(DefaultIndexerManager.java:1037) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:1000) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:872) at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexRepository(ReindexTaskHandlerLegacy.java:56) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:70) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) java.lang.NullPointerException at org.sonatype.nexus.index.DefaultIndexerManager.purgeCurrentIndex(DefaultIndexerManager.java:1037) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:1000) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:872) at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexRepository(ReindexTaskHandlerLegacy.java:56) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:70) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) 2010-11-24 12:06:35 ERROR [tp-27456945-359] - o.s.n.p.m.m.M2Repos~ - Got Storage Exception while storing remote artifact, will attempt next mirror, cause: java.net.SocketTimeoutException: Read timed out

    Sonatype JIRA | 6 years ago | Christophe Lallement
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    We had a smoothly running 1.1.1 version. We upgraded to 1.3.6 While the repository itself is working fine (we can still access and publish jar files), the search facility doesn't work anymore. I assume this is because the reindexing fails: 2009-07-31 11:05:54 INFO [qtp0-39 ] - o.s.n.s.f.a.NexusSe~ - Successfully authenticated user [admin] from address/host [192.168.1.53/192.168.1.53] 2009-07-31 11:06:47 INFO [ool-1-thread-18] - o.s.n.f.FeedRecorder:default - Reindexing repository Releases from path / and below. : Process started on Fri Jul 31 11:06:47 CEST 2009, not yet finished. 2009-07-31 11:06:47 INFO [ool-1-thread-18] - o.s.n.f.FeedRecorder:default - Reindexing repository Releases from path / and below. : Process started on Fri Jul 31 11:06:47 CEST 2009, finished on Fri Jul 31 11:06:47 CEST 2009 with error. Error message is: java.lang.NullPointerException Strack trace: java.lang.NullPointerException at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:478) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:440) at org.sonatype.nexus.DefaultNexus.reindexRepository(DefaultNexus.java:1328) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:40) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) java.lang.NullPointerException at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:478) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:440) at org.sonatype.nexus.DefaultNexus.reindexRepository(DefaultNexus.java:1328) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:40) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) 2009-07-31 11:27:37 ERROR [qtp0-40 ] - o.s.n.r.NexusApplic~ - Unhandled exception or error intercepted java.lang.NullPointerException at org.sonatype.nexus.rest.feeds.AbstractFeedPlexusResource.getFeed(AbstractFeedPlexusResource.java:146) at org.sonatype.nexus.rest.feeds.FeedPlexusResource.getFeed(FeedPlexusResource.java:73) at org.sonatype.nexus.rest.feeds.AbstractFeedPlexusResource.get(AbstractFeedPlexusResource.java:101) at org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:260) at org.restlet.resource.Resource.getRepresentation(Resource.java:303) at org.restlet.resource.Resource.handleGet(Resource.java:465) at org.restlet.Finder.handle(Finder.java:353) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Router.handle(Router.java:504) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Router.handle(Router.java:504) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at org.sonatype.plexus.rest.RetargetableRestlet.doHandle(RetargetableRestlet.java:39) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at com.noelios.restlet.StatusFilter.doHandle(StatusFilter.java:130) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) at com.noelios.restlet.application.ApplicationHelper.handle(ApplicationHelper.java:112) at org.restlet.Application.handle(Application.java:341) at org.restlet.ext.wadl.WadlApplication.handle(WadlApplication.java:705) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Router.handle(Router.java:504) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at org.restlet.Router.handle(Router.java:504) at org.restlet.Filter.doHandle(Filter.java:150) at org.restlet.Filter.handle(Filter.java:195) at com.noelios.restlet.ChainHelper.handle(ChainHelper.java:124) at org.restlet.Component.handle(Component.java:673) at org.restlet.Server.handle(Server.java:331) at com.noelios.restlet.ServerHelper.handle(ServerHelper.java:68) at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:147) at com.noelios.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:884) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1124) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:52) at org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) at org.jsecurity.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:105) at org.jsecurity.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:135) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.jsecurity.web.servlet.FilterChainWrapper.doFilter(FilterChainWrapper.java:57) at org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382) at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)

    Sonatype JIRA | 7 years ago | Deleted User
    java.lang.NullPointerException
  6. 0

    Adding a maven 1 proxy repo for "http://download.java.net/maven/1/" results in an NPE in the log: 2009-07-15 09:53:22 INFO [qtp0-0 ] - o.s.n.p.r.Repositor~:default - Added repository ID='java-net' (contentClass='maven1', mainFacet='org.sonatype.nexus.proxy.maven.MavenProxyRepository') 2009-07-15 09:53:22 INFO [qtp0-0 ] - o.s.n.c.v.Applicati~:default - Nexus configuration validated succesfully. 2009-07-15 09:53:22 INFO [qtp0-0 ] - o.s.n.c.a.NexusConf~:default - Applying Nexus Configuration... 2009-07-15 09:53:23 INFO [pool-1-thread-1] - o.s.n.f.FeedRecorder:default - Reindexing repository java-net from path null and below. : Process started on Wed Jul 15 09:53:23 PDT 2009, not yet finished. 2009-07-15 09:53:23 INFO [pool-1-thread-1] - o.s.n.f.FeedRecorder:default - Reindexing repository java-net from path null and below. : Process started on Wed Jul 15 09:53:23 PDT 2009, finished on Wed Jul 15 09:53:23 PDT 2009 with error. Error message is: java.lang.NullPointerException Strack trace: java.lang.NullPointerException at org.sonatype.nexus.index.DefaultIndexerManager.purgeCurrentIndex(DefaultIndexerManager.java:598) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:562) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:503) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:54) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:144) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:339) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:172) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676) at java.lang.Thread.run(Thread.java:613) java.lang.NullPointerException at org.sonatype.nexus.index.DefaultIndexerManager.purgeCurrentIndex(DefaultIndexerManager.java:598) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:562) at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:503) at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:54) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:144) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:339) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:172) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676) at java.lang.Thread.run(Thread.java:613) 2009-07-15 09:53:23 INFO [qtp0-4 ] - o.s.n.p.s.r.RemoteR~:apacheH~ - Remote storage settings change detected, updating HttpClient...

    Sonatype JIRA | 7 years ago | Rich Seddon
    java.lang.NullPointerException

    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

      null

      at org.sonatype.nexus.index.LockingIndexingContext.getRepositoryId()
    2. Sonatype Nexus Indexer
      DefaultIndexerManager.reindexRepository
      1. org.sonatype.nexus.index.LockingIndexingContext.getRepositoryId(LockingIndexingContext.java:65)[na:na]
      2. org.sonatype.nexus.index.DefaultIndexerManager.shared(DefaultIndexerManager.java:2253)[na:na]
      3. org.sonatype.nexus.index.DefaultIndexerManager.publishRepositoryIndex(DefaultIndexerManager.java:1441)[na:na]
      4. org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:964)[na:na]
      5. org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:938)[na:na]
      5 frames
    3. org.sonatype.nexus
      AbstractIndexerTask.doRun
      1. org.sonatype.nexus.index.tasks.ReindexTaskHandlerLegacy.reindexRepository(ReindexTaskHandlerLegacy.java:61)[na:na]
      2. org.sonatype.nexus.index.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:68)[na:na]
      2 frames
    4. ${project.groupId}:${project.artifactId}
      AbstractNexusTask.call
      1. org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:151)[nexus-core-2.11.2-06.jar:2.11.2-06]
      1 frame
    5. ${project.groupId}:${project.artifactId}
      DefaultScheduledTask.call
      1. org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:418)[nexus-scheduler-2.11.2-06.jar:2.11.2-06]
      1 frame
    6. ${project.groupId}:${project.artifactId}
      MDCAwareCallable.call
      1. org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:44)[nexus-core-2.11.2-06.jar:2.11.2-06]
      1 frame
    7. Shiro
      SubjectCallable.call
      1. org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)[shiro-core-1.2.3.jar:1.2.3]
      2. org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)[shiro-core-1.2.3.jar:1.2.3]
      2 frames
    8. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:262)[na:1.7.0_51]
      2. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[na:1.7.0_51]
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[na:1.7.0_51]
      4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_51]
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[na:1.7.0_51]
      6. java.lang.Thread.run(Thread.java:744)[na:1.7.0_51]
      6 frames