Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-4570

Issue with spring servlet initialization at Atlas startup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0, 2.2.0
    • None
    • atlas-core
    • None

    Description

      Intermittent issue: Atlas not initializing properly due to issue with spring servlet initialization and it's causing issues with REST api.

      2022-03-10 16:34:09,834 ERROR - [main:] ~ The following errors and warnings have been detected with resource and/or provider classes:
        SEVERE: Missing dependency for method public org.apache.atlas.bulkimport.BulkImportResponse org.apache.atlas.web.rest.GlossaryREST.importGlossaryData(java.io.InputStream,com.sun.jersey.core.header.FormDataContentDisposition) throws org.apache.atlas.exception.AtlasBaseException at parameter at index 0
        SEVERE: Missing dependency for method public org.apache.atlas.bulkimport.BulkImportResponse org.apache.atlas.web.rest.GlossaryREST.importGlossaryData(java.io.InputStream,com.sun.jersey.core.header.FormDataContentDisposition) throws org.apache.atlas.exception.AtlasBaseException at parameter at index 1
        SEVERE: Method, public org.apache.atlas.bulkimport.BulkImportResponse org.apache.atlas.web.rest.GlossaryREST.importGlossaryData(java.io.InputStream,com.sun.jersey.core.header.FormDataContentDisposition) throws org.apache.atlas.exception.AtlasBaseException, annotated with POST of resource, class org.apache.atlas.web.rest.GlossaryREST, is not recognized as valid resource method.
        SEVERE: Missing dependency for method public org.apache.atlas.bulkimport.BulkImportResponse org.apache.atlas.web.rest.EntityREST.importBMAttributes(java.io.InputStream,com.sun.jersey.core.header.FormDataContentDisposition) throws org.apache.atlas.exception.AtlasBaseException at parameter at index 0
        SEVERE: Missing dependency for method public org.apache.atlas.bulkimport.BulkImportResponse org.apache.atlas.web.rest.EntityREST.importBMAttributes(java.io.InputStream,com.sun.jersey.core.header.FormDataContentDisposition) throws org.apache.atlas.exception.AtlasBaseException at parameter at index 1
        SEVERE: Method, public org.apache.atlas.bulkimport.BulkImportResponse org.apache.atlas.web.rest.EntityREST.importBMAttributes(java.io.InputStream,com.sun.jersey.core.header.FormDataContentDisposition) throws org.apache.atlas.exception.AtlasBaseException, annotated with POST of resource, class org.apache.atlas.web.rest.EntityREST, is not recognized as valid resource method.
        SEVERE: Missing dependency for method public org.apache.atlas.model.impexp.AtlasImportResult org.apache.atlas.web.resources.AdminResource.importData(java.lang.String,java.io.InputStream) throws org.apache.atlas.exception.AtlasBaseException at parameter at index 0
        SEVERE: Missing dependency for method public org.apache.atlas.model.impexp.AtlasImportResult org.apache.atlas.web.resources.AdminResource.importData(java.lang.String,java.io.InputStream) throws org.apache.atlas.exception.AtlasBaseException at parameter at index 1
        SEVERE: Method, public org.apache.atlas.model.impexp.AtlasImportResult org.apache.atlas.web.resources.AdminResource.importData(java.lang.String,java.io.InputStream) throws org.apache.atlas.exception.AtlasBaseException, annotated with POST of resource, class org.apache.atlas.web.resources.AdminResource, is not recognized as valid resource method. (Errors:168)
      2022-03-10 16:34:09,835 ERROR - [main:] ~ Exception occurred when intialization (SpringServlet:119)
      com.sun.jersey.spi.inject.Errors$ErrorMessagesException
              at com.sun.jersey.spi.inject.Errors.processErrorMessages(Errors.java:170)
              at com.sun.jersey.spi.inject.Errors.postProcess(Errors.java:136)

      From multiple blogs it appeared the error we are seeing is to be known issue with using different versions of jersey components(jersey-spring & jersey-multipart).

      For Atlas we are using jersey-spring version: 1.19.4 and jersey-multipart version: 1.19. 

      By updating both versions to 1.19.4 resolves the issue.

      Attachments

        Activity

          People

            radhikak Radhika Kundam
            radhikak Radhika Kundam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: