java.lang.NullPointerException

sourceforge.net | 4 months ago
  1. 0

    GeoTools, the Java GIS toolkit / Mailing Lists

    sourceforge.net | 4 months ago
    java.lang.NullPointerException
  2. 0

    Mercurial: NPE at java.net.URI$Parser.parse

    YouTrack | 6 years ago
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    I'm trying to run cargo:deploy for a webapp pointing towards a running jetty7 instance on a remote server. The server is running the deployer-webapp according to the instructions over at: http://cargo.codehaus.org/Jetty+Remote+Deployer I can access the webapp from my browser. Running mvn -X cargo:deploy yields: ... [DEBUG] Deploying [/Users/viktor/dev/projects/dfkka/target/dfkka-0.5-SNAPSHOT.war] ... [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2:11.949s [INFO] Finished at: Mon May 23 19:18:02 CEST 2011 [INFO] Final Memory: 6M/554M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.1.0:deploy (default-cli) on project dfkka: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.1.0:deploy failed: Failed to deploy [/Users/viktor/dev/projects/dfkka/target/dfkka-0.5-SNAPSHOT.war]: Response when calling http://_myserver_:8080/cargo-jetty-deployer/deploy?path=/dfkka-0.5-SNAPSHOT was: -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.1.0:deploy (default-cli) on project dfkka: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.1.0:deploy failed: Failed to deploy [/Users/viktor/dev/projects/dfkka/target/dfkka-0.5-SNAPSHOT.war] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:211) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:314) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168) at org.apache.maven.cli.MavenCli.main(MavenCli.java:132) 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:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.1.0:deploy failed: Failed to deploy [/Users/viktor/dev/projects/dfkka/target/dfkka-0.5-SNAPSHOT.war] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:116) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195) ... 19 more Caused by: org.codehaus.cargo.container.ContainerException: Failed to deploy [/Users/viktor/dev/projects/dfkka/target/dfkka-0.5-SNAPSHOT.war] at org.codehaus.cargo.container.jetty.JettyRemoteDeployer.deploy(JettyRemoteDeployer.java:120) at org.codehaus.cargo.maven2.DeployerDeployMojo.performDeployerActionOnSingleDeployable(DeployerDeployMojo.java:97) at org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionOnAllDeployables(AbstractDeployerMojo.java:130) at org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDeployerMojo.java:61) at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:278) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107) ... 20 more Caused by: org.codehaus.cargo.container.ContainerException: Response when calling http://myserver:8080/cargo-jetty-deployer/deploy?path=/dfkka-0.5-SNAPSHOT was: at org.codehaus.cargo.container.jetty.JettyRemoteDeployer.deploy(JettyRemoteDeployer.java:113) ... 25 more [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException My pom.xml looks like: <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.1.0</version> <configuration> <container> <containerId>jetty7x</containerId> <type>remote</type> <timeout>10000</timeout> </container> <configuration> <type>runtime</type> <properties> <cargo.hostname>${myserver}</cargo.hostname> <cargo.servlet.port>8080</cargo.servlet.port> <cargo.remote.username>${cargo.username}</cargo.remote.username> <cargo.remote.password>${cargo.password}</cargo.remote.password> </properties> </configuration> <deployer> <type>remote</type> <deployables> <deployable> <groupId>${project.groupId}</groupId> <artifactId>${project.artifactId}</artifactId> <type>war</type> </deployable> </deployables> </deployer> </configuration> </plugin> and the server/usr/pwd properties used are defined in my settings.xml. Looking at the log for the webapp on the server I find a NPE: 2011-05-23 19:15:26.606:WARN::/cargo-jetty-deployer/deploy java.lang.NullPointerException at java.net.URI$Parser.parse(URI.java:3003) at java.net.URI.<init>(URI.java:578) at org.codehaus.cargo.deployer.jetty.DeployerServlet.deploy(DeployerServlet.java:403) at org.codehaus.cargo.deployer.jetty.DeployerServlet.doGet(DeployerServlet.java:157) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:534) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:476) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:468) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:935) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:870) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:346) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596) at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1051) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:592) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:520) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:528) at java.lang.Thread.run(Thread.java:662) I don't know if there really is a "feature bug" or if I'm doing something wrong, but the error isn't very helpful. Cheers, Viktor 0

    JIRA | 6 years ago | Viktor Hedefalk
    java.lang.NullPointerException

    3 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at java.net.URI$Parser.parse()
    2. Java RT
      URI.<init>
      1. java.net.URI$Parser.parse(URI.java:3003)
      2. java.net.URI.<init>(URI.java:578)
      2 frames
    3. org.geotools.data
      DefaultTransaction.commit
      1. org.geotools.data.wfs.v1_0_0.WFSTransactionState.commitPost(WFSTransactionState.java:258)
      2. org.geotools.data.wfs.v1_0_0.WFSTransactionState.commit(WFSTransactionState.java:160)
      3. org.geotools.data.DefaultTransaction.commit(DefaultTransaction.java:183)
      3 frames
    4. net.refractions.udig
      PlatformGIS$Runner.run
      1. net.refractions.udig.project.internal.impl.UDIGTransaction.commitInternal(UDIGTransaction.java:49)
      2. net.refractions.udig.project.internal.impl.EditManagerImpl.commitTransaction(EditManagerImpl.java:395)
      3. net.refractions.udig.project.internal.commands.selection.CommitCommand.run(CommitCommand.java:36)
      4. net.refractions.udig.tools.internal.CommitTool$1.run(CommitTool.java:54)
      5. net.refractions.udig.ui.PlatformGIS$Runner.run(PlatformGIS.java:206)
      6. net.refractions.udig.ui.PlatformGIS$Runner.run(PlatformGIS.java:220)
      6 frames
    5. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      1 frame