java.lang.NullPointerException

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

java.lang.NullPointerException

Jorge
I'm getting a NullPointerException when running "mvn -P web":

n/faces/jsf-impl/2.0.3/jsf-impl-2.0.3.jar!/META-INF/resources/, jar:file:/C:/Use
rs/account/.m2/repository/org/primefaces/primefaces/3.5/primefaces-3.5.jar!
/META-INF/resources/, jar:file:/C:/Users/account/.m2/repository/org/primefa
ces/themes/south-street/1.0.2/south-street-1.0.2.jar!/META-INF/resources/]},file
:/C:/workspace/new/y/server-distribution/target/visualizer/
java.lang.NullPointerException
        at org.powertac.visualizer.DynamicApplicationContext.getDefaultConfigLoc
ations(DynamicApplicationContext.java:12)
        at org.springframework.context.support.AbstractRefreshableConfigApplicat
ionContext.getConfigLocations(AbstractRefreshableConfigApplicationContext.java:1
00)
        at org.springframework.web.context.support.AbstractRefreshableWebApplica
tionContext.getConfigLocations(AbstractRefreshableWebApplicationContext.java:131
)
        at org.springframework.web.context.support.XmlWebApplicationContext.load
BeanDefinitions(XmlWebApplicationContext.java:122)
        at org.springframework.web.context.support.XmlWebApplicationContext.load
BeanDefinitions(XmlWebApplicationContext.java:94)
        at org.springframework.context.support.AbstractRefreshableApplicationCon
text.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)
        at org.springframework.context.support.AbstractApplicationContext.obtain
FreshBeanFactory(AbstractApplicationContext.java:522)
        at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:436)
        at org.springframework.web.context.ContextLoader.configureAndRefreshWebA
pplicationContext(ContextLoader.java:384)
        at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:283)
        at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:111)
        at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialize
d(ContextHandler.java:771)
        at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialize
d(ServletContextHandler.java:424)
        at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextH
andler.java:763)
        at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletC
ontextHandler.java:249)
        at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.jav
a:1250)
   
Reply | Threaded
Open this post in threaded view
|

Re: java.lang.NullPointerException

grampajohn
Administrator
My first guess is that it's a JVM problem - it's possible that the 'sun.java.command' property is not implemented in all versions of Java. What platform are you using? Which version of Java? Perhaps Jurica could find a more portable way to get the information he needs. I will create an issue for this.

John
Reply | Threaded
Open this post in threaded view
|

Re: java.lang.NullPointerException

gbuijs
This is my code, but as John said, we need OS and JVM type/version.

Also : what version of Maven are you using?
Reply | Threaded
Open this post in threaded view
|

Re: java.lang.NullPointerException

Jorge
I was using jrockit_160_24_D1.1.2-4 for the JVM and Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500).

I switched to Java(TM) SE Runtime Environment (build 1.7.0_51-b13) and the latest Maven version, 3.2.1, and that fixed the issue.

Thanks,

Jorge
Reply | Threaded
Open this post in threaded view
|

Re: java.lang.NullPointerException

gbuijs
Ok, thanks for reporting back.