Skip to content

Instantly share code, notes, and snippets.

View djsauble's full-sized avatar

Daniel Sauble djsauble

View GitHub Profile
@djsauble
djsauble / output.log
Created January 8, 2018 19:08
NPE when uploading a JAR and POM
2018-01-08 11:06:10,290-0800 ERROR [qtp320517367-76] admin org.sonatype.nexus.extdirect.internal.ExtDirectServlet - Failed to invoke action method: coreui_Upload.doUpload, java-method: org.sonatype.nexus.coreui.UploadComponentComponent.doUpload
java.lang.NullPointerException: null
at org.sonatype.nexus.repository.maven.MavenUploadHandler.createBasePath(MavenUploadHandler.java:165)
at org.sonatype.nexus.repository.maven.MavenUploadHandler.createBasePathFromPom(MavenUploadHandler.java:176)
at org.sonatype.nexus.repository.maven.MavenUploadHandler.lambda$0(MavenUploadHandler.java:123)
at org.sonatype.nexus.transaction.OperationPoint.proceed(OperationPoint.java:64)
at org.sonatype.nexus.transaction.TransactionalWrapper.proceedWithTransaction(TransactionalWrapper.java:56)
at org.sonatype.nexus.transaction.Operations.transactional(Operations.java:200)
at org.sonatype.nexus.transaction.Operations.call(Operations.java:146)
at org.sonatype.nexus.repository.maven.MavenUploadHandler.doUpload(MavenUploadHandler.j
@djsauble
djsauble / output.log
Created December 5, 2017 16:45
Error building NEXUS-15102-Content-Selectors-Error branch
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:28 min
[INFO] Finished at: 2017-12-05T08:43:52-08:00
[INFO] Final Memory: 175M/828M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.searls:jasmine-maven-plugin:2.2:test (default) on project nexus-rapture: The jasmine-maven-plugin encountered an exception:
[ERROR] java.lang.RuntimeException: java.lang.RuntimeException: There were javascript console errors.
[ERROR]
@djsauble
djsauble / output.log
Created September 28, 2017 21:45
Exception when trying to view asset details
2017-09-28 14:43:18,397-0700 ERROR [qtp2112625894-182] *UNKNOWN org.sonatype.nexus.extdirect.internal.ExtDirectServlet - Failed to invoke action method: coreui_Component.readAsset, java-method: org.sonatype.nexus.coreui.ComponentComponent.readAsset
javax.ws.rs.WebApplicationException: HTTP 404 Not Found
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247)
at org.sonatype.nexus.coreui.ComponentComponent.readAss
@djsauble
djsauble / eh.flg
Created September 8, 2017 22:51
ADOM victory summary for Eh, the Grey Elven Wizard
------------------------------------------------------------------------------
Screenshot
------------------------------------------------------------------------------
Y
^^^ ^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^
^^^^^^*^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^=====^^^^^^^^^^^^^^^^^..^
^*^^===""""~~ ^^*^^^&&&&&&&~~~~~~~~~~~~**^^=======^^*^^^^^^^^^^^*.@^^
^^^^===="""~~~~ ^^^&&&&&&o&&&&&&&~~~~~~~&&&========="""""""&&^~^^*^.^^
@djsauble
djsauble / pom.xml
Created August 30, 2017 17:58
Replace <div id="header"> with <div id="header" style="display: none;">
<!-- attempt to hide unused header, though this seems to do nothing -->
<replacefilter token="&lt;div id&#61;&quot;header&quot;&gt;"
value="&lt;div id&#61;&quot;header&quot; style&#61;&quot;display: none;&quot;&gt;"/>
@djsauble
djsauble / nexus.log
Created August 7, 2017 16:35
Error when browsing maven-releases with CSEL-based content selector auth (PE-222_only_use_content_auth_for_jexl)
2017-08-07 09:28:31,522-0700 INFO [qtp1032592482-262] any org.sonatype.nexus.rapture.internal.security.SessionServlet - Created session for user: any
2017-08-07 09:28:35,067-0700 ERROR [qtp1032592482-241] any com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=component}} Exception `5D551B62` in storage `component`
com.orientechnologies.orient.core.sql.OCommandSQLParsingException: Error parsing query:
select @rid from (traverse children_ids, asset_id from (select from browse_node where @rid = :id)) where (name matches :a0a0 or name matches :a0a1) or (name matches :a1a0)0 = 1 limit 1
^
Encountered " <INTEGER_LITERAL> "0 "" at line 1, column 172.
Was expecting one of:
<EOF>
<AND> ...
<OR> ...
@djsauble
djsauble / output.log
Created July 12, 2017 22:16
Stack trace when logging out after trying to browse a repo w/ content selectors applied (no assets shown)
2017-07-12 15:01:25,521-0700 INFO [qtp1027181925-74] any org.sonatype.nexus.rapture.internal.security.SessionServlet - Created session for user: any
2017-07-12 15:02:16,713-0700 INFO [qtp1027181925-75] any org.sonatype.nexus.rapture.internal.security.SessionServlet - Deleting session for user: any
2017-07-12 15:02:16,715-0700 ERROR [qtp1027181925-223] any org.sonatype.nexus.extdirect.internal.ExtDirectServlet - Failed to invoke action method: coreui_Browse.read, java-method: org.sonatype.nexus.coreui.BrowseComponent.read
com.orientechnologies.orient.core.exception.OCommandExecutionException: Error on execution of command: sql.select @rid from (traverse children_ids, asset_id from (select from browse_node where @rid = :id)) where @class = 'asset' and contentAuth(@this, :authz_repository_name) == true limit 1
DB name="component"
at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.executeCommand(OAbstractPaginatedStorage.java:2636)
at com.orientechnologies.orient.core.storage.i
@djsauble
djsauble / output.log
Created April 19, 2017 18:21
NXRM3 runtime exception while downloading packages for insight-brain-service (NPM)
2017-04-19 11:17:23,814-0700 ERROR [qtp1722466837-66] admin com.google.common.eventbus.EventBus.nexus - Could not dispatch event AssetCreatedEvent{metadata=AttachedEntityMetadata{schema=asset, document=asset#55:84{bucket:#40:0,format:npm,last_updated:Wed Apr 19 11:17:23 PDT 2017,attributes:[5],component:#44:28,name:jsprim/-/jsprim-1.4.0.tgz,size:10563,content_type:application/x-tgz,blob_ref:default@BBA55C11-DD65C0F2-11220C87-8560038A-BA2BAEB5:186bf0ae-64f5-4297-b947-4d2f872a7073,last_downloaded:Wed Apr 19 11:17:23 PDT 2017,blob_created:Wed Apr 19 11:17:23 PDT 2017,blob_updated:Wed Apr 19 11:17:23 PDT 2017} v1}, remoteNodeId=null} to subscriber org.sonatype.nexus.repository.storage.BrowseNodeMetadataProducer@25e1e285 method [public void org.sonatype.nexus.repository.storage.BrowseNodeMetadataProducer.on(org.sonatype.nexus.repository.storage.AssetCreatedEvent)]
org.sonatype.nexus.common.stateguard.InvalidStateException: Invalid state: OPEN; allowed: [ACTIVE]
at org.sonatype.nexus.common.stateguard.StateGuard._
@djsauble
djsauble / log.txt
Created February 16, 2017 23:10
insight-portal-webapp logs after running Health Check schedule task from NXRM3
INFO [2017-02-16 23:08:36,796] RepoHealthCheckRequestLogger: Type:getNextScanUploadDelta,IPAddress:127.0.0.1,RepoManagerId:b80b303d967f4168838b0e31e207eef8,RepoId:maven-central,LicenseId:dcee06602a8eb2e5d8a06f6fabc5ada92820382f,UserAgent:Nexus/3.3.0-SNAPSHOT (PRO; Mac OS X; 10.12.3; x86_64; 1.8.0_102)
ERROR [2017-02-16 23:08:36,797] com.sonatype.insight.jaxrs.error.ErrorResponseGenerator: An error occurred while parsing the query filter "SELECT entity FROM ArtifactRepositoryManager entity WHERE entity.remoteId=?1". Error message: The name "ArtifactRepositoryManager" is not a recognized entity or identifier. Known entity names: [] (ID c809990f45e54d37)
! org.apache.openjpa.persistence.ArgumentException: An error occurred while parsing the query filter "SELECT entity FROM ArtifactRepositoryManager entity WHERE entity.remoteId=?1". Error message: The name "ArtifactRepositoryManager" is not a recognized entity or identifier. Known entity names: []
! at org.apache.openjpa.kernel.exps.AbstractExpressionBuilder.par
@djsauble
djsauble / log.txt
Created February 16, 2017 23:05
Logs from manually running the Health Check scheduled task
2017-02-16 15:03:57,295-0800 INFO [qtp133746517-186] admin org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Health Check: maven-central' [healthcheck] runNow
2017-02-16 15:03:57,296-0800 INFO [qtp133746517-186] admin org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Health Check: maven-central' [healthcheck] state change WAITING -> RUNNING
2017-02-16 15:03:57,421-0800 INFO [quartz-4-thread-3] *SYSTEM org.sonatype.nexus.scheduling.internal.TaskSchedulerImpl - Task 'Health Check: maven-central' [healthcheck] scheduled: hourly
2017-02-16 15:03:57,422-0800 WARN [quartz-4-thread-3] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskJob - Task c1bc33ae-0e7d-41a2-9246-76fcf5cae106 : 'Health Check: maven-central' [healthcheck] execution failure
java.io.IOException: Failed to determine health check interval for repository maven-central, status code 500 Internal Server Error
at com.sonatype.nexus.plugins.healthcheck.task.HealthCheckTask.doDeltaCheck(HealthCheckTask.java:351) [na:n