java.lang.NullPointerException: Name is null

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.

  • There is a NullPointerException when Spring Security attempts to find which Http methods that are allowed for a resource whose _intercept-url_ does not have any specific _method_. # Unzip the provided project # Execute "mvn jetty:run" # Navigate to http://localhost:8080/application.wadl in a browser # Enter the credentials "user" / "secret" *Expected result:* A generated wadl file such as the provided _application.3.0.7.wadl_ (see the root folder of the attached .zip file). *Actual result:* java.lang.NullPointerException: Name is null at java.lang.Enum.valueOf(Enum.java:235) at org.springframework.http.HttpMethod.valueOf(HttpMethod.java:1) at org.springframework.security.web.util.AntPathRequestMatcher.matches(AntPathRequestMatcher.java:83) at org.springframework.security.web.access.intercept.DefaultFilterInvocationSecurityMetadataSource.getAttributes(DefaultFilterInvocationSecurityMetadataSource.java:86) at org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator.isAllowed(DefaultWebInvocationPrivilegeEvaluator.java:90) at org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator.isAllowed(DefaultWebInvocationPrivilegeEvaluator.java:67) at com.jayway.security.WADLGenerator.createResource(WADLGenerator.java:39) at com.sun.jersey.server.wadl.WadlBuilder.generateResource(WadlBuilder.java:330) at com.sun.jersey.server.wadl.WadlBuilder.generateResource(WadlBuilder.java:326) at com.sun.jersey.server.wadl.WadlBuilder.generate(WadlBuilder.java:108) at com.sun.jersey.server.impl.wadl.WadlApplicationContextImpl.getApplication(WadlApplicationContextImpl.java:111) at com.sun.jersey.server.impl.wadl.WadlApplicationContextInjectionProxy.getApplication(WadlApplicationContextInjectionProxy.java:63) at com.sun.jersey.server.impl.wadl.WadlResource.getWadl(WadlResource.java:95) [...] *Note:* The above steps work in the 3.0.7 version of Spring Security. Simply # Change the _org.springframework.security.version_ in the _pom.xml_ to _3.0.7.RELEASE_ # Update the spring security schema location in the _securityContext.xml_ to http://www.springframework.org/schema/security/spring-security-3.0.4.xsd # Visit http://localhost:8080/application.wadl (log in using the credentials above) # The result is the _application.3.0.7.wadl_ file in the root folder of the attached zip file The NPE may (or may not) be another manifestation of the issue that was reported in https://jira.springsource.org/browse/SEC-1836 ?
    via by Mattias Severson,
  • There is a NullPointerException when Spring Security attempts to find which Http methods that are allowed for a resource whose _intercept-url_ does not have any specific _method_. # Unzip the provided project # Execute "mvn jetty:run" # Navigate to http://localhost:8080/application.wadl in a browser # Enter the credentials "user" / "secret" *Expected result:* A generated wadl file such as the provided _application.3.0.7.wadl_ (see the root folder of the attached .zip file). *Actual result:* java.lang.NullPointerException: Name is null at java.lang.Enum.valueOf(Enum.java:235) at org.springframework.http.HttpMethod.valueOf(HttpMethod.java:1) at org.springframework.security.web.util.AntPathRequestMatcher.matches(AntPathRequestMatcher.java:83) at org.springframework.security.web.access.intercept.DefaultFilterInvocationSecurityMetadataSource.getAttributes(DefaultFilterInvocationSecurityMetadataSource.java:86) at org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator.isAllowed(DefaultWebInvocationPrivilegeEvaluator.java:90) at org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator.isAllowed(DefaultWebInvocationPrivilegeEvaluator.java:67) at com.jayway.security.WADLGenerator.createResource(WADLGenerator.java:39) at com.sun.jersey.server.wadl.WadlBuilder.generateResource(WadlBuilder.java:330) at com.sun.jersey.server.wadl.WadlBuilder.generateResource(WadlBuilder.java:326) at com.sun.jersey.server.wadl.WadlBuilder.generate(WadlBuilder.java:108) at com.sun.jersey.server.impl.wadl.WadlApplicationContextImpl.getApplication(WadlApplicationContextImpl.java:111) at com.sun.jersey.server.impl.wadl.WadlApplicationContextInjectionProxy.getApplication(WadlApplicationContextInjectionProxy.java:63) at com.sun.jersey.server.impl.wadl.WadlResource.getWadl(WadlResource.java:95) [...] *Note:* The above steps work in the 3.0.7 version of Spring Security. Simply # Change the _org.springframework.security.version_ in the _pom.xml_ to _3.0.7.RELEASE_ # Update the spring security schema location in the _securityContext.xml_ to http://www.springframework.org/schema/security/spring-security-3.0.4.xsd # Visit http://localhost:8080/application.wadl (log in using the credentials above) # The result is the _application.3.0.7.wadl_ file in the root folder of the attached zip file The NPE may (or may not) be another manifestation of the issue that was reported in https://jira.springsource.org/browse/SEC-1836 ?
    via by Mattias Severson,
  • java.lang.NullPointerException: Name is null at java.lang.Enum.valueOf(Enum.java:235) at com.pentaho.di.vizor.extensions.VizorJobType.valueOf(VizorJobType.java:3) at com.pentaho.di.vizor.extensions.PMRTransformationStartThreadsExtension.callExtensionPoint(PMRTransformationStartThreadsExtension.java:88) at org.pentaho.di.core.extension.ExtensionPointHandler.callExtensionPoint(ExtensionPointHandler.java:57) at org.pentaho.di.trans.Trans.startThreads(Trans.java:1165) at org.pentaho.di.profiling.datacleaner.DataCleanerKettleFileWriter.run(DataCleanerKettleFileWriter.java:73) at org.pentaho.di.profiling.datacleaner.ModelerHelper.profileStep(ModelerHelper.java:288) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:313) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:157) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:141) at org.pentaho.ui.xul.jface.tags.JfaceMenuitem.access$100(JfaceMenuitem.java:43) at org.pentaho.ui.xul.jface.tags.JfaceMenuitem$1.run(JfaceMenuitem.java:106) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1267) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7705) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9049) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:642) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:151)
    via by Matt Casters,
    • java.lang.NullPointerException: Name is null at java.lang.Enum.valueOf(Enum.java:235) at org.springframework.http.HttpMethod.valueOf(HttpMethod.java:1) at org.springframework.security.web.util.AntPathRequestMatcher.matches(AntPathRequestMatcher.java:83) at org.springframework.security.web.access.intercept.DefaultFilterInvocationSecurityMetadataSource.getAttributes(DefaultFilterInvocationSecurityMetadataSource.java:86) at org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator.isAllowed(DefaultWebInvocationPrivilegeEvaluator.java:90) at org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator.isAllowed(DefaultWebInvocationPrivilegeEvaluator.java:67) at com.jayway.security.WADLGenerator.createResource(WADLGenerator.java:39) at com.sun.jersey.server.wadl.WadlBuilder.generateResource(WadlBuilder.java:330) at com.sun.jersey.server.wadl.WadlBuilder.generateResource(WadlBuilder.java:326) at com.sun.jersey.server.wadl.WadlBuilder.generate(WadlBuilder.java:108) at com.sun.jersey.server.impl.wadl.WadlApplicationContextImpl.getApplication(WadlApplicationContextImpl.java:111) at com.sun.jersey.server.impl.wadl.WadlApplicationContextInjectionProxy.getApplication(WadlApplicationContextInjectionProxy.java:63) at com.sun.jersey.server.impl.wadl.WadlResource.getWadl(WadlResource.java:95)

    Users with the same issue

    linxiaolong
    linxiaolong1 times, last one,
    raytest
    raytest1 times, last one,
    Andreas Häber
    Andreas Häber1 times, last one,
    jpvee
    jpvee1 times, last one,
    Unknown visitor1 times, last one,
    3 more bugmates