[ 
https://issues.apache.org/jira/browse/ATLAS-4570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Radhika Kundam updated ATLAS-4570:
----------------------------------
    Description: 
Intermittent issue: Atlas not initializing properly due to issue with spring 
servlet initialization and it's causing issues with REST api.
{code:java}
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){code}
>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.

  was:
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.


> Issue with spring servlet initialization at Atlas startup
> ---------------------------------------------------------
>
>                 Key: ATLAS-4570
>                 URL: https://issues.apache.org/jira/browse/ATLAS-4570
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: 3.0.0, 2.2.0
>            Reporter: Radhika Kundam
>            Assignee: Radhika Kundam
>            Priority: Major
>
> Intermittent issue: Atlas not initializing properly due to issue with spring 
> servlet initialization and it's causing issues with REST api.
> {code:java}
> 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){code}
> 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.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to