java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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}
    via by Torsten Juergeleit,
  • 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}
    via by Torsten Juergeleit,
    • 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)
    No Bugmate found.