java.lang.NullPointerException

Spring JIRA | Torsten Juergeleit | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    During validation the following dummy webflow definition {code} <?xml version="1.0" encoding="UTF-8"?> <flow xmlns="http://www.springframework.org/schema/webflow" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/webflow http://www.springframework.org/schema/webflow/spring-webflow-1.0.xsd"> <start-state idref="start"/> <action-state id="test"> <action bean="huhu"/> <transition on="*" to="start"/> </action-state> <view-state id="start"/> </flow> {code} the following exception occurs for the element {code}<action bean="huhu"/>{code} {code} java.lang.NullPointerException at org.springframework.ide.eclipse.webflow.core.internal.model.WebflowModelElement.getElementStartLine(WebflowModelElement.java:281) at org.springframework.ide.eclipse.webflow.core.internal.model.WebflowModelUtils.createMarkerFromProblemReporter(WebflowModelUtils.java:105) at org.springframework.ide.eclipse.webflow.core.internal.model.WebflowValidator.validate(WebflowValidator.java:53) at org.springframework.ide.eclipse.webflow.core.internal.model.WebflowValidator.run(WebflowValidator.java:37) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1737) at org.springframework.ide.eclipse.webflow.core.internal.model.project.WebflowProjectValidator.validate(WebflowProjectValidator.java:44) at org.springframework.ide.eclipse.webflow.core.internal.model.project.WebflowProjectValidator.build(WebflowProjectValidator.java:35) at org.springframework.ide.eclipse.core.internal.project.SpringProjectBuilder####1.run(SpringProjectBuilder.java:121) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.springframework.ide.eclipse.core.internal.project.SpringProjectBuilder.runBuilders(SpringProjectBuilder.java:130) at org.springframework.ide.eclipse.core.internal.project.SpringProjectBuilder.access####0(SpringProjectBuilder.java:112) at org.springframework.ide.eclipse.core.internal.project.SpringProjectBuilder####Visitor.visit(SpringProjectBuilder.java:69) at org.eclipse.core.internal.resources.Resource####2.visit(Resource.java:105) at org.eclipse.core.internal.resources.Resource####1.visitElement(Resource.java:57) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:81) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85) at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:126) at org.eclipse.core.internal.resources.Resource.accept(Resource.java:67) at org.eclipse.core.internal.resources.Resource.accept(Resource.java:103) at org.eclipse.core.internal.resources.Resource.accept(Resource.java:87) at org.springframework.ide.eclipse.core.internal.project.SpringProjectBuilder.build(SpringProjectBuilder.java:51) at org.eclipse.core.internal.events.BuildManager####2.run(BuildManager.java:603) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:167) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201) at org.eclipse.core.internal.events.BuildManager####1.run(BuildManager.java:230) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:233) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:252) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:285) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:154) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:217) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58) {code}

    Spring JIRA | 1 decade ago | Torsten Juergeleit
    java.lang.NullPointerException
  2. 0

    During validation the following dummy webflow definition {code} <?xml version="1.0" encoding="UTF-8"?> <flow xmlns="http://www.springframework.org/schema/webflow" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/webflow http://www.springframework.org/schema/webflow/spring-webflow-1.0.xsd"> <start-state idref="start"/> <action-state id="test"> <action bean="huhu"/> <transition on="*" to="start"/> </action-state> <view-state id="start"/> </flow> {code} the following exception occurs for the element {code}<action bean="huhu"/>{code} {code} java.lang.NullPointerException at org.springframework.ide.eclipse.webflow.core.internal.model.WebflowModelElement.getElementStartLine(WebflowModelElement.java:281) at org.springframework.ide.eclipse.webflow.core.internal.model.WebflowModelUtils.createMarkerFromProblemReporter(WebflowModelUtils.java:105) at org.springframework.ide.eclipse.webflow.core.internal.model.WebflowValidator.validate(WebflowValidator.java:53) at org.springframework.ide.eclipse.webflow.core.internal.model.WebflowValidator.run(WebflowValidator.java:37) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1737) at org.springframework.ide.eclipse.webflow.core.internal.model.project.WebflowProjectValidator.validate(WebflowProjectValidator.java:44) at org.springframework.ide.eclipse.webflow.core.internal.model.project.WebflowProjectValidator.build(WebflowProjectValidator.java:35) at org.springframework.ide.eclipse.core.internal.project.SpringProjectBuilder####1.run(SpringProjectBuilder.java:121) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.springframework.ide.eclipse.core.internal.project.SpringProjectBuilder.runBuilders(SpringProjectBuilder.java:130) at org.springframework.ide.eclipse.core.internal.project.SpringProjectBuilder.access####0(SpringProjectBuilder.java:112) at org.springframework.ide.eclipse.core.internal.project.SpringProjectBuilder####Visitor.visit(SpringProjectBuilder.java:69) at org.eclipse.core.internal.resources.Resource####2.visit(Resource.java:105) at org.eclipse.core.internal.resources.Resource####1.visitElement(Resource.java:57) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:81) at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85) at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:126) at org.eclipse.core.internal.resources.Resource.accept(Resource.java:67) at org.eclipse.core.internal.resources.Resource.accept(Resource.java:103) at org.eclipse.core.internal.resources.Resource.accept(Resource.java:87) at org.springframework.ide.eclipse.core.internal.project.SpringProjectBuilder.build(SpringProjectBuilder.java:51) at org.eclipse.core.internal.events.BuildManager####2.run(BuildManager.java:603) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:167) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201) at org.eclipse.core.internal.events.BuildManager####1.run(BuildManager.java:230) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:233) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:252) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:285) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:154) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:217) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58) {code}

    Spring JIRA | 1 decade ago | Torsten Juergeleit
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.springframework.ide.eclipse.webflow.core.internal.model.WebflowModelElement.getElementStartLine()
    2. org.springframework.ide
      WebflowValidator.run
      1. org.springframework.ide.eclipse.webflow.core.internal.model.WebflowModelElement.getElementStartLine(WebflowModelElement.java:281)
      2. org.springframework.ide.eclipse.webflow.core.internal.model.WebflowModelUtils.createMarkerFromProblemReporter(WebflowModelUtils.java:105)
      3. org.springframework.ide.eclipse.webflow.core.internal.model.WebflowValidator.validate(WebflowValidator.java:53)
      4. org.springframework.ide.eclipse.webflow.core.internal.model.WebflowValidator.run(WebflowValidator.java:37)
      4 frames
    3. Core Resource Management
      Workspace.run
      1. org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1737)
      1 frame
    4. org.springframework.ide
      WebflowProjectValidator.build
      1. org.springframework.ide.eclipse.webflow.core.internal.model.project.WebflowProjectValidator.validate(WebflowProjectValidator.java:44)
      2. org.springframework.ide.eclipse.webflow.core.internal.model.project.WebflowProjectValidator.build(WebflowProjectValidator.java:35)
      2 frames