java.lang.NullPointerException

Stack Overflow | Tom | 5 months ago
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. davidvanlaatum 4 times, last 2 weeks ago
7 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 org.eclipse.persistence.platform.server.ServerPlatformUtils.createServerPlatform()
  2. EclipseLink (non-OSGi)
    EntityManagerFactoryImpl.createEntityManager
    1. org.eclipse.persistence.platform.server.ServerPlatformUtils.createServerPlatform(ServerPlatformUtils.java:99)
    2. org.eclipse.persistence.sessions.factories.SessionManager.init(SessionManager.java:77)
    3. org.eclipse.persistence.sessions.factories.SessionManager.<clinit>(SessionManager.java:71)
    4. org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.addSessionToGlobalSessionManager(EntityManagerSetupImpl.java:907)
    5. org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.initSession(EntityManagerSetupImpl.java:2671)
    6. org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:675)
    7. org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getAbstractSession(EntityManagerFactoryDelegate.java:205)
    8. org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:305)
    9. org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:337)
    10. org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:318)
    10 frames
  3. Container Common
    EntityManagerWrapper.createNamedQuery
    1. com.sun.enterprise.container.common.impl.EntityManagerWrapper._getDelegate(EntityManagerWrapper.java:197)
    2. com.sun.enterprise.container.common.impl.EntityManagerWrapper.createNamedQuery(EntityManagerWrapper.java:521)
    2 frames
  4. org.glassfish.ejb
    TimerBean.findActiveTimersOwnedByThisServer
    1. org.glassfish.ejb.persistent.timer.TimerBean.findTimersByOwnerAndState(TimerBean.java:209)
    2. org.glassfish.ejb.persistent.timer.TimerBean.findActiveTimersOwnedByThisServer(TimerBean.java:523)
    2 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  6. Embedded GlassFish Web
    SystemInterceptorProxy.aroundInvoke
    1. org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1081)
    2. org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1153)
    3. com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:4786)
    4. com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:656)
    5. com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
    6. com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:608)
    7. com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doCall(SystemInterceptorProxy.java:163)
    8. com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:140)
    8 frames
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  8. Embedded GlassFish Web
    EJBLocalObjectInvocationHandlerDelegate.invoke
    1. com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
    2. com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
    3. com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:369)
    4. com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:4758)
    5. com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4746)
    6. com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:212)
    7. com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
    7 frames
  9. com.sun.proxy
    $Proxy221.findActiveTimersOwnedByThisServer
    1. com.sun.proxy.$Proxy221.findActiveTimersOwnedByThisServer(Unknown Source)
    1 frame
  10. org.glassfish.ejb
    PersistentEJBTimerService.resetEJBTimers
    1. org.glassfish.ejb.persistent.timer.PersistentEJBTimerService.restoreEJBTimers(PersistentEJBTimerService.java:369)
    2. org.glassfish.ejb.persistent.timer.PersistentEJBTimerService.resetEJBTimers(PersistentEJBTimerService.java:1400)
    2 frames
  11. Embedded GlassFish Web
    EjbDeployer.load
    1. com.sun.ejb.containers.EJBTimerService.initEJBTimerService(EJBTimerService.java:236)
    2. com.sun.ejb.containers.EJBTimerService.getEJBTimerService(EJBTimerService.java:205)
    3. com.sun.ejb.containers.EJBTimerService.getEJBTimerService(EJBTimerService.java:187)
    4. com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:825)
    5. com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:143)
    6. com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:137)
    7. com.sun.ejb.containers.StatelessContainerFactory.createContainer(StatelessContainerFactory.java:61)
    8. org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:221)
    9. org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:291)
    10. org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:99)
    10 frames
  12. Private APIs of Glassfish
    ApplicationInfo.load
    1. org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:206)
    2. org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:313)
    2 frames
  13. Kernel Classes
    ApplicationLoaderService.postConstruct
    1. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:496)
    2. com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:406)
    3. com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:243)
    3 frames
  14. ServiceLocator Default Implementation
    SystemDescriptor.create
    1. org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:326)
    2. org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:374)
    3. org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471)
    3 frames
  15. Run Level Service
    RunLevelContext.findOrCreate
    1. org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:228)
    2. org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:85)
    2 frames
  16. ServiceLocator Default Implementation
    ServiceHandleImpl.getService
    1. org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2072)
    2. org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:114)
    3. org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:88)
    3 frames
  17. Run Level Service
    CurrentTaskFuture$QueueRunner.run
    1. org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1213)
    2. org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1144)
    2 frames
  18. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    3. java.lang.Thread.run(Unknown Source)
    3 frames