Project

General

Profile

Actions

Bug #5816

closed

Null pointer exception on agentTypes class

Added by Vincent MEMBRÉ over 9 years ago. Updated about 9 years ago.

Status:
Released
Priority:
1
Category:
Web - Nodes & inventories
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

We saw a null pointer execption appearing on AgentType class.

[2014-11-25 13:27:38] ERROR net.liftweb.actor.ActorLogger - Actor threw an exception
java.lang.ExceptionInInitializerError: null
Caused by: java.lang.NullPointerException: null
Exception in thread "pool-2-thread-2" java.lang.ExceptionInInitializerError
    at com.normation.inventory.domain.AgentType$.allValues(AgentTypes.scala:64)
    at com.normation.inventory.domain.AgentType$.fromValue(AgentTypes.scala:72)

Someting went wrong at AgntType initialization, val 'TagValue' is not correctly initialized

val tagValue = s"cfengine-${this}".toLowerCase

using a lazy val fixes that problem

Actions #1

Updated by Vincent MEMBRÉ over 9 years ago

  • Project changed from Rudder to 20
Actions #2

Updated by Vincent MEMBRÉ over 9 years ago

  • Status changed from New to Pending technical review
  • Assignee changed from Vincent MEMBRÉ to François ARMAND
  • Pull Request set to https://github.com/Normation/ldap-inventory/pull/52
Actions #3

Updated by Vincent MEMBRÉ over 9 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
Actions #5

Updated by Vincent MEMBRÉ over 9 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.10.8 and 2.11.5, which were released today (16/12/14)

Actions #6

Updated by Benoît PECCATTE about 9 years ago

  • Project changed from 20 to Rudder
  • Category set to Web - Nodes & inventories
Actions

Also available in: Atom PDF