You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Mark Bean (Jira)" <ji...@apache.org> on 2021/05/03 14:20:00 UTC

[jira] [Commented] (NIFI-8496) NiFi returns 500 error when uploading templates

    [ https://issues.apache.org/jira/browse/NIFI-8496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17338384#comment-17338384 ] 

Mark Bean commented on NIFI-8496:
---------------------------------

Ultimately, I believe this issue is caused by the fact that jersey-media-jaxb is no longer a dependency in jersey-server (2.33) - it is now scoped to 'test'. Therefore, we must include it explicitly where needed.

I was able to eliminate the 500 error by adding the following to:
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-jetty/pom.xml

        <dependency>
            <groupId>org.glassfish.jersey.media</groupId>
            <artifactId>jersey-media-jaxb</artifactId>
            <version>${jersey.version}</version>
        </dependency>

My question is whether that is too "low level"? Are there modules other than nifi-jetty which may need this. The code compiles file, but I'm worried about more runtime behavior problems.

Thoughts?


> NiFi returns 500 error when uploading templates
> -----------------------------------------------
>
>                 Key: NIFI-8496
>                 URL: https://issues.apache.org/jira/browse/NIFI-8496
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>            Reporter: Matt Burgess
>            Priority: Major
>             Fix For: 1.14.0
>
>
> When attempting to upload a template from the UI and/or REST API, a 500 error is returned even though the template is uploaded successfully:
> 2021-04-26 13:32:41,069 ERROR [NiFi Web Server-21] o.g.j.m.i.WriterInterceptorExecutor MessageBodyWriter not found for media type=application/xml, type=class org.apache.nifi.web.api.entity.TemplateEntity, genericType=class org.apache.nifi.web.api.entity.TemplateEntity.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)