java.lang.NullPointerException

Oracle Community | Shahzad.H.Magsi | 2 years ago
  1. 0

    java.lang.NullPointerException

    Oracle Community | 2 years ago | Shahzad.H.Magsi
    java.lang.NullPointerException
  2. 0

    Application: FND, Message Name: FND_VIEWOBJECT_NOT_FOUND Error

    Oracle Community | 9 years ago | user525275
    java.lang.NullPointerException
  3. 0

    R12 Error Page :You have encountered an unexpected error. Please contact..

    Oracle Community | 6 years ago | Cherrish
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I'm using a PropertyPlaceholderConfigurer and I'm using <null/> in some of my bean definitions. After upgrading to 2.0.3 I get the following exception for a configuration using the PropertyPlaceholderConfigurer I don't get this error with 2.0.2 If I don't pass in a <null/> property everything works fine: SomeBean.java public class SomeBean { public void setSomeProperty(Object obj) { } } applicationContext.xml <bean class="SomeBean"> <property name="testProperty"><null/></property> </bean> <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" lazy-init="false"> <property name="locations"> <list> <value>classpath:property.properties</value> </list> <property/> </bean> Exception java.lang.NullPointerException at java.lang.StringBuffer.<init>(StringBuffer.java:104) at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.parseStringValue(PropertyPlaceholderConfigurer.java:270) at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer$PlaceholderResolvingBeanDefinitionVisitor.resolveStringValue(PropertyPlaceholderConfigurer.java:401) at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveValue(BeanDefinitionVisitor.java:143) at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitPropertyValues(BeanDefinitionVisitor.java:89) at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitBeanDefinition(BeanDefinitionVisitor.java:59) at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:246) at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:422) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:334) 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:585) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1185) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1147) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1110) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:431) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:221) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:111) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1047) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:843) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:254) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:163) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:683) at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:394) at org.lds.stack.spring.context.WebContextSingletonBeanFactoryLocator.useBeanFactory(WebContextSingletonBeanFactoryLocator.java:38) at org.lds.stack.spring.context.BootstrapContextLoader.createWebApplicationContext(BootstrapContextLoader.java:30) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) 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:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)

    Spring JIRA | 10 years ago | Mike Youngstrom
    java.lang.NullPointerException
  6. 0

    After upgrading from Spring 2.0.2 to Spring 2.0.3 I'm getting this error in the startup: java.lang.NullPointerException at java.lang.StringBuffer.<init>(StringBuffer.java:104) at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.parseStringValue(PropertyPlaceholderConfigurer.java:270) at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer$PlaceholderResolvingBeanDefinitionVisitor.resolveStringValue(PropertyPlaceholderConfigurer.java:401) at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveValue(BeanDefinitionVisitor.java:143) at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitPropertyValues(BeanDefinitionVisitor.java:89) at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitBeanDefinition(BeanDefinitionVisitor.java:59) at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:246) at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:325) We have a custom ApplicationContext implementation and are using custom namespace handlers. They might have something to do with the problem. Any ways there could be some protective code in org.springframework.beans.factory.config.BeanDefitionVisitor's resolveValue method. These are the lines that could be changed: 141: else if (value instanceof TypedStringValue) { 142: TypedStringValue typedStringValue = (TypedStringValue) value; 143: String visitdString = resolveStringValue(typedStringValue.getValue()); 144: typedStringValue.setValue(visitdString); suggested change else if (value instanceof TypedStringValue) { TypedStringValue typedStringValue = (TypedStringValue) value; if (typedStringValue.getValue() != null) { String visitdString = resolveStringValue(typedStringValue.getValue()); typedStringValue.setValue(visitdString); }

    Spring JIRA | 10 years ago | Lari Hotari
    java.lang.NullPointerException

    1 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.lang.StringBuffer.<init>()
    2. Java RT
      StringBuffer.<init>
      1. java.lang.StringBuffer.<init>(StringBuffer.java:104)
      1 frame
    3. oracle.apps.fnd
      OAPageBean.preparePage
      1. oracle.apps.fnd.framework.webui.OAMessageLovInputHelper.processFormData(Unknown Source)
      2. oracle.apps.fnd.framework.webui.beans.message.OAMessageLovInputBean.processFormData(Unknown Source)
      3. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataIndexedChildren(Unknown Source)
      4. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(Unknown Source)
      5. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(Unknown Source)
      6. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormData(Unknown Source)
      7. oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormData(Unknown Source)
      8. oracle.apps.fnd.framework.webui.beans.layout.OAMessageComponentLayoutBean.processFormData(Unknown Source)
      9. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataIndexedChildren(Unknown Source)
      10. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(Unknown Source)
      11. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(Unknown Source)
      12. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormData(Unknown Source)
      13. oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormData(Unknown Source)
      14. oracle.apps.fnd.framework.webui.beans.layout.OARowLayoutBean.processFormData(Unknown Source)
      15. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataIndexedChildren(Unknown Source)
      16. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(Unknown Source)
      17. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(Unknown Source)
      18. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormData(Unknown Source)
      19. oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormData(Unknown Source)
      20. oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processFormData(Unknown Source)
      21. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataIndexedChildren(Unknown Source)
      22. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(Unknown Source)
      23. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(Unknown Source)
      24. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormData(Unknown Source)
      25. oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormData(Unknown Source)
      26. oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormData(Unknown Source)
      27. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataIndexedChildren(Unknown Source)
      28. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(Unknown Source)
      29. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(Unknown Source)
      30. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormData(Unknown Source)
      31. oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormData(Unknown Source)
      32. oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormData(Unknown Source)
      33. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataIndexedChildren(Unknown Source)
      34. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(Unknown Source)
      35. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(Unknown Source)
      36. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormData(Unknown Source)
      37. oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormData(Unknown Source)
      38. oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormData(Unknown Source)
      39. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataIndexedChildren(Unknown Source)
      40. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(Unknown Source)
      41. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormDataChildren(Unknown Source)
      42. oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormData(Unknown Source)
      43. oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormData(Unknown Source)
      44. oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormData(Unknown Source)
      45. oracle.apps.fnd.framework.webui.OAPageBean.processFormData(Unknown Source)
      46. oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
      47. oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
      48. oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
      48 frames
    4. Unknown
      _OA._jspService
      1. _OA._jspService(_OA.java:71)
      1 frame
    5. com.orionserver.http
      OrionHttpJspPage.service
      1. com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
      1 frame
    6. oracle.jsp.runtimev2
      JspServlet.service
      1. oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
      2. oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
      3. oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
      3 frames
    7. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
      1 frame
    8. com.evermind.server
      HttpRequestHandler.run
      1. com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
      2. com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
      3. com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
      4. com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
      5. com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
      6. com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
      7. com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
      7 frames
    9. oracle.oc4j.network
      ServerSocketAcceptHandler$AcceptHandlerHorse.run
      1. oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
      2. oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
      3. oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
      4. oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
      4 frames
    10. com.evermind.util
      ReleasableResourcePooledExecutor$MyWorker.run
      1. com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
      1 frame
    11. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame