You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2024/09/19 05:41:00 UTC

[jira] [Closed] (FELIX-6727) NullPointerException when using REST API to install a bundle

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

Carsten Ziegeler closed FELIX-6727.
-----------------------------------

> NullPointerException when using REST API to install a bundle
> ------------------------------------------------------------
>
>                 Key: FELIX-6727
>                 URL: https://issues.apache.org/jira/browse/FELIX-6727
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-5.0.6
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>            Priority: Major
>             Fix For: webconsole-5.0.8
>
>
> When a bundle is installed via the REST API below NullPointerException might occur. The reason is that the detection of whether a response has already been written is based on status, error or content type - but the BundlesServlet only sets content length
> {code:java}
> 12.09.2024 09:11:44.086 *ERROR* [qtp1970453787-65] org.apache.felix.http Exception while processing request to /system/console/install
> java.lang.NullPointerException: Cannot read field "bundleRequested" because "reqInfo" is null
>         at org.apache.felix.webconsole.internal.core.BundlesServlet.renderContent(BundlesServlet.java:523)
>         at org.apache.felix.webconsole.internal.servlet.EnhancedPluginAdapter.renderContent(EnhancedPluginAdapter.java:158)
>         at org.apache.felix.webconsole.internal.servlet.AbstractPluginAdapter.doGet(AbstractPluginAdapter.java:124)
>         at org.apache.felix.webconsole.internal.servlet.EnhancedPluginAdapter.service(EnhancedPluginAdapter.java:152)
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)