"java.lang.SecurityException: Could not lock User prefs." on JBoss ON Agent startup

Solution Verified - Updated -

Issue

  • Below error message in agent.log
2014-08-12 08:59:11,710 FATAL [main] (org.rhq.enterprise.agent.AgentMain)- {AgentMain.start-failure}Failed to start the agent
java.lang.SecurityException: Could not lock User prefs. Lock file access denied.
        at java.util.prefs.FileSystemPreferences.checkLockFile0ErrorCode(FileSystemPreferences.java:936)
        at java.util.prefs.FileSystemPreferences.lockFile(FileSystemPreferences.java:925)
        at java.util.prefs.FileSystemPreferences.sync(FileSystemPreferences.java:729)
        at java.util.prefs.FileSystemPreferences.flush(FileSystemPreferences.java:824)
        at org.rhq.enterprise.agent.AgentMain.loadConfigurationFile(AgentMain.java:1268)
        at org.rhq.enterprise.agent.AgentMain.checkInitialConfiguration(AgentMain.java:3377)
        at org.rhq.enterprise.agent.AgentMain.processArguments(AgentMain.java:3160)
        at org.rhq.enterprise.agent.AgentMain.<init>(AgentMain.java:508)
        at org.rhq.enterprise.agent.AgentMain.main(AgentMain.java:404)

Environment

  • Red Hat JBoss Operations Network (ON) 3.2, 3.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.