jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Sonar
  • SONAR-795

NPE in JettyEmbedder

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.8
  • Fix Version/s: 1.9
  • Component/s: None
  • Labels:
    None
  • Environment:
    WinXP, 32bit, CLI, german,
    JAVA_HOME=C:\java\jdk1.5.0_16

Description

C:\java\sonar-1.8\bin\windows-x86-32>StartSonar.bat
wrapper | --> Wrapper Started as Console
wrapper | Java Service Wrapper Community Edition 3.3.0
wrapper | Copyright (C) 1999-2008 Tanuki Software, Inc. All Rights Reserved.
wrapper | http://wrapper.tanukisoftware.org
wrapper |
wrapper | Launching a JVM...
jvm 1 | WrapperManager: Initializing...
jvm 1 | WrapperSimpleApp:
jvm 1 | WrapperSimpleApp: Encountered an error running main:
jvm 1 | WrapperSimpleApp: java.lang.NullPointerException
jvm 1 | WrapperSimpleApp: at org.sonar.application.JettyEmbedder.getPluginsClasspath(JettyEmbedder.java:123)
jvm 1 | WrapperSimpleApp: at org.sonar.application.JettyEmbedder.configureProgrammatically(JettyEmbedder.java:93)
jvm 1 | WrapperSimpleApp: at org.sonar.application.JettyEmbedder.<init>(JettyEmbedder.java:55)
jvm 1 | WrapperSimpleApp: at org.sonar.application.StartServer.main(StartServer.java:38)
jvm 1 | WrapperSimpleApp: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1 | WrapperSimpleApp: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
jvm 1 | WrapperSimpleApp: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
jvm 1 | WrapperSimpleApp: at java.lang.reflect.Method.invoke(Unknown Source)
jvm 1 | WrapperSimpleApp: at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:237)
jvm 1 | WrapperSimpleApp: at java.lang.Thread.run(Unknown Source)
wrapper | <-- Wrapper Stopped
Drücken Sie eine beliebige Taste . . .
C:\java\sonar-1.8\bin\windows-x86-32>

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    sonar.log
    28/Apr/09 4:12 AM
    14 kB
    Mike R. Haller

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Simon Brandhof added a comment - 28/Apr/09 3:27 AM

Hi Mike,
Is it a fresh installation or an upgrade from a previous release ?

Show
Simon Brandhof added a comment - 28/Apr/09 3:27 AM Hi Mike, Is it a fresh installation or an upgrade from a previous release ?
Hide
Permalink
Mike R. Haller added a comment - 28/Apr/09 3:28 AM

@Assignee: Please remove the "netstat" output. I though it has something to do with a port being blocked by another application, but apparently, it's a "bug" in WinZip not creating empty folders.
Hence, the issue should be renamed to "create a dummy file in /extensions/plugins/" so the folder gets created when unzipping using WinZip.

Workaround: create the plugins folder:
C:\java\sonar-1.8\extensions>mkdir plugins

Show
Mike R. Haller added a comment - 28/Apr/09 3:28 AM @Assignee: Please remove the "netstat" output. I though it has something to do with a port being blocked by another application, but apparently, it's a "bug" in WinZip not creating empty folders. Hence, the issue should be renamed to "create a dummy file in /extensions/plugins/" so the folder gets created when unzipping using WinZip. Workaround: create the plugins folder: C:\java\sonar-1.8\extensions>mkdir plugins
Hide
Permalink
Mike R. Haller added a comment - 28/Apr/09 3:30 AM

It's a fresh installation.
Could you please delete my comment? It still doesn't work, but the error does not come anymore. Probably was a bad idea to create the extensions/plugins folder.

Show
Mike R. Haller added a comment - 28/Apr/09 3:30 AM It's a fresh installation. Could you please delete my comment? It still doesn't work, but the error does not come anymore. Probably was a bad idea to create the extensions/plugins folder.
Hide
Permalink
Simon Brandhof added a comment - 28/Apr/09 3:45 AM

You're right, Sonar does not automatically create the missing extensions/plugins directory. It should have been created when unzipping the distribution. We should add a file like README.txt in empty directories to avoid this problem.
Could you attach the new errors please ?

Show
Simon Brandhof added a comment - 28/Apr/09 3:45 AM You're right, Sonar does not automatically create the missing extensions/plugins directory. It should have been created when unzipping the distribution. We should add a file like README.txt in empty directories to avoid this problem. Could you attach the new errors please ?
Hide
Permalink
Mike R. Haller added a comment - 28/Apr/09 4:12 AM

Sonar log file shows that it cannot initialize the data directory of the embedded Derby database.
Assumed that the cause is another missing folder which was not extracted by crappy WinZip

Show
Mike R. Haller added a comment - 28/Apr/09 4:12 AM Sonar log file shows that it cannot initialize the data directory of the embedded Derby database. Assumed that the cause is another missing folder which was not extracted by crappy WinZip
Hide
Permalink
Simon Brandhof added a comment - 28/Apr/09 4:15 AM

Yes it is. You have to create data/, extensions/rules/pmd/, extensions/rules/checkstyle/ and logs/.

Show
Simon Brandhof added a comment - 28/Apr/09 4:15 AM Yes it is. You have to create data/, extensions/rules/pmd/, extensions/rules/checkstyle/ and logs/.
Hide
Permalink
Mike R. Haller added a comment - 28/Apr/09 4:19 AM

Extracting the zip file with any other decompressor (incl. native Windows instead of WinZip) works fine though.

Show
Mike R. Haller added a comment - 28/Apr/09 4:19 AM Extracting the zip file with any other decompressor (incl. native Windows instead of WinZip) works fine though.

People

  • Assignee:
    Simon Brandhof
    Reporter:
    Mike R. Haller
Vote (0)
Watch (0)

Dates

  • Created:
    28/Apr/09 3:22 AM
    Updated:
    30/May/09 10:00 AM
    Resolved:
    29/Apr/09 7:22 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.