[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opennms-buglist
Subject:    [Buglist] [Bug 1562] New: NullPointerException in AbstractCCompiler.getCommandLine when compiling ip
From:       bugzilla () opennms ! org (bugzilla () opennms ! org)
Date:       2006-08-22 1:17:04
Message-ID: 20060822061700.5282B1D800A () server1 ! opennms ! org
[Download RAW message or body]

http://bugzilla.opennms.org/cgi-bin/bugzilla/show_bug.cgi?id=1562

           Summary: NullPointerException in AbstractCCompiler.getCommandLine
                    when compiling iplike if build.postgresql.include.dir is
                    not set
           Product: OpenNMS
           Version: CVS, unstable
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Build/Packaging
        AssignedTo: buglist@opennms.org
        ReportedBy: dj@opennms.org


Here's what jeffg got at Dev-Jam:

[INFO] Trace
java.lang.NullPointerException
        at org.codehaus.mojo.natives.compiler.AbstractCCompiler.getCommandLine
(AbstractCCompiler.java:76)
        at org.codehaus.mojo.natives.compiler.AbstractCompiler.compile(AbstractCompiler.java:74)
        at org.codehaus.mojo.natives.plugin.NativeCompileMojo.execute(NativeCompileMojo.java:162)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(DefaultLifecycleExecutor.java:534)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:475)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:
454)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:306)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
(DefaultLifecycleExecutor.java:273)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

He was compiling on Ubuntu 6.06, and there wasn't a profile setup that matched his system (this was 
fixed with this commit: http://svn.sourceforge.net/viewvc/opennms/opennms/trunk/pom.xml?
r1=3713&r2=3722)

Here's another one that david@opennms.org just got:

[INFO] ----------------------------------------------------------------------------
[INFO] Building OpenNMS iplike Stored Procedure for PostgreSQL - Linux
[INFO] task-segment: [install]
[INFO] ----------------------------------------------------------------------------
[INFO] [native:initialize]
[INFO] [native:compile]
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] null
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
at org.codehaus.mojo.natives.compiler.AbstractCCompiler.getCommandLine(AbstractCCompiler.java:
76)
at org.codehaus.mojo.natives.compiler.AbstractCompiler.compile(AbstractCompiler.java:74)
at org.codehaus.mojo.natives.plugin.NativeCompileMojo.execute(NativeCompileMojo.java:162)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:306)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
(DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15 seconds
[INFO] Finished at: Tue Aug 22 07:26:47 CEST 2006
[INFO] Final Memory: 24M/120M
[INFO] ------------------------------------------------------------------------


This was caused by having PostgreSQL installed in a non-standard location.  David fixed the problem by 
specifying the include library directory on the command line (-D...=....).



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic